/* HonestLivingGuide mockups. Direction A, "Field Guide".
   Palette, type and component rules come from research/07-ux-ui-and-design.md, section 8.

   SHAPE RULE (v4). One rule for every corner on the site:
   1. Full pill, --pill (999px): buttons, single-line inputs, selects, chips, filter pills, segmented
      choices and the search field. Inputs are 52px tall or more with 20px of side padding.
   2. 20px corners, --radius: textareas, option cards, community cards, plan cards, panels, tables,
      maps and images.
   3. 8px corners, --r-badge: small badges only (source badges, the Sponsored label, step numbers,
      the "i" mark, the logo tile).
   Inputs keep a 2px forest border and the ochre focus ring. A field with an error is tinted and
   bordered in the error color, all of it.

   PRIMARY BUTTON (v4). Class "cta": HF's main button in HLG colors, from CTA-SPEC.md.
   The chip at the end is the ::after. "cta big" is the one main action of a page, "cta tel" is a
   phone action. Secondary buttons (.btn.btn-2) take the pill shape with no chip and no motion. */

:root {
  color-scheme: light;

  /* Palette. Every colour in this file and in the pages comes from these tokens. */
  --paper: #FBF8F1;      /* page ground */
  --ink: #10261D;        /* body text, 15.03:1 on paper */
  --forest: #0F3D2E;     /* headings, links, primary buttons, 11.46:1 */
  --moss: #4A5A52;       /* secondary text, 6.89:1 */
  --sand: #F1ECDF;       /* card and band ground */
  --sage-tint: #DCE8DC;  /* badge ground, header bands */
  --sage: #648C6E;       /* logo sage: fills and shapes only, never text */
  --ochre: #E9B44C;      /* fills, highlights, focus ring */
  --ochre-text: #8A5A12; /* rare label text, 5.57:1 */
  --brick: #9B2C1F;      /* errors, closures */
  --rule: #B9C4B8;       /* thin forest-tinted rule */
  --on-ochre: #10261D;   /* text on an ochre fill, 8.43:1 */
  --brick-tint: #FBE9E5; /* ground of a field with an error */
  --yes: #1B6B43;        /* a check mark, 6.3:1 on paper */
  --yes-tint: #DCEFE2;   /* ground of a check mark */
  --no: #9B2C1F;         /* a cross mark */
  --no-tint: #FBE9E5;    /* ground of a cross mark */
  --map-water: #B7CFBE;  /* water on the drawn map */
  --logo-ground: transparent; /* a light tile behind the logo in the dark theme */

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", Verdana, "Segoe UI", Arial, sans-serif;
  --font-word: "Nunito", "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;

  /* Scale 20 / 24 / 30 / 38 / 48 at the 20px base. Smallest text is 16px. */
  --fs-small: 0.85rem;
  --fs-1: 1rem;
  --fs-2: 1.2rem;
  --fs-3: 1.5rem;
  --fs-4: 1.9rem;
  --fs-5: 2.4rem;

  /* Shape: see the rule at the top of this file. */
  --radius: 20px;
  --pill: 999px;
  --r-badge: 8px;
  --tap: 48px;
  --btn: 52px;

  /* Primary button (CTA-SPEC.md) */
  --cta: #0F3D2E; --cta-deep: #0A2B20; --cta-text: #FFFFFF; --cta-chip: #FBF8F1; --cta-shadow: rgba(6,40,30,.45); --cta-glow: rgba(251,248,241,.22);
  --cta-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F3D2E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --cta-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F3D2E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h3l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 4 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

/* Dark theme: the same tokens, redefined. The system setting applies unless the page is forced light;
   data-theme="dark" forces it. Buttons become a light green fill with dark text through --forest and --paper. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F1B16;      /* page ground */
    --ink: #E8EEE6;        /* body text, 14.98:1 on the ground */
    --forest: #9CCFB0;     /* headings, links, button fill, 10.07:1 */
    --moss: #A8B8AE;       /* secondary text, 8.52:1 */
    --sand: #17261F;       /* band and card ground */
    --sage-tint: #1F362B;  /* badge ground, header bands */
    --sage: #648C6E;       /* fills and shapes only */
    --ochre: #E9B44C;      /* the one accent */
    --ochre-text: #E9B44C; /* label text, 9.34:1 */
    --brick: #F09A8B;      /* errors, 8.16:1 */
    --rule: #33473C;
    --on-ochre: #0F1B16;
    --brick-tint: #3A1D19;
    --yes: #8FD3A8; --yes-tint: #1D3A2B; --no: #F09A8B; --no-tint: #3A1D19;
    --map-water: #2A4A45;
    --logo-ground: #E8EEE6;
    --cta: #9CCFB0; --cta-deep: #7FBF98; --cta-text: #0F1B16; --cta-chip: #0F1B16; --cta-shadow: rgba(0,0,0,.5); --cta-glow: rgba(15,27,22,.25);
    --cta-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CCFB0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --cta-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CCFB0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h3l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 4 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F1B16;    /* page ground */
  --ink: #E8EEE6;    /* body text, 14.98:1 on the ground */
  --forest: #9CCFB0;   /* headings, links, button fill, 10.07:1 */
  --moss: #A8B8AE;     /* secondary text, 8.52:1 */
  --sand: #17261F;     /* band and card ground */
  --sage-tint: #1F362B;  /* badge ground, header bands */
  --sage: #648C6E;     /* fills and shapes only */
  --ochre: #E9B44C;    /* the one accent */
  --ochre-text: #E9B44C; /* label text, 9.34:1 */
  --brick: #F09A8B;    /* errors, 8.16:1 */
  --rule: #33473C;
  --on-ochre: #0F1B16;
  --brick-tint: #3A1D19;
  --yes: #8FD3A8; --yes-tint: #1D3A2B; --no: #F09A8B; --no-tint: #3A1D19;
  --map-water: #2A4A45;
  --logo-ground: #E8EEE6;
  --cta: #9CCFB0; --cta-deep: #7FBF98; --cta-text: #0F1B16; --cta-chip: #0F1B16; --cta-shadow: rgba(0,0,0,.5); --cta-glow: rgba(15,27,22,.25);
  --cta-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CCFB0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --cta-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CCFB0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h3l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 4 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

/* Base size: 19px on phones, 20px from 768px. Set in percent so a reader's own browser text size still applies. */
html { font-size: 118.75%; -webkit-text-size-adjust: 100%; }
@media (min-width: 768px) { html { font-size: 125%; } }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-1);
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.4rem); }
h2 { font-size: var(--fs-4); margin-top: 0; }
h3 { font-size: var(--fs-3); }
h2.h-small, h3.h-small { font-size: var(--fs-2); }

p, ul, ol, dl { margin: 0 0 1rem; }
p, li, dd { max-width: 68ch; }
ul, ol { padding-left: 1.4rem; }
strong, b, th { font-weight: 700; }

a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
main a:not(.btn):not(.cta):visited { color: var(--moss); }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 3px; } }
/* A text link inside a sentence gets a target at least 44px tall. Padding on an inline box does not move the line. */
p a:not([class]), dd a:not([class]), figcaption a, .tip-pop a, .photo-slot a { padding-block: 0.65rem; }

/* Solid two-tone ring, not a shadow: ochre outside, forest inside, so it shows on paper and on forest. */
:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--forest);
}

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999rem; top: 0.5rem; z-index: 20; }
.skip:focus { left: 0.5rem; background: var(--paper); padding: 0.75rem 1.25rem; border: 2px solid var(--forest); border-radius: var(--pill); }

.wrap { max-width: 64rem; margin-inline: auto; padding-inline: 1rem; }
.band { background: var(--sand); border-block: 1px solid var(--rule); }
.section { padding-block: 2.5rem; }
.lede { font-size: var(--fs-2); max-width: 60ch; }
.note { color: var(--moss); }
.small { font-size: var(--fs-small); }

.ic {
  width: 1.3em; height: 1.3em; flex: none; vertical-align: -0.25em;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.ic-lg { width: 2.4rem; height: 2.4rem; }
.sprite { position: absolute; width: 0; height: 0; }

/* ---------- Ribbon, header, footer ---------- */

.ribbon {
  margin: 0; max-width: none; padding: 0.3rem 1rem; text-align: center;
  background: var(--ochre); color: var(--on-ochre); font-size: var(--fs-small); font-weight: 700;
}

.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; padding-block: 0.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--tap);
  font-family: var(--font-word); font-weight: 800; font-size: var(--fs-2); color: var(--forest);
  text-decoration: none; margin-right: auto;
}
.brand img { width: 52px; height: 52px; display: block; background: var(--logo-ground); border-radius: var(--r-badge); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; list-style: none; margin: 0; padding: 0; }
.nav li { max-width: none; }
.nav a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--tap); font-size: var(--fs-small); font-weight: 700; }
.nav a[aria-current="page"] { text-decoration-thickness: 4px; text-decoration-color: var(--ochre); }
.nav .shortlist { border: 2px solid var(--forest); border-radius: var(--pill); padding: 0 1rem; text-decoration: none; background: var(--sage-tint); }
@media (min-width: 768px) { .nav a { font-size: var(--fs-1); } .nav { gap: 0 1.5rem; } }

.crumbs { padding-block: 0.5rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.5rem; padding: 0; margin: 0; font-size: var(--fs-small); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--moss); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: var(--tap); }

/* The footer type is 1px under the page type, so the footer is lower (owner 2026-11-24). */
.site-foot { margin-top: 3rem; background: var(--sand); border-top: 2px solid var(--forest); padding-block: 2rem; font-size: calc(var(--fs-1) - 1px); }
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-foot h2 { font-size: calc(var(--fs-2) - 1px); margin-bottom: 0.25rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li a { display: inline-flex; align-items: center; min-height: var(--tap); }
/* With a mouse a link row is 40px. A finger keeps the 48px row. */
@media (hover: hover) and (pointer: fine) { .site-foot li a { min-height: 2rem; } }
.foot-note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: calc(var(--fs-small) - 1px); max-width: none; }
.foot-note + .foot-note { margin-top: 0.75rem; padding-top: 0; border-top: 0; }
/* Social profiles and the review box, as in HF's footer: icons only, 44px each, the review box under them.
   Both are placeholders here, so they are dashed and are not links. From 1200px they sit under the three short
   columns, beside the long fourth one. */
.foot-social { min-width: 0; }
.soc { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 44px); gap: 6px; }
.soc li { max-width: none; }
.soc-ic { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 1px dashed var(--moss); border-radius: 50%; color: var(--forest); }
.soc-ic::before { content: ""; width: min(20px, 58%); aspect-ratio: 1; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.foot-tp { display: flex; align-items: center; gap: 0.6rem; width: fit-content; max-width: 100%; min-height: 52px; white-space: nowrap; margin: 12px 0 0; padding: 0 1rem; border: 1px dashed var(--moss); border-radius: var(--r-badge); font-weight: 700; color: var(--forest); }
.foot-tp svg { flex: none; width: 1.5rem; height: 1.5rem; fill: currentColor; }
@media (max-width: 479px) { .soc { gap: 3px; } .foot-tp small { display: none; } }
.foot-tp small { margin-left: 0.6rem; font-size: var(--fs-small); font-weight: 400; color: var(--moss); }
@media (min-width: 1200px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid > :nth-child(4) { grid-column: 4; grid-row: 1 / span 2; }
  .foot-social { grid-column: 1 / 4; align-self: end; }
}
.soc-facebook { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E"); }
.soc-instagram { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077'/%3E%3C/svg%3E"); }
.soc-threads { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z'/%3E%3C/svg%3E"); }
.soc-youtube { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E"); }
.soc-tiktok { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E"); }
.soc-pinterest { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z'/%3E%3C/svg%3E"); }
.soc-bluesky { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z'/%3E%3C/svg%3E"); }
.soc-x { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E"); }
.soc-reddit { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z'/%3E%3C/svg%3E"); }

/* The low footer of a sign-up funnel, as in HF: the disclosure link at the left, the legal links at the right. */
.foot-slim { margin-top: 2rem; padding-block: 0.4rem; border-top-width: 1px; border-top-color: var(--rule); background: transparent; font-size: var(--fs-small); }
.foot-slim-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1.6rem; }
.foot-slim ul { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.foot-slim a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (hover: hover) and (pointer: fine) { .foot-slim a { min-height: 2rem; } }
@media (max-width: 640px) { .foot-slim-in { display: block; } }

/* ---------- Buttons and forms ---------- */

/* Secondary button. The primary button is .cta, further down. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.4rem 22px;
  border: 2px solid var(--forest); border-radius: var(--pill);
  background: var(--forest); color: var(--paper);
  font: inherit; font-weight: 700; line-height: 1.25; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.btn:visited { color: var(--paper); }
.btn-2, .btn-2:visited { background: transparent; color: var(--forest); }
/* Press feedback. It stays on under reduced motion. */
.btn:active { transform: scale(0.98) translateY(1px); }
/* No hover effects on touch screens. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); border-color: var(--ink); }
  .btn-2:hover { background: var(--sage-tint); border-color: var(--forest); }
}
.btn-2[aria-pressed="true"] { background: var(--sage-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

label, legend { font-weight: 700; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.25rem; }
.hint { display: block; font-weight: 400; color: var(--moss); font-size: var(--fs-small); }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%; max-width: 32rem; min-height: var(--btn); padding: 0.5rem 20px;
  border: 2px solid var(--forest); border-radius: var(--pill);
  background-color: var(--paper); color: var(--ink); font: inherit;
}
textarea { min-height: 7rem; border-radius: var(--radius); padding: 0.75rem 20px; }
/* A pill select draws its own arrow, so the arrow keeps clear of the round end. */
select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 27px) 50%, calc(100% - 20px) 50%; background-size: 7px 7px; background-repeat: no-repeat;
}
::placeholder { color: var(--moss); opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 1.5rem; height: 1.5rem; flex: none; accent-color: var(--forest); margin: 0; }
.check { display: flex; align-items: center; gap: 0.6rem; min-height: var(--tap); font-weight: 400; padding-block: 0.2rem; }
.check .count { color: var(--moss); }
.search-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: start; }
.search-row > .cta { margin-top: calc(0.25rem + 1.6em); }
.search-row input { min-height: 58px; }
.search-row .field { margin: 0; flex: 1 1 14rem; }
.search-row input, .search-row select { max-width: none; }

/* ---------- Values and evidence badges ---------- */

.val { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.val-q, .val-na { font-weight: 400; color: var(--moss); }
.val-text { font-weight: 400; }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.15rem 0.6rem; border: 2px solid var(--forest); border-radius: var(--r-badge);
  font-size: var(--fs-small); line-height: 1.35; color: var(--ink); background: var(--paper); vertical-align: middle;
}
.badge-state { background: var(--sage-tint); }
.badge-conf { background: var(--forest); color: var(--paper); }
.badge-web { background: transparent; }
.badge-none { border-style: dashed; border-color: var(--moss); background: transparent; }
.ask { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--fs-small); font-weight: 700; margin-left: 0.5rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 0.75rem; }
.chips li { max-width: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 1rem;
  border: 2px solid var(--forest); border-radius: var(--pill); background: var(--paper); font-size: var(--fs-small);
}
button.chip { text-align: left; min-height: var(--tap); font: inherit; font-size: var(--fs-small); color: var(--ink); cursor: pointer; }
.chip-clear { border-style: dashed; font-weight: 700; }

.callout { border: 2px solid var(--forest); border-radius: var(--radius); background: var(--sand); padding: 1rem; margin-bottom: 1rem; }
.callout > :last-child { margin-bottom: 0; }
.conflict { border-left: 8px solid var(--ochre); }
.rarity { display: flex; gap: 0.4rem; align-items: baseline; font-size: var(--fs-small); color: var(--ink); background: var(--sage-tint); border-radius: var(--r-badge); padding: 0.3rem 0.6rem; }

/* ---------- Home ---------- */

.hero { padding-block: 2.5rem; }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tiles > li { max-width: none; }
.tile { display: block; height: 100%; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: 1rem; }
.band .tile { background: var(--paper); }
.tile h3 { font-size: var(--fs-2); margin-bottom: 0.35rem; }
.tile p { margin: 0; }
.tile .ic-lg { color: var(--forest); margin-bottom: 0.5rem; display: block; }
/* Categories: an unboxed ruled list in two columns. */
.cats { list-style: none; display: grid; gap: 0 3rem; padding: 0; margin: 0 0 1rem; border-bottom: 1px solid var(--rule); }
.cats > li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 1rem; align-items: start; max-width: none; padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.cats .ic-lg { color: var(--forest); margin-top: 0.4rem; }
.cats h3 { font-size: var(--fs-2); margin: 0; }
.cats h3 a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: var(--tap); }
/* The whole row is the link's target. Its arrow chip turns 45 degrees up on hover and focus, as the main button's does. */
.cats > li { position: relative; }
.cats h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-go { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 2px solid var(--forest); border-radius: 50%; color: var(--forest); transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.25s ease, color 0.25s ease; }
.cat-go .ic { width: 1rem; height: 1rem; stroke-width: 2.4; vertical-align: 0; }
.cats h3 a:focus-visible .cat-go { transform: rotate(-45deg) scale(1.08); background: var(--forest); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .cats > li:hover .cat-go { transform: rotate(-45deg) scale(1.08); background: var(--forest); color: var(--paper); } }
@media (prefers-reduced-motion: reduce) { .cat-go { transition: none; } .cats h3 a:focus-visible .cat-go, .cats > li:hover .cat-go { transform: none; } }
.cats p { margin: 0; }
@media (min-width: 768px) { .cats { grid-template-columns: 1fr 1fr; } }
/* Promises: a ruled list with the claim on the left and the detail on the right. */
.promises { list-style: none; padding: 0; margin: 0 0 1.25rem; border-top: 2px solid var(--forest); }
.promises > li { display: grid; gap: 0.25rem 2rem; max-width: none; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.promises h3 { font-size: var(--fs-2); margin: 0; }
.promises p { margin: 0; }
@media (min-width: 768px) { .promises > li { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); } }
.hero-alt { margin: 0.75rem 0 0; }
.hero-alt a { display: inline-flex; align-items: center; min-height: var(--tap); }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.money { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .money { grid-template-columns: 1fr 1fr; } }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: 0.35rem; }

/* ---------- Results ---------- */

.results { display: grid; gap: 1.5rem; padding-top: 1rem; }
.results > * { min-width: 0; }
.record-line { border-left: 8px solid var(--sage); padding: 0.25rem 0 0.25rem 0.9rem; max-width: 70ch; }

.filters { display: none; }
.filters.open { display: block; position: fixed; inset: 0; z-index: 10; overflow: auto; background: var(--paper); padding: 1rem 1rem 0; }
.sheet-open { overflow: hidden; }
.filters h2 { font-size: var(--fs-3); }
.filters details { border-top: 1px solid var(--rule); }
.filters summary, .cmp summary { cursor: pointer; font-weight: 700; padding-block: 0.6rem; min-height: var(--tap); }
.filters details > div { padding-bottom: 0.75rem; }
.sheet-bar { position: sticky; bottom: 0; background: var(--paper); border-top: 2px solid var(--forest); padding: 0.75rem 0; margin-top: 1rem; }
.sheet-bar :is(.btn, .cta) { width: 100%; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.tri { border: 0; padding: 0; margin: 0 0 0.9rem; min-width: 0; }
.tri legend { padding: 0; font-weight: 400; margin-bottom: 0.2rem; }
/* A segmented choice: one pill, and the chosen part is a filled pill inside it. */
.tri-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border: 2px solid var(--forest); border-radius: var(--pill); background: var(--paper); }
.tri-opts label { position: relative; font-weight: 400; cursor: pointer; }
.tri-opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.tri-opts span { display: flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0.2rem 0.4rem; border-radius: var(--pill); text-align: center; font-size: var(--fs-small); line-height: 1.2; }
.tri-opts input:checked + span { background: var(--forest); color: var(--paper); font-weight: 700; }
.tri-opts input:checked + span::before { content: "\2713\00a0"; }
.tri-opts input:focus-visible + span { outline: 3px solid var(--ochre); outline-offset: 2px; box-shadow: 0 0 0 2px var(--forest); }

@media (min-width: 1024px) {
  .results { grid-template-columns: 17rem minmax(0, 1fr); }
  .filters, .filters.open { display: block; position: static; padding: 0; overflow: visible; }
  .sheet-only { display: none !important; }
}

.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.toolbar .field { margin: 0; }
.toolbar select { width: auto; max-width: 100%; }

.map { display: block; width: 100%; height: 15rem; border: 1px solid var(--rule); border-radius: var(--radius); }
figure { margin: 0 0 1rem; }
figcaption { font-size: var(--fs-small); color: var(--moss); padding-top: 0.3rem; }

.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.card-list > li { max-width: none; }
.card { display: grid; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sand); overflow: hidden; }
.card-media {
  background: var(--sage-tint); color: var(--forest); min-height: 7rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  text-align: center; font-weight: 700; border-bottom: 1px solid var(--rule); margin: 0;
}
.card-media.band-only { padding: 0.75rem; }
.card-media .map { height: 8.5rem; flex: none; border: 0; border-radius: 0; }
.card-media figcaption { padding: 0.3rem 0.6rem; color: var(--ink); font-weight: 400; }
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  width: 100%; min-height: 9rem; flex: 1; padding: 0.75rem;
  border: 2px dashed var(--moss); border-radius: var(--radius); background: var(--paper); color: var(--moss);
  font-weight: 400; font-size: var(--fs-small); text-align: center;
}
.card-media .photo-slot { border-radius: 0; border-width: 0 0 2px; }
.card-body { padding: 1rem; min-width: 0; }
.card h3 { margin-bottom: 0.25rem; }
.card h3 a { text-decoration-thickness: 2px; }
.card-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; padding: 0; margin: 0 0 0.6rem; }
.card-meta li { display: inline-flex; align-items: center; gap: 0.35rem; }
.match { margin-bottom: 0.6rem; }
.evidence { margin-bottom: 0.4rem; }
.card-phone { display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--tap); font-weight: 700; white-space: nowrap; }
.card p { margin-bottom: 0.5rem; }
@media (min-width: 768px) {
  .card { grid-template-columns: 13rem minmax(0, 1fr); }
  .card-media { border-bottom: 0; border-right: 1px solid var(--rule); }
  .card-media .photo-slot { border-width: 0 0 2px; }
}

.sponsored { border: 2px solid var(--ochre-text); border-radius: var(--radius); padding: 0.75rem; margin-bottom: 1.5rem; background: var(--paper); }
.sponsored-label { display: inline-block; background: var(--ochre); color: var(--on-ochre); font-weight: 700; padding: 0.1rem 0.7rem; border-radius: var(--r-badge); margin-bottom: 0.5rem; }
.sponsored p { margin-bottom: 0.6rem; }

.pager { margin-top: 1.5rem; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.pager a, .pager [aria-current] {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 0.8rem;
  border: 2px solid var(--forest); border-radius: var(--pill); font-weight: 700; text-decoration: none;
}
.pager [aria-current] { background: var(--forest); color: var(--paper); }

/* ---------- Profile (entry) ---------- */

.entry-head { padding-block: 0.5rem 1.5rem; }
.entry-grid { display: grid; gap: 2rem; }
.entry-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .entry-grid { grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; }
  .entry-main { grid-column: 1; grid-row: 1; }
  .entry-side { grid-column: 2; grid-row: 1; }
}
.entry-side :is(.btn, .cta) { width: 100%; margin-bottom: 0.6rem; }
.entry-main section { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 2px solid var(--forest); }
.entry-main h2 { font-size: var(--fs-3); }
.toc { columns: 15rem 3; padding: 0; list-style: none; margin: 0; }
.toc li { break-inside: avoid; }
.toc a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Rows are set apart by space. One soft rule sits above each group of rows (class "gap"). */
.meta { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 1rem; border-top: 1px solid var(--rule); padding-top: 0.4rem; }
.meta > div { display: grid; gap: 0.1rem 1rem; padding: 0.55rem 0; }
.meta > .gap, .fact.gap { border-top: 1px solid var(--rule); margin-top: 0.6rem; padding-top: 1.15rem; }
.meta dt { font-weight: 700; }
.meta dd { margin: 0; max-width: none; }
@media (min-width: 768px) { .meta > div { grid-template-columns: 11rem minmax(0, 1fr); } }

.facts { list-style: none; margin: 0 0 1rem; padding: 0; }
.fact { display: grid; gap: 0.3rem 1rem; padding: 0.55rem 0; max-width: none; align-items: start; }
.more-facts { margin: -0.4rem 0 1rem; border-top: 1px solid var(--rule); }
.more-facts summary { display: flex; align-items: center; min-height: var(--tap); padding-block: 0.4rem; cursor: pointer; font-weight: 700; color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.more-facts[open] .when-closed, .more-facts:not([open]) .when-open { display: none; }
.more-facts .facts { margin-bottom: 0; }
.fact-label { font-weight: 700; }
.fact-detail { display: block; font-weight: 400; }
.fact-src { display: flex; flex-wrap: wrap; align-items: center; }
.fact-note { grid-column: 1 / -1; }
@media (min-width: 768px) { .fact { grid-template-columns: minmax(0, 1fr) 8.5rem 18.5rem; } }

.table-wrap { position: relative; /* keeps hidden helper text inside the scroll box */ overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--rule); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
thead th { background: var(--sage-tint); border-bottom: 2px solid var(--forest); }
tbody tr:last-child > * { border-bottom: 0; }

.photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-bottom: 1rem; }
.photos figure { margin: 0; }
.empty { border: 2px dashed var(--moss); border-radius: var(--radius); padding: 1rem; }
.empty > :last-child { margin-bottom: 0; }
.tour { list-style: none; padding: 0; counter-reset: q; }
.tour li { max-width: none; border-bottom: 1px solid var(--rule); }
.tour .check { align-items: flex-start; padding-block: 0.6rem; }
.preview { border: 2px dashed var(--forest); border-radius: var(--radius); padding: 1rem; background: var(--paper); margin-bottom: 1rem; }
.preview dl { margin: 0; }
.preview dt { font-weight: 700; }
.preview dd { margin: 0 0 0.6rem; }
.ai-label { font-size: var(--fs-small); border-left: 8px solid var(--sage); padding-left: 0.75rem; }

/* ---------- Compare ---------- */

.cmp-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-bottom: 1rem; }
.switch { display: inline-flex; align-items: center; gap: 0.6rem; min-height: var(--tap); cursor: pointer; }
.switch input { width: 1.7rem; height: 1.7rem; }
.cmp-phone { display: none; }
.cmp-head {
  position: sticky; top: var(--stuck, 0px); z-index: 5; display: grid; grid-template-columns: 28% repeat(3, 24%);
  background: var(--paper); border-bottom: 3px solid var(--forest); border-top: 1px solid var(--rule);
}
.cmp-head > div { padding: 0.6rem 0.75rem; min-width: 0; }
.cmp-name { display: block; font-family: var(--font-head); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: var(--fs-2); line-height: 1.2; }
.cmp-sub { display: block; font-size: var(--fs-small); }
.cmp-remove { background: none; border: 0; padding: 0; min-height: var(--tap); font: inherit; font-size: var(--fs-small); color: var(--forest); text-decoration: underline; cursor: pointer; }
.cmp details { border-bottom: 2px solid var(--forest); }
.cmp summary { font-family: var(--font-head); font-size: var(--fs-2); color: var(--forest); padding-inline: 0.75rem; background: var(--sand); }
.cmp table { table-layout: fixed; }
.cmp col.c-label { width: 28%; }
.cmp col.c-val { width: 24%; }
.cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cmp th[scope="row"] { border-left: 8px solid transparent; }
.cmp tr.diff th[scope="row"] { border-left-color: var(--ochre); }
.cmp .src { display: block; font-size: var(--fs-small); color: var(--moss); font-weight: 400; }
.cmp.diff-only tr.same { display: none; }
.all-same { display: none; padding: 0.6rem 0.75rem; margin: 0; }
.cmp.diff-only .no-diff .all-same { display: block; }
.cmp.diff-only .no-diff table { display: none; }
.key { display: inline-flex; align-items: center; gap: 0.5rem; }
.key-bar { display: inline-block; width: 8px; height: 1.6rem; background: var(--ochre); }

@media (max-width: 719px) {
  .cmp-phone { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-bottom: 0.75rem; }
  .cmp-head { grid-template-columns: 1fr 1fr; }
  .cmp-head .cmp-corner, .cmp-head .cmp-sub { display: none; }
  .cmp-name { font-size: var(--fs-1); }
  .cmp table, .cmp tbody { display: block; }
  .cmp colgroup { display: none; }
  .cmp tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-left: 8px solid transparent; border-bottom: 1px solid var(--rule); }
  .cmp tbody tr.diff { border-left-color: var(--ochre); }
  .cmp tbody th[scope="row"] { grid-column: 1 / -1; border: 0; padding-bottom: 0; }
  .cmp tbody td { border: 0; }
  .cmp[data-pair="0"] .c2, .cmp[data-pair="1"] .c0, .cmp[data-pair="2"] .c1 { display: none; }
}

/* ---------- For communities ---------- */

.plans td ul { margin: 0; padding-left: 1.2rem; }
.plans .price { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-2); color: var(--forest); display: block; }
/* A numbered sequence: one number per step, joined by a line. */
.steps { list-style: none; padding: 0; counter-reset: s; max-width: 46rem; }
.steps li { counter-increment: s; position: relative; max-width: none; min-height: 3.4rem; padding: 0.3rem 0 1.5rem 4rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 2px solid var(--forest); border-radius: var(--r-badge); background: var(--paper); color: var(--forest);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-3); line-height: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.3rem - 1px); top: 2.6rem; bottom: 0; width: 2px; background: var(--sage); }
.steps li:last-child { padding-bottom: 0.5rem; }
/* On phones a table with class "stack" becomes one card per row. Each value carries its column name. */
@media (max-width: 767px) {
  .table-wrap:has(.stack) { border: 0; overflow: visible; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; }
  .stack tbody tr { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: 0.6rem 0.75rem; margin-bottom: 0.75rem; }
  .stack tbody tr:last-child { margin-bottom: 0; }
  .stack tbody th, .stack tbody td, .stack tbody tr:last-child > * { border: 0; padding: 0.2rem 0; }
  .stack tbody th[scope="row"] { font-family: var(--font-head); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: var(--fs-2); color: var(--forest); line-height: 1.25; padding-bottom: 0.3rem; }
  .stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; }
}

/* ---------- v2 additions: access model, review bar, callback stepper, family plans ---------- */

[hidden] { display: none !important; }

/* Who is looking. The class sits on <body>; no class means Visitor. */
body:not(.view-free):not(.view-paid) .only-signed,
body:not(.view-free) .only-free,
body:not(.view-paid) .only-paid,
body.view-free .only-visitor,
body.view-paid .only-visitor { display: none !important; }

/* What the community pays for. Used on the entry page only. */
body:not(.comm-premium) .only-premium,
body.comm-premium .only-nonpaying,
body:not(.comm-unclaimed) .only-unclaimed,
body.comm-unclaimed .only-claimed,
body:not(.comm-claimed) .only-free-claim { display: none !important; }

/* Design-review bar. Not part of the product. */
.review-bar { background: var(--paper); border-bottom: 4px dashed var(--ochre-text); padding-block: 0.5rem 0.75rem; }
.review-bar .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: end; }
.review-tag { flex: 1 1 100%; margin: 0; max-width: none; font-size: var(--fs-small); font-weight: 700; color: var(--ochre-text); text-transform: none; }
.review-note { flex: 1 1 100%; margin: 0; max-width: none; font-size: var(--fs-small); }
.review-bar .tri { flex: 1 1 20rem; margin: 0; }
.review-bar .tri legend { font-weight: 700; }
@media (min-width: 1024px) {
  .review-bar.stick { position: sticky; top: 0; z-index: 6; }
}

/* Price, phone and state-record rows on a card */
.card-rows { margin: 0 0 0.75rem; border-top: 1px solid var(--rule); }
.card-rows > div { display: grid; gap: 0 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.card-rows dt { display: flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.card-rows dd { margin: 0; max-width: none; min-width: 0; }
.card-rows dd a { display: inline-block; padding-block: 0.55rem; }
.card-rows dd a.card-phone, .card-rows dd a.lock { display: inline-flex; padding-block: 0; }
@media (min-width: 560px) { .card-rows > div { grid-template-columns: 6.5rem minmax(0, 1fr); } }
.lock { display: inline-flex; align-items: center; gap: 0.35rem; min-height: var(--tap); font-weight: 700; }
.locked { display: inline-flex; align-items: center; gap: 0.35rem; }
.cmp .lock { display: inline; }
.cmp .lock .ic { margin-right: 0.3rem; }
.locked-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; max-width: none;
  border: 2px dashed var(--forest); border-radius: var(--radius); background: var(--sand); padding: 0.2rem 0.75rem;
}
.shown-by { font-size: var(--fs-small); color: var(--moss); }
.card-rows .shown-by { display: block; }
main a:not(.btn):not(.cta):not(.card-phone):not(.lock) > .ic:first-child, .meta dd > span > .ic:first-child { margin-right: 0.3rem; }
.unclaimed-line { margin: 0 0 0.75rem; }
.reveal-out:empty { display: none; }
.reveal-box { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-bottom: 0.75rem; }
.plan-line { display: flex; gap: 0.5rem; align-items: flex-start; border-left: 8px solid var(--sage); padding: 0.25rem 0 0.25rem 0.75rem; max-width: 70ch; }
.plan-line .ic { margin-top: 0.2em; }
.values-key { margin-top: 1.5rem; }
.values-key .legend { margin: 0 0 0.5rem; gap: 0.5rem 1.5rem; }

/* Callback stepper */
.stepper-wrap { max-width: 44rem; padding-top: 0.5rem; }
.progress { margin-bottom: 0.35rem; font-weight: 700; color: var(--ochre-text); }
.q { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.q legend { padding: 0; width: 100%; }
.q-note, .fee-line { border-left: 8px solid var(--sage); padding: 0.25rem 0 0.25rem 0.75rem; max-width: 62ch; }
.fee-line { border-left-color: var(--ochre); }
body:not(.cb-unclaimed) .unclaimed-only, body.cb-unclaimed .claimed-only { display: none; }
/* Errors: the whole field is marked (border and tint) and the message under it says what to fix. */
.field.invalid input, .field.invalid select, .field.invalid textarea { border: 3px solid var(--brick); background: var(--brick-tint); }
.q.invalid, .check.invalid { border: 3px solid var(--brick); border-radius: var(--radius); background: var(--brick-tint); padding: 0.75rem; }
.field-error { display: flex; align-items: flex-start; gap: 0.4rem; max-width: 32rem; margin: 0.35rem 0 0; color: var(--brick); font-weight: 700; }
.field-error .ic { margin-top: 0.15em; }
.err-sum { max-width: 32rem; margin: 0 0 1rem; padding: 0.75rem 1rem; border: 3px solid var(--brick); border-radius: var(--radius); background: var(--brick-tint); }
.err-sum p { margin: 0; font-weight: 700; }
.err-sum ul { list-style: none; padding: 0; margin: 0; }
.err-sum a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--brick); font-weight: 700; }
.step-nav { margin-top: 1rem; }
.status { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 32rem; padding: 3px; margin: 0 0 1rem; border: 2px solid var(--forest); border-radius: var(--pill); }
.status li { display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: var(--tap); padding: 0.2rem; text-align: center; max-width: none; border-radius: var(--pill); }
.status .on { background: var(--forest); color: var(--paper); font-weight: 700; }
.status.withdrawn .on { background: var(--sand); color: var(--ink); text-decoration: line-through; }

/* Family plans */
.plan-cards { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; margin: 0 0 1rem; }
.plan { display: flex; flex-direction: column; max-width: none; border: 2px solid var(--forest); border-top: 8px solid var(--sage); border-radius: var(--radius); background: var(--paper); padding: 1rem; }
.plan h3 { margin-bottom: 0.1rem; }
.plan-for { font-weight: 700; color: var(--ochre-text); }
.plan-price { margin-bottom: 0.5rem; font-family: var(--font-head); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: var(--fs-4); line-height: 1.2; color: var(--forest); }
.plan .check { align-items: flex-start; }
.plan .check input { margin-top: 0.2rem; }
.plan-cta { margin: auto 0 0; padding-top: 0.5rem; }
.plan-cta :is(.btn, .cta) { width: 100%; }
.plan-sub { display: block; font-weight: 400; }

/* ---------- v3 additions ---------- */

/* Drawn map: colours come from the tokens so the dark theme reaches it. */
.m-land { fill: var(--sage-tint); }
.m-water { fill: var(--map-water); }
.m-park { fill: var(--sage); opacity: 0.35; }
.m-road { stroke: var(--paper); }
.m-pin { fill: var(--forest); stroke: var(--paper); }
.m-pin-t { fill: var(--paper); }

.opt-card, .tri-opts span, .tip-i { transition: background-color 0.18s ease, color 0.18s ease; }

/* "How to read this entry" is a key, not an object: no box. */
.callout.values-key { border: 0; border-left: 8px solid var(--sage); border-radius: 0; background: none; padding: 0.25rem 0 0.25rem 1rem; }

/* Info tip, one rule for the whole site: an "i" button opens its text as a popup over the page (tip.js). Never hover-only. */
.tip-btn {
  display: inline-grid; place-items: center; flex: none; width: 2.4rem; min-height: 2.4rem; margin: -0.5rem 0; padding: 0;
  border: 0; background: none; color: var(--forest); font: inherit; cursor: pointer; vertical-align: middle;
}
.tip-i {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 2px solid var(--forest); border-radius: var(--r-badge);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-small); line-height: 1;
}
.tip-btn[aria-expanded="true"] .tip-i { background: var(--forest); color: var(--paper); }
.tip-pop {
  position: fixed; left: 0; top: 0; z-index: 60; display: block; width: max-content; max-width: min(22rem, calc(100vw - 16px));
  max-height: calc(100vh - 16px); overflow: auto; margin: 0; padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule); border-top: 6px solid var(--sage); border-radius: 14px; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-small); font-weight: 400; line-height: 1.45; text-align: left; white-space: normal;
  box-shadow: 0 14px 34px -10px var(--cta-shadow);
}

/* FAQ, one rule for the whole site: HF's accordion in HLG colours. Each question is its own card with a
   round chevron that turns. One is open at a time (the details share a name) and the first starts open. No script. */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; max-width: 52rem; }
.faq-item { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sand); overflow: hidden; }
.band .faq-item, .faq .faq-item { background: var(--paper); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 0.8rem 1.25rem;
  list-style: none; cursor: pointer; font-weight: 700; line-height: 1.3; color: var(--ink); transition: background-color 0.2s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:focus-visible { outline: 3px solid var(--ochre); outline-offset: -3px; border-radius: var(--radius); }
.faq-chev { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--sage-tint); color: var(--forest); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq-chev .ic { width: 1.1rem; height: 1.1rem; stroke-width: 2.75; vertical-align: 0; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item > div { padding: 0 1.25rem 1rem; max-width: 76ch; }
.faq-item > div > :last-child { margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) { .faq-item > summary:hover { background: var(--sage-tint); } }
@media (prefers-reduced-motion: reduce) { .faq-chev { transition: none; } }

/* "In short": the key facts, first thing under the title. */
.in-short { max-width: 46rem; margin: 0 0 1rem; padding: 0.15rem 0 0.15rem 1rem; border-left: 8px solid var(--sage); }
.in-short h2 { font-size: var(--fs-2); margin-bottom: 0.2rem; }
.in-short dl { margin: 0; }
.in-short dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 0.75rem; }
.in-short dt { font-weight: 700; }
.in-short dd { margin: 0; max-width: none; }
@media (min-width: 768px) { .in-short dl > div { grid-template-columns: 9.5rem minmax(0, 1fr); } }

/* Media band on the entry page: a photo slot and the map share one frame. The space is reserved with aspect-ratio. */
.media { margin: 0 0 1rem; }
.media-band { display: grid; border: 1px solid var(--rule); border-radius: var(--radius); overflow: clip; background: var(--paper); }
.media-pane { position: relative; display: grid; min-width: 0; }
.media-photo { aspect-ratio: 1 / 1; border-bottom: 1px solid var(--rule); }
.media-map { aspect-ratio: 2 / 1; }
.media-map .map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.slot-wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.media-band .photo-slot, .card-media-duo .photo-slot {
  min-height: 0; border: 0; border-radius: 0; color: var(--ink);
  background: repeating-linear-gradient(135deg, var(--paper) 0 14px, var(--sand) 14px 28px);
}
.media-band .photo-slot > * { max-width: 30rem; }
.media-band .photo-slot .ic-lg, .card-media-duo .photo-slot .ic-lg { color: var(--moss); }
.photo-empty a { display: inline-flex; align-items: center; min-height: var(--tap); padding-block: 0; font-weight: 700; }
.media-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding: 0.6rem 0.75rem; border-top: 2px dashed var(--moss); background: var(--paper); }
.media-foot p { margin: 0; font-size: var(--fs-small); }
@media (max-width: 767px) { .media-foot :is(.btn, .cta) { width: 100%; } }
@media (min-width: 768px) {
  .media-band { grid-template-columns: 3fr 2fr; aspect-ratio: 5 / 2; }
  .media-photo, .media-map { aspect-ratio: auto; }
  .media-photo { border-bottom: 0; border-right: 1px solid var(--rule); }
}
@media (min-width: 1024px) { .media-band { aspect-ratio: 3 / 1; } }

/* The one results card that has a photo: the slot first, then a short map, in the same frame. */
.card-media-duo { justify-content: flex-start; gap: 0; }
.card-media-duo .photo-slot { flex: none; aspect-ratio: 4 / 3; border-bottom: 2px dashed var(--moss); }
.card-media-duo .map { height: auto; aspect-ratio: 3 / 1; }

/* Loading skeleton for the results list: the shape of the cards, no spinner. */
.review-links { flex: 1 1 100%; margin: 0; max-width: none; }
.review-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.sk-card .card-body { display: grid; gap: 0.75rem; align-content: start; }
.sk, .sk-media { display: block; border-radius: var(--r-badge); background: var(--sage-tint); }
.sk-media { min-height: 9rem; border-radius: 0; }
.sk-title { height: 1.8rem; width: 60%; }
.sk-line { height: 1rem; width: 85%; }
.sk-line.short { width: 45%; }
.sk-chips { height: 2rem; width: 70%; }
.sk-rows { height: 7rem; background: none; border-block: 1px solid var(--rule); }
.sk-btns { height: var(--btn); width: 75%; border-radius: var(--pill); }
.skeleton .sk, .skeleton .sk-media { animation: sk-pulse 1.4s ease-in-out infinite; }
@keyframes sk-pulse { 50% { opacity: 0.5; } }

/* Phones: buttons that sit side by side are equal in width and keep their order. */
@media (max-width: 767px) {
  .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
  .btn-row > :is(.btn, .cta) { width: 100%; min-width: 0; }
  .btn-row > :is(.btn, .cta):first-child:nth-last-child(odd of :is(.btn, .cta)), .btn-row > [hidden] + :is(.btn, .cta), .btn-row > :not(.btn, .cta) { grid-column: 1 / -1; }
}

/* ---------- v4 additions ---------- */

/* Primary button: HF's approved button in HLG colors. Copied from CTA-SPEC.md as written. */
.cta{--tx:0px;--ty:0px;--rx:0deg;--ry:0deg;--s:1;--py:0px;--mx:50%;--my:50%;
  position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:48px;padding:6px 6px 6px 22px;border:1px solid transparent;border-radius:999px;
  background:var(--cta);color:var(--cta-text);font-family:Nunito,"Atkinson Hyperlegible",sans-serif;font-weight:800;
  font-size:1rem;line-height:1.1;text-decoration:none;cursor:pointer;overflow:hidden;isolation:isolate;
  transform:translate3d(var(--tx),calc(var(--ty) + var(--py)),0) perspective(600px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  transition:transform .5s cubic-bezier(.34,1.56,.64,1),background .25s ease,box-shadow .2s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset 0 -2px 0 rgba(0,0,0,.18),0 3px 0 var(--cta-deep),0 10px 18px -6px var(--cta-shadow)}
.cta.big{min-height:56px;font-size:1.0625rem;padding-left:26px}
.cta.moving{transition:transform .12s linear,background .25s ease,box-shadow .2s ease}
.cta::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:radial-gradient(circle 90px at var(--mx) var(--my),var(--cta-glow),transparent 70%);opacity:0;transition:opacity .3s ease}
.cta::after{content:"";flex:none;width:36px;height:36px;border-radius:50%;
  background:var(--cta-chip) no-repeat center/18px var(--cta-arrow);transition:transform .35s cubic-bezier(.23,1,.32,1)}
.cta.big::after{width:44px;height:44px;background-size:20px}
.cta.tel::after{background-image:var(--cta-phone)}            /* phone glyph, grows, does not turn */
.cta.loading::after{background-image:none;border:3px solid var(--cta);border-top-color:transparent;width:22px;height:22px;margin:7px;animation:cta-spin .8s linear infinite}
.cta:hover,.cta:focus-visible{background:var(--cta-deep)}
.cta:hover::before{opacity:1}
.cta:hover::after,.cta:focus-visible::after{transform:rotate(-45deg) scale(1.08)}
.cta.tel:hover::after,.cta.tel:focus-visible::after{transform:scale(1.08)}
.cta:focus-visible{outline:3px solid var(--ochre);outline-offset:3px}
.cta:active{--s:.97;--py:2px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(0,0,0,.18),0 1px 0 var(--cta-deep),0 3px 8px -4px var(--cta-shadow)}
@keyframes cta-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .cta,.cta::after,.cta::before{transition:none}
  .cta:hover::after,.cta:focus-visible::after{transform:none}
  .cta::before{display:none}
  .cta.loading::after{animation:none}
}
@media (pointer:coarse){
  .cta:hover{background:var(--cta)} .cta:hover::before{opacity:0} .cta:hover::after{transform:none}
}
/* HLG fit: a link keeps its label color once visited, the label sits left in a full-width button,
   and it stays on one line at desktop width. */
.cta, .cta:visited { color: var(--cta-text); }
.cta { text-align: left; }
@media (min-width: 768px) { .cta { white-space: nowrap; } }
/* Tight spot (CTA-SPEC.md): the button keeps the height of its row. Chip = outer height less 8px
   of padding and 2px of border; the glyph is 60% of the chip. Used inside the home search bar. */
@media (min-width: 768px) {
  .searchbar .cta { align-self: center; flex: none; min-height: 58px; padding: 4px 4px 4px 24px; }
  .searchbar .cta::after { width: 48px; height: 48px; background-size: 29px; }
}

/* A button that looks like a link: Back, Send a new code. */
.link-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: var(--tap); padding: 0 0.25rem; border: 0; background: none;
  color: var(--forest); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer;
}
.link-btn .ic { transform: scaleX(-1); }

/* Photos. Illustrations made for the design: home page only. Space is reserved by width and height. */
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--sage-tint); }

/* Home hero: text and the pill search on the left, one photo on the right. */
.hero-grid { display: grid; gap: 2rem; }
.hero-grid > * { min-width: 0; }
.hero-photo { box-shadow: 12px 12px 0 var(--sage); margin: 0 12px 12px 0; width: calc(100% - 12px); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; }
}

/* The home search. Phones: stacked full-width pills. From 768px: one pill that holds the place,
   the type and the Search button. */
.searchbar { display: grid; gap: 0.75rem; }
.sb-field label { display: block; margin-bottom: 0.25rem; }
.sb-field input, .sb-field select { max-width: none; }
.searchbar .cta { width: 100%; }
@media (max-width: 767px) { .sb-field input::placeholder { color: transparent; } }
@media (min-width: 768px) {
  .searchbar {
    display: flex; align-items: stretch; gap: 0; max-width: 44rem; padding: 6px;
    border: 2px solid var(--forest); border-radius: var(--pill); background: var(--paper);
    box-shadow: 0 14px 24px -18px var(--cta-shadow);
  }
  .sb-field { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 2px 22px; border-radius: var(--pill); }
  .sb-place { flex-grow: 1.3; }
  .sb-type::before { content: ""; position: absolute; left: -1px; top: 20%; height: 60%; width: 2px; background: var(--rule); }
  .sb-field label { margin: 0; font-size: var(--fs-small); line-height: 1.25; white-space: nowrap; }
  .sb-field .hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sb-field input, .sb-field select { min-height: 0; height: 1.7rem; padding: 0; border: 0; border-radius: 0; background-color: transparent; }
  .sb-field select { padding-right: 24px; background-position: calc(100% - 7px) 50%, 100% 50%; }
  .sb-field input:focus-visible, .sb-field select:focus-visible { outline: 0; box-shadow: none; }
  .sb-field:focus-within { background: var(--sage-tint); outline: 3px solid var(--ochre); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--forest); }
  .sb-field:focus-within::before, .sb-field:focus-within + .sb-field::before { display: none; }
  .searchbar .cta { width: auto; margin-left: 6px; }
}

/* Suggestions under a text box (suggest.js): the list hangs under the box, over the page. One row is 48px or more to hit. */
.suggest-host { position: relative; }
.suggest-list {
  position: absolute; z-index: 30; margin: 0; padding: 6px; list-style: none; max-height: 19rem; overflow-y: auto; text-align: left;
  border: 2px solid var(--forest); border-radius: var(--radius); background: var(--paper); box-shadow: 0 14px 24px -12px var(--cta-shadow);
}
.suggest-list li { display: flex; flex-direction: column; justify-content: center; gap: 1px; max-width: none; min-height: var(--tap); padding: 0.35rem 0.8rem; border-radius: 14px; line-height: 1.25; color: var(--ink); cursor: pointer; }
.suggest-list li.on { background: var(--sage-tint); }
.suggest-list li span { font-weight: 700; }
.suggest-list li small { font-size: var(--fs-small); color: var(--moss); }

/* A one-field search row (for communities): the button lines up with the field, not with the error under it. */
.search-row { display: grid; }
.search-row > .cta { width: 100%; margin-top: 0; }
@media (min-width: 640px) {
  .search-row { grid-template-columns: minmax(0, 32rem) auto; justify-content: start; }
  .search-row > .cta { width: auto; margin-top: calc(1.6rem + 0.25rem); }
}

/* Home sections with a photo. Each one is laid out differently from its neighbours. */
.split { display: grid; gap: 1.5rem; }
.split > * { min-width: 0; }
.split > .photo { aspect-ratio: 3 / 2; object-fit: cover; object-position: 30% 40%; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 3.5rem; align-items: stretch; }
  .split > .photo { aspect-ratio: auto; height: 100%; }
  /* Offset pair: the photo sits on the left and rises out of its band. */
  .split-offset { grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); align-items: start; }
  .split-offset > .photo { order: -1; height: auto; aspect-ratio: 5 / 4; object-position: 50% 50%; margin-top: -4rem; }
}
.photo-wide { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 4%; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .photo-wide { aspect-ratio: 2 / 1; object-position: 50% 8%; } }
.photo-card { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sand); overflow: hidden; }
.photo-card > .photo { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 18%; }
.photo-card-body { padding: 1.25rem; }
.photo-card-body > :last-child { margin-bottom: 0; }

/* Option cards: the same card for the callback questions (one answer) and the home choices (any number). */
.opts { display: grid; gap: 0.75rem; max-width: 32rem; }
.opt { position: relative; display: block; cursor: pointer; font-weight: 400; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt-card {
  display: flex; align-items: center; gap: 0.9rem; min-height: max(64px, 3.5rem); padding: 0.6rem 1rem 0.6rem 0.8rem;
  border: 2px solid var(--forest); border-radius: var(--radius); background: var(--paper); line-height: 1.25;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.opt-ic { width: 2.6rem; height: 2.6rem; padding: 0.55rem; border-radius: 50%; background: var(--sage-tint); color: var(--forest); vertical-align: 0; }
.opt-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.1rem; }
.opt-name { font-size: var(--fs-2); font-weight: 700; }
.opt-sub { color: var(--moss); font-size: var(--fs-small); }
.opt-mark { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 2px solid var(--forest); border-radius: 50%; background: var(--paper); }
.opt input[type="checkbox"] + .opt-card .opt-mark { border-radius: var(--r-badge); }
.opt-mark::after { content: ""; width: 0.45rem; height: 0.85rem; margin-top: -0.2rem; border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg); opacity: 0; }
@media (hover: hover) and (pointer: fine) { .opt:hover .opt-card { background: var(--sand); } }
.opt:active .opt-card { transform: scale(0.99); }
.opt input:checked + .opt-card { background: var(--sage-tint); box-shadow: inset 0 0 0 2px var(--forest); }
.opt input:checked + .opt-card .opt-ic { background: var(--paper); }
.opt input:checked + .opt-card .opt-mark { background: var(--forest); }
.opt input:checked + .opt-card .opt-mark::after { opacity: 1; }
.opt input:focus-visible + .opt-card { outline: 3px solid var(--ochre); outline-offset: 2px; box-shadow: 0 0 0 2px var(--forest); }

/* Filter controls: every check row in the filters is a pill, and so is a billing choice in a plan card. */
.filters .check { margin-bottom: 0.5rem; padding: 0.2rem 20px 0.2rem 14px; border: 2px solid var(--rule); border-radius: var(--pill); background: var(--paper); cursor: pointer; }
.filters .check:has(input:checked) { border-color: var(--forest); background: var(--sage-tint); }
.plan .tri .check { margin-bottom: 0.5rem; padding: 0.6rem 1rem; border: 2px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.plan .tri .check:has(input:checked) { border-color: var(--forest); background: var(--sage-tint); }
.check.box { padding: 0.75rem 1rem; border: 2px solid var(--forest); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.check.box.invalid { border: 3px solid var(--brick); background: var(--brick-tint); }

/* Callback: one question per screen in a centered column. */
.stepper-wrap { max-width: 34rem; }
.stepper-wrap h1 { font-size: var(--fs-3); }
.stepper-wrap .lede { font-size: var(--fs-1); }
.step h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 1.9rem); margin-bottom: 0.4rem; }
.q-help { margin: 0 0 1rem; color: var(--moss); }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 32rem; margin-top: 1.5rem; }
.step-nav .cta { margin-left: auto; min-width: 12rem; }
@media (max-width: 479px) { .step-nav .cta { flex: 1 1 auto; min-width: 0; } }

/* Progress: four labelled questions and "Your details". Done, current and still to come. */
.cb-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 1.25rem 0 1.75rem; }
.cb-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.3rem; max-width: none; text-align: center; font-size: var(--fs-small); line-height: 1.2; color: var(--moss); }
.cb-steps li::before { content: ""; position: absolute; top: calc(1.2rem - 2px); right: 50%; width: 100%; height: 4px; background: var(--rule); }
.cb-steps li:first-child::before { display: none; }
.cb-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid var(--rule); border-radius: 50%; background: var(--paper); color: var(--moss); font-family: var(--font-word); font-weight: 800; line-height: 1; }
.cb-dot .ic { width: 1.2rem; height: 1.2rem; }
.cb-ok { display: none; }
.cb-steps .done, .cb-steps .now { color: var(--ink); font-weight: 700; }
.cb-steps .done::before, .cb-steps .now::before { background: var(--forest); }
.cb-steps .done .cb-dot { border-color: var(--forest); background: var(--sage-tint); color: var(--forest); }
.cb-steps .done .cb-n { display: none; }
.cb-steps .done .cb-ok { display: block; }
.cb-steps .now .cb-dot { border-color: var(--forest); background: var(--forest); color: var(--paper); box-shadow: 0 0 0 4px var(--sage-tint); }

/* Loader after question 4. The base state is the finished state: all four tiles shown, bar full.
   The animation only delays it, so with reduced motion (animation off) everything is simply there. */
.load-bar { height: 10px; margin: 1rem 0 1.5rem; border-radius: var(--pill); background: var(--sage-tint); overflow: hidden; }
.load-bar span { display: block; height: 100%; width: 100%; border-radius: var(--pill); background: var(--forest); transform-origin: 0 50%; animation: load-fill 4.2s linear both; }
.load-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0 0 1rem; }
.load-tile { max-width: none; }
.load-frame { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--sage-tint); overflow: hidden; }
/* A tile that is still waiting pulses as a sage skeleton, and stops when its picture comes in. */
.load-tile:nth-child(2) .load-frame { animation: sk-pulse 0.9s ease-in-out 1; }
.load-tile:nth-child(3) .load-frame { animation: sk-pulse 0.9s ease-in-out 2; }
.load-tile:nth-child(4) .load-frame { animation: sk-pulse 0.9s ease-in-out 3; }
.load-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.load-cap { display: block; margin-top: 0.5rem; font-weight: 700; line-height: 1.25; }
.load-frame img, .load-cap { animation: load-in 0.5s ease-out both; }
.load-tile:nth-child(2) :is(img, .load-cap) { animation-delay: 0.9s; }
.load-tile:nth-child(3) :is(img, .load-cap) { animation-delay: 1.8s; }
.load-tile:nth-child(4) :is(img, .load-cap) { animation-delay: 2.7s; }
@keyframes load-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes load-fill { from { transform: scaleX(0); } }
@media (min-width: 768px) { .load-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Desktop: the row of tiles is wider than the text column and stays centered on it. */
@media (min-width: 900px) { .load-tiles { width: min(50rem, 100vw - 3rem); margin-left: 50%; transform: translateX(-50%); gap: 1.25rem; } }

/* Sign-up: one field per row with a big label; a reassurance and, on wide screens, an illustration beside it. */
.step .field label { font-size: 1.1rem; }
.step .field .hint { font-size: var(--fs-small); }
.su-side { margin: 1.25rem 0 0; max-width: 32rem; }
.su-art { display: none; }
.su-note { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--sage-tint); }
.su-note .ic { margin-top: 0.15em; color: var(--forest); }
/* Wide screens: the side block sits in the margin to the right of the column, so the column never moves. */
@media (min-width: 1260px) {
  .su-grid { position: relative; }
  .su-side { position: absolute; left: calc(100% + 2rem); top: 0; width: 12.5rem; margin: 0; }
  .su-art { display: block; margin-bottom: 1rem; }
}
/* Code: one pill, large digits. */
.code-input { max-width: 17rem !important; min-height: 4.2rem !important; font-size: var(--fs-4) !important; font-variant-numeric: tabular-nums; letter-spacing: 0.3em; text-align: center; }
.sent-mark { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: 0.6rem; border-radius: 50%; background: var(--forest); color: var(--paper); vertical-align: -0.15em; }
.sent-mark .ic { width: 1.3rem; height: 1.3rem; }

/* Reduced motion: every transition and animation is off. The press on a button stays, because it is not animated. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: black on white, sources kept ---------- */

@media print {
  :root, :root[data-theme] {
    color-scheme: light;
    --paper: #FFFFFF; --ink: #000000; --forest: #000000; --moss: #000000; --sand: #FFFFFF; --sage-tint: #FFFFFF;
    --ochre: #FFFFFF; --on-ochre: #000000; --ochre-text: #000000; --brick: #000000; --brick-tint: #FFFFFF; --rule: #000000;
  }
  html { font-size: 100%; }
  .site-head .nav, .crumbs, .filters, .toolbar, .pager, .btn, .cta, .btn-row, .cmp-tools, .cmp-phone, .cmp-remove,
  .skip, .map, .media-map, .sheet-only, .review-bar, .step-nav, .cb-steps, .loader, .photo, .ask, form, .site-foot .foot-grid, button.chip { display: none !important; }
  .cmp-head { position: static; }
  .cmp[data-pair] .c0, .cmp[data-pair] .c1, .cmp[data-pair] .c2 { display: revert; }
  details::details-content { content-visibility: visible; display: block; }
  .badge-none { border-style: dashed; }
  .card, .fact, tr, figure, .callout { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; }
  .ribbon { border-bottom: 1px solid var(--rule); }
  .tip-btn, .skeleton, .media-foot :is(.btn, .cta) { display: none !important; }
  .tip-pop { position: static; width: auto; max-width: none; max-height: none; box-shadow: none; }
  .tip-pop[hidden] { display: block !important; }
}

/* ---------- A token with depth: a lit face, a darker rim under it and a soft shadow on the ground ----------
   --tk is the base colour (gold by default), --tk-ink the glyph on it. Every shade is mixed from --tk, so the dark
   theme follows. Used by the home page's trust cards (gold) and by "Where to next" (forest). */
.ic3d {
  --tk: var(--ochre); --tk-ink: var(--on-ochre); --tk-cut: rgba(255, 255, 255, 0.6);
  --tk-hi: color-mix(in oklab, var(--tk), white 55%); --tk-lo: color-mix(in oklab, var(--tk), black 22%); --tk-rim: color-mix(in oklab, var(--tk), black 45%);
  border-radius: 50%; background: radial-gradient(circle at 32% 24%, var(--tk-hi), var(--tk) 48%, var(--tk-lo));
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.75), inset 0 -3px 4px rgba(0, 0, 0, 0.2), inset 0 0 0 1px var(--tk-rim),
    0 1px 0 var(--tk-rim), 0 2px 0 var(--tk-rim), 0 3px 0 var(--tk-rim), 0 4px 0 var(--tk-rim), 0 9px 9px -3px rgba(0, 0, 0, 0.4);
  color: var(--tk-ink); transform: perspective(9rem) rotateX(18deg);
}
.ic3d { flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: 5px; }
.ic3d .ic { width: 1.45rem; height: 1.45rem; stroke-width: 2.2; vertical-align: 0; filter: drop-shadow(0 1px 0 var(--tk-cut)); }
/* The same token in the site's green. */
.ic3d-site { --tk: var(--forest); --tk-ink: var(--paper); --tk-cut: rgba(0, 0, 0, 0.35); --tk-hi: color-mix(in oklab, var(--tk), white 38%); }

/* A closing panel: the site's raised card (2px forest edge, sage offset), one message, one button, a picture at the right.
   pricing.html: Plus+ and the guarantee shield. city.html: the sister guide and its logo. */
.promo { display: grid; gap: 1.5rem; align-items: center; padding: 1.5rem 1.25rem; border: 2px solid var(--forest); border-radius: var(--radius); background: var(--sand); box-shadow: 10px 10px 0 var(--sage); }
.promo h2 { margin-bottom: 0.75rem; }
.promo p { margin: 0 0 1rem; max-width: 46ch; }
.promo-feats { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.promo-feats li { display: flex; align-items: flex-start; gap: 0.6rem; max-width: none; font-weight: 700; }
.promo-feats .ic { margin-top: 0.15em; color: var(--forest); }
.promo .promo-cta { margin: 0; }
.promo .promo-shield { width: 9rem; justify-self: center; }
@media (min-width: 768px) {
  .promo { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; padding: 2rem 3rem 2rem 2.25rem; }
  /* The shield is 65% as tall as the panel, in the middle of a column kept free for it at the right. */
  .promo:has(.promo-shield) { position: relative; grid-template-columns: minmax(0, 1fr) 14rem; }
  .promo .promo-shield { position: absolute; right: 3rem; top: 17.5%; width: 14rem; height: 65%; }
}
/* The price sentence stays on one line where the panel is wide enough for it. */
.promo .promo-price { max-width: none; }
@media (min-width: 1100px) { .promo .promo-price { white-space: nowrap; } }
.promo-logo { display: block; width: min(100%, 15rem); height: auto; justify-self: center; padding: 0.6rem 0.8rem; border-radius: var(--r-badge); background: var(--logo-ground); }
.promo-new { font-weight: 400; }
@media (min-width: 768px) { .promo-logo { width: 19rem; } }

/* ---------- Where to next: HF's closing panel, above the footer (home page and for-communities) ---------- */
.next { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.9rem; padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--forest); }
.next h2 { flex: 0 0 auto; align-self: center; max-width: 5em; margin: 0 0.6rem 0 0; font-size: var(--fs-4); line-height: 1.08; color: var(--paper); text-wrap: balance; }
.next-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 1.1rem 0.95rem; border-radius: var(--radius); background: var(--paper); }
.next-card p { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0; max-width: none; font-family: var(--font-head); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: var(--fs-2); line-height: 1.2; color: var(--ink); }
/* Three buttons of one size, each label on one line. Only "Moving soon" has the main button. */
.next-card :is(.cta, .btn) { width: 100%; min-height: 48px; font-size: 1rem; white-space: nowrap; }
.next-card .cta { padding: 5px 5px 5px 18px; }
.next-card .cta::after { width: 36px; height: 36px; background-size: 18px; }
.next-card .btn { padding: 0.3rem 18px; }
.next-card p { white-space: nowrap; }
.next-card .ic3d { width: 2.3rem; height: 2.3rem; }
.next-card .ic3d .ic { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1200px) { .next-card p { gap: 0.55rem; font-size: 1.1rem; } }
/* Under 1200px the heading takes its own line, so each label still fits on one line. Under 1000px the cards stack. */
@media (max-width: 1199px) { .next h2 { flex-basis: 100%; max-width: none; margin: 0; } }
@media (max-width: 999px) { .next-card { flex-basis: 100%; } }
