/* Royal Gateway – resident information.
 * Prime Property Management brand guidelines (2025): Merriweather headlines, Poppins body,
 * Dark Green / Teal / Green primary palette, Stone and Light Stone for quiet areas. */

@font-face { font-family: 'Merriweather'; src: url('/assets/fonts/merriweather-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Brand palette */
  --dark-green: #003D42;
  --teal: #169095;
  --green: #36B780;
  --teal-tint: #AED8DA;
  --green-tint: #B6DFD0;
  --grey: #AABDBE;
  --stone: #C9DFDF;
  --light-stone: #F5F9F9;
  /* Working colours */
  --ink: #12302F;          /* body text */
  --muted: #476567;        /* secondary text, AA on Light Stone */
  --teal-ink: #0E7378;     /* teal for small text, AA on white */
  --rule: #8FA6A8;         /* dashed lines and empty markers */
  --green-hover: #4CC793;
  --calm: #E2F3EB;
  --alert: #FCE8E6;        /* "Evacuated" – functional, outside the brand palette */
  --alert-ink: #8C1D18;
  --notice: #FFE7A0;       /* urgent banner – functional, outside the brand palette */
  --notice-ink: #3B2C00;
  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --measure: 40rem;
  --bar: 4.75rem;          /* logo row */
  --nav-row: 3.1rem;       /* navigation row on phones and tablets */
  --header: calc(var(--bar) + var(--nav-row));
}
@media (min-width: 64rem) { :root { --header: var(--bar); } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--light-stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--dark-green); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; text-decoration-color: var(--teal); }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--dark-green); line-height: 1.22; }
h2 { font-size: 1.6875rem; }
h3 { font-size: 1.3125rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--dark-green); padding: 0.75rem 1rem; font-weight: 500; }
.skip:focus { left: 1rem; top: 1rem; }

/* Urgent banner */
.banner { background: var(--notice); color: var(--notice-ink); font-weight: 500; }
.banner-text { padding: 0.8rem 0; max-width: 52rem; }
.banner-text p { margin: 0; }
.banner-text p + p { margin-top: 0.4rem; }
.banner a { color: var(--notice-ink); text-decoration-color: currentColor; }

/* ---------- Header: logo, navigation and call button, sitting on the dark green hero ---------- */
.shell { position: relative; }
.masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.masthead-inner {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand call" "nav nav";
  align-items: center; column-gap: 1rem;
}
.brand { grid-area: brand; display: flex; align-items: center; height: var(--bar); }
.brand img { height: 2.9rem; width: auto; }
.masthead-call {
  grid-area: call; justify-self: end;
  display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; font-weight: 500; text-decoration: none;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem; white-space: nowrap;
  background: var(--dark-green); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
}
.masthead-call svg { color: var(--green); flex: none; }
.masthead-call:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--green); }
@media (max-width: 26rem) {
  .brand img { height: 2.5rem; }
  .masthead-call .num { display: none; }
}

.site-nav { grid-area: nav; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site-nav ul {
  display: flex; justify-content: space-between; gap: 0.5rem; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li { flex: 0 0 auto; }
.site-nav a {
  display: flex; align-items: center; height: var(--nav-row); padding: 0 0.1rem;
  color: #fff; font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: rgba(54, 183, 128, 0.55); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.site-nav a:focus-visible { outline-offset: -3px; }
@media (max-width: 24rem) { .site-nav a { font-size: 0.875rem; } }
@media (max-width: 21rem) { .site-nav ul { gap: 0.25rem; margin: 0 -0.6rem; } .site-nav a { font-size: 0.8125rem; } }
@media (min-width: 40rem) { .site-nav ul { justify-content: flex-start; gap: 2.25rem; } }
@media (min-width: 64rem) {
  .masthead-inner { display: flex; height: var(--bar); }
  .site-nav { border-top: 0; margin: 0 auto 0 clamp(2rem, 4vw, 3.5rem); }
  .site-nav ul { gap: clamp(1.4rem, 2.6vw, 2.4rem); overflow: visible; }
  .site-nav a { height: var(--bar); font-size: 1rem; }
}

/* ---------- Hero band ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--dark-green); color: #fff;
  padding: calc(var(--header) + 2rem) 0 6rem;
}
.hero-page { padding: calc(var(--header) + 1.75rem) 0 5.75rem; }
/* The guidelines' angled green band */
.hero::before {
  content: ''; position: absolute; z-index: -1;
  top: -10%; bottom: -10%; right: 7%; width: 8.5rem;
  background: var(--green);
  transform: skewX(34deg);
}
@media (max-width: 63.99rem) { .hero::before { display: none; } }
@media (min-width: 72rem) { .hero::before { right: 12%; width: 10rem; } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 10vw, 4.4rem); line-height: 1.06; letter-spacing: -0.01em; }
.hero-page h1 { font-size: clamp(2.3rem, 8vw, 3.5rem); }
.hero-kicker { margin: 0 0 0.35rem; color: var(--green); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-sub { color: var(--teal-tint); font-size: 1.1875rem; margin: 0.65rem 0 1.75rem; max-width: var(--measure); }
.hero-page .hero-sub { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.danger-line { margin: 1.25rem 0 0; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.25rem; padding: 0.8rem 1.4rem; border-radius: 0.5rem;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; line-height: 1.25; text-decoration: none;
}
.btn-primary { background: var(--green); color: var(--dark-green); }
.btn-primary:hover { background: var(--green-hover); color: var(--dark-green); }
.btn-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, 0.6); background: rgba(0, 61, 66, 0.55); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
@media (max-width: 30rem) { .actions .btn { width: 100%; } }

/* ---------- Page layout: main column, plus the contact box alongside on wide screens ---------- */
.page { padding-bottom: 1rem; }
@media (min-width: 64rem) {
  .page { display: grid; grid-template-columns: minmax(0, 46rem) minmax(16rem, 20rem); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; padding-bottom: 4rem; }
  .page > .span-all { grid-column: 1 / -1; }
}
.page-main { min-width: 0; }

/* The first card on each page overlaps the hero */
.lift {
  position: relative; max-width: 46rem; margin: -4.25rem 0 0;
  background: #fff; border-top: 0.4rem solid var(--green); border-radius: 0.2rem 0.2rem 0.75rem 0.75rem;
  padding: 1.6rem 1.4rem 1.3rem;
  box-shadow: 0 0 0 1px rgba(0, 61, 66, 0.08), 0 22px 44px -28px rgba(0, 61, 66, 0.55);
}
@media (min-width: 48rem) { .lift { padding: 2rem 2.25rem 1.6rem; } }
.span-all.lift { max-width: none; }
.card-label { display: block; margin: 0; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-green); line-height: 1.4; }
.page-message { margin: 0.6rem 0 0; color: var(--muted); }
.feed-status { max-width: 46rem; margin: 0.9rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* Text from the content Sheet */
.rich p:last-child, .rich ul:last-child { margin-bottom: 0; }
.rich ul { margin: 0 0 1em; padding-left: 1.25rem; }
.rich li { margin: 0.25rem 0; }
.rich li::marker { color: var(--green); }
.rich a { word-break: break-word; }
.rich a[href^="tel:"], .checkin-points a[href^="tel:"] { white-space: nowrap; }

/* Sections */
.block { max-width: var(--measure); padding-top: 3rem; }
.block > h2 { margin-bottom: 0.85rem; }

/* ---------- Updates page ---------- */
.notice-time { margin: 0.35rem 0 0; font-size: 1.25rem; font-weight: 700; color: var(--dark-green); line-height: 1.35; }
.notice-ago { display: block; font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
@media (min-width: 30rem) { .notice-ago { display: inline; margin-left: 0.5rem; } }
.notice-headline { font-size: clamp(1.45rem, 4.6vw, 2rem); margin: 0.8rem 0 0.7rem; }
.notice-body { max-width: var(--measure); }

/* Which buildings are affected */
#buildings-block { max-width: 46rem; }
.buildings { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .buildings { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; } }
.bgroup { background: #fff; border: 1px solid var(--stone); border-radius: 0.75rem; overflow: hidden; }
.bgroup-head { display: flex; align-items: center; gap: 0.55rem; padding: 0.75rem 1.15rem; font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.bgroup-head svg { flex: none; }
.tone-alert .bgroup-head { background: var(--alert); color: var(--alert-ink); }
.tone-calm .bgroup-head { background: var(--calm); color: var(--dark-green); }
.tone-calm .bgroup-head svg { color: #1F8A5B; }
.tone-neutral .bgroup-head { background: var(--light-stone); color: var(--dark-green); border-bottom: 1px solid var(--stone); }
.bgroup-note { padding: 0.9rem 1.15rem 0.1rem; font-size: 1rem; }
.bgroup-list { list-style: none; margin: 0; padding: 0.4rem 1.15rem 0.85rem; }
.bgroup-list li { padding: 0.55rem 0; }
.bgroup-list li + li { border-top: 1px solid var(--stone); }
.bname { display: block; font-weight: 500; color: var(--dark-green); line-height: 1.4; }
.baddr { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

/* Earlier updates: a dated sequence on a rail */
.earlier { list-style: none; margin: 0 0 0 0.35rem; padding: 0; border-left: 2px solid var(--stone); }
.earlier > li { position: relative; padding: 0 0 1.9rem 1.5rem; }
.earlier > li:last-child { padding-bottom: 0.25rem; }
.earlier > li::before {
  content: ''; position: absolute; left: -0.47rem; top: 0.42rem; width: 0.8rem; height: 0.8rem;
  border-radius: 50%; background: var(--light-stone); border: 2px solid var(--teal);
}
.earlier time { display: block; color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.earlier h3 { margin: 0.15rem 0 0.45rem; color: var(--teal); }

/* Links to the other pages */
.signposts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.signpost {
  position: relative; display: block; padding: 1rem 3rem 1rem 1.15rem; background: #fff; border: 1px solid var(--stone);
  border-radius: 0.75rem; text-decoration: none; color: var(--ink);
}
.signpost::after {
  content: ''; position: absolute; right: 1.25rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem;
  border-right: 2px solid var(--teal); border-top: 2px solid var(--teal); transform: rotate(45deg);
}
.signpost:hover { border-color: var(--teal); }
.signpost-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.125rem; color: var(--dark-green); }
.signpost-text { display: block; color: var(--muted); font-size: 0.9375rem; }

/* Check-in form, on the same page as the updates */
.checkin { max-width: 46rem; scroll-margin-top: 1rem; }
.checkin-intro { max-width: var(--measure); }
.checkin-points { margin: 0 0 1.25rem; padding-left: 1.2rem; max-width: var(--measure); }
.checkin-points li { margin: 0.25rem 0; }
.checkin-points li::marker { color: var(--green); }
.form-open { margin: 0 0 0.75rem; font-size: 0.9375rem; }
#form-frame {
  display: block; width: 100%; height: 1500px; border: 1px solid var(--stone); border-radius: 0.75rem;
  background: #fff; scroll-margin-top: 1rem;
}
@media (min-width: 40rem) { #form-frame { height: 1250px; } }
.form-missing { background: #fff; border: 1px solid var(--stone); border-radius: 0.75rem; padding: 1.25rem 1.4rem; }

/* ---------- Information page ---------- */
.contents-list { margin: 0.75rem 0 0; padding-left: 1.5rem; }
.contents-list li { margin: 0 0 0.55rem; padding-left: 0.2rem; line-height: 1.45; }
.contents-list li::marker { color: var(--teal-ink); font-weight: 500; }
@media (min-width: 48rem) { .contents-list { columns: 2; column-gap: 2.75rem; } .contents-list li { break-inside: avoid; } }
.info-section { scroll-margin-top: 1rem; }

/* ---------- Timeline page ---------- */
/* Stage tracker: a stepper, down the page on phones and across it on wide screens */
.stages-now { margin: 0.45rem 0 0; font-family: var(--serif); font-size: clamp(1.35rem, 4.4vw, 1.75rem); font-weight: 700; color: var(--dark-green); line-height: 1.3; }
.stages-count { display: block; margin-bottom: 0.15rem; font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.stages { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.stage { position: relative; display: flex; align-items: center; gap: 0.85rem; min-height: 2.75rem; }
.stage-dot { position: relative; z-index: 1; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; }
.stage-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.6rem; line-height: 1.35; }
.stage-name { font-weight: 500; color: var(--dark-green); }
.stage-state { font-size: 0.8125rem; color: var(--muted); }
.stage.is-now .stage-name { font-weight: 700; }
.stage.is-now .stage-state { color: var(--teal-ink); font-weight: 500; }
.stage.is-next .stage-name { color: var(--muted); }
/* Connector from each dot to the next */
.stage::after {
  content: ''; position: absolute; left: 0.75rem; top: calc(50% + 0.75rem); height: calc(100% - 1.5rem); margin-left: -1px;
  border-left: 2px solid var(--green);
}
.stage:last-child::after { display: none; }
.stage.is-now::after, .stage.is-next::after { border-left: 2px dashed var(--rule); }
/* Dots: done (green tick), now (teal, pulsing), coming up (empty) */
.is-done .stage-dot { background: var(--green); }
.is-done .stage-dot::after, .is-done .tl-dot::after {
  content: ''; position: absolute; left: 50%; top: 45%; width: 28%; height: 50%;
  border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg);
}
.is-now .stage-dot { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.is-now .stage-dot::after, .is-now .tl-dot::after {
  content: ''; position: absolute; inset: 30%; border-radius: 50%; background: #fff;
}
.is-now .stage-dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; animation: rg-pulse 2.4s ease-out infinite;
}
.is-next .stage-dot { background: #fff; border: 2px solid var(--rule); }
@keyframes rg-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 144, 149, 0.5); }
  75% { box-shadow: 0 0 0 0.75rem rgba(22, 144, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 144, 149, 0); }
}
@media (min-width: 64rem) {
  .stages { display: flex; margin-top: 1.6rem; }
  .stage { flex: 1 1 0; flex-direction: column; align-items: center; gap: 0.65rem; min-height: 0; padding: 0 0.35rem; text-align: center; }
  .stage-text { flex-direction: column; align-items: center; row-gap: 0.1rem; }
  .stage::after { left: calc(50% + 0.75rem); right: calc(-50% + 0.75rem); top: 0.75rem; height: 0; margin: -1px 0 0; border-left: 0; border-top: 2px solid var(--green); }
  .stage.is-now::after, .stage.is-next::after { border-left: 0; border-top: 2px dashed var(--rule); }
}

/* The dated timeline: a rail with date labels and event cards */
.tl-block { max-width: 46rem; }
.tl-intro { color: var(--muted); max-width: var(--measure); }
.tl {
  --label: 0rem; --gap: 2.4rem;            /* phones: labels sit above the cards */
  --rail: 0.75rem;                         /* rail position from the left */
  position: relative; list-style: none; margin: 1.25rem 0 0; padding: 0;
}
.tl::before {
  content: ''; position: absolute; top: 0.4rem; bottom: 0; left: var(--rail); margin-left: -1px;
  border-left: 2px solid var(--teal-tint);
}
.tl-next::before { border-left: 2px dashed var(--rule); }
/* Stop the rail at the last dot */
.tl > .tl-group:last-child .tl-item:last-child::after, .tl-here-body::after {
  content: ''; position: absolute; top: 2.45rem; bottom: 0; width: 1.3rem;
  left: calc(var(--rail) - var(--gap) - 0.65rem); background: var(--light-stone);
}
.tl-here-body::after { top: 1.45rem; }
.tl-group { position: relative; padding-left: var(--gap); }
.tl-when { margin: 0 0 0.6rem; font-weight: 700; color: var(--dark-green); font-size: 0.9375rem; line-height: 1.35; }
.tl-when:empty { display: none; }
.tl-items { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; padding-bottom: 1.1rem; }
.tl-group:last-child .tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; z-index: 1; top: 1.15rem; left: calc(var(--rail) - var(--gap) - 0.65rem);
  width: 1.3rem; height: 1.3rem; border-radius: 50%; box-shadow: 0 0 0 4px var(--light-stone);
}
.is-done > .tl-dot { background: var(--green); }
.is-now > .tl-dot { background: var(--teal); box-shadow: 0 0 0 4px var(--light-stone), 0 0 0 7px var(--teal-tint); }
.is-next > .tl-dot { background: var(--light-stone); border: 2px solid var(--rule); }
.tl-card { background: #fff; border: 1px solid var(--stone); border-radius: 0.75rem; padding: 0.95rem 1.15rem 1rem; }
.is-now > .tl-card { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.is-next > .tl-card { background: transparent; border: 1.5px dashed var(--rule); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0 0 0.3rem; }
.tl-stage { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); }
.tl-badge { display: inline-block; padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--teal-tint); color: var(--dark-green); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; }
.tl-title { font-size: 1.125rem; margin: 0 0 0.3rem; }
.tl-details { font-size: 1rem; }
/* The final step is where everyone wants to get to */
.tl-item.is-goal > .tl-dot { width: 1.7rem; height: 1.7rem; top: 0.95rem; left: calc(var(--rail) - var(--gap) - 0.85rem); border: 2px solid var(--green); background: #fff; }
.tl-item.is-goal > .tl-dot::after { content: ''; position: absolute; inset: 0.3rem; border-radius: 50%; background: var(--green-tint); }
.tl-item.is-goal > .tl-card { border: 1.5px solid var(--green); background: #fff; }
/* "Now" marker at the end of what has happened */
.tl-here { padding-top: 0.35rem; }
.tl-here .tl-when { margin-bottom: 0.4rem; }
.tl-now-pill { display: inline-block; padding: 0.1rem 0.75rem; border-radius: 999px; background: var(--dark-green); color: #fff; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.tl-here-body { position: relative; }
.tl-here-body .tl-dot { top: 0.15rem; background: var(--dark-green); box-shadow: 0 0 0 4px var(--light-stone), 0 0 0 7px var(--teal-tint); }
.tl-here-text { margin: 0; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 48rem) {
  .tl { --label: 9rem; --gap: 2.75rem; --rail: calc(var(--label) + var(--gap) / 2); }
  .tl-group { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); column-gap: var(--gap); padding-left: 0; }
  .tl-when, .tl-when:empty { display: block; margin: 0.95rem 0 0; text-align: right; }
  .tl-when time { display: block; }
  .tl-weekday { display: block; font-weight: 500; color: var(--muted); font-size: 0.875rem; }
  .tl-dot, .tl > .tl-group:last-child .tl-item:last-child::after, .tl-here-body::after { left: calc(var(--gap) / -2 - 0.65rem); }
  .tl-item.is-goal > .tl-dot { left: calc(var(--gap) / -2 - 0.85rem); }
  .tl-here .tl-when { margin: 0; }
  .tl-here-body .tl-dot { top: 0.2rem; }
}

/* ---------- Questions page ---------- */
.qa-search-wrap { position: relative; margin-top: 0.65rem; }
.qa-search-wrap svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--teal-ink); pointer-events: none; }
#qa-search {
  width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem 0.7rem 2.9rem;
  font: inherit; color: var(--ink); background: var(--light-stone);
  border: 2px solid var(--stone); border-radius: 0.5rem; -webkit-appearance: none; appearance: none;
}
#qa-search::placeholder { color: var(--muted); opacity: 1; }
#qa-search:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(22, 144, 149, 0.25); }
#qa-search:disabled { opacity: 0.6; }
.qa-count { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.qa-topics-wrap { margin-top: 1.1rem; }
.qa-topics-label { margin: 0 0 0.45rem; font-size: 0.8125rem; font-weight: 500; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.qa-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.qa-topics a {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0.35rem 0.85rem;
  border: 1px solid var(--stone); border-radius: 999px; background: #fff; color: var(--dark-green);
  font-size: 0.9375rem; font-weight: 500; line-height: 1.3; text-decoration: none;
}
.qa-topics a:hover { border-color: var(--teal); }
.qa-topics .count { min-width: 1.5rem; padding: 0 0.35rem; border-radius: 999px; background: var(--light-stone); color: var(--muted); font-size: 0.8125rem; font-weight: 500; text-align: center; }
.qa-group { max-width: var(--measure); padding-top: 2.75rem; scroll-margin-top: 1rem; }
.qa-group > h2 { margin-bottom: 0.5rem; }
.qa { border-top: 1px solid var(--stone); scroll-margin-top: 1rem; }
.qa:last-child { border-bottom: 1px solid var(--stone); }
.qa summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1rem 2.5rem 1rem 0; color: var(--dark-green); font-weight: 500; font-size: 1.125rem; line-height: 1.45;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; position: absolute; right: 0.6rem; top: 1.3rem; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); top: 1.55rem; }
.qa summary:hover { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 0.18em; }
.qa .rich { padding: 0 0 1.1rem; }
.qa-empty { max-width: var(--measure); margin: 2rem 0 0; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--stone); border-radius: 0.75rem; }

/* ---------- Contact box ---------- */
.contact {
  max-width: 46rem; margin: 3.25rem 0 3.5rem; padding: 1.6rem 1.4rem;
  background: #fff; border: 1px solid var(--stone); border-radius: 0.75rem;
}
@media (min-width: 48rem) { .contact { padding: 2rem 2.25rem; } }
@media (min-width: 64rem) { .contact { position: sticky; top: 1.5rem; margin: 2rem 0 3.5rem; padding: 1.75rem; } }
.contact h2 { margin-bottom: 0.6rem; }
.contact-line { margin: 0; }
.contact-phone { font-size: 1.6rem; font-weight: 700; color: var(--dark-green); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.contact-phone:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.contact-hours { margin: 0.1rem 0 0; color: var(--muted); }
.contact-email { margin: 0.6rem 0 0; overflow-wrap: anywhere; }
.contact-cta { width: 100%; margin-top: 1.25rem; }
.contact-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.contact-999 { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--stone); font-weight: 500; font-size: 0.9375rem; }

/* ---------- Phone-only action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 0.5rem; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--stone); box-shadow: 0 -10px 24px -18px rgba(0, 61, 66, 0.6);
}
.action-bar .btn { min-height: 3rem; padding: 0.55rem 0.9rem; font-size: 1rem; }
.action-bar .btn-call { flex: 0 0 auto; background: var(--dark-green); color: #fff; }
.action-bar .btn-primary { flex: 1 1 auto; }
@media (min-width: 48rem) { .action-bar { display: none !important; } }
body.has-bar { padding-bottom: 4.75rem; }
@media (min-width: 48rem) { body.has-bar { padding-bottom: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark-green); color: var(--teal-tint); padding: 2.75rem 0 3rem; font-size: 0.9375rem; }
.footer img { height: 2.6rem; width: auto; margin-bottom: 1.25rem; }
.footer p { margin: 0 0 0.5rem; max-width: var(--measure); }
.footer a { color: #fff; text-decoration-color: var(--green); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.footer-nav a { font-weight: 500; text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { text-decoration: underline; }

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