/* Later Life Bathrooms — "calm spa, high clarity".
   Deep sea teal + warm apricot (complementary), white surfaces, soft stone bands. Lexend throughout.
   Accessibility first: 19px+ base text, 1.6 line height, very high contrast, 48px+ targets, no motion. */

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0B5563;          /* 8.0:1 on white */
  --teal-deep: #073943;     /* 12.4:1 on white */
  --teal-wash: #E4F0F1;     /* light teal surface */
  --apricot: #F4A259;       /* accent fills only; ink on apricot 8.6:1 */
  --apricot-wash: #FDEEDD;
  --apricot-deep: #8A4A0B;  /* apricot-family text on white, 6.6:1 */
  --stone: #F1EEE9;         /* section bands only */
  --white: #FFFFFF;
  --ink: #0F2328;           /* body text, 15.9:1 on white */
  --ink-soft: #2E454B;      /* secondary text, 10:1 on white */
  --line: #5E777D;          /* borders / form outlines, 4.7:1 on white */
  --line-soft: #C9D6D8;     /* decorative rules only */
  --focus-bg: #F4A259;
  --focus-ring: #0F2328;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 62rem;
  --read: 36rem;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 118.75%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }  /* 1rem = 19px */
@media (min-width: 62rem) { html { font-size: 125%; } }                                   /* 1rem = 20px */
html.text-large { font-size: 150%; }                                                     /* 24px */
@media (min-width: 62rem) { html.text-large { font-size: 150%; } }
body {
  margin: 0;
  font-family: "Lexend", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 350;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}

/* No motion anywhere */
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.22; color: var(--teal-deep); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 1.45rem + 1.5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.25rem + 0.5vw, 1.7rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--teal); font-weight: 600; }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 2px solid var(--line-soft); margin: 2rem 0; }
code { font-size: 0.9em; }

a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 4px; }
a:focus-visible {
  outline: 3px solid transparent;
  background: var(--focus-bg);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 -2px var(--focus-bg), 0 4px var(--focus-ring);
}
:focus-visible { outline: 4px solid var(--focus-ring); outline-offset: 3px; }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 4px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 7px var(--focus-bg);
}

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 40rem) { .wrap { padding-inline: 24px; } }
.read { max-width: var(--read); }

.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 10;
  background: var(--apricot); color: var(--ink); padding: 0.75rem 1.25rem; font-weight: 600; border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------ masthead */
.masthead { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.masthead-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--teal-deep); min-height: 48px; padding: 4px 6px 4px 0; border-radius: 10px; }
.brand:hover { color: var(--teal-deep); }
.brand-mark { width: 3.1rem; height: 3.1rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.brand-tag { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }
.masthead-tools { display: flex; gap: 0.5rem; align-items: center; }
.tool-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0.4rem 0.2rem; font-weight: 500; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 52px; padding: 0.5rem 1rem;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--teal-deep); cursor: pointer;
  background: var(--white); border: 2px solid var(--teal); border-radius: 999px; white-space: nowrap;
}
.tool-btn:hover { background: var(--teal-wash); }
.tool-btn[aria-pressed="true"] { background: var(--teal); color: var(--white); }
.tool-btn-icon { font-weight: 700; font-size: 0.85rem; line-height: 1; }
.tool-btn-icon span { font-size: 1.3em; }
.tool-state { font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--teal-wash); color: var(--teal-deep); }
.tool-btn[aria-pressed="true"] .tool-state { background: var(--apricot); color: var(--ink); }

.mainnav { background: var(--teal); }
.mainnav ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-block: 0.4rem; }
.mainnav li { margin: 0; }
.mainnav a {
  display: flex; align-items: center; min-height: 52px; padding: 0.4rem 0.8rem;
  color: var(--white); text-decoration: none; font-weight: 500; border-radius: 10px; border-bottom: 4px solid transparent;
}
.mainnav a:hover { background: var(--teal-deep); color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; }
.mainnav a[aria-current="page"] { border-bottom-color: var(--apricot); font-weight: 650; border-radius: 10px 10px 0 0; }
.mainnav a:focus-visible { background: var(--apricot); color: var(--ink); box-shadow: none; outline: 4px solid var(--white); outline-offset: -4px; }
@media (min-width: 62rem) {
  .mainnav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .mainnav a { padding-inline: 1rem; }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 56px; padding: 0.75rem 1.5rem; border-radius: 12px; border: 2px solid var(--teal);
  background: var(--teal); color: var(--white); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; }
.btn:focus-visible { background: var(--apricot); color: var(--ink); border-color: var(--ink); text-decoration: none; }
.btn-warm { background: var(--apricot); border-color: var(--apricot); color: var(--ink); }
.btn-warm:hover { background: #E88F3F; border-color: #E88F3F; color: var(--ink); }
.btn-quiet { background: var(--white); color: var(--teal-deep); }
.btn-quiet:hover { background: var(--teal-wash); color: var(--teal-deep); }
.btn .icon { width: 1.4em; height: 1.4em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ------------------------------------------------------------ page scaffolding */
main { display: block; }
.page-head { padding-block: 2rem 1rem; }
.page-head .lead { font-size: 1.2em; color: var(--ink-soft); max-width: var(--read); font-weight: 350; }
.crumbs { font-size: 0.9rem; margin: 0 0 1rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "›"; color: var(--ink-soft); font-weight: 600; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.band { background: var(--stone); padding-block: clamp(2rem, 1.4rem + 3vw, 4rem); }
.band-teal { background: var(--teal-deep); color: var(--white); }
.band-teal h2, .band-teal h3 { color: var(--white); }
.band-teal a { color: var(--white); }
.section { padding-block: clamp(2rem, 1.4rem + 3vw, 4rem); }
.section > .wrap > h2:first-child, .band > .wrap > h2:first-child { margin-top: 0; }
.kicker { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--apricot-deep); margin-bottom: 0.4rem; }
.band-teal .kicker { color: var(--apricot); }
.kicker + h2, .kicker + h1 { margin-top: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

/* ------------------------------------------------------------ figures + credits */
figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); background: var(--teal-wash); object-fit: cover; }
.figure figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.45; }
.figure figcaption .photo-credit { display: block; font-size: 0.82rem; opacity: 1; color: var(--ink-soft); }
.photo-credit a { color: inherit; }

/* ------------------------------------------------------------ home */
.hero { padding-block: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); }
.hero-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: 0.45em; }
.hero h1 em { font-style: normal; color: var(--teal); box-shadow: inset 0 -0.28em 0 var(--apricot-wash); }
.hero .lead { font-size: 1.2em; color: var(--ink-soft); margin-bottom: 1.4rem; }
.hero-start { background: var(--teal-wash); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1.1rem; border-left: 8px solid var(--teal); }
.hero-start p { margin-bottom: 0.8rem; }
.hero-start .btn { width: 100%; }
@media (min-width: 30rem) { .hero-start .btn { width: auto; } }
.hero-start .also { margin: 0.9rem 0 0; font-size: 0.95rem; }
.hero-photo img { aspect-ratio: 4 / 3.1; }

.path { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: step; display: grid; gap: 0; max-width: 44rem; }
.path > li { counter-increment: step; position: relative; padding: 0 0 2rem 4.6rem; margin: 0; }
.path > li::before {
  content: counter(step); position: absolute; left: 0; top: -0.15rem; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--apricot); color: var(--ink); font-weight: 700; font-size: 1.35rem;
}
.path > li::after { content: ""; position: absolute; left: 1.53rem; top: 3.3rem; bottom: 0.2rem; width: 4px; background: var(--teal); border-radius: 2px; }
.path > li:last-child { padding-bottom: 0; }
.path > li:last-child::after { display: none; }
.path h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.path p { margin: 0 0 0.4rem; }

.compare-wrap { margin-top: 1.5rem; }
.compare { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--line-soft); }
.compare th, .compare td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--teal-wash); vertical-align: bottom; }
.compare thead img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 0.6rem; }
.compare thead .col-name { display: block; font-size: 1.05rem; color: var(--teal-deep); }
.compare tbody th { font-weight: 600; color: var(--teal-deep); }
.compare thead td:first-child { width: 22%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare-credits { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.6rem; }
@media (max-width: 47.99rem) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare { border: 0; background: transparent; }
  .compare tbody tr { background: var(--white); border: 2px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 1rem; }
  .compare tbody th { width: auto; background: var(--teal-wash); border-radius: 12px 12px 0 0; }
  .compare td::before { content: attr(data-label); display: block; font-weight: 650; color: var(--teal-deep); }
}

.nations { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 44rem) { .nations { grid-template-columns: 1fr 1fr; } }
.nation { background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.25rem; border-top: 6px solid var(--teal); }
.nation h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.nation p { margin: 0 0 0.5rem; }
.nation .go { font-weight: 600; }

.guide-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0; }
.guide-list > li { margin: 0; border-top: 2px solid var(--line-soft); }
.guide-list > li:last-child { border-bottom: 2px solid var(--line-soft); }
.gl { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0.25rem; align-items: start; }
@media (min-width: 40rem) { .gl { grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; } }
.gl-text { min-width: 0; overflow-wrap: anywhere; }
.photo-credit, .credit, figcaption { overflow-wrap: anywhere; }
.gl-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.gl-icon { display: grid; place-items: center; background: var(--teal-wash); color: var(--teal); }
.gl-icon .icon { width: 55%; height: 55%; }
.gl-title { font-size: 1.1rem; font-weight: 600; line-height: 1.35; display: inline-block; padding-block: 0.1rem; }
.gl-sum { color: var(--ink-soft); font-size: 0.98rem; margin: 0.35rem 0 0; }
.gl-credit { font-size: 0.8rem; color: var(--ink-soft); margin: 0.35rem 0 0; }
.gl-credit a { color: inherit; }
@media (min-width: 62rem) { .guide-list.two { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } .guide-list.two > li:nth-last-child(2):nth-child(odd) { border-bottom: 2px solid var(--line-soft); } }

.split { display: grid; gap: var(--gap); }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split.wide-left { grid-template-columns: 1.4fr 1fr; } }

.aid-groups { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .aid-groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .aid-groups { grid-template-columns: 1fr 1fr 1fr; } }
.aid-groups li { margin: 0; }
.aid-groups a {
  display: flex; align-items: center; gap: 0.9rem; min-height: 72px; padding: 0.8rem 1rem; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius); font-weight: 600; text-decoration: none; color: var(--teal-deep);
}
.aid-groups a:hover { border-color: var(--teal); background: var(--teal-wash); text-decoration: underline; }
.aid-groups .icon { width: 2.6rem; height: 2.6rem; flex: none; color: var(--teal); background: var(--apricot-wash); border-radius: 12px; padding: 0.35rem; }

/* ------------------------------------------------------------ callouts */
.callout { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--teal-wash); border-left: 8px solid var(--teal); }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: var(--apricot-wash); border-left-color: var(--apricot); }
.ot-note { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: start; }
.ot-note .icon { width: 2.6rem; height: 2.6rem; color: var(--teal); grid-row: span 3; }
.ot-note h2, .ot-note h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }

/* ------------------------------------------------------------ guide page */
.guide-head { padding-block: 1.5rem 0.5rem; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.guide-meta strong { color: var(--ink); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: 3rem; }
.guide-grid > *, .split > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
@media (min-width: 62rem) { .guide-grid { grid-template-columns: minmax(0, 1fr) 16rem; gap: 3rem; } .guide-aside { order: 2; } }
.guide-body { max-width: var(--read); }
.guide-body h2 { padding-top: 0.3em; border-top: 3px solid var(--teal-wash); }
.guide-body > p:first-child { margin-top: 0; }
.in-short { background: var(--apricot-wash); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; margin: 0 0 2rem; }
.in-short h2 { margin: 0 0 0.6rem; font-size: 1.3rem; border: 0; padding: 0; }
.in-short ul { list-style: none; padding: 0; margin: 0; }
.in-short li { position: relative; padding-left: 2.1rem; margin-bottom: 0.6rem; }
.in-short li:last-child { margin-bottom: 0; }
.in-short li .icon { position: absolute; left: 0; top: 0.2em; width: 1.4rem; height: 1.4rem; color: var(--teal); }
.guide-photo { margin: 0 0 2rem; }
.guide-photo img { aspect-ratio: 16 / 9; }
.toc { border: 2px solid var(--line-soft); border-radius: var(--radius); padding: 1rem 1.2rem; }
.toc h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; border-top: 1px solid var(--line-soft); }
.toc li:first-child { border-top: 0; }
.toc a { display: block; padding-block: 0.55rem; line-height: 1.35; }
@media (min-width: 62rem) { .guide-aside .sticky { position: sticky; top: 1rem; } }
.aside-box { margin-top: 1.25rem; background: var(--teal-wash); border-radius: var(--radius); padding: 1rem 1.2rem; }
.aside-box h2 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.aside-box p { margin: 0 0 0.6rem; font-size: 0.97rem; }
.aside-box .btn { width: 100%; min-height: 52px; padding-inline: 1rem; }
.sources { margin-top: 2.5rem; padding-top: 1rem; border-top: 3px solid var(--teal-wash); }
.sources h2 { font-size: 1.3rem; border: 0; margin-top: 0; }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 0.6rem; }
.not-advice { margin-top: 2rem; font-size: 0.95rem; }
.print-btn { margin-top: 0.5rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 2px solid var(--line-soft); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.95rem; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
.table-scroll thead th { background: var(--teal-wash); color: var(--teal-deep); }
.table-scroll tbody th { font-weight: 600; }
.table-scroll tr:last-child > * { border-bottom: 0; }

/* ------------------------------------------------------------ guides index / section */
.section-block { margin-top: 2.5rem; }
.section-block h2 { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.section-block h2 .count { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; list-style: none; margin: 1rem 0 0; }
.jump li { margin: 0; }
.jump a { display: inline-flex; min-height: 48px; align-items: center; font-weight: 500; }
.section-switch { margin-top: 2.5rem; }

/* ------------------------------------------------------------ questionnaire */
.chooser-form { max-width: 42rem; }
.q { border: 0; margin: 0 0 1.25rem; padding: 1.1rem 1.2rem 1rem; background: var(--white); border-radius: var(--radius-lg); border: 2px solid var(--line-soft); min-width: 0; }
.q legend { font-weight: 650; font-size: 1.15rem; color: var(--teal-deep); padding: 0; float: left; width: 100%; margin-bottom: 0.6rem; }
.q legend + * { clear: both; }
.q .num { color: var(--apricot-deep); margin-right: 0.35rem; }
.choice { display: flex; align-items: flex-start; gap: 0.8rem; min-height: 56px; padding: 0.65rem 0.9rem; margin-bottom: 0.5rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--white); }
.choice:last-child { margin-bottom: 0; }
.choice:hover { border-color: var(--teal); background: var(--teal-wash); }
.choice input { flex: none; width: 1.6rem; height: 1.6rem; margin: 0.15rem 0 0; accent-color: var(--teal); }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); box-shadow: inset 6px 0 0 var(--teal); }
.choice:has(input:focus-visible) { outline: 4px solid var(--focus-ring); outline-offset: 2px; }
.choice input:focus-visible { box-shadow: none; outline: none; }
.chooser-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.results { margin-top: 1rem; }
.result { border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; margin-bottom: 1.1rem; background: var(--white); border: 2px solid var(--line-soft); }
.result.good { border: 3px solid var(--teal); }
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.5rem; }
.result h3 { margin: 0; font-size: 1.2rem; }
.badge { display: inline-block; font-size: 0.85rem; font-weight: 650; padding: 0.2rem 0.7rem; border-radius: 999px; }
.badge.good { background: var(--teal); color: var(--white); }
.badge.maybe { background: var(--apricot); color: var(--ink); }
.badge.less { background: var(--stone); color: var(--ink); border: 1px solid var(--line); }
.result h4 { font-size: 1rem; margin: 0.9rem 0 0.3rem; color: var(--teal-deep); }
.result ul { margin-bottom: 0.5rem; list-style: disc; }
.less-list { margin-top: 1.5rem; }
.less-list summary { cursor: pointer; font-weight: 650; color: var(--teal); min-height: 52px; display: flex; align-items: center; text-decoration: underline; text-decoration-thickness: 2px; }

/* ------------------------------------------------------------ equipment / installers */
.cat { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.cat-head { display: flex; align-items: center; gap: 1rem; }
.cat-head h2 { margin: 0; }
.cat-head .icon { width: 3.2rem; height: 3.2rem; flex: none; color: var(--teal); background: var(--apricot-wash); border-radius: 14px; padding: 0.4rem; }
.cat-intro { margin: 0.75rem 0 0; }
.items { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.1rem; }
@media (min-width: 56rem) { .items { grid-template-columns: 1fr 1fr; } }
.item { margin: 0; background: var(--white); border: 2px solid var(--line-soft); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; scroll-margin-top: 1rem; }
.item h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; margin-bottom: 0.4rem; }
.item .credit { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.item h4 { font-size: 1rem; margin: 0.8rem 0 0.25rem; color: var(--teal-deep); }
.item ul { margin-bottom: 0.5rem; list-style: disc; }
.item .caution { background: var(--apricot-wash); border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.95rem; }
.item .actions { margin-top: auto; padding-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.item .actions .btn { min-height: 52px; padding-inline: 1.1rem; font-size: 1rem; }
.item .tag { display: inline-block; font-size: 0.82rem; font-weight: 650; background: var(--apricot); color: var(--ink); padding: 0.15rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }
.item .meta { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.5rem; }
.empty { background: var(--stone); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2.2rem; }
.checklist li .icon { position: absolute; left: 0; top: 0.15em; width: 1.5rem; height: 1.5rem; color: var(--teal); }

/* ------------------------------------------------------------ FAQs */
.faq { border-top: 2px solid var(--line-soft); padding-block: 1.1rem; scroll-margin-top: 1rem; }
.faq:last-child { border-bottom: 2px solid var(--line-soft); }
.faq h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.faq .more { margin: 0; font-weight: 500; }

/* ------------------------------------------------------------ prose pages */
.prose { max-width: var(--read); padding-bottom: 3rem; }
.prose h2 { font-size: 1.5rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--teal-deep); color: var(--white); margin-top: 3rem; padding-top: 2.5rem; --focus-ring: var(--white); }
.site-footer a { color: var(--white); }
.site-footer a:focus-visible { color: var(--ink); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; } }
.footer-name { font-size: 1.3rem; font-weight: 650; margin-bottom: 0.4rem; }
.footer-h { color: var(--white); font-size: 1.1rem; margin: 0 0 0.5rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 48px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.35); margin-top: 2rem; padding-block: 1.25rem 2rem; font-size: 0.92rem; }
.footer-legal p { margin-bottom: 0.5rem; }
.home .site-footer { margin-top: 0; }

/* ------------------------------------------------------------ misc */
.kit-credits { max-width: var(--wrap); }
.kit-credits-list img { border-radius: 10px; }
.not-found { padding-block: 3rem; }
.go-pending { padding-block: 3rem; }

@media print {
  .masthead-tools, .mainnav, .site-footer, .guide-aside, .skip-link, .print-btn, .crumbs { display: none !important; }
  body { font-size: 12pt; }
  a { color: #000; }
  .guide-grid { display: block; }
}
@media (max-width: 61.99rem) { .guide-aside .aside-box, .guide-aside .print-btn { display: none !important; } }
/* Large text on small screens: one column of menu links, and allow long words to wrap */
@media (max-width: 30rem) { html.text-large .mainnav ul { grid-template-columns: minmax(0, 1fr); } }
.mainnav ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (min-width: 62rem) { .mainnav ul { grid-template-columns: none; } }
h1, h2, h3, .gl-title, .brand-name { overflow-wrap: anywhere; hyphens: auto; }
.aid-groups { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .aid-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .aid-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aid-groups a span { min-width: 0; overflow-wrap: anywhere; }
.guide-head .lead { font-size: 1.1em; color: var(--ink-soft); }
