:root {
  --ink: #202a2d;
  --muted: #647073;
  --copy: #48575a;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fff8f0;
  --line: #eadfd4;
  --line-accent: #f3b36c;
  --teal: #b84e00;
  --teal-dark: #803500;
  --amber: #f7931e;
  --amber-soft: #fff0df;
  --mint: #fff1e2;
  --navy: #2b3b3f;
  --shadow: 0 16px 42px rgba(69, 49, 32, .1);
  --shadow-soft: 0 8px 24px rgba(69, 49, 32, .055);
  --radius: 18px;
  --radius-small: 14px;
  --max: 1160px;
  --measure: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--teal-dark); text-underline-offset: .2em; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

img, svg { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(234, 223, 212, .92);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--max), calc(100% - 2rem));
  min-height: 66px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  color: transparent;
  background: url("/assets/favicon.svg") center / cover no-repeat;
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--amber-soft);
  font-size: .83rem;
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  overflow-x: auto;
  padding: .45rem 0;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto;
  padding: .45rem .62rem;
  color: var(--copy);
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal-dark); background: var(--mint); }

main { overflow: hidden; }

.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.25rem) 0 clamp(2.8rem, 5.5vw, 4.75rem);
  isolation: isolate;
}
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 75% 18%, rgba(247, 147, 30, .18), transparent 22rem),
    radial-gradient(circle at 18% 78%, rgba(184, 78, 0, .09), transparent 25rem),
    linear-gradient(135deg, var(--paper) 0%, #fff3e4 100%);
}
.hero::after {
  position: absolute;
  z-index: -1;
  right: -7rem;
  bottom: -13rem;
  width: 30rem;
  height: 30rem;
  content: "";
  border: 1px solid rgba(184, 78, 0, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255,255,255,.28), 0 0 0 6rem rgba(247,147,30,.045);
}

.container, .narrow { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.container .narrow { width: 100%; }

.article-body > * { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .75rem;
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { width: 26px; height: 2px; content: ""; background: var(--amber); }

h1, h2, h3 { color: var(--ink); line-height: 1.13; text-wrap: balance; }
h1 { max-width: 880px; margin: 0 0 1rem; font-size: clamp(2.45rem, 5.7vw, 4.75rem); letter-spacing: -.055em; }
h2 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.025em; }
h3 { margin: 0 0 .5rem; font-size: 1.14rem; letter-spacing: -.015em; }
p { margin: 0 0 .85rem; }
.lede { max-width: 760px; color: var(--copy); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.trust-note {
  width: 100%;
  max-width: none;
  margin: 1rem 0 0;
  padding: .8rem .95rem;
  color: var(--copy);
  background: rgba(255, 253, 250, .76);
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
  font-size: .9rem;
}

.button-row { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.2rem 0 .35rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius-small);
  font-size: .91rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(128, 53, 0, .18);
}
.button:hover { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: none; }
.button.secondary:hover { color: var(--teal-dark); background: var(--mint); }
.microcopy { color: var(--muted); font-size: .82rem; }

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  margin-top: 1.05rem;
  padding: .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-soft);
}
.search-panel input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 .85rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
}
.search-panel button {
  min-height: 48px;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}
.search-panel button:hover { background: var(--teal); }

.section { padding: clamp(2.25rem, 4.5vw, 3.75rem) 0; background: var(--surface); }
.section.tight { padding: clamp(1.4rem, 2.7vw, 2.2rem) 0; }
.section.white { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; gap: 1.25rem; align-items: end; margin-bottom: 1.15rem; }
.section-head p { max-width: 620px; color: var(--muted); }

.quick-answer {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.15rem, 2.5vw, 1.55rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quick-answer::before {
  display: inline-block;
  margin-bottom: .55rem;
  color: var(--amber);
  content: "START HERE";
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.quick-answer p:last-child { margin-bottom: 0; }

.grid-2, .grid-3, .category-grid, .link-grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card:hover { border-color: var(--line-accent); box-shadow: var(--shadow); }
.card p { color: var(--copy); font-size: .93rem; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; font-size: .88rem; font-weight: 850; }
.card-link::after { content: "↗"; }

.steps { counter-reset: steps; }
.step { position: relative; padding: 1.2rem 1.25rem 1.2rem 4.4rem; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  position: absolute;
  left: .5rem;
  top: 1.05rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  content: counter(steps);
  counter-increment: steps;
  font-weight: 900;
}

.checklist { list-style: none; margin: 1.1rem 0; padding: 0; }
.checklist li { position: relative; margin: .45rem 0; padding: .8rem .9rem .8rem 2.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.checklist li::before { position: absolute; left: .9rem; top: .85rem; width: 20px; height: 20px; content: ""; border: 2px solid var(--teal); border-radius: 5px; }
.bullet-list { padding-left: 1.25rem; }
.bullet-list li { margin: .55rem 0; }

.score-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.score { padding: 1.1rem; border-radius: var(--radius-small); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.score strong { display: block; color: var(--teal-dark); font-size: 1.2rem; }
.score span { color: var(--muted); font-size: .84rem; }

.comparison { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-small); overflow: hidden; box-shadow: var(--shadow-soft); }
.comparison th, .comparison td { padding: .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison th { color: var(--navy); background: var(--mint); font-size: .82rem; letter-spacing: .02em; }
.comparison td { font-size: .9rem; }

.callout { margin: 1.1rem 0; padding: 1rem 1.1rem; background: var(--amber-soft); border: 1px solid #f3c58f; border-radius: var(--radius-small); }
.callout strong { color: #7c4a10; }
.note { padding: 1rem 1.15rem; color: var(--copy); background: var(--mint); border: 1px solid #f3d1ad; border-radius: var(--radius-small); }

.article-shell { padding: clamp(2rem, 3.8vw, 3.25rem) 0; background: var(--surface); }
.article-header { width: 100%; max-width: none; margin-bottom: 1.5rem; }
.article-shell h1 { font-size: clamp(1.85rem, 3.4vw, 3rem); letter-spacing: -.04em; }
.breadcrumbs { margin: 0 0 .9rem; color: var(--muted); font-size: .83rem; }
.breadcrumbs a { color: var(--muted); }
.article-body { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: clamp(1.5rem, 4vw, 3.75rem); align-items: start; }
.prose h2 { margin-top: 1.9rem; }
.prose h3 { margin-top: 1.1rem; }
.prose > *:first-child { margin-top: 0; }
.prose .section > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--copy); }
.prose .quick-answer { margin-bottom: 1.35rem; }
.narrow > .prose > p, .narrow > .prose > ul, .narrow > .prose > ol { max-width: var(--measure); }

.side-nav { position: sticky; top: 96px; padding: 1rem; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: var(--radius-small); box-shadow: var(--shadow-soft); }
.side-nav strong { display: block; margin-bottom: .65rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.side-nav a { display: block; padding: .32rem 0; color: var(--muted); font-size: .82rem; text-decoration: none; }
.side-nav a:hover { color: var(--teal-dark); }

.faq-list details { margin: .75rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); box-shadow: var(--shadow-soft); }
.faq-list summary { padding: 1rem 1.15rem; cursor: pointer; color: var(--ink); font-weight: 800; }
.faq-list details p { max-width: calc(var(--measure) + 2.3rem); padding: 0 1.15rem 1.15rem; color: var(--copy); }

.related { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-tile { padding: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); box-shadow: var(--shadow-soft); font-size: .9rem; font-weight: 750; text-decoration: none; }
.link-tile:hover { color: var(--teal-dark); border-color: var(--line-accent); }

.article-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.05rem; }
.article-card {
  display: flex;
  min-height: 240px;
  padding: 1.25rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.article-card:hover { color: var(--ink); border-color: var(--line-accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card .eyebrow { margin-bottom: .6rem; }
.article-card h2 { margin: 0 0 .75rem; font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.article-card p { color: var(--copy); font-size: .92rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: auto; padding-top: .9rem; color: var(--muted); font-size: .76rem; font-weight: 750; }
.article-meta span:last-child { color: var(--teal-dark); }
.article-status { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: -.35rem 0 0; color: var(--muted); font-size: .78rem; font-weight: 750; }
.article-status span::before { margin-right: .9rem; color: #c7b9aa; content: "•"; }
.article-status a { color: inherit; }
.article-status a:hover { color: var(--teal-dark); }
.decision-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.decision-path > div { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); box-shadow: var(--shadow-soft); }
.decision-path strong { display: block; margin-bottom: .35rem; color: var(--teal-dark); }
.decision-path p { margin: 0; font-size: .84rem; }
.mini-template { padding: 1.1rem 1.2rem; background: var(--surface-soft); border: 1px dashed #dfb98e; border-radius: var(--radius-small); }
.mini-template code { color: var(--copy); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; white-space: normal; }
.site-footer { padding: 2rem 0 1.2rem; color: var(--copy); background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 2fr; gap: 2rem; }
.site-footer .brand { color: var(--ink); }
.footer-trust { max-width: 520px; margin-top: .75rem; color: var(--copy); font-size: .85rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 1rem; align-content: start; }
.footer-links a { color: var(--copy); font-size: .84rem; text-decoration: none; }
.footer-links a:hover { color: var(--teal-dark); text-decoration: underline; }
.footer-bottom { margin-top: 1.35rem; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

/* Homepage search hero: inspired by OrientDig's broad search-first composition,
   rewritten as an independent Findsindex browsing guide. */
.home .site-header {
  position: absolute;
  inset: 0 0 auto;
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 37, 43, .55), rgba(14, 37, 43, 0));
  border-bottom: 0;
}
.home .site-header .brand { color: #fff; }
.home .site-header .brand-mark { background: url("/assets/favicon.svg") center / cover no-repeat; box-shadow: 5px 5px 0 rgba(255, 255, 255, .16); }
.home .site-header .site-nav a { color: rgba(255, 255, 255, .9); }
.home .site-header .site-nav a:hover, .home .site-header .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .15); }

.search-hero {
  display: grid;
  align-items: center;
  min-height: 660px;
  padding: 7.75rem 0 4rem;
  color: #fff;
  text-align: center;
}
.search-hero::before {
  background:
    linear-gradient(180deg, rgba(19, 43, 49, .62) 0%, rgba(20, 42, 47, .6) 48%, rgba(38, 36, 34, .68) 100%),
    url("/assets/orientdig-search-hero.svg") center 44% / cover no-repeat;
}
.search-hero::after {
  right: -5%;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 58px;
  background: var(--amber);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(0 35%, 62% 85%, 100% 62%, 100% 100%, 0 100%);
}
.search-hero-inner { position: relative; z-index: 1; }
.search-hero-kicker {
  margin: 0 0 .8rem;
  color: #ffe0b2;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.search-hero h1 {
  max-width: 1040px;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: clamp(2.55rem, 5vw, 4.15rem);
  letter-spacing: -.045em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .22);
}
.search-hero-lede {
  max-width: 850px;
  margin: 0 auto 1.35rem;
  color: rgba(255, 255, 255, .87);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.finder-search {
  display: flex;
  align-items: center;
  width: min(1220px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 8px 9px 8px 18px;
  color: var(--copy);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .23);
}
.finder-icon { display: grid; flex: 0 0 auto; place-items: center; color: var(--teal); }
.finder-search input {
  flex: 1 1 auto;
  min-width: 120px;
  min-height: 54px;
  padding: 0 .85rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .98rem;
}
.finder-search input::placeholder { color: #8a999c; opacity: 1; }
.source-tags { display: flex; flex: 0 0 auto; gap: .4rem; margin-right: .75rem; }
.source-tags span {
  padding: .35rem .55rem;
  color: var(--copy);
  background: #f4eee7;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 800;
}
.finder-search button {
  flex: 0 0 auto;
  min-width: 205px;
  min-height: 58px;
  padding: .7rem 1.25rem;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(198, 89, 7, .3);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.finder-search button:hover { background: var(--teal-dark); transform: translateY(-1px); }

.finder-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .8rem;
  margin: .75rem auto 0;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
}
.finder-suggestions a { color: #fff; font-weight: 750; text-decoration-color: rgba(255, 255, 255, .35); }

.finder-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.9rem auto 0;
}
.finder-steps::before {
  position: absolute;
  z-index: -1;
  top: 19px;
  right: 15%;
  left: 15%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(247, 147, 30, .35), var(--amber), rgba(247, 147, 30, .35));
}
.finder-step { text-align: center; }
.finder-step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto .9rem;
  color: #fff;
  background: var(--teal);
  border: 3px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  font-size: .88rem;
  font-weight: 900;
  box-shadow: 0 0 0 7px rgba(255, 148, 31, .08);
}
.finder-step h2 { margin: 0 0 .35rem; color: #fff; font-size: .94rem; letter-spacing: -.01em; }
.finder-step p { max-width: 330px; margin: 0 auto; color: rgba(255, 255, 255, .72); font-size: .82rem; }
.search-hero-trust {
  width: 100%;
  max-width: none;
  margin: 1.2rem auto 0;
  padding: .75rem 1rem;
  color: rgba(255, 255, 255, .82);
  background: rgba(9, 26, 31, .33);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  font-size: .76rem;
}

.directory-section {
  padding: clamp(2.5rem, 4.2vw, 3.75rem) 0;
  background: var(--surface);
}
.directory-header { width: 100%; max-width: none; margin: 0 auto 1.35rem; text-align: center; }
.directory-eyebrow {
  margin: 0 0 .75rem;
  color: var(--teal-dark);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.directory-header h2 { max-width: 900px; margin: 0 auto .8rem; font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
.directory-header > p:last-child { max-width: 900px; margin-inline: auto; color: var(--copy); }
.directory-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; }
.directory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 250px;
  padding: 1.1rem .9rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  text-decoration: none;
}
.directory-card:hover {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.directory-card:focus-visible { outline-offset: 4px; }
.directory-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: .85rem;
  color: #ef7f10;
  background: #fff1e2;
  border: 1px solid #ffd6af;
  border-radius: 20px;
}
.directory-icon svg { width: 46px; height: 46px; overflow: visible; }
.directory-card h3 { margin: 0 0 .55rem; font-size: 1.08rem; }
.directory-card p { margin: 0; color: var(--copy); font-size: .79rem; line-height: 1.52; }
.directory-cta { margin-top: auto; padding-top: .85rem; color: var(--teal-dark); font-size: .73rem; font-weight: 850; }
.directory-card-featured { background: #fffaf5; border-color: #ffbd7d; }
.directory-card-featured .directory-icon { color: #fff; background: var(--teal); border-color: var(--teal); }
.directory-note { margin: 1rem 0 0; color: var(--muted); font-size: .75rem; text-align: center; }

@media (max-width: 930px) {
  .nav-shell { align-items: flex-start; flex-direction: column; gap: .2rem; padding: .75rem 0 .35rem; }
  .site-header { position: relative; }
  .site-nav { width: 100%; }
  .article-body { grid-template-columns: minmax(0, 1fr); }
  .side-nav { position: static; }
  .category-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .search-hero { padding-top: 8.75rem; }
  .finder-search { flex-wrap: wrap; border-radius: 24px; }
  .finder-search input { flex-basis: calc(100% - 55px); }
  .source-tags { order: 3; margin: .25rem auto .2rem .2rem; }
  .finder-search button { order: 4; margin-left: auto; }
  .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .narrow, .nav-shell { width: min(100% - 1.25rem, var(--max)); }
  .hero { padding-top: 2.5rem; }
  h1 { font-size: clamp(2.15rem, 10.5vw, 3rem); overflow-wrap: break-word; }
  .section-head { display: block; }
  .grid-2, .grid-3, .category-grid, .link-grid, .article-hub-grid, .decision-path { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .search-panel { grid-template-columns: 1fr; }
  .search-panel button { width: 100%; }
  .button-row .button { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .comparison { display: block; overflow-x: auto; white-space: nowrap; }
  .home .nav-shell { padding-top: .65rem; }
  .search-hero { min-height: auto; padding: 8.25rem 0 3.2rem; }
  .search-hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .search-hero-lede { font-size: .96rem; }
  .finder-search { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; padding: .7rem; border-radius: 20px; }
  .finder-icon { grid-column: 1; }
  .finder-search input { grid-column: 2; width: 100%; min-height: 50px; padding-right: .2rem; }
  .source-tags { grid-column: 1 / -1; justify-content: center; margin: .25rem 0 .7rem; }
  .finder-search button { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 52px; margin: 0; }
  .finder-steps { grid-template-columns: 1fr; gap: .9rem; margin-top: 1.5rem; }
  .finder-steps::before { display: none; }
  .finder-step { position: relative; min-height: 48px; padding-left: 3.8rem; text-align: left; }
  .finder-step-number { position: absolute; left: 0; top: 0; margin: 0; }
  .finder-step p { max-width: none; margin: 0; }
  .search-hero-trust { margin-top: 1.05rem; text-align: left; }
  .article-status span { flex-basis: 100%; }
  .article-status span::before { display: none; }
  .directory-section { padding: 2.25rem 0; }
  .directory-header { margin-bottom: 1rem; }
  .directory-header h2 { font-size: 1.6rem; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .directory-card { min-height: 222px; padding: .9rem .7rem .8rem; border-radius: 16px; }
  .directory-icon { width: 64px; height: 64px; border-radius: 17px; }
  .directory-icon svg { width: 40px; height: 40px; }
  .directory-card h3 { font-size: 1rem; }
  .directory-card p { font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
