/*
 * Rescuely Porch - the Front Porch design. Big, warm, accessible-first: 20px base, AAA body contrast,
 * 48px targets, light and dark (prefers-color-scheme, overridden by html[data-theme]), text size by
 * html[data-text]. Ported from the design demo's site.css with its class names unchanged, so template markup
 * can be lifted from the demo's build.mjs. Additions for the real site (support form, FAQ ask box, details
 * answers, placeholder banners, testimonials, WordPress furniture) are at the end.
 */

:root {
  --bg: #FFFAF0;
  --surface: #FFFFFF;
  --sun: #F6C445;
  --sun-edge: #B98A12;
  --sun-soft: #FFF1CC;
  --meadow: #1E5631;
  --meadow-soft: #EAF4E4;
  --sky: #1A4F8A;
  --sky-soft: #DDEBF7;
  --ink: #2B2118;
  --ink-2: #4A3F33;
  --line: #E6D8BC;
  --link: #1E5631;
  --focus: #1A4F8A;
  --on-sun: #2B2118;
  --doodle-sun: #E0A21B;
  --doodle-green: #4C8B57;
  --doodle-sky: #4D86C2;
  --doodle-heart: #D9694F;
  --shadow: 0 0.15rem 0 rgba(43, 33, 24, 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #221D18;
    --surface: #2D2721;
    --sun: #F6CF5A;
    --sun-edge: #F6CF5A;
    --sun-soft: #3A2F1E;
    --meadow: #A6D9A8;
    --meadow-soft: #25342A;
    --sky: #8FC3F2;
    --sky-soft: #1F2C3A;
    --ink: #F7EFE2;
    --ink-2: #D8CCBA;
    --line: #4A4036;
    --link: #A6D9A8;
    --focus: #8FC3F2;
    --on-sun: #221D18;
    --doodle-sun: #F6CF5A;
    --doodle-green: #8CC890;
    --doodle-sky: #8FC3F2;
    --doodle-heart: #F0957D;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #221D18;
  --surface: #2D2721;
  --sun: #F6CF5A;
  --sun-edge: #F6CF5A;
  --sun-soft: #3A2F1E;
  --meadow: #A6D9A8;
  --meadow-soft: #25342A;
  --sky: #8FC3F2;
  --sky-soft: #1F2C3A;
  --ink: #F7EFE2;
  --ink-2: #D8CCBA;
  --line: #4A4036;
  --link: #A6D9A8;
  --focus: #8FC3F2;
  --on-sun: #221D18;
  --doodle-sun: #F6CF5A;
  --doodle-green: #8CC890;
  --doodle-sky: #8FC3F2;
  --doodle-heart: #F0957D;
  --shadow: none;
  color-scheme: dark;
}

/* Text size: percentages keep the browser's own size setting as the starting point. */
html { font-size: 125%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-text="1"] { font-size: 137.5%; }
html[data-text="2"] { font-size: 156.25%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: "Fredoka", "Nunito", "Atkinson Hyperlegible", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); }

p, ul, ol, dl, figure { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
code { font-size: 0.9em; background: var(--sun-soft); padding: 0.05em 0.3em; border-radius: 0.3em; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 0.18em; }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Layout */
.wrap {
  width: 100%;
  max-width: 66rem;
  margin-inline: auto;
  padding-inline: max(16px, 4vw);
}
.prose { max-width: 65ch; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose h2 { margin-top: 1.6em; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.tint { background: var(--sun-soft); }
.section.meadow { background: var(--meadow-soft); }
.section-head { max-width: 65ch; margin-bottom: 1.75rem; }
.section-head p { font-size: 1.1rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 60ch; }
.muted { color: var(--ink-2); }

/* Skip link */
.skip {
  position: absolute;
  left: 16px; top: -10rem;
  z-index: 100;
  background: var(--sun);
  color: var(--on-sun);
  padding: 0.8rem 1.2rem;
  border-radius: 0.6rem;
  font-weight: 700;
}
.skip:focus { top: 16px; }

/* Reading tools (text size, colours). Shown only when JS runs. */
.tools {
  border-bottom: 2px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
}
.tools .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; justify-content: flex-end; padding-block: 0.4rem; }
.tool-group { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.tool-group > span { font-weight: 700; margin-right: 0.2rem; }
.tool-btn {
  font: inherit;
  min-width: 2.6rem; min-height: 2.4rem;
  padding: 0.2rem 0.75rem;
  border: 2px solid var(--ink-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.tool-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tool-btn .s1 { font-size: 1.1em; }
.tool-btn .s2 { font-size: 1.25em; }

/* Header */
.site-head { background: var(--bg); border-bottom: 3px solid var(--line); }
.head-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600;
  font-size: 1.6rem; color: var(--ink); text-decoration: none;
  min-height: 3rem; margin-right: auto;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--sun); color: var(--on-sun);
}
.brand-mark svg { width: 1.6rem; height: 1.6rem; }
.head-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.main-nav { border-top: 2px dashed var(--line); }
.main-nav ul {
  list-style: none; margin: 0; padding: 0.6rem 0;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0.5rem;
}
.main-nav a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3rem; padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--sun-edge);
}
.main-nav a:hover { background: var(--sun-soft); }
.main-nav a.on { background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun-edge); }
@media (max-width: 760px) {
  .main-nav ul { grid-template-columns: 1fr 1fr; }
  .main-nav a { border: 2px solid var(--line); padding-inline: 0.5rem; }
  .head-cta { display: contents; }
  .head-cta .btn-line { padding-inline: 1rem; }
  .head-cta .btn-sun { flex: 1 1 100%; }
  .tools .tool-theme { display: none; }
  .tools .wrap { justify-content: flex-start; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 3px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.25;
  text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn-sun { background: var(--sun); color: var(--on-sun); border-color: var(--sun-edge); box-shadow: var(--shadow); }
.btn-sun:hover { filter: brightness(1.05); text-decoration: underline; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--sun-soft); text-decoration: underline; }
.btn-big { font-size: 1.2rem; min-height: 3.4rem; padding-inline: 1.7rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }

/* Breadcrumbs */
.crumbs { padding-top: 1.25rem; font-size: 0.95rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "\203A"; color: var(--ink-2); font-weight: 700; }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Page opening */
.page-open { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(1rem, 3vw, 2rem); position: relative; }
.page-open h1 { max-width: 22ch; }
.eyebrow {
  display: inline-block;
  font-weight: 700; font-size: 0.95rem;
  background: var(--sun-soft); color: var(--ink);
  border: 2px solid var(--sun-edge);
  padding: 0.15rem 0.8rem; border-radius: 999px;
  margin-bottom: 1rem;
}

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); } }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem); max-width: 18ch; }
.reassure { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-weight: 700; }
.reassure li { display: flex; align-items: center; gap: 0.45rem; }
.reassure svg, .ticks svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--meadow); }

/* Biscuit phone mockup (illustrative) */
.phone-fig { margin: 0; position: relative; justify-self: center; width: min(100%, 20rem); }
.phone {
  background: #2B2118; border-radius: 2.4rem; padding: 0.7rem;
  border: 3px solid var(--line);
  box-shadow: 0 1rem 2rem rgba(43, 33, 24, 0.18);
}
.phone-screen { background: #FFFAF0; color: #2B2118; border-radius: 1.8rem; padding: 1.2rem 1rem 1.3rem; font-size: 0.8rem; }
.phone-name { font-family: "Fredoka", system-ui, sans-serif; font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.phone-pill { font-family: "Atkinson Hyperlegible", sans-serif; font-size: 0.7rem; background: #DCEFD6; color: #1E5631; padding: 0.1rem 0.6rem; border-radius: 999px; font-weight: 700; }
.phone-meta { color: #4A3F33; margin: 0.2rem 0 0.8rem; }
.phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.phone-btns span {
  display: grid; place-items: center; min-height: 3rem;
  border: 2px solid #1E5631; border-radius: 0.8rem; background: #fff;
  font-weight: 700; color: #1E5631;
}
.phone-btns span.issue { border-color: #B24A35; color: #B24A35; }
.phone-issue { background: #FBEAE6; color: #8A3524; border-radius: 0.7rem; padding: 0.45rem 0.7rem; margin-bottom: 0.8rem; font-weight: 700; }
.phone-fig figcaption { font-size: 0.9rem; color: var(--ink-2); text-align: center; margin-top: 0.8rem; }
.phone-fig .doodle { position: absolute; }
.phone-fig .d1 { width: 4.5rem; top: -1.2rem; right: -1rem; color: var(--doodle-heart); transform: rotate(12deg); }
.phone-fig .d2 { width: 4rem; bottom: 2.5rem; left: -1.6rem; color: var(--doodle-green); transform: rotate(-14deg); }

/* Doodles */
.doodle { display: block; color: var(--doodle-sun); }
.doodle path, .doodle circle, .doodle ellipse, .doodle line, .doodle polyline {
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.head-doodle { display: flex; align-items: center; gap: 0.8rem; }
.head-doodle .doodle { width: 3.2rem; height: 3.2rem; flex: none; }
.dz-green { color: var(--doodle-green); }
.dz-sky { color: var(--doodle-sky); }
.dz-heart { color: var(--doodle-heart); }
.dz-sun { color: var(--doodle-sun); }

/* Big numbered steps (home "Start here" and guides) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1.25rem;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 1.75rem);
}
.step-num {
  display: grid; place-items: center;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--sun); color: var(--on-sun);
  border: 3px solid var(--sun-edge);
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.9rem;
}
.step h2, .step h3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); margin-bottom: 0.4rem; }
.step-body > :last-child { margin-bottom: 0; }
.step-body p { max-width: 62ch; }
.step-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; margin-top: 0.75rem; }
.step-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 700; }
@media (max-width: 520px) {
  .step { grid-template-columns: minmax(0, 1fr); }
}
.step:has(.did input:checked) { background: var(--meadow-soft); border-color: var(--meadow); }
.step:has(.did input:checked) .step-num { background: var(--meadow); color: var(--bg); border-color: var(--meadow); }

/* "I did this" */
.did {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 3rem; margin-top: 1rem;
  padding: 0.35rem 1.1rem 0.35rem 0.75rem;
  border: 2px solid var(--ink-2); border-radius: 999px;
  background: var(--bg);
  font-weight: 700; cursor: pointer;
}
.did input { width: 1.6rem; height: 1.6rem; margin: 0; accent-color: #1E5631; cursor: pointer; }
.did:has(input:checked) { border-color: var(--meadow); }
.progress { font-weight: 700; font-size: 1.1rem; }
.progress-bar { height: 0.9rem; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0.4rem 0 0.9rem; max-width: 26rem; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--meadow); border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) { .progress-bar span { transition: width 0.25s ease; } }

/* Guide meta */
.facts-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.facts-row li { background: var(--surface); border: 2px solid var(--line); border-radius: 1rem; padding: 0.6rem 1rem; }
.facts-row b { display: block; font-size: 0.85rem; color: var(--ink-2); }
.tip {
  background: var(--sun-soft); border: 3px solid var(--sun-edge);
  border-radius: 1.5rem; padding: 1.25rem 1.5rem; margin-top: 2rem; max-width: 70ch;
}
.tip h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 0.6rem; }
.tip h2 .doodle { width: 2.2rem; height: 2.2rem; }
.tip p:last-child { margin-bottom: 0; }
.coming {
  background: var(--sky-soft); border: 3px dashed var(--sky);
  border-radius: 1.5rem; padding: 1.25rem 1.5rem; max-width: 70ch;
}
.coming p:last-child { margin-bottom: 0; }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.card {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.25rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.card h3 { margin-bottom: 0.2rem; }
.card p { margin-bottom: 0.4rem; }
.card > :last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 0.4rem; font-weight: 700; display: inline-flex; align-items: center; min-height: 3rem; }
.card-link { position: relative; }
.card-link:hover { border-color: var(--sun-edge); }
.card-link:has(a.stretch:focus-visible) { outline: 4px solid var(--focus); outline-offset: 3px; }
.card-link a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: 1.5rem; }
.card-link a.stretch:focus-visible { outline: none; }
.card .doodle { width: 2.8rem; height: 2.8rem; }

/* Badges */
.badge {
  display: inline-block; font-weight: 700; font-size: 0.85rem; line-height: 1.3;
  padding: 0.15rem 0.7rem; border-radius: 999px; border: 2px solid currentColor;
  align-self: flex-start; max-width: 100%;
}
.badge.free, .badge.live { color: var(--meadow); background: var(--meadow-soft); }
.badge.paid, .badge.beta { color: var(--ink); background: var(--sun-soft); border-color: var(--sun-edge); }
.badge.soon, .badge.planned { color: var(--sky); background: var(--sky-soft); }
.badge.auto { color: var(--meadow); background: var(--meadow-soft); }

/* Ticked lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 0.6rem; }
.ticks.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.6rem 1.5rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks svg { margin-top: 0.15rem; }
.ticks .badge { margin-left: 0.2rem; }

/* Species chips */
.chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 0.3rem 1rem; font-weight: 700; }

/* Answer card ("Is it really free?") */
.answer {
  background: var(--surface);
  border: 4px solid var(--sun-edge);
  border-radius: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: grid; gap: 1rem 2rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) { .answer { grid-template-columns: auto minmax(0, 1fr); } }
.answer .answer-yes {
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(3rem, 2rem + 5vw, 5rem); line-height: 1;
  color: var(--meadow);
}
.answer p { font-size: 1.15rem; }
.answer p:last-child { margin-bottom: 0; }
.price { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.5rem; color: var(--ink); }

/* Q&A lists */
.qa-list { display: grid; gap: 1rem; max-width: 70ch; }
.qa {
  background: var(--surface); border: 2px solid var(--line); border-radius: 1.25rem;
  padding: 1.1rem 1.4rem; scroll-margin-top: 1rem;
}
.qa h3, .qa .qh { font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin-bottom: 0.5rem; }
.qa > :last-child { margin-bottom: 0; }
.qa:target { border-color: var(--sun-edge); box-shadow: 0 0 0 4px var(--sun-soft); }
.qa .back { font-size: 0.9rem; display: inline-flex; min-height: 2.75rem; align-items: center; }
.q-index { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.15rem; max-width: 70ch; }
.q-index a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.25rem; }
.faq-group { margin-top: 2.5rem; }
.faq-group:first-of-type { margin-top: 0; }
.faq-group > p.intro { color: var(--ink-2); font-size: 1.05rem; max-width: 65ch; }

/* Ask us */
.ask {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--meadow-soft);
  border: 3px solid var(--meadow);
  border-radius: 1.75rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  display: grid; gap: 0.5rem 1.5rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) { .ask { grid-template-columns: auto minmax(0, 1fr) auto; } }
.ask .doodle { width: 3.6rem; height: 3.6rem; color: var(--doodle-heart); }
.ask h2 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.ask p { margin: 0; }

/* Search */
.search { background: var(--surface); border: 3px solid var(--sun-edge); border-radius: 1.5rem; padding: 1.25rem 1.4rem; margin-bottom: 2.5rem; max-width: 46rem; }
.search label { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; }
.search-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.search input {
  flex: 1 1 14rem; min-width: 0;
  font: inherit; font-size: 1.1rem;
  min-height: 3.2rem; padding: 0.4rem 1rem;
  border: 3px solid var(--ink-2); border-radius: 0.9rem;
  background: var(--bg); color: var(--ink);
}
.search-hint { font-size: 0.95rem; color: var(--ink-2); margin: 0.5rem 0 0; }
.results { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.results li { border-top: 2px dashed var(--line); padding-top: 0.5rem; }
.results a { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 700; }
.results small { display: block; color: var(--ink-2); font-size: 0.85rem; }

/* Integrations and checks */
.status-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0 0 2.5rem; }
.status-list .card h3 { font-size: 1.25rem; }

/* Definition-style facts */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin: 0; }
.facts .fact { background: var(--surface); border: 2px solid var(--line); border-radius: 1.25rem; padding: 1.1rem 1.3rem; }
.facts dt { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.2rem; margin-bottom: 0.3rem; }
.facts dd { margin: 0; }

/* About photos */
.prose-photo { margin: 1.5rem 0 2rem; }
.prose-photo img { border-radius: 1.25rem; border: 3px solid var(--line); display: block; max-height: 32rem; width: auto; }
.prose-photo figcaption { font-size: 0.95rem; color: var(--ink-2); margin-top: 0.5rem; }
.pull { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.6rem; color: var(--meadow); }

/* Module groups */
.group { margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.group:last-child { margin-bottom: 0; }
.group-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.group-head .doodle { width: 3.4rem; height: 3.4rem; flex: none; }
.group-head h2 { margin: 0; }
.group > p { max-width: 65ch; font-size: 1.1rem; }
.mod-card h3 { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: center; }
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 70ch; }

/* Closing band */
.close-band { background: var(--sun-soft); border-top: 3px solid var(--sun-edge); padding-block: clamp(2.5rem, 6vw, 4rem); }
.close-band h2 { max-width: 24ch; }
.close-band p { max-width: 60ch; font-size: 1.1rem; }

/* Footer */
.site-foot { background: var(--surface); border-top: 3px solid var(--line); padding-block: 2.5rem 2rem; font-size: 0.95rem; }
.foot-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.site-foot h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot-note { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 2px dashed var(--line); color: var(--ink-2); display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.foot-note .doodle { width: 2.4rem; height: 2.4rem; color: var(--doodle-green); }
.foot-note p { margin: 0; }

/* Morning beats */
.beats { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.beat-time { font-weight: 700; color: var(--ink-2); }

/* Support */
.ticket { background: var(--surface); border: 3px solid var(--sun-edge); border-radius: 1.5rem; padding: 1.4rem 1.6rem; margin-bottom: 2rem; max-width: 65ch; }
.ticket h2 { margin-top: 0; }

@media print {
  .tools, .main-nav, .head-cta, .ask, .close-band, .site-foot { display: none; }
}

/* Guides: extra-large step text */
.steps[data-guide] .step-body p { font-size: 1.15rem; }
.chips a { display: inline-flex; align-items: center; min-height: 2.6rem; }
.chips li:has(a) { padding-block: 0; }


/* =====================================================================================================
   Real-site additions
   ===================================================================================================== */

/* The ask box sits in its own .wrap with space below it, as the demo's layout() gave it. */
.ask-wrap { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Answers as native <details> (help topics and /faq/). Works with no JavaScript. */
details.qa > summary.qh {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 48px;
  margin: -0.35rem -0.5rem 0; padding: 0.35rem 0.5rem;
  border-radius: 0.75rem;
}
details.qa > summary.qh::-webkit-details-marker { display: none; }
details.qa > summary.qh::before {
  content: "+";
  flex: none;
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 2px solid var(--sun-edge); background: var(--sun-soft); color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.2rem; line-height: 1;
}
details.qa[open] > summary.qh::before { content: "\2212"; }
details.qa > summary.qh:hover { background: var(--sun-soft); }
details.qa > summary.qh:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
details.qa[open] > summary { margin-bottom: 0.5rem; }
details.qa:target { border-color: var(--sun-edge); box-shadow: 0 0 0 4px var(--sun-soft); }
.faq-answer { padding-left: 2.65rem; }
.faq-answer > :last-child { margin-bottom: 0; }
@media (max-width: 520px) { .faq-answer { padding-left: 0; } }
.faq-section, .faq-group { scroll-margin-top: 1rem; }
.faq-empty { font-weight: 700; }

/* Search-style boxes: the help search, the /faq/ filter, and the FAQ ask box (assets/faq-ask.js). */
.search input[type="email"], .search textarea { width: 100%; }
.search textarea {
  display: block;
  font: inherit; font-size: 1.1rem;
  min-height: 7rem; padding: 0.6rem 1rem;
  border: 3px solid var(--ink-2); border-radius: 0.9rem;
  background: var(--bg); color: var(--ink);
  resize: vertical;
}
.search input:focus-visible, .search textarea:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }
.faq-ask-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.faq-ask-hint, .faq-filter-status { font-size: 0.95rem; color: var(--ink-2); margin: 0.5rem 0 0; }
.faq-ask-output:not(:empty) { margin-top: 1rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.faq-ask-output > :last-child { margin-bottom: 0; }
.ask-answer { font-size: 1.1rem; }
.ask-source, .ask-note { font-size: 0.95rem; color: var(--ink-2); }
.ask-source a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ask-miss {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.4rem 1.2rem;
  border: 3px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.ask-miss:hover { background: var(--sun-soft); text-decoration: underline; }
.faq-ask-escalate { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.faq-ask-escalate form { display: grid; gap: 0.5rem; }
.faq-ask-escalate label { margin: 0.5rem 0 0; }
.faq-ask-escalate button { justify-self: start; margin-top: 0.5rem; }
.faq-ask-pot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.faq-escalate-status { font-weight: 700; margin: 0.25rem 0 0; }

/* The support form (/support/, assets/support-form.js). */
.support-form {
  background: var(--surface);
  border: 3px solid var(--sun-edge);
  border-radius: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  display: grid; gap: 1.25rem;
  max-width: 46rem;
  margin-bottom: 2rem;
}
.support-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.support-field label { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem; }
.support-field label span { font-weight: 400; color: var(--ink-2); }
.support-field input, .support-field select, .support-field textarea {
  display: block; width: 100%;
  min-height: 3rem;
  font: inherit;
  padding: 0.45rem 0.9rem;
  border: 3px solid var(--ink-2); border-radius: 0.9rem;
  background: var(--bg); color: var(--ink);
}
.support-field textarea { min-height: 10rem; resize: vertical; }
.support-field input:focus-visible, .support-field select:focus-visible, .support-field textarea:focus-visible {
  outline: 4px solid var(--focus); outline-offset: 2px;
}
.support-hint { font-size: 0.95rem; color: var(--ink-2); margin: 0.4rem 0 0; }
.support-pot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.support-challenge { min-height: 4.1rem; }
.support-status { font-weight: 700; margin: 0; }
.support-status:not(:empty) {
  background: var(--sun-soft); border: 3px solid var(--sun-edge); border-radius: 1rem;
  padding: 0.75rem 1rem;
}
.support-portal { margin: 1rem 0 2rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* Placeholder banner (rescuely_placeholder_banner(), on Shelters and Testimonials). */
.placeholder-banner {
  background: var(--sky-soft);
  border: 3px dashed var(--sky);
  border-radius: 1.5rem;
  padding: 1.1rem 1.4rem;
  max-width: 70ch;
  margin-bottom: 2rem;
}
.placeholder-banner strong { display: block; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.2rem; margin-bottom: 0.2rem; }
.placeholder-banner p { margin: 0; }

/* Testimonials */
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.quote { margin: 0; height: 100%; }
.quote blockquote { margin: 0 0 0.75rem; font-size: 1.1rem; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption span { display: block; }
.quote .who { font-weight: 700; }
.quote .where { color: var(--ink-2); font-size: 0.95rem; }
.quote .stat { font-weight: 700; color: var(--meadow); margin-top: 0.6rem; }

/* Shelters */
.card .gets { color: var(--meadow); font-weight: 700; font-size: 0.95rem; margin-top: auto; }

/* WordPress furniture: editor content on page.php / index.php, and core alignment classes. */
.entry-content > * { max-width: 65ch; }
.entry-content > .alignwide { max-width: 66rem; }
.entry-content > .alignfull { max-width: none; }
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption-text, .wp-element-caption { font-size: 0.95rem; color: var(--ink-2); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
#main:focus { outline: none; }
html { scroll-padding-top: 1rem; }

/* Admin bar: the skip link must not hide under it. */
.admin-bar .skip:focus { top: 48px; }

@media print {
  .ask-wrap, .faq-ask, .search[data-search] { display: none; }
}

/* Forced colours: keep the shapes that carry meaning. */
@media (forced-colors: active) {
  .badge, .btn, .tool-btn, .card, .step, .qa { border-color: CanvasText; }
  .tool-btn[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* Fluent Support's portal login (wp_login_form) on /support/: its own blue button fails contrast. */
#loginform label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
#loginform .input {
  display: block; width: 100%; min-height: 3rem; font: inherit; color: var(--ink);
  background: var(--bg); border: 3px solid var(--ink-2); border-radius: 0.9rem; padding: 0.5rem 0.9rem;
}
#loginform .login-remember label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; font-weight: 400; }
#loginform #wp-submit {
  min-height: 48px; padding: 0.6rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--sun); color: var(--on-sun); border: 3px solid var(--sun-edge); border-radius: 999px;
}
#loginform .input:focus-visible, #loginform #wp-submit:focus-visible { outline: 4px solid var(--focus, var(--ink)); outline-offset: 3px; }

/* The Turnstile check is a fixed 300px widget. Keep it from widening the form's grid track,
   and scale it down on phones narrower than it, so the page never scrolls sideways at 320px. */
.support-form > *, .support-row > * { min-width: 0; }
.support-challenge { max-width: 100%; }
@media (max-width: 400px) {
  .support-challenge > * { transform: scale(0.8); transform-origin: left top; }
  .support-challenge { height: calc(65px * 0.8 + 0.5rem); min-height: 0; }
}
