:root {
  --ink: #18302f;
  --muted: #5c6d6b;
  --cream: #fffaf0;
  --paper: #ffffff;
  --teal: #143d3a;
  --teal-2: #235f59;
  --gold: #f2b84b;
  --orange: #dd6f45;
  --sage: #dce9df;
  --line: #dfe8e5;
  --shadow: 0 16px 40px rgba(20, 61, 58, 0.10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,250,240,.94);
  border-bottom: 1px solid rgba(20,61,58,.1);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: "DM Sans", sans-serif; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--teal); color: white; font-weight: 800; letter-spacing: .04em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; }
.brand small { color: var(--muted); margin-top: -2px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { text-decoration: none; font-weight: 700; }
.site-nav a:hover { color: var(--teal-2); }
.menu-button { display: none; border: 0; background: var(--teal); color: #fff; border-radius: 10px; padding: 9px 13px; font-weight: 700; }

.hero { padding: 72px 0 48px; background: radial-gradient(circle at 80% 15%, rgba(242,184,75,.33), transparent 25%), linear-gradient(140deg, #fffaf0 10%, #eef6f0 100%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; align-items: center; gap: 56px; }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-family: "DM Sans", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
h1, h2, h3 { font-family: "DM Sans", sans-serif; line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(2.55rem, 7vw, 5.2rem); letter-spacing: -.045em; max-width: 850px; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
.hero-copy { font-size: 1.2rem; max-width: 680px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 12px; font-weight: 800; text-decoration: none; border: 2px solid transparent; }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-2); }
.button-secondary { border-color: var(--teal); color: var(--teal); background: transparent; }
.button-secondary:hover { background: white; }
.help-card { background: var(--teal); color: white; padding: 32px; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(1deg); }
.help-card h2 { font-size: 1.8rem; margin-bottom: 12px; }
.help-card p { color: rgba(255,255,255,.86); }
.help-card a { color: white; font-weight: 800; text-underline-offset: 4px; }
.help-icon { font-size: 2.2rem; }

.quick-links { padding: 0 0 28px; margin-top: -12px; }
.quick-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-link { min-height: 92px; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 16px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; text-align: left; font-weight: 800; color: var(--ink); box-shadow: 0 8px 25px rgba(20,61,58,.06); cursor: pointer; }
.quick-link span { font-size: 1.8rem; }
.quick-link:hover { transform: translateY(-2px); border-color: var(--teal-2); }

.resources-section { padding: 72px 0 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 0; }
.print-button { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px 14px; font-weight: 800; cursor: pointer; }
.resource-tools { background: white; border: 1px solid var(--line); padding: 18px; border-radius: 20px; box-shadow: 0 10px 30px rgba(20,61,58,.06); }
.search-box input { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 15px 16px; background: #fbfdfc; color: var(--ink); outline: none; }
.search-box input:focus { border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(35,95,89,.12); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filter-button { border: 0; background: var(--sage); border-radius: 999px; padding: 9px 13px; color: var(--ink); font-weight: 700; cursor: pointer; }
.filter-button.active { background: var(--teal); color: #fff; }
.result-count { color: var(--muted); margin: 18px 0; font-weight: 700; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.resource-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 34px rgba(20,61,58,.06); display: flex; flex-direction: column; min-height: 100%; }
.resource-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.resource-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--sage); font-size: 1.5rem; flex: 0 0 auto; }
.resource-card h3 { font-size: 1.45rem; margin: 0 0 4px; }
.category-label { color: var(--orange); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.good-for { margin: 18px 0; color: #314543; }
.good-for strong { color: var(--ink); }
.detail-list { display: grid; gap: 10px; margin-top: auto; }
.detail { display: grid; grid-template-columns: 26px 1fr; gap: 8px; color: var(--muted); }
.detail a { color: var(--teal-2); font-weight: 700; }
.note { margin-top: 14px; padding: 12px; border-radius: 12px; background: #fff4d7; color: #654d14; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card-action { text-decoration: none; border: 1px solid var(--line); background: #fbfdfc; padding: 9px 12px; border-radius: 10px; font-weight: 800; font-size: .94rem; }
.card-action.primary { background: var(--teal); color: white; border-color: var(--teal); }
.empty-state { text-align: center; padding: 50px 20px; background: white; border: 1px dashed #b9c9c5; border-radius: 18px; }

.medinav-section { padding: 88px 0; background: var(--teal); color: white; }
.medinav-section .eyebrow { color: var(--gold); }
.medinav-intro { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.medinav-intro p { color: rgba(255,255,255,.82); max-width: 760px; }
.medinav-intro .button-primary { background: var(--gold); color: #3a2a08; }
.ready-box { margin: 30px 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 24px; border-radius: 18px; }
.ready-box h3 { margin-bottom: 12px; }
.ready-box ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 22px; margin: 0; padding-left: 22px; }
.steps-list { display: grid; gap: 12px; }
.step { background: white; color: var(--ink); border-radius: 16px; overflow: hidden; }
.step button { width: 100%; border: 0; background: white; color: var(--ink); padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; cursor: pointer; }
.step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--sage); font-weight: 900; }
.step-title { font-family: "DM Sans", sans-serif; font-weight: 800; font-size: 1.08rem; }
.step-toggle { font-size: 1.35rem; }
.step-content { padding: 0 22px 22px 76px; color: #415452; }
.step-content[hidden] { display: none; }
.step-content ul { padding-left: 20px; }

.site-footer { background: #0f2d2a; color: white; padding: 38px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.site-footer p { color: rgba(255,255,255,.75); margin: 6px 0; }

@media (max-width: 900px) {
  .hero-grid, .medinav-intro { grid-template-columns: 1fr; }
  .quick-link-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: 1fr; }
  .help-card { transform: none; }
}

@media (max-width: 720px) {
  .menu-button { display: inline-flex; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: 70px; display: none; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  h1 { font-size: 2.65rem; }
  .hero { padding-top: 48px; }
  .quick-link-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .ready-box ul { grid-template-columns: 1fr; }
  .step button { grid-template-columns: 40px 1fr auto; padding: 16px; }
  .step-content { padding: 0 16px 18px 68px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-actions { display: grid; grid-template-columns: repeat(2, 1fr); }
  .card-action { text-align: center; }
}

@media print {
  .site-header, .hero-actions, .quick-links, .resource-tools, .print-button, .medinav-section, .site-footer, .card-actions { display: none !important; }
  body { background: white; }
  .hero { padding: 20px 0; background: white; }
  .hero-grid { display: block; }
  .help-card { color: black; background: white; border: 1px solid #bbb; box-shadow: none; }
  .help-card p, .help-card a { color: black; }
  .resources-section { padding: 20px 0; }
  .resource-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .resource-card { break-inside: avoid; box-shadow: none; padding: 14px; }
}
