/* ==========================================================================
   LabDirectories.com — base stylesheet
   ==========================================================================
   Identity: "Pine & Chartreuse on Bone" — an editorial lab-index look.
   Serif display type, system sans body, monospace data labels, deep pine
   ink surfaces, chartreuse highlighter accent, warm bone paper.

   PALETTE (hex)
     --brand          #175948   primary green — buttons, links, brand marks
     --brand-deep     #0E3A2F   header + footer surfaces, hover states
     --brand-soft     #E4EFE9   tinted panels
     --accent         #CDE060   chartreuse — signature pill / mark / highlight
     --accent-soft    #F0F6D6   chartreuse wash
     --accent-line    #6F8A16   chartreuse that passes 3:1 on light surfaces
     --ink            #16241E   body text
     --ink-soft       #3C4E45   secondary text
     --muted          #59685F   labels, meta, bylines (AA on bone + paper)
     --bone           #F4F0E4   page background
     --paper          #FFFDF7   cards and surfaces
     --paper-tint     #FAF7EC   table zebra / subtle fills
     --line           #DBD5C3   hairlines
     --line-strong    #C7BFA8   stronger dividers
     --notice-bg      #FAF0D3   availability note
     --notice-ink     #7A5510
     --alert-bg       #F9E4DA   unavailable-state note
     --alert-ink      #8A3324

   TYPE SCALE (root 16px)
     --fs-2xs  .72rem    mono tags / kickers
     --fs-xs   .80rem    meta / breadcrumbs / labels
     --fs-sm   .875rem   fine print
     --fs-base 1rem      body
     --fs-md   1.0625rem long-form body
     --fs-lg   1.15rem   leads
     --fs-xl   1.35rem   h3
     --fs-h2   clamp(1.45rem, 2.4vw, 1.85rem)
     --fs-h1   clamp(1.95rem, 4.4vw, 2.85rem)
     --fs-hero clamp(2.15rem, 5.2vw, 3.35rem)

   SPACING SCALE (4px base)
     --sp-1 .25  --sp-2 .5  --sp-3 .75  --sp-4 1  --sp-5 1.5
     --sp-6 2    --sp-7 2.5 --sp-8 3    --sp-9 4

   System font stacks only. No @import, no external fonts, no JS.
   ========================================================================== */

:root {
  /* Brand */
  --brand: #175948;
  --brand-deep: #0e3a2f;
  --brand-soft: #e4efe9;
  --accent: #cde060;
  --accent-soft: #f0f6d6;
  --accent-line: #6f8a16;

  /* Ink + surfaces */
  --ink: #16241e;
  --ink-soft: #3c4e45;
  --muted: #59685f;
  --bone: #f4f0e4;
  --paper: #fffdf7;
  --paper-tint: #faf7ec;
  --line: #dbd5c3;
  --line-strong: #c7bfa8;

  /* Semantic */
  --notice-bg: #faf0d3;
  --notice-line: #d9a441;
  --notice-ink: #7a5510;
  --alert-bg: #f9e4da;
  --alert-line: #b4543c;
  --alert-ink: #8a3324;

  /* Type */
  --font-display: Charter, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-2xs: 0.72rem;
  --fs-xs: 0.8rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.35rem;
  --fs-h2: clamp(1.45rem, 2.4vw, 1.85rem);
  --fs-h1: clamp(1.95rem, 4.4vw, 2.85rem);
  --fs-hero: clamp(2.15rem, 5.2vw, 3.35rem);

  --lh-tight: 1.12;
  --lh-snug: 1.32;
  --lh-body: 1.65;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;

  /* Shape + depth */
  --radius-sm: 0.35rem;
  --radius: 0.6rem;
  --radius-lg: 0.9rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 58, 47, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 58, 47, 0.1);
  --shadow-lg: 0 16px 40px rgba(14, 58, 47, 0.14);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 0.18s;

  /* Layout */
  --wrap: 72rem;

  /* Legacy aliases consumed by the inline critical CSS in templates.js.
     Kept so the critical values resolve to the new palette. */
  --pine: var(--brand);
  --pine-deep: var(--brand-deep);
  --lime: var(--accent);
  --lime-soft: var(--accent-soft);
  --coral-ink: var(--alert-ink);
  --amber-ink: var(--notice-ink);
  --serif: var(--font-display);
  --sans: var(--font-body);
  --mono: var(--font-mono);

  color-scheme: light;
}


/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--brand-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus-ring, var(--brand));
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* On dark pine surfaces the ring switches to chartreuse for visibility. */
.site-header,
.site-footer {
  --focus-ring: var(--accent);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.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: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--paper);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top 0.15s var(--ease);
}

.skip-link:focus {
  top: 0.75rem;
  left: 0.75rem;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */


.page-content {
  display: block;
  padding-block: var(--sp-7) var(--sp-9);
}

.page-content > * + * {
  margin-top: var(--sp-6);
}

.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.section > *:last-child {
  margin-bottom: 0;
}

.section h2 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-deep);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(14, 58, 47, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 4rem;
  padding-block: var(--sp-2);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: #fffdf7;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--accent);
}

.logo-img {
  display: block;
  height: 2.375rem;
  width: auto;
  max-width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #e9f1ec;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-nav a:hover {
  background: rgba(255, 253, 247, 0.12);
  color: #fffdf7;
}

.site-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--ink);
}

.nav-cta {
  display: inline-block;
  margin-left: var(--sp-1);
  padding: 0.55rem 1rem !important;
  background: var(--accent);
  color: var(--ink) !important;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.nav-cta:hover {
  background: #dcea83;
  color: var(--brand-deep) !important;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  font-size: var(--fs-xs);
  color: var(--muted);
  padding-block: var(--sp-3);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--bone) 55%, var(--accent-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.hero-main {
  max-width: 46rem;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: var(--sp-3);
}

.hero p {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-3);
  padding: 0.3rem 0.7rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-form {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.search-input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-base);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: var(--brand);
}

.search-results {
  margin-top: var(--sp-4);
}

.search-result {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result h3 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-lg);
}

.search-result p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   Availability notes
   -------------------------------------------------------------------------- */

.availability-scope {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.availability-note {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--notice-ink);
  font-size: var(--fs-sm);
}

.availability-note > *:last-child {
  margin-bottom: 0;
}

.availability-note--state {
  background: var(--alert-bg);
  border-left-color: var(--alert-line);
  color: var(--alert-ink);
}

.availability-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meta {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--sp-4);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0;
  font-size: var(--fs-xl);
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.card p {
  margin: 0 0 var(--sp-2);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.card .meta {
  margin-top: auto;
}

.card .price {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--brand-deep);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.link-list li {
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: 0;
}

.link-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.6rem 0.25rem 0.6rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.link-list a::after {
  content: "\2192";
  color: var(--accent-line);
  font-size: 0.9em;
  transition: transform var(--dur) var(--ease);
}

.link-list a:hover {
  color: var(--brand);
}

.link-list a:hover::after {
  transform: translateX(3px);
}

.az-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.35rem var(--sp-4);
}

.az-list a {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  border-bottom: 1px dotted var(--line-strong);
}

.az-list a:hover {
  color: var(--brand);
  border-bottom-color: var(--accent-line);
}

.fact-list,
.steps {
  margin: 0 0 var(--sp-4);
  padding-left: 1.15rem;
}

.fact-list li,
.steps li {
  margin-bottom: 0.35rem;
}

.fact-list li::marker {
  color: var(--accent-line);
}

.steps li::marker {
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 700;
}

.section-link {
  display: inline-block;
  margin-top: var(--sp-3);
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.section-link:hover {
  color: var(--brand-deep);
  border-bottom-color: var(--brand-deep);
}

/* --------------------------------------------------------------------------
   Calls to action
   -------------------------------------------------------------------------- */

.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  background: var(--brand-deep);
  border-radius: var(--radius-lg);
  color: #fffdf7;
  box-shadow: var(--shadow-md);
}

.cta-bar p {
  margin: 0;
  font-size: var(--fs-base);
}

.cta-button,
.cta-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--ink) !important;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.cta-button:hover,
.cta-btn:hover {
  background: #dcea83;
  color: var(--brand-deep) !important;
  transform: translateY(-1px);
}

.inline-cta {
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.inline-cta:hover {
  color: var(--brand-deep);
}

.cta-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Order card (provider row)
   -------------------------------------------------------------------------- */

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-2) var(--sp-5);
  align-items: center;
  padding: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: var(--sp-4) 0;
}

.order-card-content {
  min-width: 0;
}

.order-card-kicker {
  display: inline-block;
  margin-bottom: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-line);
}

.order-card h3 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-xl);
}

.order-card-meta {
  grid-column: 1 / -1;
  font-size: var(--fs-xs);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-2);
}

.order-card .cta-button,
.order-card .cta-btn {
  justify-self: end;
}

/* --------------------------------------------------------------------------
   Variant sections + FAQ
   -------------------------------------------------------------------------- */

.variant-section + .variant-section {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
  transform: translateY(0.15em);
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item[open] summary {
  margin-bottom: var(--sp-3);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Static / utility pages
   -------------------------------------------------------------------------- */

.static-page {
  max-width: 48rem;
  margin-inline: auto;
}

.static-page .section + .section {
  margin-top: var(--sp-4);
}

.affiliate-disclosure {
  margin-top: var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper-tint);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.affiliate-disclosure p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: var(--sp-9);
  background: var(--brand-deep);
  color: #e9f1ec;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--sp-8) 1.25rem var(--sp-6);
}

.footer-brand {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
}

.footer-brand .logo-img {
  height: 2rem;
}

.site-footer p {
  color: #c2d1c8;
  font-size: var(--fs-sm);
}

.site-footer h2,
.site-footer h4 {
  color: #fffdf7;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-2);
}

.site-footer a {
  color: #e9f1ec;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.footer-availability {
  margin: 0;
  color: #c2d1c8;
  font-size: var(--fs-xs);
}

.footer-base {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--sp-4) 1.25rem var(--sp-5);
  border-top: 1px solid rgba(255, 253, 247, 0.14);
  font-size: var(--fs-xs);
  color: #c2d1c8;
}

.footer-base p {
  margin: 0;
  color: #c2d1c8;
}

.footer-base p + p {
  margin-top: var(--sp-2);
}

.footer-base .affiliate-disclosure {
  margin-top: 0;
  background: rgba(255, 253, 247, 0.06);
  border-color: rgba(255, 253, 247, 0.25);
  color: #c2d1c8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 48rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-2);
    padding-block: var(--sp-3);
  }

  .site-nav {
    width: 100%;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.45rem 0.6rem;
  }

  .hero {
    padding: var(--sp-6) var(--sp-4);
  }

  .section {
    padding: var(--sp-5) var(--sp-4);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    padding-block: var(--sp-6) var(--sp-4);
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .order-card .cta-button,
  .order-card .cta-btn {
    justify-self: start;
  }

  .cta-bar {
    padding: var(--sp-5) var(--sp-4);
  }
}

@media (max-width: 37.5rem) {
  .logo-img {
    height: 2rem;
  }
}

@media (max-width: 30rem) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .az-list {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav a {
    font-size: var(--fs-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .skip-link,
  .nav-cta,
  .cta-bar,
  .cta-button,
  .cta-btn,
  .search-form {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .page-content {
    padding: 0;
  }

  .section,
  .card,
  .faq-item,
  .order-card,
  .hero {
    box-shadow: none;
    border-color: #999;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card::before,
  .faq-item summary::before {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   ID hooks
   templates.js and index.js reference these ids directly; the rules below
   keep every id targeted (and tokenize the inline-styled guide-hub search
   box in index.js that cannot be edited).
   -------------------------------------------------------------------------- */

#main {
  scroll-margin-top: 5.5rem;
}

#search-form {
  margin-top: var(--sp-4);
}

#search-input {
  max-width: 100%;
}

#search-results {
  scroll-margin-top: 6rem;
}

#gresults:empty {
  display: none;
}

#gresults .card-grid {
  margin-top: var(--sp-4);
}

/* The guides-hub search input carries fallback inline styles; tokenize its
   border + focus treatment so it matches the rest of the system. */
#gsearch {
  border-color: var(--line-strong) !important;
  border-radius: var(--radius) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
}

#gsearch:focus {
  border-color: var(--brand) !important;
}
