:root {
  color-scheme: light;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --green: #047857;
  --green-2: #16a34a;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #f8fafc;
  --card: #ffffff;
  --line: #dbeafe;
  --warn: #92400e;
}
*,
*::before,
*::after { box-sizing: border-box; }
body.resource-page {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.65;
}
.resource-main a { color: var(--blue); }
.resource-main { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.resource-main .hero,
.resource-main .card,
.resource-main .callout,
.resource-main .checklist,
.resource-main .tool {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}
.resource-main .hero { padding: clamp(28px, 5vw, 48px); margin-bottom: 18px; }
.resource-main .card,
.resource-main .callout,
.resource-main .checklist,
.resource-main .tool { padding: clamp(20px, 4vw, 32px); margin: 18px 0; }
.resource-main .eyebrow,
.resource-main .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.7rem;
  text-transform: uppercase;
}
.resource-main h1 { font-size: clamp(2.1rem, 4rem, 4.1rem); line-height: 1.04; margin: 0.55rem 0 1rem; letter-spacing: 0; }
.resource-main h2 { font-size: clamp(1.35rem, 2rem, 2rem); line-height: 1.15; margin: 0 0 0.8rem; letter-spacing: 0; }
.resource-main h3 { font-size: 1.05rem; margin: 1rem 0 0.35rem; }
.resource-main p { margin: 0.5rem 0 1rem; }
.resource-main ul,
.resource-main ol { padding-left: 1.25rem; }
.resource-main li { margin: 0.35rem 0; }
.resource-main .grid { display: grid; gap: 14px; }
.resource-main .grid-2 { display: grid; gap: 14px; }
.resource-main .grid-3 { display: grid; gap: 14px; }
@media (min-width: 760px) {
  .resource-main .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-main .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.resource-main .box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.resource-main .box strong { color: var(--ink); }
.resource-main .source-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding-left: 0;
}
.resource-main .source-list li {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}
.resource-main .source-list a {
  font-weight: 900;
  text-decoration: none;
}
.resource-main .source-list p { margin-bottom: 0; }
.resource-main .small-note { color: var(--muted); font-size: 0.9rem; }
.resource-main .resource-meta,
.resource-main .resource-breadcrumbs {
  color: var(--muted);
  font-size: 0.9rem;
}
.resource-main .resource-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 14px;
}
.resource-main .metric {
  display: block;
  color: var(--blue);
  font-size: clamp(1.35rem, 2rem, 2rem);
  font-weight: 900;
  line-height: 1.1;
}
.resource-main label,
.resource-main .label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.resource-main .field {
  min-height: 78px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}
.resource-main .field.large { min-height: 132px; }
.resource-main .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.resource-main .btn,
.resource-main button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-2), var(--green));
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 0.82rem 1.05rem;
  text-decoration: none;
}
.resource-main .btn.secondary,
.resource-main button.secondary {
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: var(--blue);
}
.resource-main .callout { border-color: rgba(22, 163, 74, 0.25); background: rgba(240, 253, 244, 0.94); }
.resource-main .warning { border-color: rgba(245, 158, 11, 0.34); background: rgba(255, 251, 235, 0.95); color: var(--warn); }
.resource-main .table-wrap { overflow-x: auto; }
.resource-main table { width: 100%; border-collapse: collapse; min-width: 640px; }
.resource-main th,
.resource-main td { border-bottom: 1px solid #e2e8f0; padding: 0.75rem; text-align: left; vertical-align: top; }
.resource-main th { background: #eff6ff; color: #1e3a8a; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.resource-main .score { width: 72px; text-align: center; }
.resource-main footer { color: var(--muted); font-size: 0.85rem; margin-top: 22px; text-align: center; }
@media print {
  body.resource-page { background: #fff; }
  .resource-main { width: 100%; padding: 0; }
  .resource-main .actions,
  .resource-main footer,
  .resource-main .resource-breadcrumbs { display: none; }
  .resource-main .hero,
  .resource-main .card,
  .resource-main .callout,
  .resource-main .checklist,
  .resource-main .tool { box-shadow: none; break-inside: avoid; }
  .resource-main a { color: inherit; text-decoration: none; }
}
