/* Kippy Ellis Group - site.css  (batch KEG-1)
   Palette is taken from the logo: navy ink, champagne gold, plus Lake Michigan blue and beach glass.
   No inline styles anywhere (CSP style-src 'self'); motion respects prefers-reduced-motion. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #15233f;
  --navy-2: #1c2f52;
  --navy-3: #253c66;
  --ink: #1a2233;
  --muted: #586274;
  --gold: #b8935a;
  --gold-2: #cfb07c;
  --gold-soft: #efe3cc;
  --lake: #2d6a88;
  --lake-2: #3f86a8;
  --glass: #8cc7bc;
  --mist: #eef2f3;
  --mist-2: #e2e9eb;
  --paper: #ffffff;
  --line: #d6dee2;
  --danger: #a3372c;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jakarta", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 8px;
  --radius: 14px;
  --arch: 999px 999px 16px 16px;
  --shadow: 0 18px 40px -22px rgba(21, 35, 63, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--lake); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.aspNetHidden { display: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

/* ---------- type ---------- */
.display, .h2, .page-title, .hero-title { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 120; }
.h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.h3 { font-family: var(--display); font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 500; }
.lead { font-size: 1.2rem; color: var(--ink); line-height: 1.55; }
.text-link { font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--lake); border-color: var(--lake); }
.text-link-light { color: #fff; }
.text-link-light:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -14px rgba(184, 147, 90, .9); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }
.btn[disabled], .btn.is-busy { opacity: .7; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(21, 35, 63, .08);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-mark { width: 52px; height: auto; transition: filter .35s; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-block; padding: 10px 12px; border-radius: 999px; font-weight: 600; font-size: .97rem;
  color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; transition: background-color .2s, color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-current { background: var(--mist); color: var(--navy); }
.nav-menu-btn::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.nav-menu-btn[aria-expanded="true"]::after { transform: translateY(0) rotate(-135deg); }
.has-menu { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 460px; transform: translate(-50%, 8px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; padding: 18px 20px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.has-menu:focus-within .nav-menu, .has-menu.is-open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a { display: block; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--navy); text-decoration: none; font-weight: 500; }
.nav-menu a:hover { background: var(--mist); }
.nav-menu-topics { border-left: 1px solid var(--line); padding-left: 16px; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; }

/* Header floating over the home hero (JS adds .on-hero; without JS the header stays solid). */
.site-header.on-hero { background: transparent; backdrop-filter: none; border-color: transparent; }
.site-header.on-hero .brand-name, .site-header.on-hero .nav-link, .site-header.on-hero .nav-phone { color: #fff; }
.site-header.on-hero .brand-sub { color: rgba(255,255,255,.8); }
.site-header.on-hero .brand-mark { filter: brightness(0) invert(1); }
.site-header.on-hero .nav-link:hover, .site-header.on-hero .nav-link[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.site-header.on-hero .nav-menu a { color: var(--navy); }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(21,35,63,.45); }
body.has-hero .site-header { position: fixed; left: 0; right: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate; background: var(--navy);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: heroZoom 2.8s var(--ease) both; will-change: transform; }
.hero-video { position: absolute; inset: 0; z-index: 1; animation: none; }
.hero-video + .hero-img { position: relative; z-index: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21,35,63,.55) 0%, rgba(21,35,63,.08) 30%, rgba(21,35,63,.25) 55%, rgba(21,35,63,.88) 100%),
    linear-gradient(90deg, rgba(21,35,63,.55) 0%, rgba(21,35,63,0) 60%);
}
.hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(150px, 18vh, 200px); }
.hero-kicker { font-weight: 600; color: var(--gold-soft); margin-bottom: 18px; animation: fadeUp .9s .25s var(--ease) both; }
.hero-title { font-size: clamp(3rem, 8.4vw, 7.4rem); line-height: .96; color: #fff; margin: 0 0 24px; font-weight: 400; font-variation-settings: "opsz" 144; }
.hero-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-line > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; }
.hero-line:nth-child(1) > span { animation-delay: .35s; }
.hero-line:nth-child(2) > span { animation-delay: .5s; font-style: italic; color: var(--gold-soft); }
.hero-lead { max-width: 560px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.92); animation: fadeUp .9s .75s var(--ease) both; }
.hero-paths { margin-top: 30px; animation: fadeUp .9s .95s var(--ease) both; }
.hero-paths-label { font-weight: 700; margin-bottom: 12px; }
.hero-paths ul { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-paths a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(8px);
  transition: background-color .25s, color .25s, transform .3s var(--ease), border-color .25s;
}
.hero-paths a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); }
.hero-rating {
  position: absolute; right: var(--gutter); bottom: clamp(130px, 16vh, 170px); z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--navy); text-decoration: none; font-size: .95rem; box-shadow: var(--shadow);
  animation: fadeUp .9s 1.15s var(--ease) both;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; overflow: visible; }
.wave-back { fill: rgba(255,255,255,.25); animation: drift 14s ease-in-out infinite alternate; }
.wave-front { fill: #fff; animation: drift 11s ease-in-out infinite alternate-reverse; }
.wave-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1900; stroke-dashoffset: 1900; animation: drawLine 2.6s 1s var(--ease) forwards, drift 11s ease-in-out infinite alternate-reverse; }
.stars { display: inline-block; width: 86px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg fill='%23b8935a'%3E%3Cpath id='s' d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5L8 12.3 3.5 14.6l.9-5L.8 6.1l5-.7z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") no-repeat; vertical-align: middle; }

@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }

/* ---------- marquee ---------- */
.marquee { background: #fff; padding: 6px 0 26px; overflow: hidden; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; gap: 0; }
.marquee-item { display: flex; align-items: baseline; gap: 12px; padding: 0 34px; white-space: nowrap; position: relative; }
.marquee-item::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; background: var(--gold); transform: translateY(-50%) rotate(45deg); }
.marquee-item .q { font-family: var(--display); font-size: 1.35rem; font-style: italic; color: var(--navy); }
.marquee-item .who { font-size: .9rem; color: var(--muted); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: 40px 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.88); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.section-navy .section-head p { color: rgba(255,255,255,.75); }

/* arch frames: the deco arch from the logo, used for every portrait-like photo */
.arch-frame { position: relative; display: block; border-radius: var(--arch); overflow: hidden; background: var(--mist-2); outline: 1px solid var(--gold); outline-offset: 7px; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
/* The frame is observed (a fully clipped element never "intersects"); the photo inside wipes up. */
.js [data-reveal="arch"] img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease), transform .8s var(--ease); }
.js [data-reveal="arch"].is-in img { clip-path: inset(0 0 0 0); }
.js [data-reveal=""], .js [data-reveal]:not([data-reveal="arch"]) { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal]:not([data-reveal="arch"]).is-in { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; padding: 0 0 40px; }
.arch-lg { aspect-ratio: 4 / 5; }
.arch-lg img { object-position: 50% 25%; }
.about-card {
  position: absolute; right: -18px; bottom: 0; padding: 18px 22px; background: var(--navy); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); max-width: 280px; font-size: .95rem;
}
.about-card p { margin: 0; color: rgba(255,255,255,.8); }
.about-card .about-card-name { font-family: var(--display); font-size: 1.35rem; color: #fff; }
.about-card a { display: block; color: var(--gold-2); text-decoration: none; margin-top: 6px; overflow-wrap: anywhere; }
.about-card a:hover { color: #fff; }
.values { display: grid; gap: 14px; margin: 26px 0 34px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values svg { width: 26px; height: 26px; flex-shrink: 0; fill: var(--gold); margin-top: 2px; }
.values strong { color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.stats > div { padding: 20px 14px 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dt { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.stats dd { margin: 0 0 4px; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--navy); line-height: 1; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.arch-wide { aspect-ratio: 4 / 5; }
.service-list { margin-top: 28px; display: grid; gap: 4px; }
.service {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 18px; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); position: relative; transition: background-color .25s;
}
.service::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: translate(-8px, -50%) rotate(45deg); opacity: 0; transition: opacity .25s, transform .3s var(--ease); }
.service:hover { background: #fff; color: var(--ink); }
.service:hover::after { opacity: 1; transform: translate(0, -50%) rotate(45deg); }
.service-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.service-icon svg { width: 22px; height: 22px; fill: var(--gold-2); }
.service-text { display: flex; flex-direction: column; padding-right: 30px; }
.service-name { font-family: var(--display); font-size: 1.35rem; color: var(--navy); font-weight: 500; }
.service-desc { color: var(--muted); }

/* ---------- map ---------- */
.map-section { background: radial-gradient(1200px 600px at 80% 0%, var(--navy-3), var(--navy) 60%); color: rgba(255,255,255,.85); overflow: hidden; }
.map-section .h2 { color: #fff; }
.map-section .lead { color: rgba(255,255,255,.8); }
.map-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.map-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.map-list a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .2s, border-color .2s, color .2s; }
.map-list a:hover, .map-list a.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.map-stage { position: relative; }
.wm-map { width: 100%; height: auto; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.lake { fill: #1f4466; }
.ripple { fill: none; stroke: rgba(140, 199, 188, .22); stroke-width: 1.2; }
.lake-ripples { animation: ripple 9s linear infinite; }
@keyframes ripple { from { transform: translateX(0); } to { transform: translateX(44px); } }
.land { fill: #e6ebe4; }
.inland-water { fill: #5b9fbf; }
.river { fill: none; stroke: #5b9fbf; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.river-thin { stroke-width: 2; }
.shore { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s var(--ease); }
.wm-map.is-in .shore, .no-io .shore { stroke-dashoffset: 0; }
.lake-label { fill: rgba(255,255,255,.55); font-family: var(--display); font-style: italic; font-size: 22px; letter-spacing: .04em; }
.pin { cursor: pointer; text-decoration: none; }
.pin-dot { fill: var(--gold); stroke: var(--navy); stroke-width: 2.5; transition: r .25s var(--ease); }
.pin-pulse { fill: var(--gold); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.pin-label { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--navy); paint-order: stroke; stroke: rgba(230,235,228,.95); stroke-width: 4px; stroke-linejoin: round; }
.label-left { text-anchor: end; fill: #fff; stroke: #1f4466; }
.label-right { text-anchor: start; }
.pin:hover .pin-dot, .pin:focus .pin-dot, .pin.is-active .pin-dot { r: 9; fill: #fff; stroke: var(--gold); }
.pin.is-active .pin-label { fill: var(--lake); }
.pin:focus { outline: none; }
.pin:focus-visible .pin-dot { stroke: #fff; stroke-width: 4; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
.compass circle { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.4); }
.compass path { fill: var(--gold); }
.compass text { fill: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; text-anchor: middle; }
.map-card { position: absolute; right: 16px; bottom: 16px; width: min(330px, 50%); }
.map-card-item { display: none; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.map-card-item.is-active { display: grid; grid-template-columns: 104px 1fr; animation: cardIn .45s var(--ease) both; }
.map-card-item img { width: 104px; height: 100%; object-fit: cover; }
.map-card-text { display: flex; flex-direction: column; padding: 12px 14px 14px; }
.map-card-name { font-family: var(--display); font-size: 1.3rem; color: var(--navy); }
.map-card-teaser { font-size: .92rem; color: var(--muted); }
.map-card-go { margin-top: 8px; font-weight: 700; color: var(--lake); font-size: .92rem; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- listing categories ---------- */
.listing-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.listing-cat { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.listing-cat .arch-frame { aspect-ratio: 3 / 4; margin-bottom: 18px; }
.listing-cat:hover .arch-frame img { transform: scale(1.06); }
.listing-cat-name { font-family: var(--display); font-size: 1.5rem; color: var(--navy); }
.listing-cat-desc { color: var(--muted); }
.listing-cat .text-link { align-self: flex-start; margin-top: 6px; }

/* ---------- team ---------- */
.team-section { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
/* KEG-33: sized to however many people are on the team, and centred, instead of five fixed columns */
.team-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); justify-content: center; gap: 28px; }
.team-card { position: relative; text-align: center; }
.team-card-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.team-card-photo { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 18px; }
.team-card-photo img { object-position: 50% 30%; }
.team-card-link:hover .team-card-photo img { transform: scale(1.06); }
.team-card-name { font-family: var(--display); font-size: 1.3rem; color: var(--navy); }
.team-card-role { font-size: .9rem; font-weight: 600; color: var(--lake); }
.team-card-tag { font-size: .88rem; color: var(--muted); }
.team-card-phone { display: inline-block; margin-top: 8px; font-size: .9rem; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.section-navy .team-card-name { color: #fff; }
.section-navy .team-card-role { color: var(--gold-2); }
.section-navy .team-card-tag { color: rgba(255,255,255,.7); }
.section-navy .team-card-phone { color: #fff; }
.section-navy .arch-frame { background: var(--navy-3); }

.team-photo { margin: 0 0 36px; }
.team-photo img { width: 100%; border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.team-photo-cap { margin: 12px 0 0; font-family: var(--display); font-style: italic; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.value-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; margin: 18px 0 22px; }
.steps li { position: relative; padding-left: 44px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-family: var(--display); font-size: 1rem; display: grid; place-items: center; }
.value-note { color: var(--muted); }
.value-form { box-shadow: var(--shadow); }
.value-form .form-title { margin-top: 10px; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---------- reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--navy); }
.review-card { margin: 0; padding: 34px 32px 34px 0; position: relative; border-right: 1px solid var(--line); }
.review-card:not(:first-child) { padding-left: 32px; }
.review-card:last-child { border-right: 0; }
.review-card .stars { margin-bottom: 18px; }
.review-card blockquote { margin: 0 0 22px; }
.review-card blockquote p { margin: 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.45; color: var(--navy); font-weight: 400; }
.review-card blockquote p::first-letter { font-size: 2.6em; float: left; line-height: .85; padding: 4px 8px 0 0; color: var(--gold); font-style: italic; }
.review-card figcaption { display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.review-card figcaption strong { color: var(--navy); font-size: 1rem; font-family: var(--sans); }

/* ---------- tools ---------- */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.tool { background: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 20px 50px -36px rgba(21,35,63,.5); display: flex; flex-direction: column; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 8px 0 22px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.calc-wide { grid-column: 1 / -1; }
.calc-field input, .calc-field select, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 500; transition: border-color .2s, box-shadow .2s;
}
.calc-field input:focus, .calc-field select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 4px rgba(45,106,136,.15); }
.input-prefix, .input-suffix { position: relative; display: block; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-prefix input { padding-left: 28px; }
.input-suffix > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-suffix input { padding-right: 32px; }
.calc-out { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 22px; }
.calc-total { margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-total span { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--gold-2); }
.calc-total small { color: rgba(255,255,255,.75); font-size: .95rem; }
.calc-break { margin: 0; font-size: .92rem; color: rgba(255,255,255,.8); }
.tool-note { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }
.quiz-steps { position: relative; flex: 1; }
.quiz-q { border: 0; padding: 0; margin: 0; display: none; }
.quiz-q.is-active { display: grid; gap: 10px; animation: cardIn .4s var(--ease) both; }
.quiz-q legend { font-family: var(--display); font-size: 1.3rem; color: var(--navy); margin-bottom: 12px; padding: 0; }
.quiz-opt {
  text-align: left; padding: 14px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; color: var(--navy); transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.quiz-opt:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateX(4px); }
.quiz-result { animation: cardIn .45s var(--ease) both; }
.quiz-result-label { font-weight: 700; color: var(--lake); margin-bottom: 10px; }
.quiz-match { display: block; text-decoration: none; color: var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--mist); margin-bottom: 16px; }
.quiz-match img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.quiz-match-name { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--navy); padding: 12px 16px 0; }
.quiz-match-teaser { display: block; color: var(--muted); padding: 0 16px 14px; }
.quiz-progress { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq { border-radius: var(--radius); background: var(--mist); transition: background-color .25s; }
.faq[open] { background: #fff; box-shadow: 0 0 0 1.5px var(--gold) inset; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); position: relative; flex-shrink: 0; transition: transform .35s var(--ease), background-color .25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq[open] .faq-icon { background: var(--gold); transform: rotate(180deg); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq[open] .faq-body { animation: fadeUp .4s var(--ease) both; }
.faq-body p { margin: 0; }

/* ---------- contact + form ---------- */
.contact-section { background: radial-gradient(900px 500px at 10% 100%, var(--navy-3), var(--navy) 70%); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-facts { margin: 28px 0; display: grid; gap: 18px; }
.contact-facts dt { font-size: .85rem; color: var(--gold-2); font-weight: 700; }
.contact-facts dd { margin: 2px 0 0; color: #fff; }
.contact-facts a { color: #fff; }
.contact-facts a:hover { color: var(--gold-2); }
.lead-form { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
.form-head { margin-bottom: 18px; }
.lead-form .form-title, .form-title { font-family: var(--display); font-size: 1.6rem; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.form-sub { color: var(--muted); margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .9rem; font-weight: 700; color: var(--navy); }
.field .opt { font-weight: 500; color: var(--muted); }
.field textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 6px 0 16px; }
.form-alt { text-align: center; font-size: .92rem; color: var(--muted); margin: 14px 0 0; }
.form-alert { background: #fbecea; color: var(--danger); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.lead-form-done { text-align: center; padding: 20px 0; }
.done-mark { width: 72px; height: 72px; margin: 0 auto 18px; }
.done-mark circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: drawLine 1s var(--ease) forwards; }
.done-mark path { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawLine .6s .7s var(--ease) forwards; }

.careers { background: var(--gold-soft); padding: 34px 0; }
.careers-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.careers h2 { margin: 0; color: var(--navy); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy); }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 2.4s var(--ease) both; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,35,63,.35) 0%, rgba(21,35,63,.2) 40%, rgba(21,35,63,.88) 100%); }
.page-hero-inner { padding-top: 120px; padding-bottom: 64px; }
.page-title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); color: #fff; margin-bottom: 14px; font-weight: 400; animation: fadeUp .9s .2s var(--ease) both; }
.page-lead { max-width: 640px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.92); animation: fadeUp .9s .35s var(--ease) both; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; animation: fadeUp .9s .5s var(--ease) both; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-bottom: 14px; color: rgba(255,255,255,.8); }
.crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.crumbs-dark { color: var(--muted); }
.crumbs-dark a { color: var(--navy); border-color: var(--gold); }
.page-band { background: var(--navy); color: #fff; padding: calc(var(--header-h) + 10px) 0 72px; position: relative; overflow: hidden; }
.page-band .page-title { color: #fff; }
.page-band::after { content: ""; position: absolute; right: -120px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(184,147,90,.4); box-shadow: 0 0 0 40px rgba(184,147,90,.06), 0 0 0 80px rgba(184,147,90,.04); }

.area-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.area-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.area-tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.area-tile-name { font-family: var(--display); font-size: 1.2rem; color: var(--navy); padding: 12px 16px 0; }
.area-tile-teaser { font-size: .9rem; color: var(--muted); padding: 0 16px 16px; }
.cta-band { background: var(--navy); color: rgba(255,255,255,.85); padding: 64px 0; }
.cta-band .h2 { color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band-inner > div:first-child { max-width: 640px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }


/* ---------- community / topic pages: split hero, ledger, field notes ---------- */
.section-paper { background: var(--gold-soft); }
.split-hero { background: #fff; padding: calc(var(--header-h) + 24px) 0 0; position: relative; overflow: hidden; }
.split-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: var(--mist); z-index: 0; }
.split-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.split-hero-copy { padding: 30px 0 clamp(48px, 7vw, 96px); }
.town-title { font-family: var(--display); font-weight: 300; font-size: clamp(3.4rem, 8.6vw, 8rem); line-height: .92; letter-spacing: -0.025em; color: var(--navy); margin: 6px 0 18px; font-variation-settings: "opsz" 144; animation: fadeUp .9s .1s var(--ease) both; }
.town-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; font-weight: 600; color: var(--lake); animation: fadeUp .9s .25s var(--ease) both; }
.town-coord { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.15rem; color: var(--navy); letter-spacing: .02em; }
.town-dot { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); display: inline-block; }
.town-lead { color: var(--ink); max-width: 560px; animation-delay: .35s; }
.split-hero .page-hero-actions { animation-delay: .5s; }
.split-hero-photo { margin: 0; padding-bottom: 28px; animation: fadeUp 1s .2s var(--ease) both; }
.arch-tall { aspect-ratio: 4 / 5; }
/* KEG-29: the shifted gold arch was clipped by the frame and showed as a stray line through the photo; these photos now use the same even gold outline as every other arched photo. */
.split-hero-photo figcaption { margin-top: 14px; font-size: .85rem; color: var(--muted); font-style: italic; font-family: var(--display); }

.ledger-section { background: var(--mist); padding-top: clamp(48px, 7vw, 96px); }
.ledger-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ledger-copy > p { font-size: 1.1rem; max-width: 62ch; }
.ledger-copy > p:first-of-type::first-letter { font-family: var(--display); font-size: 3.4em; float: left; line-height: .82; padding: 6px 10px 0 0; color: var(--navy); font-weight: 500; }
.ledger { margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px clamp(24px, 4vw, 56px); list-style: none; counter-reset: none; }
.ledger-row { position: relative; padding-top: 18px; }
.ledger-row::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 3px; background: var(--gold); }
.ledger-row:nth-child(even) { transform: translateY(28px); }
.ledger-row h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--navy); margin: 0 0 8px; }
.ledger-row p { margin: 0; color: var(--muted); max-width: 36ch; }

.field-notes { background: var(--navy); color: rgba(255,255,255,.85); border-radius: 24px 24px 24px 0; padding: 22px 26px 30px; position: sticky; top: calc(var(--header-h) + 20px); box-shadow: 0 40px 70px -40px rgba(21,35,63,.7); }
.mini-map { width: 100%; height: auto; display: block; }
.mm-land { fill: #223a63; }
.mm-water { fill: #3d6f93; }
.mm-river { fill: none; stroke: #3d6f93; stroke-width: 3; stroke-linecap: round; }
.mm-shore { fill: none; stroke: var(--gold); stroke-width: 2; }
.mm-pin { text-decoration: none; }
.mm-dot { fill: rgba(255,255,255,.55); }
.mm-ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mm-label { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: rgba(255,255,255,.55); text-anchor: middle; opacity: 0; }
.mm-pin:hover .mm-label, .mm-pin:focus .mm-label { opacity: 1; }
.mm-pin.is-here .mm-dot { fill: var(--gold); r: 7; }
.mm-pin.is-here .mm-ring { opacity: 1; animation: pulse 2.4s ease-out infinite; }
.mm-pin.is-here .mm-label { opacity: 1; fill: #fff; font-size: 17px; font-family: var(--display); font-style: italic; font-weight: 400; }
.mm-office { fill: #fff; stroke: var(--navy); stroke-width: 1.5; }
.field-notes-key { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.6); margin: 4px 0 22px; }
.key-office { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }
.field-notes-h { font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--gold-2); margin: 18px 0 8px; }
.field-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.field-list li { position: relative; padding-left: 14px; color: #fff; font-size: .97rem; }
.field-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.said-section { background: #fff; padding: clamp(56px, 8vw, 110px) 0; }
.said-inner { max-width: 900px; }
.said-quote { font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3; color: var(--navy); margin: 0 0 24px; text-indent: -0.4em; }
.said-quote::before { content: "\201C"; color: var(--gold); }
.said-quote::after { content: "\201D"; color: var(--gold); }
.said-by { display: flex; flex-direction: column; gap: 2px; font-weight: 700; color: var(--navy); margin: 0; padding-left: 60px; position: relative; }
.said-by::before { content: ""; position: absolute; left: 0; top: .75em; width: 44px; height: 1.5px; background: var(--gold); }
.said-by span { font-weight: 500; color: var(--muted); font-size: .92rem; }
.more-section .area-tile { background: #fff; }

/* agent pages */
.agent-hero { background: var(--mist); padding: calc(var(--header-h) - 20px) 0 72px; }
.agent-hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: 50px; }
.agent-photo { aspect-ratio: 4 / 5; }
.agent-photo img { object-position: 50% 28%; }
.agent-intro .page-title { color: var(--navy); }
.agent-role { font-weight: 700; color: var(--lake); margin: 0; }
.agent-tag { color: var(--muted); }
.agent-summary { font-size: 1.1rem; }
.agent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.agent-actions .btn-ghost { border-color: var(--navy); color: var(--navy); }
.agent-actions .btn-ghost:hover { background: var(--navy); color: #fff; }
.agent-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.agent-story p { font-size: 1.08rem; }
.agent-closing { padding: 20px 22px; border-left: 3px solid var(--gold); background: var(--mist); border-radius: 0 var(--radius) var(--radius) 0; }
.agent-profile { background: var(--navy); color: rgba(255,255,255,.85); border-radius: 20px; padding: 30px; position: sticky; top: calc(var(--header-h) + 20px); }
.agent-profile h2 { color: #fff; }
.agent-profile dl { margin: 0; }
.agent-profile dt { font-size: .82rem; font-weight: 700; color: var(--gold-2); margin-top: 14px; }
.agent-profile dd { margin: 2px 0 0; }
.agent-profile a { color: #fff; }

/* team page */
.team-full { display: grid; gap: clamp(56px, 7vw, 96px); }
.team-row { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.team-row:nth-child(even) { grid-template-columns: 8fr 4fr; }
.team-row:nth-child(even) .team-row-photo { order: 2; }
.team-row-photo { aspect-ratio: 4 / 5; }
.team-row-photo img { object-position: 50% 28%; }
.team-row h2 { margin-bottom: 4px; }
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { color: var(--lake); }
.team-group { margin-bottom: clamp(48px, 6vw, 80px); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.team-group img { display: block; width: 100%; height: auto; }   /* fill the frame: a photo narrower than the frame left a white strip */
.drives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.drive { padding: 28px; background: #fff; border-radius: var(--radius); }
.drive h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; }
.drive p { margin: 0; color: var(--muted); }

/* testimonials page */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--navy); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filter-btn:hover { border-color: var(--gold); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.review-masonry { columns: 3 320px; column-gap: 24px; }
.review-masonry .review-card { break-inside: avoid; margin-bottom: 24px; padding: 28px 28px 28px 0; border-right: 0; border-top: 1px solid var(--navy); }
.review-masonry .review-card blockquote p { font-size: 1.05rem; }
.review-masonry .review-card blockquote p::first-letter { font-size: 1em; float: none; padding: 0; color: inherit; font-style: normal; }
.review-masonry .review-card h2 { font-family: var(--display); font-size: 1.45rem; font-weight: 500; font-style: italic; margin: 12px 0 10px; }
.review-card.is-hidden { display: none; }

/* prose pages */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin-top: 1.6em; }

/* open-house sign-in (iPad at the door) */
.signin-section { background: var(--mist); min-height: 70vh; display: flex; align-items: center; }
.signin-card { background: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.signin-kicker { font-weight: 700; color: var(--lake); margin-bottom: 6px; }
.code-input { font-family: var(--display); font-size: 2rem; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.signin-done { text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.78); position: relative; padding: 70px 0 110px; margin-top: 80px; }
.footer-wave { position: absolute; left: 0; right: 0; top: -79px; width: 100%; height: 80px; fill: var(--navy-2); }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 3fr; gap: 40px; }
.footer-brand img { width: 160px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; font-size: .95rem; }
.footer-h { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--gold-2); margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-address { font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
.footer-hours { margin-top: 14px; font-size: .92rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); transition: background-color .2s, border-color .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.social a:hover svg { fill: var(--navy); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-legal p { margin: 0; }
.footer-legal a { margin-left: 14px; }
.eho { display: flex; gap: 10px; align-items: flex-start; max-width: 680px; }
.eho svg { width: 26px; height: 26px; fill: rgba(255,255,255,.8); flex-shrink: 0; }
.mobile-bar { display: none; }

/* ---------- error page ---------- */
.error-page { background: var(--mist); min-height: 100vh; display: grid; place-items: center; }
.error-wrap { text-align: center; padding: 40px 20px; max-width: 560px; }
.error-logo img { margin: 0 auto 20px; width: 160px; }
.error-code { font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--gold); margin: 0; }
.error-wrap h1 { font-family: var(--display); font-weight: 500; font-size: 2rem; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.error-ref { margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-phone { display: none; }
  .team-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 250px); justify-content: safe center; overflow-x: auto; scroll-padding-left: var(--gutter); scroll-snap-type: x mandatory; padding: 12px 4px 20px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .team-card { scroll-snap-align: start; }
  .area-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .site-header.on-hero .nav-toggle-bars, .site-header.on-hero .nav-toggle-bars::before, .site-header.on-hero .nav-toggle-bars::after { background: #fff; }
  .nav-open .nav-toggle-bars { background: transparent !important; }
  .nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); background: #fff !important; }
  .nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); background: #fff !important; }
  .nav-toggle, .brand { position: relative; z-index: 3; }
  .site-nav {
    position: fixed; inset: 0; z-index: 2; margin: 0; padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    flex-direction: column; align-items: stretch; gap: 24px; overflow-y: auto;
    background: var(--navy); transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
  }
  .nav-open .site-nav { transform: none; visibility: visible; }
  /* backdrop-filter would make the header the containing block of the fixed panel */
  .nav-open .site-header, .nav-open .site-header.on-hero { backdrop-filter: none; background: var(--navy); border-color: transparent; }
  .nav-open .brand-name, .nav-open .brand-sub { color: #fff; }
  .nav-open .brand-mark { filter: brightness(0) invert(1); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link, .site-header.on-hero .nav-link { color: #fff; font-size: 1.35rem; font-family: var(--display); font-weight: 500; padding: 12px 0; border-radius: 0; text-align: left; width: 100%; }
  .nav-link:hover, .nav-link[aria-expanded="true"] { background: none; color: var(--gold-2); }
  .nav-menu { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; background: transparent; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .has-menu.is-open .nav-menu { display: grid; transform: none; }
  .has-menu:focus-within .nav-menu { transform: none; }
  .nav-menu a, .site-header.on-hero .nav-menu a { color: rgba(255,255,255,.85); }
  .nav-menu a:hover { background: rgba(255,255,255,.08); }
  .nav-menu-topics { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 6px; }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .nav-phone, .site-header.on-hero .nav-phone { display: block; color: #fff; font-size: 1.2rem; }
  body.nav-open { overflow: hidden; }

  .about-grid, .services-grid, .map-grid, .faq-grid, .contact-grid, .ledger-grid, .split-hero-grid, .agent-hero-grid, .agent-body, .value-grid { grid-template-columns: 1fr; }
  .split-hero-photo { max-width: 420px; order: -1; }
  .split-hero-photo figcaption { display: none; }
  .town-title { font-size: clamp(3rem, 14vw, 5rem); }
  .field-notes { position: static; }
  .about-photo { max-width: 460px; }
  .services-media { max-width: 480px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .listing-cats { grid-template-columns: 1fr; max-width: 520px; }
  .listing-cat .arch-frame { aspect-ratio: 4 / 3; }
  .review-grid, .tools-grid, .drives { grid-template-columns: 1fr; }
  .review-card, .review-card:not(:first-child) { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .team-row, .team-row:nth-child(even) { grid-template-columns: 1fr; }
  .team-row:nth-child(even) .team-row-photo { order: 0; }
  .team-row-photo { max-width: 420px; }
  .agent-photo { max-width: 420px; }
  .agent-profile { position: static; }
  .map-card { position: static; width: 100%; margin-top: 16px; }
  .map-card-item.is-active { grid-template-columns: 120px 1fr; }
  .hero-rating { position: static; margin: -120px var(--gutter) 150px; align-self: flex-start; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .mobile-bar {
    position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; width: min(420px, calc(100% - 24px)); transform: translateX(-50%);
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 999px;
    background: rgba(21, 35, 63, .92); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
    transition: transform .45s var(--ease), opacity .3s;
  }
  .js .mobile-bar { transform: translate(-50%, 140%); opacity: 0; }
  .js .mobile-bar.is-visible { transform: translate(-50%, 0); opacity: 1; }
  .nav-open .mobile-bar { transform: translate(-50%, 140%); opacity: 0; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 800; text-decoration: none; }
  .mobile-bar svg { width: 19px; height: 19px; }
  .mobile-bar-call { color: #fff; border: 1px solid rgba(255,255,255,.3); }
  .mobile-bar-call svg { fill: #fff; }
  .mobile-bar-msg { background: var(--gold); color: var(--navy); }
  .mobile-bar-msg svg { fill: var(--navy); }
  .site-footer { padding-bottom: 130px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 42px; }
  .field-row, .calc-fields { grid-template-columns: 1fr; }
  .field-row-3 { grid-template-columns: 1fr 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-row:nth-child(even) { transform: none; }
  .area-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .area-tile-teaser { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal a { margin: 0 14px 0 0; }
  .about-card { position: relative; right: auto; margin: -40px 16px 0; }
  .about-photo { padding-bottom: 0; }
  .hero-paths a { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
  .marquee-item .q { font-size: 1.1rem; }
  .chip { padding: 6px 13px; font-size: .88rem; }
  .chip-list { gap: 8px; }
  /* Small screens: only the active town is labelled, with bigger pins to tap. */
  .pin-label { font-size: 26px; opacity: 0; transition: opacity .25s; }
  .pin.is-active .pin-label { opacity: 1; }
  .pin-dot { r: 9; }
  .pin:hover .pin-dot, .pin:focus .pin-dot, .pin.is-active .pin-dot { r: 12; }
  .lake-label { font-size: 30px; }
  .compass { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; overflow-x: auto; width: auto; }
  .marquee { overflow-x: auto; }
  .js [data-reveal], .js [data-reveal] img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .wave-line, .shore { stroke-dashoffset: 0 !important; }
}

@media print {
  .site-header, .site-footer, .mobile-bar, .hero-wave, .marquee, .tools { display: none !important; }
  body { color: #000; }
}

/* ---------------------------------------------------------------- around town (KEG-10) */
.town-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.town-item { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .25s var(--ease); }
.town-item:hover { background: rgba(184,147,90,.06); }
.town-item:hover .town-title { color: var(--lake); }
.town-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 68px; border: 1px solid var(--navy); border-radius: 4px; color: var(--navy); line-height: 1; }
.town-date b { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.town-date i { font-family: var(--display); font-style: normal; font-size: 1.9rem; font-weight: 500; margin-top: 4px; }
.town-date-none { border-style: dashed; border-color: var(--gold); padding: 4px; text-align: center; }
.town-date-none b { font-size: .6rem; letter-spacing: .06em; color: var(--gold); line-height: 1.25; }
.town-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.town-type { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0; }
.town-type-light { color: var(--gold-2); margin-bottom: 8px; }
/* scoped to the list item: an unscoped .town-title here shrank the big heading on every town page */
.town-item .town-title { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; color: var(--navy); line-height: 1.2; letter-spacing: 0; margin: 0; animation: none; transition: color .2s; }
.town-when { font-size: .92rem; font-weight: 600; color: var(--navy); }
.town-text { color: var(--muted); max-width: 62ch; }
.town-photo { grid-column: 1 / -1; }
.town-photo img { width: 100%; height: auto; max-height: 260px; object-fit: cover; border-radius: 4px; display: block; }
.town-all { margin: 32px 0 0; }
.town-empty { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }
.town-past-h { margin: 56px 0 18px; color: var(--muted); }
.town-list-past .town-item { opacity: .78; }
.town-post { max-width: 820px; }
.town-post-title { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.town-post-img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 32px; display: block; }
.town-post .prose p { font-size: 1.1rem; line-height: 1.7; }
.town-back { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.town-back a { margin-right: 6px; }
@media (min-width: 760px) {
  .town-item { grid-template-columns: 76px 1fr; gap: 28px; padding: 28px 12px; }
  .town-item.has-photo { grid-template-columns: 76px 1fr 240px; }
  .town-date { width: 76px; height: 80px; }
  .town-photo { grid-column: auto; }
  .town-photo img { height: 160px; max-height: none; }
}

/* ---------- MLS search, listing cards, listing page (KEG-11) ---------- */
.page-band-slim { padding-bottom: 44px; }
.page-band-slim .page-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.search-section { padding-top: 28px; }
.preview-note { background: #fff6dd; border: 1px solid #e3c877; color: #5b4712; border-radius: var(--radius-sm); padding: 8px 14px; font-size: .9rem; font-weight: 600; }
.search-bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-top: -64px; position: relative; z-index: 2; }
.sf { grid-column: span 2; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sf-grow { grid-column: span 4; }
.sf-sm { grid-column: span 1; }
.sf-checks { grid-column: span 3; flex-direction: row; align-items: flex-end; gap: 16px; padding-bottom: 10px; flex-wrap: wrap; }
.sf-go { grid-column: span 2; justify-content: flex-end; }
.sf label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.sf input[type="text"], .sf select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: #fff; font-size: .98rem; }
.sf-check { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem !important; color: var(--ink) !important; font-weight: 600 !important; }
.sf-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.sf-go .btn { width: 100%; min-height: 44px; }
.search-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 2px 24px; font-size: .95rem; font-weight: 600; }
.lr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lr-empty { background: var(--mist); border-radius: var(--radius); padding: 28px; text-align: center; margin: 12px 0 28px; }
.lr-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 8px; }
.lr-range { color: var(--muted); font-size: .95rem; }
.lr-page { display: flex; gap: 10px; }
.idx-disclaimer { font-size: .78rem; line-height: 1.5; color: var(--muted); margin: 26px 0 0; max-width: 900px; }
.idx-more { margin: 26px 0 0; }

.lc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--ease); }
.lc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.lc-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--mist-2); overflow: hidden; }
.lc-media img { width: 100%; height: 100%; object-fit: cover; }
.lc-nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.lc-price { position: absolute; left: 0; bottom: 0; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.1rem; padding: 6px 14px; border-top-right-radius: var(--radius-sm); }
.lc-pill { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--navy); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lc-pill-water { background: var(--lake); color: #fff; }
.lc-pill-sold { background: var(--gold); color: var(--navy); }
.lc-save { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lc-save svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2; }
.lc-save.is-on svg { fill: var(--danger); stroke: var(--danger); }
.lc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lc-addr { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.02rem; line-height: 1.3; }
.lc-addr:hover { text-decoration: underline; }
.lc-city { margin: 0; color: var(--muted); font-size: .92rem; }
.lc-specs { margin: 8px 0 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: .92rem; color: var(--ink); }
.lc-courtesy { margin: auto 0 0; padding-top: 10px; font-size: .72rem; color: var(--muted); line-height: 1.35; }

.pd-top { padding: 22px 0 0; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-status { display: inline-block; margin: 0 0 8px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--navy); }
.pd-status-live { background: #dff0e6; color: #1d5b39; }
.pd-addr { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0; }
.pd-cityline { margin: 2px 0 0; color: var(--muted); }
.pd-head-side { text-align: right; }
.pd-price { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy); margin: 0 0 6px; line-height: 1; }
.pd-save { border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: .9rem; cursor: pointer; min-height: 40px; }
.pd-save.is-on { background: var(--navy); color: #fff; }
.pd-gal { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; height: clamp(260px, 46vw, 520px); }
.pd-gal-one { grid-template-columns: 1fr; }
.pd-gal button { border: 0; padding: 0; background: var(--mist-2); cursor: zoom-in; position: relative; overflow: hidden; min-height: 0; }
.pd-gal img { width: 100%; height: 100%; object-fit: cover; }
.pd-gal-side { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; min-height: 0; }
.pd-gal-more { position: absolute; inset: 0; background: rgba(21,35,63,.62); color: #fff; display: grid; place-items: center; font-weight: 700; }
.pd-gal .pd-gal-all { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--navy); font-weight: 700; font-size: .88rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pd-gal-empty { display: grid; grid-template-columns: 1fr; place-items: center; background: var(--mist); color: var(--muted); height: 220px; }
.pd-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd-facts div { flex: 1 1 110px; padding: 14px 16px; border-right: 1px solid var(--line); }
.pd-facts div:last-child { border-right: 0; }
.pd-facts dd { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.pd-facts dt { font-size: .8rem; color: var(--muted); }
.pd-main { padding-top: 40px; }
.pd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.pd-block { margin-bottom: 34px; }
.pd-block h2 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; }
.pd-note { background: var(--gold-soft); border-radius: var(--radius); padding: 20px 24px; }
.pd-remarks { white-space: normal; }
.pd-pills, .pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-pills li { background: var(--mist); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.pd-tags li { border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font-size: .88rem; }
.pd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.pd-spec-group h3 { font-size: .85rem; font-family: var(--sans); color: var(--gold); margin: 12px 0 6px; }
.pd-spec-group dl { margin: 0; }
.pd-spec-group dl div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--mist-2); font-size: .95rem; }
.pd-spec-group dt { color: var(--muted); }
.pd-spec-group dd { margin: 0; text-align: right; font-weight: 600; }
.pd-tagrow { margin-bottom: 14px; }
.pd-tagrow h3 { font-size: .85rem; font-family: var(--sans); color: var(--muted); margin: 0 0 6px; }
.pd-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pd-courtesy { font-size: .85rem; color: var(--muted); margin: 0; }
.pd-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.pd-aside .lead-form { box-shadow: var(--shadow); border: 1px solid var(--line); padding: 24px; }
.pd-aside .field-row { grid-template-columns: 1fr; gap: 0; }
.pd-call { text-align: center; margin: 14px 0 0; font-weight: 600; }
.pd-gone-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,30,.96); display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lb-open { overflow: hidden; }
.lb-img { grid-column: 2; max-width: 100%; max-height: 84vh; margin: 0 auto; object-fit: contain; }
.lb-nav, .lb-x { background: none; border: 0; color: #fff; cursor: pointer; }
.lb-nav { font-size: 3rem; line-height: 1; height: 100%; }
.lb-x { position: absolute; right: 14px; top: 12px; font-weight: 700; padding: 10px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; padding: 0 60px; }
.saved-share, .saved-note { color: var(--muted); font-size: .95rem; }
.text-btn { background: none; border: 0; padding: 0; color: var(--lake); font-weight: 700; text-decoration: underline; cursor: pointer; }
.saved-copied { color: #1d5b39; font-weight: 700; }
.saved-form { max-width: 640px; margin: 44px auto 0; }
.saved-form .lead-form { border: 1px solid var(--line); box-shadow: var(--shadow); }
.idx-strip { margin-top: 8px; }
@media (max-width: 1100px) {
  .sf { grid-column: span 3; } .sf-grow { grid-column: span 6; } .sf-sm { grid-column: span 3; } .sf-checks { grid-column: span 6; } .sf-go { grid-column: span 6; }
  .pd-cols { grid-template-columns: minmax(0, 1fr); } .pd-aside { position: static; max-width: 640px; }
  .pd-aside .field-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 960px) { .lr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 640px) {
  .search-bar { grid-template-columns: 1fr 1fr; margin-top: -40px; padding: 12px; }
  .sf, .sf-sm { grid-column: span 1; } .sf-grow, .sf-checks, .sf-go { grid-column: 1 / -1; }
  .lr-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-gal { grid-template-columns: 1fr; height: auto; } .pd-gal-hero { aspect-ratio: 4 / 3; } .pd-gal-side { display: none; }
  .pd-head-side { text-align: left; } .pd-specs { grid-template-columns: 1fr; }
  .pd-facts div { flex-basis: 33%; border-bottom: 1px solid var(--line); }
  .pd-aside .field-row { grid-template-columns: 1fr; gap: 0; }
  .lb { grid-template-columns: 40px 1fr 40px; }
}
@media print { .search-bar, .lc-save, .pd-save, .pd-aside, .lb { display: none !important; } }

/* ---------- market reports (KEG-12) ---------- */
.mk-section { padding-top: 44px; }
.mk-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.mk-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.mk-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.mk-val { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--navy); line-height: 1.15; }
.mk-delta { font-size: .8rem; color: var(--muted); min-height: 1.1em; }
.mk-up { color: #1d5b39; } .mk-down { color: var(--danger); }
.mk-summary { font-size: 1.15rem; max-width: 820px; }
.mk-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.mk-table { border-collapse: collapse; width: 100%; max-width: 820px; font-size: .95rem; }
.mk-table th, .mk-table td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--mist-2); white-space: nowrap; }
.mk-table th:first-child { text-align: left; }
.mk-table thead th { font-size: .8rem; color: var(--muted); border-bottom: 2px solid var(--line); }
.mk-table tbody th { font-weight: 600; color: var(--navy); }
.mk-links { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 36px; }
.mk-towns { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.mk-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mk-index a { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; height: 100%; transition: box-shadow .25s; }
.mk-index a:hover { box-shadow: var(--shadow); }
.mk-index strong { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--navy); }
.mk-index span { font-size: .88rem; color: var(--muted); }
@media (max-width: 960px) { .mk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mk-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-index { grid-template-columns: minmax(0, 1fr); } }
.mk-arealink { margin: 22px auto 0; }

/* ---------- community facts, long-form sections, guides, hubs (KEG-24) ---------- */
.facts-section { padding: 44px 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.facts div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.guide-wrap { max-width: 860px; }
.guide-block { margin-bottom: 34px; }
.guide-block h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0 0 8px; }
.guide-block p { font-size: 1.05rem; }
.family-section { padding: 40px 0; }
.family-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.family-list a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none; height: 100%; background: #fff; transition: box-shadow .25s; }
.family-list a:hover { box-shadow: var(--shadow); }
.family-list strong { color: var(--navy); font-size: 1.05rem; }
.family-list span { font-size: .85rem; color: var(--muted); }
.hub-group { margin-bottom: 40px; }
.hub-group h2 { font-family: var(--display); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .family-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .family-list { grid-template-columns: minmax(0, 1fr); } }
.guides-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guides-list strong { font-family: var(--display); font-weight: 500; font-size: 1.3rem; }
@media (max-width: 560px) { .guides-list { grid-template-columns: minmax(0, 1fr); } }
.town-office { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.town-office:hover { color: var(--navy); }

/* KEG-27: plain town links under the search results */
.city-links { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.city-links ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.city-links a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-size: .92rem; background: #fff; }
.city-links a:hover, .city-links a:focus-visible { border-color: var(--navy); }

/* KEG-30: jump links at the top of the long guides */
.guide-toc { margin: 0 0 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.guide-toc h2 { margin: 0 0 10px; font-size: 1.15rem; }
.guide-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 34px; }
.guide-toc li { margin: 0 0 6px; break-inside: avoid; }
.guide-toc a { color: var(--navy); }
.guide-block { scroll-margin-top: 96px; }
@media (max-width: 640px) { .guide-toc ol { columns: 1; } }

/* ============================================================================================================
   KEG-31: the FAQ page (/faq/).  Its own layout: search in the header band, topic tabs that stick on small
   screens, a sticky topic list on wide ones, and questions as ruled rows grouped under numbered headings.
   ============================================================================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.fq-hero { padding-top: clamp(30px, 5vw, 60px); padding-bottom: 46px; }
.fq-searching .fq-hero .page-lead, .fq-searching .fq-popular, .fq-searching .fq-hero .crumbs, .fq-searching .fq-tabs { display: none; }
.fq-searching .fq-hero { padding-top: 22px; padding-bottom: 26px; }
.fq-searching .fq-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 14px; }
.fq-searching .fq-section { padding-top: 26px; }
.fq-hero-inner { position: relative; z-index: 1; max-width: 900px; margin-left: 0; }
.fq-title { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 10px; }
.fq-hero .page-lead { max-width: 620px; margin-bottom: 26px; }

.fq-search { position: relative; max-width: 640px; animation: fadeUp .9s .45s var(--ease) both; }
.fq-search input { width: 100%; height: 62px; padding: 0 96px 0 56px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 1.08rem; box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); appearance: none; -webkit-appearance: none; }
.fq-search input::placeholder { color: #7b8596; }
.fq-search input::-webkit-search-cancel-button { display: none; }
.fq-search input:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 999px; }
.fq-search-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--navy); pointer-events: none; }
.fq-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--mist); color: var(--navy); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.fq-clear:hover { background: var(--mist-2); }

.fq-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; font-size: .92rem; animation: fadeUp .9s .55s var(--ease) both; }
.fq-popular span { color: rgba(255,255,255,.7); margin-right: 2px; }
.fq-popular a { padding: 7px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; text-decoration: none; transition: background-color .2s, border-color .2s; }
.fq-popular a:hover, .fq-popular a:focus-visible { background: rgba(255,255,255,.12); border-color: var(--gold-2); color: #fff; }

/* topic tabs: small and medium screens only */
.fq-tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.fq-tabs-row { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fq-tabs-row::-webkit-scrollbar { display: none; }
.fq-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.fq-tabs a span { font-weight: 500; color: var(--muted); font-size: .82rem; }
.fq-tabs a[aria-current] { background: var(--navy); color: #fff; }
.fq-tabs a[aria-current] span { color: var(--gold-2); }

.fq-section { padding-top: clamp(32px, 5vw, 64px); }
.fq-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
.fq-main { min-width: 0; max-width: 820px; }
.fq-side { order: 2; }
.fq-side-h, .fq-side-list { display: none; }

.fq-status { margin: 0 0 22px; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--mist); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 700; color: var(--navy); }

.fq-group { scroll-margin-top: calc(var(--header-h) + 72px); margin-bottom: clamp(44px, 6vw, 72px); }
.fq-group-head { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 16px; border-bottom: 2px solid var(--navy); }
.fq-group-num { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--gold); font-weight: 400; font-variant-numeric: lining-nums; min-width: 1.6em; }
.fq-group-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: 0 0 4px; }
.fq-group-intro { margin: 0; color: var(--muted); }

.fq-item { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 72px); }
.fq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 2px; cursor: pointer; list-style: none; color: var(--navy); font-weight: 700; font-size: 1.08rem; line-height: 1.35; transition: color .2s; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:hover .fq-q { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.fq-item summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.fq-icon { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--navy); position: relative; transition: background-color .25s, border-color .25s, transform .35s var(--ease); }
.fq-icon::before, .fq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .35s var(--ease), background-color .25s; }
.fq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq-item[open] .fq-icon { background: var(--gold); border-color: var(--gold); transform: rotate(180deg); }
.fq-item[open] .fq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.fq-a { padding: 0 44px 22px 2px; }
.fq-a p { margin: 0; max-width: 68ch; font-size: 1.03rem; line-height: 1.65; color: var(--ink); }
.fq-item[open] .fq-a { animation: fadeUp .35s var(--ease) both; }
.fq-item[open] > summary { padding-bottom: 12px; }
.fq-item mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
.fq-flash { animation: fqFlash 1.6s ease-out 1; }
@keyframes fqFlash { 0%, 35% { background: var(--gold-soft); } 100% { background: transparent; } }

.fq-more { margin: 18px 0 0; }
.fq-searching .fq-more, .fq-searching .fq-group-intro { display: none; }
.fq-searching .fq-group { margin-bottom: 34px; }

.fq-empty { padding: 34px 28px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--mist); margin-bottom: 40px; }
.fq-empty p { margin: 0 0 16px; }
.fq-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.fq-note { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); max-width: 68ch; }

.fq-toggle { width: 100%; height: 46px; border: 1.5px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.fq-toggle:hover { background: var(--navy); color: #fff; }
.fq-help { margin-top: 18px; padding: 24px; border-radius: var(--radius); background: var(--navy); color: rgba(255,255,255,.85); }
.fq-help-h { font-family: var(--display); font-size: 1.35rem; color: #fff; margin: 0 0 4px; }
.fq-help p { margin: 0 0 14px; }
.fq-help .btn { width: 100%; justify-content: center; text-align: center; }
.fq-help-tel { display: block; margin-top: 12px; text-align: center; color: #fff; font-weight: 700; text-decoration: none; }
.fq-help-tel:hover { color: var(--gold-2); }

@media (min-width: 1000px) {
  .fq-tabs { display: none; }
  .fq-layout { grid-template-columns: 290px minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .fq-side { order: 0; position: sticky; top: calc(var(--header-h) + 24px); }
  .fq-side-h { display: block; margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .fq-side-list { display: block; list-style: none; margin: 0 0 18px; padding: 0; border-left: 2px solid var(--line); }
  .fq-side-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px 9px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-weight: 500; transition: color .2s, border-color .2s; }
  .fq-side-list a:hover { color: var(--navy); border-left-color: var(--gold-2); }
  .fq-side-list a[aria-current] { color: var(--navy); font-weight: 700; border-left-color: var(--gold); }
  .fq-count { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
  .fq-group, .fq-item { scroll-margin-top: calc(var(--header-h) + 24px); }
}
@media (max-width: 560px) {
  .fq-search input { height: 56px; font-size: 1rem; padding-left: 50px; padding-right: 84px; }
  .fq-search-icon { left: 18px; }
  .fq-popular span { flex-basis: 100%; }
  .fq-group-head { gap: 12px; }
  .fq-item summary { font-size: 1.02rem; padding: 18px 0; }
  .fq-a { padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .fq-item[open] .fq-a, .fq-flash { animation: none; } }

/* ============================================================================================================
   KEG-32: the chat assistant.  Hidden until js/chat.js marks it ready, so a browser without scripts never shows
   a button that does nothing.  On phones the round button is not shown: "Message us" in the bar opens the chat.
   ============================================================================================================ */
.chat { display: none; }
.chat.is-ready { display: block; }
.chat-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.chat-fab { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 9px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 18px 36px -14px rgba(21,35,63,.7), 0 0 0 1.5px rgba(184,147,90,.55) inset; transition: transform .25s var(--ease), background-color .2s; }
.chat-fab:hover { background: var(--navy-2); transform: translateY(-2px); }
.chat-fab svg { color: var(--gold-2); }
.chat.is-open .chat-fab { display: none; }

.chat-panel { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 60; width: min(392px, calc(100vw - 28px)); height: min(600px, calc(100vh - var(--header-h) - 44px)); display: flex; flex-direction: column; background: #fbf9f5; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(21,35,63,.6), 0 0 0 1px rgba(21,35,63,.08); animation: chatIn .32s var(--ease) both; }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.chat-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; background: var(--navy); color: #fff; }
.chat-head strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; line-height: 1.2; }
.chat-head span { display: block; font-size: .8rem; color: var(--gold-2); margin-top: 2px; }
.chat-close { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.chat-close:hover { background: rgba(255,255,255,.2); }

.chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.chat-log:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .97rem; line-height: 1.45; overflow-wrap: anywhere; animation: chatMsg .25s var(--ease) both; }
@keyframes chatMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.chat-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; animation: chatDot 1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-chips { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 14px 14px; }
.chat-chips:empty { display: none; }
.chat-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: .92rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.chat-chip:hover, .chat-chip:focus-visible { background: var(--navy); color: #fff; }
.chat-chip-strong { background: var(--navy); color: #fff; }
.chat-chip-strong:hover { background: var(--navy-3); }
.chat-chip-link { border-color: var(--gold); }
.chat-chip-link::after { content: "\2192"; margin-left: 7px; color: var(--gold); }
.chat-chip-link:hover::after, .chat-chip-link:focus-visible::after { color: var(--gold-2); }

.chat-entry { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.chat-entry[hidden] { display: none; }
.chat-entry input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.chat-entry input:focus { outline: none; border-color: var(--navy); }
.chat-entry button { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gold); color: var(--navy); cursor: pointer; }
.chat-entry button:hover { background: var(--gold-2); }

@media (max-width: 960px) {
  .chat-fab { display: none; }
  .chat-panel { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: min(600px, calc(100dvh - var(--header-h) - 24px)); }
  .chat-open .mobile-bar { transform: translate(-50%, 140%) !important; opacity: 0 !important; }
}
@media (max-width: 600px) {
  .chat-panel { left: 0; right: 0; bottom: 0; width: 100%; height: min(86dvh, 640px); border-radius: 18px 18px 0 0; }
}
@media print { .chat { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .chat-panel, .chat-msg, .chat-typing span { animation: none; } }
