/* Resource pages extend the shared navy/cyan design system. */
.resource-hero { background: radial-gradient(ellipse at 90% 0, rgba(23, 201, 195, .17), transparent 55%), var(--navy-950); }
.resource-hero .eyebrow { color: var(--cyan-400); margin-bottom: 18px; }
.resource-hero .resource-meta { margin-top: 22px; font-size: .86rem; color: #c3d2df; }
.resource-hero h1 { max-width: 900px; }
.resource-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.resource-intro h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.resource-intro p { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.resource-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.resource-controls[hidden], .resource-card[hidden], .glossary-term[hidden], .resource-empty[hidden], [data-checklist-controls][hidden] { display: none; }
.resource-filter { min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--navy-800); cursor: pointer; font-weight: 700; font-size: .9rem; transition: background .18s ease, border-color .18s ease; }
.resource-filter:hover { border-color: var(--cyan-500); }
.resource-filter[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: white; }
.resource-count { width: 100%; margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.resource-card { display: flex; min-width: 0; flex-direction: column; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.resource-card .tag { align-self: flex-start; margin-bottom: 18px; }
.resource-card h3 { line-height: 1.25; font-size: 1.35rem; }
.resource-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.resource-card h3 a:focus-visible { outline: none; }
.resource-card:focus-within { outline: 3px solid var(--navy-900); outline-offset: 3px; box-shadow: 0 0 0 3px white; }
.resource-card p { margin-bottom: 22px; }
.resource-card .resource-open { margin-top: auto; color: var(--navy-800); font-size: .9rem; font-weight: 750; }
.resource-note { margin-block: 30px 0; padding: 20px 24px; border-left: 4px solid var(--cyan-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); background: var(--surface-cyan); }
.resource-note p:last-child { margin-bottom: 0; }
.resource-guide .guide-block + .guide-block { margin-top: 48px; }
[data-checklist] + .guide-block { margin-top: 48px; }
.resource-guide .guide-block h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.2; }
.resource-guide .guide-block h3 { margin-top: 24px; line-height: 1.3; }
.resource-toc { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 40px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.resource-toc a { color: var(--navy-800); font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.resource-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.resource-actions .button { white-space: normal; text-align: center; }
.resource-progress { width: 100%; height: 9px; accent-color: var(--cyan-500); border: 0; border-radius: 20px; background: var(--line); }
.resource-progress::-webkit-progress-bar { background: var(--line); border-radius: 20px; }
.resource-progress::-webkit-progress-value { background: var(--navy-700); border-radius: 20px; }
.resource-progress::-moz-progress-bar { background: var(--navy-700); border-radius: 20px; }
.checklist-group { padding: 0; margin: 0; border: 0; min-width: 0; }
.checklist-group legend { width: 100%; margin-bottom: 18px; color: var(--navy-950); font-size: 1.45rem; font-weight: 750; line-height: 1.3; }
.checklist-item { display: flex; align-items: flex-start; gap: 14px; padding: 17px 18px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: white; }
.checklist-item:hover { border-color: var(--navy-700); }
.checklist-item input { flex: 0 0 22px; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--navy-700); }
.checklist-item strong { display: block; color: var(--ink); line-height: 1.4; }
.checklist-item small { display: block; margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.checklist-item:has(input:checked) { background: var(--surface-cyan); border-color: #91c6be; }
.resource-search { flex: 1 1 300px; max-width: 620px; }
.resource-search label { display: block; margin-bottom: 8px; font-weight: 750; }
.resource-search input { width: 100%; min-height: 50px; padding: 11px 16px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.glossary-grid { display: grid; gap: 16px; }
.glossary-term { padding: 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); scroll-margin-top: 100px; min-width: 0; }
.glossary-term h2 { font-size: 1.4rem; margin-bottom: 12px; line-height: 1.2; }
.glossary-term p { color: var(--muted); margin-bottom: 12px; }
.glossary-term p:last-child { margin-bottom: 0; }
.glossary-term .term-example { color: var(--navy-800); font-size: .92rem; padding-top: 12px; border-top: 1px solid var(--line); }
.resource-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-block: 24px; }
.resource-table { border-collapse: collapse; width: 100%; min-width: 510px; font-size: .93rem; background: white; }
.resource-table caption { padding: 16px; text-align: left; color: var(--navy-800); font-weight: 750; background: var(--surface-cyan); }
.resource-table th, .resource-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.resource-table thead th { background: var(--surface-soft); font-size: .85rem; }
.resource-table tbody tr:last-child td, .resource-table tbody tr:last-child th { border-bottom: 0; }
.resource-table .numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lot-flow { display: grid; gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.lot-flow li { padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--navy-700); border-radius: var(--radius-sm); background: var(--surface-soft); }
.lot-flow li:last-child { border-top-color: var(--cyan-500); background: var(--surface-cyan); }
.lot-flow strong, .lot-flow span { display: block; }
.lot-flow strong { color: var(--navy-950); margin-bottom: 8px; }
.lot-flow span { font-size: .94rem; }
.resource-result { padding: 22px 24px; color: white; border-radius: var(--radius-md); background: var(--navy-900); }
.resource-result p, .resource-guide .resource-result p { color: #d9e6f0; margin: 0; }
.resource-result strong { display: block; margin-top: 4px; color: white; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.resource-code { display: block; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; font-size: .84rem; line-height: 1.8; }
.resource-guide .guide-sources { margin-top: 46px; }
.resource-guide .guide-sources h2 { font-size: 1.5rem; }
.resource-guide .source-list a { overflow-wrap: anywhere; }
.resource-empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }
@media (min-width: 700px) { .glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lot-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .resource-card, .glossary-term { padding: 22px; } .checklist-item { padding: 14px 12px; } .resource-toc { padding: 17px; } }
@media (prefers-reduced-motion: reduce) { .resource-card, .resource-filter { transition: none; } .resource-card:hover { transform: none; } }
@media print {
  .site-header, .mobile-nav, .site-footer, .skip-link, .resource-actions, .resource-toc, [data-checklist-controls], .resource-print-hide { display: none !important; }
  body { color: #000; background: white; font-size: 10pt; line-height: 1.4; }
  .container, .guide-container, .guide-block { width: 100%; max-width: none; }
  .page-hero { padding: 0 0 18px; color: #000; background: white; }
  .page-hero h1 { color: #000; font-size: 24pt; }
  .page-hero p, .page-hero .resource-meta, .resource-hero .eyebrow { color: #333; }
  .section { padding: 20px 0; }
  .resource-guide .guide-block + .guide-block { margin-top: 24px; }
  .checklist-item { padding: 9px; margin-bottom: 6px; break-inside: avoid; }
  .checklist-item input { appearance: auto; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .checklist-item strong, .checklist-item small { color: #222; }
  .checklist-group legend { font-size: 14pt; }
  h2, h3, legend { break-after: avoid; }
  .resource-note { padding: 10px; margin-top: 15px; color: #222; border: 1px solid #aaa; }
  .resource-guide .guide-sources { margin-top: 24px; }
}
