/* localconnect.site: colors taken from the Connecting Neighbors logo (navy, forest, leaf, teal) */
:root {
  --sky: #EEF3EF;          /* page background: soft sage */
  --sky-deep: #DDE9E0;
  --ink: #14284B;          /* navy */
  --ink-soft: #4B5A6E;
  --marigold: #F2B33D;     /* kept for the signed-out street and alerts */
  --marigold-deep: #D99A1E;
  --leaf: #2F8F4E;         /* leaf green */
  --forest: #1E6B47;       /* forest green: buttons */
  --teal: #1F8A84;
  --lime: #E6F2DC;         /* pale leaf for chips and hovers */
  --porch: #FF7A9A;
  --white: #FFFFFF;
  --line: #D5E0D8;
  --danger: #B42318;
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #0F1A33; text-decoration-color: var(--marigold-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 10px 14px; z-index: 5; }

/* Header */
.top { padding: 18px 0 14px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 88px; height: 88px; flex: none; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-size: 46px; font-weight: 700; letter-spacing: -0.015em; line-height: 1; }
.brand-tag { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.brand-name span { color: var(--leaf); }
/* Signed in: the logo stands alone and the greeting sits beside it */
.signed-in .brand-text { display: none; }
.top-greeting { margin-left: auto; flex: 0 1 auto; min-width: 0; text-align: right; }
/* Signed in: email + Sign out on their own row under the logo */
.signed-in .top .wrap { row-gap: 10px; }
.signed-in .top .wrap { align-items: center; }
.top-greeting .top-actions { margin-top: 10px; gap: 10px; }
.top-greeting .who { font-size: 14px; }
.top-settings[hidden] { display: none; }
/* Wide desktop, signed in: greeting left, Change ZIP centred, Nearby cities right.
   The outer columns match (logo width on the left, a spacer on the right) so the middle is truly centred. */
@media (min-width: 980px) {
  .signed-in .top .wrap { display: grid; grid-template-columns: 88px minmax(0, 1.15fr) auto minmax(0, 1fr); column-gap: 28px; align-items: center; }
  .signed-in .brand { grid-column: 1; grid-row: 1; }
  .signed-in .top-greeting { grid-column: 2; grid-row: 1; }
  .signed-in .top-settings { display: contents; }
  .signed-in #zip-form { grid-column: 3; grid-row: 1; }
  .signed-in #places-form { grid-column: 4; grid-row: 1; justify-self: end; }
  /* both controls: label on top, 44px box below, so the boxes line up */
  .signed-in #zip-form, .signed-in #places-form { align-self: center; gap: 6px; }
}
/* Desktop: greeting right next to the logo (phones keep it on the right for now) */
@media (min-width: 521px) {
  .top-greeting { margin-left: 0; margin-right: auto; text-align: left; }
  .top-settings { order: 2; margin-left: auto; }
}
.top-greeting h1 { font-size: clamp(22px, 2.2vw, 28px); }
.top-greeting .place { margin-top: 2px; font-size: 17px; }
.place-zip { white-space: nowrap; color: var(--ink-soft); }
.top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.who { color: var(--ink-soft); font-size: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  font: 600 16px/1 var(--body); cursor: pointer; text-decoration: none;
  background: var(--marigold); color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { background: #FFCD52; color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-quiet { background: var(--white); }
.btn-quiet:hover { background: var(--sky-deep); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

/* The street */
.street { display: block; width: 100%; max-width: 1440px; margin: 0 auto; height: auto; }
.street .win { transition: fill .6s ease; }
.street.lit .my-house .win { fill: #FFE48A; }
.street .my-house .mailbox-zip { font-family: var(--display); font-weight: 600; }

/* Signed-out hero */
.hero { padding: 24px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -0.02em; }
.hero .lead { margin-top: 18px; font-size: 21px; color: var(--ink-soft); max-width: 30ch; }
.hero-street { margin-top: 32px; }
.ground { height: 28px; background: var(--leaf); }

/* Auth card */
.card {
  background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 28px;
  box-shadow: 6px 6px 0 var(--ink);
}
.card h2 { font-size: 30px; }
.card .sub { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }
form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; }
input {
  min-height: 50px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px;
  font: 400 18px var(--body); color: var(--ink); background: var(--white);
}
input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--marigold); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > label { flex: 1 1 160px; }
.hint { font-weight: 400; font-size: 15px; color: var(--ink-soft); min-height: 1.4em; }
.hint.ok { color: #1B7F4D; }
.hint.bad { color: var(--danger); }
.switch { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }
.message { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
.message.ok { background: #E3F7EC; color: #145C38; }
.message.bad { background: #FDECEA; color: var(--danger); }

/* Signed-in view */
.home-head { padding: 4px 0 22px; }
.home-head .wrap { display: flex; }
.home-head .settings { flex: 1; }
.home-head h1 { font-size: clamp(22px, 2.2vw, 28px); }
.place { margin-top: 8px; font-size: 20px; color: var(--ink-soft); }
.place strong { color: var(--ink); }
.zip-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.zip-form label { font-size: 15px; }
.zip-row { display: flex; gap: 10px; align-items: center; }
.zip-form input { width: 130px; min-height: 44px; }
#places-hint:empty, #zip-change-hint:empty { display: none; }
#zip-form > label { width: 130px; text-align: center; line-height: 1.4; }
.field-label { line-height: 1.4; }  /* centred over the ZIP box */
.settings { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-start; }
.field-label { font-weight: 700; font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.picker { position: relative; width: 300px; max-width: 100%; }
.picker summary {
  list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); font-size: 16px;
}
.picker summary .sum-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker summary::-webkit-details-marker { display: none; }
.picker summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); flex: none; }
.picker[open] summary { border-color: var(--ink); }
.picker[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.picker-panel {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.picker-panel fieldset { margin: 0; padding: 0; border: 0; }
.picker-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; }
.picker-list label {
  flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; font-size: 16px;
  border-bottom: 1px dashed var(--line); cursor: pointer;
}
.picker-list label:last-child { border-bottom: 0; }
.picker-list input { width: 20px; height: 20px; min-height: 0; accent-color: var(--leaf); flex: none; }
.picker-list .miles { margin-left: auto; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.picker-list input:disabled + span { color: #9AA6BE; }
.tag {
  display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--sky); border: 2px solid var(--ink); font: 600 13px/1.4 var(--body); color: var(--ink);
}
.tag.home { background: var(--marigold); }

.about { padding: 10px 0 8px; }
.about-card {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; gap: 20px; align-items: start;
  background: var(--white); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px;
}
.about-card.no-photo { grid-template-columns: minmax(0, 1fr) 230px; }
.about-card.no-map { grid-template-columns: 190px minmax(0, 1fr); }
.about-card.no-photo.no-map { grid-template-columns: minmax(0, 1fr); }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: 128px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); background: var(--sky); }
.about-photo figcaption { margin-top: 4px; font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.about-text h2 { font-size: 22px; }
.about-text #about-extract {
  margin-top: 6px; font-size: 15px; line-height: 1.5; max-width: 70ch;
  /* same-size card for every city: long intros are cut at 4 lines */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.about-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; font-size: 14px; }
.about-credit { margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.about-credit a, .about-photo figcaption a { color: inherit; }
.about-map iframe { display: block; width: 100%; height: 128px; border: 2px solid var(--ink); border-radius: 14px; background: var(--sky); }
.map-frame { position: relative; }
.map-open { position: absolute; inset: 0; border-radius: 14px; cursor: zoom-in; }
.map-open:hover { box-shadow: inset 0 0 0 3px var(--leaf); }
.map-open:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.about-map .about-credit { margin-top: 6px; }
.about-map .about-credit a { white-space: nowrap; }
.about-county { margin-top: 8px; font-size: 14px; }
.about-county a { color: inherit; }
.today { margin-top: 16px; }
.today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink);
}
.tile:hover { background: #F5FAFF; }
.tile:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.tile-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.tile-main { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; display: flex; align-items: center; gap: 8px; }
.tile-sub { font-size: 14px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aqi-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--ink); }
.today .about-credit { margin-top: 8px; }
@media (max-width: 860px) { .today-grid { grid-template-columns: minmax(0, 1fr); } }
.hv { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 2px; font-family: var(--body); font-size: 14px; font-weight: 600; }
.hv-chg { font-size: 13px; }
.hv-chg.up { color: var(--leaf); }
.hv-chg.down { color: #C0392B; }
.oh-city { display: flex; flex-direction: column; min-width: 0; }
.oh-row { flex-wrap: nowrap; }
.oh-links { flex: none; }
.oh-list { list-style: none; margin: 16px 0 0; padding: 0; }
.oh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.oh-city { font-family: var(--display); font-weight: 600; font-size: 19px; }
.oh-links { display: flex; gap: 8px; flex-wrap: wrap; }
.oh-link {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white); font-size: 14px; font-weight: 600; text-decoration: none;
}
.oh-link:hover { background: var(--sky); }
.oh-link:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.events { list-style: none; margin: 24px 0 0; padding: 0; }
.event { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 2px dashed var(--line); }
.event:first-child { padding-top: 4px; }
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--white); line-height: 1;
}
.event-date .mon { font-size: 12px; font-weight: 700; color: var(--leaf); }
.event-date .day { margin-top: 4px; font-family: var(--display); font-size: 24px; font-weight: 700; }
.event-date.tba { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.event h3 { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.event h3 a { text-decoration: none; }
.event h3 a:hover { text-decoration: underline; text-decoration-color: var(--marigold-deep); }
.event-when { margin-top: 4px; font-size: 15px; }
.event-where { margin-top: 2px; font-size: 14px; color: var(--ink-soft); }
.panels-band { padding: 24px 0 56px; }
/* Three equal boxes; each scrolls inside itself so the page stays tidy */
.panels { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.panel {
  display: flex; flex-direction: column; height: 760px; min-width: 0;
  background: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden;
}
.panel-head { padding: 16px 20px 12px; border-bottom: 2px solid var(--line); background: var(--white); }
.panel-head h2 { font-size: 24px; }
.panel-head .note { margin-top: 2px; font-size: 14px; color: var(--ink-soft); }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px 20px; overscroll-behavior: contain; }
/* Firefox: thick dark-blue scrollbar (Chrome, Edge and Safari use the ::-webkit-scrollbar rules below, which stay visible) */
@supports not selector(::-webkit-scrollbar) { .panel-body { scrollbar-width: auto; scrollbar-color: var(--ink) #DCE9F7; } }
.panel-body:focus-visible { outline: 3px solid var(--marigold); outline-offset: -3px; }
.panel-body::-webkit-scrollbar { width: 16px; }
.panel-body::-webkit-scrollbar-track { background: #DCE9F7; border-left: 1px solid var(--line); }
.panel-body::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 10px; border: 2px solid #DCE9F7; min-height: 56px; }
.panel-body::-webkit-scrollbar-thumb:hover { background: #2E4373; }
.panel .stories, .panel .events, .panel .oh-list { margin-top: 6px; max-width: none; }
.panel .story { grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.panel .story.no-image { grid-template-columns: minmax(0, 1fr); }
.panel .story h3 { font-size: 18px; line-height: 1.3; }
.panel .story .from { font-size: 13px; margin-top: 4px; }
.panel .story .summary { font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.panel .story img { width: 84px; height: 64px; border-radius: 10px; }
.panel .event { padding: 12px 0; border-bottom: 1px dashed var(--line); grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
.panel .event-date { height: 52px; border-radius: 10px; }
.panel .event-date .day { font-size: 20px; }
.panel .event h3 { font-size: 16px; }
.panel .event-when { font-size: 14px; }
.panel .event-where { font-size: 13px; }
.panel .oh-row { padding: 10px 0; border-bottom: 1px dashed var(--line); gap: 8px; }
.panel .oh-city { font-size: 17px; }
.panel .oh-links { gap: 6px; }
.panel .oh-link { min-height: 30px; padding: 0 10px; font-size: 13px; }
.panel .empty, .panel .loading { margin-top: 14px; max-width: none; font-size: 15px; padding: 16px; }
.panel .loading { padding: 0; }
@media (max-width: 1100px) {
  .panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panel-news { grid-column: 1 / -1; height: 560px; }
}
@media (max-width: 760px) {
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel, .panel-news { height: 70vh; min-height: 420px; }
  .panel-stack { height: auto; }
  .panel-stack .panel { flex: none; height: 60vh; min-height: 360px; }
}
.stories { list-style: none; margin: 24px 0 0; padding: 0; max-width: 820px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 20px; padding: 22px 0; border-bottom: 2px dashed var(--line); }
.story:first-child { padding-top: 6px; }
.story.no-image { grid-template-columns: minmax(0, 1fr); }
.story h3 { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.25; letter-spacing: 0; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; text-decoration-color: var(--marigold-deep); }
.story .from { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.story .summary { margin-top: 8px; color: var(--ink-soft); font-size: 17px; }
.story img { width: 120px; height: 90px; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); background: var(--sky); }
.empty { margin-top: 24px; max-width: 560px; padding: 22px; border-radius: 18px; background: var(--sky); }
.empty p + p { margin-top: 10px; }
.loading { margin-top: 24px; color: var(--ink-soft); }

.foot { border-top: 2px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--ink-soft); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .about-card, .about-card.no-map { grid-template-columns: 170px minmax(0, 1fr); }
  .about-card.no-photo, .about-card.no-photo.no-map { grid-template-columns: minmax(0, 1fr); }
  .about-map, .about-alert { grid-column: 1 / -1; }
  .about-map iframe { height: 160px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-head .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .settings { flex-direction: column; align-items: stretch; }
  .picker { width: 100%; max-width: 340px; }
}
@media (max-width: 620px) {
  .about-card, .about-card.no-map { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .about-photo img { height: 150px; }
}
@media (max-width: 520px) {
  .brand-mark { width: 64px; height: 64px; }
  .signed-in .top .wrap { gap: 10px 14px; }
  .top-greeting { flex: 1 1 0; min-width: 0; }
  .top-greeting .place { font-size: 16px; }
  .top-settings { order: 4; flex-basis: 100%; }
  .top-greeting .top-actions { justify-content: flex-end; }
  .brand-name { font-size: 32px; }
  .brand-tag { font-size: 14px; }
  body { font-size: 17px; }
  .card { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .story { grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; }
  .story img { width: 84px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}


/* ==========================================================================
   Refresh: logo palette, navy header band, cleaner cards, icons
   ========================================================================== */
.signed-in { background: var(--sky); }

/* Navy header band (signed in) */
.signed-in .top { background: var(--ink); color: #fff; padding: 18px 0; border-bottom: 5px solid var(--leaf); }
.signed-in .top a, .signed-in .top-greeting h1 { color: #fff; }
.signed-in .top-greeting .place { color: #C9D6E8; }
.signed-in .top-greeting .place strong { color: #fff; }
.signed-in .place-zip { color: #C9D6E8; }
.signed-in .top .who { color: #C9D6E8; }
.signed-in .top label, .signed-in .top .field-label { color: #E3EBF5; }
.signed-in .top .brand-mark { box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.signed-in .top input, .signed-in .top .picker summary { border-color: transparent; }
.signed-in .top input:focus { box-shadow: 0 0 0 3px var(--leaf); }
.signed-in .top .picker summary { color: var(--ink); }
.signed-in .top .picker-panel, .signed-in .top .picker-panel label { color: var(--ink); }
.signed-in .top .hint { color: #C9D6E8; }
.signed-in .top .hint.ok { color: #9BE3B4; }
.signed-in .top .hint.bad { color: #FFB4A8; }
.signed-in #signout, .signed-in #change-pw, .signed-in .top .top-page .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.signed-in #signout:hover, .signed-in #change-pw:hover, .signed-in .top .top-page .btn:hover { background: rgba(255,255,255,.12); }

/* Buttons: forest green */
.btn { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: 0 2px 0 #0F4A30; }
.btn:hover { background: #18593B; color: #fff; }
.btn:active { box-shadow: none; }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-quiet:hover { background: var(--lime); color: var(--ink); }
.signed-in .top .btn-quiet { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.signed-in .top .btn-quiet:hover { background: #297D44; }
a:hover { text-decoration-color: var(--leaf); }
input:focus { box-shadow: 0 0 0 3px #BFE3C9; border-color: var(--forest); }

/* Cards: clean edges instead of cartoon shadows */
.about-card, .panel, .tile, .card {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 10px 28px -12px rgba(20, 40, 75, .18);
}
.about { padding-top: 22px; }
.about-card { border-radius: 18px; padding: 16px 18px; }
.about-photo img, .about-map iframe, .story img { border: 0; }
.about-text h2 { font-size: 24px; }
.about-links a { color: var(--forest); }
.about-county strong { color: var(--forest); }

/* Today tiles */
.tile { border-radius: 16px; padding: 14px 18px; gap: 4px; }
.tile:hover { background: #F8FBF8; border-color: #B9CDBF; }
.tile-label { display: flex; align-items: center; gap: 8px; text-transform: none; color: var(--ink-soft); }
.tile-icon { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--lime); }
.tile-icon svg, .panel-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#wx-tile .tile-icon { color: #B7791F; background: #FBF0D9; }
#aqi-tile .tile-icon { color: var(--forest); }
#alert-tile .tile-icon { color: #8A5A0B; background: #FBF0D9; }
#alert-tile.is-warning { background: #FDECE8; border-color: #F1C2B8; }
#alert-tile.is-warning .tile-icon { color: #fff; background: #C2412D; }
#alert-tile.is-warning .tile-main { color: #9E2F1E; }
#alert-tile.is-watch { background: #FEF1E6; border-color: #F2C9A6; }
#alert-tile.is-watch .tile-icon { color: #fff; background: #DD6B20; }
#alert-tile.is-advisory { background: #FFF7E3; border-color: #EFD9A3; }
#alert-tile.is-advisory .tile-icon { color: #fff; background: #D99A1E; }
#alert-tile.is-clear .tile-icon { color: var(--forest); background: var(--lime); }
.alert-tile:hover { filter: brightness(.98); }
.tile-main { font-size: 22px; }
.aqi-dot { border: 0; width: 12px; height: 12px; }
/* Three boxes */
.panels-band { padding-top: 22px; }
.panel { border-radius: 18px; border-top: 5px solid var(--ink); }
.panel-events { border-top-color: var(--teal); }
.panel-homes { border-top-color: var(--leaf); }
.panel-sales { border-top-color: #C7782A; }
.panel-sales .panel-icon { background: #C7782A; }
.panel-sales .oh-link { border-color: #E2B98C; color: #8A4E12; }
.panel-sales .oh-link:hover { background: #FBEBD8; border-color: #C7782A; }
/* Right column: Open houses on top, Garage & estate sales below, together as tall as the other boxes */
.panel-stack { display: flex; flex-direction: column; gap: 20px; height: 760px; min-width: 0; }
.panel-stack .panel { height: auto; min-height: 0; }
.panel-stack .panel-homes { flex: 1 1 0; min-height: 260px; }
/* Sales box is as tall as what's in it; with many sales it scrolls instead of growing past the column */
.panel-stack .panel-sales { flex: 0 1 auto; min-height: 0; }
.panel-stack .panel-sales .panel-body { flex: 0 1 auto; }
.panel-head { border-bottom: 1px solid var(--line); background: linear-gradient(#fff, #FBFCFB); }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.panel-head .note { margin-left: 42px; }
.panel-icon { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; color: #fff; background: var(--ink); }
.panel-icon svg { width: 18px; height: 18px; }
.panel-events .panel-icon { background: var(--teal); }
.panel-homes .panel-icon { background: var(--leaf); }
.panel-body::-webkit-scrollbar-track { background: #E3ECE6; }
.panel-body::-webkit-scrollbar-thumb { border-color: #E3ECE6; }
.panel .story, .panel .event, .panel .oh-row { border-bottom: 1px solid #E6EDE8; }
.panel .story h3 a:hover, .panel .event h3 a:hover { text-decoration-color: var(--leaf); }
.panel .story .from { color: var(--forest); font-weight: 600; }

/* Event dates as little calendar pages */
.panel .event-date { height: 54px; padding: 0; overflow: hidden; border: 1px solid #BFD9D6; border-radius: 10px; justify-content: flex-start; background: #fff; }
.panel .event-date .mon { width: 100%; padding: 3px 0; text-align: center; background: var(--teal); color: #fff; font-size: 11px; letter-spacing: .02em; }
.panel .event-date .day { margin-top: 5px; font-size: 21px; color: var(--ink); }
.panel .event-date.tba { justify-content: center; color: var(--teal); }
.panel .event-where { color: var(--teal); font-weight: 600; }

/* Open houses */
.hv { padding: 2px 8px; border-radius: 999px; background: #F1F5F2; width: fit-content; }
.oh-link { border: 1px solid #9FC5AA; color: var(--forest); background: #fff; }
.oh-link:hover { background: var(--lime); border-color: var(--leaf); }
.hv-chg.up { color: #23803F; }

/* Empty / loading states */
.panel .empty { background: #F3F7F4; border-radius: 12px; }

/* Footer */
.foot { border-top: 0; background: var(--ink); color: #C9D6E8; margin-top: 8px; }
.foot a { color: #fff; }
.panel-sales .oh-row { flex-direction: column; align-items: flex-start; gap: 6px; }
.panel .oh-links { flex-wrap: wrap; min-width: 0; }

/* ==========================================================================
   Forum, personal pages (name.localconnect.site) and house rules
   ========================================================================== */
.check-row { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; }
.check-row input { width: 20px; height: 20px; min-height: 0; accent-color: var(--forest); }
.muted { color: var(--ink-soft); font-weight: 400; }
.small { font-size: 13px; }
.linkish.small { font-size: 13px; margin-top: 4px; color: var(--forest); }

.card-lite {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 10px 28px -14px rgba(20, 40, 75, .18);
}
.card-lite h2, .card-lite h3 { font-size: 20px; }
.card-lite .note { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.stack-form { margin-top: 10px; gap: 8px; }
.stack-form label { font-size: 14px; }
.stack-form input, .stack-form select, .stack-form textarea { min-height: 42px; font-size: 16px; }
textarea, select {
  width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
  font: 400 16px/1.45 var(--body); color: var(--ink); resize: vertical;
}
select { min-height: 42px; padding: 0 10px; }
textarea:focus, select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px #BFE3C9; }
.form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.slug-row { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.slug-row:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px #BFE3C9; }
.slug-row input { border: 0; min-width: 0; flex: 1; box-shadow: none !important; }
.slug-suffix { padding: 0 12px 0 2px; color: var(--ink-soft); font-size: 15px; white-space: nowrap; }
.mypage-link { margin-top: 6px; font-weight: 700; }
.mypage-link a { color: var(--forest); }

/* Forum band */
.forum-band { padding: 8px 0 56px; }
.forum-head h2 { display: flex; align-items: center; gap: 10px; font-size: 28px; }
.forum-head .note { margin: 4px 0 0 42px; color: var(--ink-soft); font-size: 15px; }
.forum-icon { background: #6B4FA0; }
.forum-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.forum-side { display: flex; flex-direction: column; gap: 16px; }
.panel-forum { height: 760px; border-top-color: #6B4FA0; }
.forum-feed-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #EEF2EF; border: 1px solid var(--line); }
.seg-btn { border: 0; background: transparent; font: 600 14px var(--body); color: var(--ink-soft); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.seg-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 40, 75, .15); }
.feed { list-style: none; margin: 6px 0 0; padding: 0; }
.post { padding: 16px 0; border-bottom: 1px solid #E6EDE8; }
.post-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-meta { font-size: 13px; color: var(--ink-soft); }
.post-meta .author { font-weight: 700; color: var(--ink); text-decoration: none; }
.post-meta a.author:hover { text-decoration: underline; text-decoration-color: var(--leaf); }
.post-title { margin-top: 6px; font-size: 19px; line-height: 1.3; }
.post-body { margin-top: 4px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body.clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.post-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.act { border: 0; background: none; padding: 0; font: 600 13px var(--body); color: var(--forest); cursor: pointer; text-decoration: none; }
.act:hover { text-decoration: underline; }
.act-quiet { color: var(--ink-soft); }
.act-admin { color: #B42318; }
.act[disabled] { color: var(--ink-soft); cursor: default; text-decoration: none; }
.cat { font: 700 11px/1 var(--body); letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; background: #EEF2EF; color: var(--ink); }
.cat-recommendations { background: #E6F2DC; color: #23622F; }
.cat-for-sale { background: #FBEBD8; color: #8A4E12; }
.cat-lost-found { background: #E5EEF9; color: #1F4D86; }
.cat-safety { background: #FDECE8; color: #9E2F1E; }
.cat-events { background: #DDF1EF; color: #146460; }
.thread { margin: 10px 0 0 14px; padding-left: 14px; border-left: 3px solid #E6EDE8; }
.replies { list-style: none; margin: 0; padding: 0; }
.reply { padding: 8px 0; }
.reply-body { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form { margin-top: 8px; gap: 6px; }
.reply-form textarea { font-size: 15px; }
.feed-more { margin: 14px 0 4px; }
.admin-card { border-color: #F1C2B8; }
.count-pill { display: inline-block; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: #C2412D; color: #fff; font: 700 12px var(--body); text-align: center; vertical-align: middle; }
.admin-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.admin-item { padding: 10px 0; border-bottom: 1px solid #F3E1DC; }
.admin-title { font-weight: 700; font-size: 15px; }
.admin-body { font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; }
@media (max-width: 860px) {
  .forum-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-forum { height: 70vh; min-height: 420px; }
}

/* Personal page (name.localconnect.site) and rules page */
.member-page { background: var(--mp-bg, var(--sky)); }
.mp-top { background: var(--mp-top, var(--ink)); color: var(--mp-top-ink, #fff); border-bottom: 5px solid var(--mp-accent, var(--leaf)); padding: 16px 0 28px; }
.mp-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mp-home { display: inline-flex; align-items: center; gap: 12px; color: var(--mp-top-ink, #fff); text-decoration: none; font: 700 26px/1 var(--display); }
.mp-home img { border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.mp-home .vip { color: var(--mp-hi, #8FD16F); }
.mp-join { background: var(--mp-accent, var(--leaf)); border-color: var(--mp-accent, var(--leaf)); color: var(--mp-join-ink, var(--ink)); }
.mp-hero { margin-top: 24px; }
.mp-address { font-size: 14px; color: var(--mp-hi, #8FD16F); font-weight: 700; letter-spacing: .01em; }
.mp-hero h1 { margin-top: 4px; font-size: clamp(32px, 5vw, 48px); color: var(--mp-top-ink, #fff); }
.mp-where { margin-top: 6px; color: var(--mp-sub, #C9D6E8); font-size: 17px; }
.mp-main { padding-top: 28px; padding-bottom: 56px; }
.mp-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.mp-side { display: flex; flex-direction: column; gap: 16px; }
.mp-side p + p { margin-top: 8px; }
#mp-about { margin-top: 6px; font-size: 16px; white-space: pre-wrap; }
.mp-wx { margin-top: 6px; font-family: var(--display); font-size: 20px; font-weight: 600; }
.mp-posts { height: auto; border-top-color: var(--mp-card, #6B4FA0); }
.member-page .mp-side .card-lite { border-top: 4px solid var(--mp-card, var(--line)); }
.mp-posts-body { padding: 4px 20px 16px; }
.mp-missing { max-width: 620px; margin: 0 auto; text-align: center; padding: 32px; }
.mp-missing h2 { font-size: 26px; }
.mp-missing p { margin-top: 10px; }
.rules { padding-top: 28px; padding-bottom: 56px; display: grid; gap: 16px; max-width: 820px; }
.rules ul { margin: 8px 0 0; padding-left: 20px; }
.rules li + li { margin-top: 6px; }
@media (max-width: 760px) {
  .mp-grid { grid-template-columns: minmax(0, 1fr); }
  .mp-side { order: 2; }
  .mp-join { display: none; }
}

/* Weather + air quality, together under Change ZIP / Nearby cities in the header */
.conditions { display: flex; gap: 10px; flex-wrap: wrap; }
.cond {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none;
  font-size: 14px; line-height: 1.3;
}
.cond:hover { background: rgba(255, 255, 255, .14); }
.cond:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
#wx-tile.cond { flex: 1 1 auto; min-width: 0; }
#aqi-tile.cond { flex: 0 0 auto; }
.cond-icon { display: inline-grid; place-items: center; flex: none; color: #FFD27A; }
.cond-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cond-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cond-text strong { font-weight: 700; color: #fff; }
.cond-sub { color: #C9D6E8; }
.cond .aqi-dot { width: 12px; height: 12px; border: 2px solid rgba(255, 255, 255, .85); }
.signed-in .top a.cond { color: #fff; }
@media (min-width: 980px) {
  .signed-in .top .wrap { row-gap: 14px; }
  .signed-in .brand, .signed-in .top-greeting { grid-row: 1 / 3; }
  .signed-in #today { grid-column: 3 / 5; grid-row: 2; }
}
@media (max-width: 979px) {
  .top-settings #today { flex-basis: 100%; }
}

/* Weather alerts in the city card, where the map was */
.about-alert { display: flex; flex-direction: column; gap: 12px; align-self: center; }
.about-alert .tile { width: 100%; min-height: 104px; justify-content: center; }
@media (min-width: 980px) and (max-width: 1140px) {
  .signed-in .top .wrap { column-gap: 16px; }
  .signed-in .picker { width: 230px; }
  .signed-in .zip-form input { width: 110px; }
  .signed-in #zip-form > label { width: 110px; }
}

/* Box subtitles stay on one line so the three boxes line up; hover shows the full text */
.panel-head .note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Signed-out page: navy header with Sign in / Join, welcome + sign-in card
   ========================================================================== */
.top { background: var(--ink); color: #fff; border-bottom: 5px solid var(--leaf); }
.top .brand-name { color: #fff; }
.top .brand-name span { color: #8FD16F; }
.top .brand-tag { color: #C9D6E8; }
.top .brand-mark { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top-auth { display: flex; gap: 10px; align-items: center; }
.signed-in .top-auth { display: none; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.welcome { padding: 48px 0 64px; }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
.welcome-copy h1 { font-size: clamp(40px, 5.5vw, 64px); letter-spacing: -0.02em; }
.welcome-copy .lead { margin-top: 14px; font-size: 20px; color: var(--ink-soft); max-width: 32ch; }
.feats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 520px; }
.feats li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.feats strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; }
.feats li div span { display: block; color: var(--ink-soft); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.feat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--ink); color: #fff; }
.feats li:nth-child(2) .feat-icon { background: var(--teal); }
.feats li:nth-child(3) .feat-icon { background: #6B4FA0; }
.feat-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-card { padding: 0; overflow: hidden; border-radius: 20px; }
@media (min-width: 861px) {
    /* Side by side: the box's top lines up with "Hello, neighbor." and its bottom
     with the last feature card; the feature cards spread out to fill the height. */
  .welcome-grid { grid-template-rows: auto auto auto 1fr; row-gap: 0; align-items: stretch; }
  .welcome-copy { display: contents; }
  .welcome-copy > * { grid-column: 1; align-self: start; }
  .welcome-copy > .feats { grid-row: 4; align-self: stretch; display: flex; flex-direction: column; gap: 18px; }
  .welcome-copy > .feats li { flex: 1 1 auto; align-items: center; padding: 16px 20px; }
  .auth-card > div[id$="-panel"]:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
  .signin-more { margin-top: auto; }
  .welcome-grid > .auth-card { grid-column: 2; grid-row: 1 / 5; margin-top: 0; display: flex; flex-direction: column; }
}
.auth-card > div[id$="-panel"] { padding: 22px 26px 24px; }
.auth-card h2 { font-size: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 26px 0; background: #fff; }
.auth-tab { border: 0; background: transparent; padding: 12px 10px 10px; font: 700 16px var(--body); color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid var(--line); text-align: center; }
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-on { color: var(--ink); border-bottom-color: var(--forest); }
.auth-tab:focus-visible { outline: 3px solid var(--marigold); outline-offset: -3px; }
@media (max-width: 860px) {
  .welcome-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .welcome { padding-top: 28px; }
  .auth-card { order: -1; }
}
@media (max-width: 520px) {
  .top-auth { display: none; }
}

/* ---------- Farmers markets (top of Local events) ---------- */
.markets { margin: 8px 0 4px; padding: 14px 16px 12px; background: var(--lime); border: 1px solid #CFE3C2; border-radius: 14px; }
.markets-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.markets-head h3 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--forest); }
.markets-head svg { width: 20px; height: 20px; fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.markets-count { font-size: 13px; font-weight: 600; color: var(--forest); white-space: nowrap; }
.markets .markets-list { list-style: none; margin: 6px 0 0; padding: 0; }
.markets .market { margin: 0; padding: 9px 0; border-top: 1px solid #CFE3C2; }
.markets .market > * { margin: 0; }
.markets h3, .markets p { margin: 0; }
.markets .market h4 { font-family: var(--body, inherit); font-size: 15px; font-weight: 700; line-height: 1.3; }
.market h4 a { color: var(--ink); text-decoration: none; }
.market h4 a:hover { text-decoration: underline; text-decoration-color: var(--leaf); }
.markets .market-where { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.markets .market-about { margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.markets .market-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; line-height: 1.5; }
.market-near { color: var(--forest); font-weight: 600; margin-right: 2px; }
.market-tag { padding: 1px 8px; border-radius: 999px; background: #fff; border: 1px solid #BCD8AE; color: var(--forest); font-weight: 600; }
.markets-more { margin-top: 4px; padding: 6px 0; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--forest); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.markets-more:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
.markets .markets-credit { margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.markets-credit a { color: var(--forest); }
.markets .markets-warn { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #FFF6DA; border: 1px solid #F0D98A; font-size: 13px; font-weight: 600; line-height: 1.35; color: #6B4E00; }
.markets-warn svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: #A87400; stroke-width: 2; stroke-linecap: round; }

/* ---------- Events box (blue, matches the farmers market box) ---------- */
.evbox { margin: 14px 0 4px; padding: 14px 16px 6px; background: #E7F0FA; border: 1px solid #C5D8EE; border-radius: 14px; }
.evbox-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.evbox-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink); }
.evbox-head svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.evbox-count { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.evbox .events { margin-top: 6px; }
.evbox .events .event { border-top: 1px solid #C5D8EE; border-bottom: 0; padding: 10px 0; }
.evbox .events .event:first-child { padding-top: 10px; }
.evbox .loading, .evbox .empty { margin: 8px 0 10px; padding: 10px 0; background: none; }
.evbox .event-date { border-color: #C5D8EE; }

/* ---------- Markets & events: two boxes, each scrolls on its own ---------- */
.panel-events .split-body { display: flex; flex-direction: column; gap: 12px; overflow: hidden; padding: 12px 14px 14px; }
.panel-events .markets { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin: 0; padding-bottom: 10px; }
.panel-events .markets[hidden] { display: none; }
.panel-events .markets .markets-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-right: -10px; padding-right: 10px; }
.panel-events .evbox { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin: 0; padding-bottom: 12px; }
.panel-events .evbox-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 6px -10px 0 0; padding-right: 10px; }
.panel-events .evbox .events { margin-top: 0; }
.panel-events .evbox .events .event:first-child { border-top: 0; padding-top: 4px; }
.box-scroll { overscroll-behavior: contain; scrollbar-width: auto; }
.box-scroll:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
.box-scroll::-webkit-scrollbar { width: 16px; }
.box-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.7); border-radius: 10px; }
.box-scroll::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 10px; border: 2px solid rgba(255,255,255,.9); min-height: 56px; }
.markets .box-scroll::-webkit-scrollbar-thumb { background: var(--forest); }
@supports not selector(::-webkit-scrollbar) { .box-scroll { scrollbar-color: var(--ink) rgba(255,255,255,.7); } .markets .box-scroll { scrollbar-color: var(--forest) rgba(255,255,255,.7); } }
.evbox .evbox-note { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 2px; padding: 6px 10px; border-radius: 8px; background: #FFF6DA; border: 1px solid #F0D98A; font-size: 13px; font-weight: 600; line-height: 1.35; color: #6B4E00; }
.evbox-note svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: #A87400; stroke-width: 2; stroke-linecap: round; }

/* ---------- Compact news stories ---------- */
.panel .story { grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; padding: 10px 0; }
.panel .story h3 { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.panel .story .from { font-size: 12px; margin-top: 3px; }
.panel .story .summary { font-size: 13px; line-height: 1.4; margin-top: 2px; -webkit-line-clamp: 1; }
.panel .story img { width: 64px; height: 48px; border-radius: 8px; }

/* ---------- Make this your home page + quick links (under the weather alert) ---------- */
.homepage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 14px; border: 1px solid #BFD9D6; border-radius: 12px; background: #fff; font: 600 14px/1.2 var(--body); color: var(--ink); cursor: pointer; }
.hp-btn:hover { background: var(--sky); }
.hp-btn:focus-visible, .hp-help button:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.hp-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hp-help { position: absolute; z-index: 20; top: calc(100% - 30px); right: 0; width: 320px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 40, 75, .18); font-size: 14px; color: var(--ink); }
.hp-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.hp-tabs button { flex: 1; padding: 6px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 600 13px var(--body); color: var(--ink-soft); cursor: pointer; }
.hp-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hp-steps { margin: 0; padding-left: 20px; line-height: 1.45; }
.hp-steps li + li { margin-top: 4px; }
.hp-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hp-copy button { padding: 7px 12px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font: 600 13px var(--body); cursor: pointer; }
#hp-copied { font-size: 12px; color: var(--forest); word-break: break-all; }
.hp-links { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; font-size: 14px; }
.hp-links span { color: var(--ink-soft); }
.hp-links { gap: 10px; }
.hp-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #BFD9D6; border-radius: 12px; background: #fff; }
.hp-links a:hover { background: var(--sky); border-color: var(--teal); }
.hp-links a:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.hp-links img { width: 24px; height: 24px; display: block; }

/* ---------- City card: more about the city, smaller links, bigger photo ---------- */
.about-card { grid-template-columns: 240px minmax(0, 1fr) 230px; }
.about-card.no-photo { grid-template-columns: minmax(0, 1fr) 230px; }
.about-photo img { height: 160px; }
.about-text #about-extract { -webkit-line-clamp: 5; line-clamp: 5; font-size: 14.5px; line-height: 1.5; max-width: 78ch; }
.about-links { margin-top: 6px; gap: 4px 14px; font-size: 13px; font-weight: 600; align-items: baseline; }
.about-county-name { font-weight: 500; color: var(--ink-soft); }
.about-credit { margin-top: 4px; font-size: 11px; }
.about-photo figcaption { font-size: 11px; }
.about-card { align-items: stretch; }
.about-card .about-photo, .about-card .about-alert { align-self: start; }
.about-text { display: flex; flex-direction: column; min-height: 0; }
.about-text #about-extract { flex: 1 1 0; min-height: 3em; -webkit-line-clamp: 99; line-clamp: 99; }
.about-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.about-foot .about-links { margin-top: 0; }
.about-foot .about-credit { margin-top: 0; }
.about-text #about-extract { font-size: 14px; line-height: 1.45; }

/* ---------- City card: photo runs the full height of the card ---------- */
.about-card { grid-template-columns: 250px minmax(0, 1fr) 230px; }
.about-card.no-photo { grid-template-columns: minmax(0, 1fr) 230px; }
.about-card > .about-photo { align-self: stretch; display: flex; flex-direction: column; min-height: 0; }
.about-card > .about-photo[hidden] { display: none; }
.about-card > .about-photo img { flex: 1 1 0; height: auto; min-height: 140px; width: 100%; object-fit: cover; }
.about-text { align-self: stretch; }
.about-body { flex: 1 1 0; min-height: 120px; overflow: hidden; }
.about-text #about-extract { display: block; -webkit-line-clamp: none; line-clamp: none; max-height: none; overflow: visible; flex: none; min-height: 0; max-width: none; margin-top: 4px; }
.about-body h2 { margin: 0; }

/* ---------- Full city list on hover for the panel subtitles ---------- */
.panel-head { position: relative; }
.panel-head .note[data-full] { cursor: default; }
.panel-head .note[data-full]:hover::after, .panel-head .note[data-full]:focus::after {
  content: attr(data-full); position: absolute; z-index: 30; left: 16px; right: 16px; top: calc(100% - 6px);
  padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 13px; line-height: 1.45; white-space: normal; box-shadow: 0 8px 24px rgba(20, 40, 75, .25);
}
.panel-head .note[data-full]:focus-visible { outline: 2px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Password dialog ---------- */
.pw-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 40, 75, .3); color: var(--ink); }
.pw-dialog::backdrop { background: rgba(20, 40, 75, .45); }
.pw-dialog h2 { font-family: var(--display); font-size: 24px; margin: 0 0 12px; }
.pw-dialog form { display: grid; gap: 12px; }
.pw-dialog label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.pw-dialog input { font: 16px var(--body); padding: 10px 12px; border: 1px solid #B9C7BE; border-radius: 10px; }
.pw-actions { display: flex; gap: 10px; margin-top: 4px; }
.hp-steps code { font-size: 12px; background: var(--sky); border-radius: 4px; padding: 1px 4px; word-break: break-all; }
.hp-tabs button { padding-left: 2px; padding-right: 2px; }

/* Join form: optional web address */
#signup-form label[for="signup-slug"] { display: block; margin-top: 2px; }
#signup-form label[for="signup-slug"] .optional { display: inline; }
#signup-form .optional { font-weight: 400; color: var(--ink-soft); }
#signup-form .signup-slug { margin-top: -6px; }
#signup-form #signup-slug-hint { margin-top: -6px; font-size: 14px; }

/* Signed-in header: email + Change password / Sign out + web address, in two even columns */
.top-greeting .top-actions { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 10px; }
.top-greeting .top-actions .btn, .top-greeting .top-actions .top-page { justify-self: stretch; text-align: center; }
.top-greeting .top-actions .top-page .btn { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
#mypage { scroll-margin-top: 16px; }

/* ---------- Member page designs (member_sites.theme) ----------
   Used on name.localconnect.site (body class) and in the preview in "Your page". */
.theme-neighborhood { --mp-top: #14284B; --mp-top-ink: #fff; --mp-sub: #C9D6E8; --mp-hi: #8FD16F; --mp-accent: #2F8F4E; --mp-bg: #EEF3EF; --mp-card: #6B4FA0; }
.theme-garden { --mp-top: #234D33; --mp-top-ink: #FFF9EE; --mp-sub: #CFE3D2; --mp-hi: #F2C46B; --mp-accent: #C8693D; --mp-bg: #F7F2E7; --mp-card: #C8693D; --mp-join-ink: #fff; }
.theme-coast { --mp-top: #0F4C6E; --mp-top-ink: #fff; --mp-sub: #C6E2F0; --mp-hi: #8EE0D8; --mp-accent: #F2795C; --mp-bg: #EEF5F8; --mp-card: #1A8FB2; --mp-join-ink: #fff; }
.theme-sunset { --mp-top: #4A1E44; --mp-top-ink: #FFF4EC; --mp-sub: #F1CFD9; --mp-hi: #FFB35C; --mp-accent: #E8683B; --mp-bg: #FDF1EA; --mp-card: #B8457A; --mp-join-ink: #fff; }
.theme-porch { --mp-top: #FFFDF7; --mp-top-ink: #14284B; --mp-sub: #4B5A6E; --mp-hi: #B7791F; --mp-accent: #F2B33D; --mp-bg: #F8F5EE; --mp-card: #F2B33D; }
.theme-porch .mp-home img { box-shadow: 0 0 0 3px #14284B; }

/* Design picker + live preview in "Your page" */
.theme-pick { border: 0; margin: 4px 0 0; padding: 0; }
.theme-pick legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 6px; }
.theme-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.theme-swatch { position: relative; display: grid; justify-items: center; gap: 3px; cursor: pointer; font-size: 11px; color: var(--ink-soft); min-width: 0; }
.theme-swatch .name { max-width: 100%; text-align: center; letter-spacing: -.01em; }
.theme-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-swatch .dot { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line);
  background: linear-gradient(135deg, var(--mp-top) 0 50%, var(--mp-accent) 50% 100%); }
.theme-swatch input:checked + .dot { box-shadow: 0 0 0 3px var(--forest); }
.theme-swatch input:focus-visible + .dot { outline: 3px solid var(--marigold); outline-offset: 2px; }
.theme-swatch input:checked ~ .name { color: var(--ink); font-weight: 700; }
.theme-preview { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--mp-bg); font-size: 12px; }
.theme-preview .tp-top { background: var(--mp-top); color: var(--mp-top-ink); border-bottom: 3px solid var(--mp-accent); padding: 8px 10px 10px; }
.theme-preview .tp-addr { color: var(--mp-hi); font-weight: 700; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-preview .tp-title { font: 700 17px/1.15 var(--display); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-preview .tp-where { color: var(--mp-sub); font-size: 11px; margin-top: 1px; }
.theme-preview .tp-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6px; padding: 8px; }
.theme-preview .tp-card { background: #fff; border-radius: 6px; border-top: 3px solid var(--mp-card); padding: 5px 6px; min-height: 42px; }
.theme-preview .tp-card b { display: block; font-size: 10px; color: var(--ink); }
.theme-preview .tp-line { height: 5px; border-radius: 3px; background: #E3E8EE; margin-top: 5px; }
.theme-preview .tp-line.short { width: 60%; }
.theme-preview-label { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Agent pages: editor in "Your page" ---------- */
.agent-toggle { margin-top: 4px; font-weight: 600; }
.agent-fields { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-radius: 12px; background: var(--lime); }
.agent-fields .note { margin: 0; }
.agent-tools { margin-top: 12px; }
.agent-tools .btn { width: 100%; justify-content: center; gap: 8px; }
.lead-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px;
  background: var(--marigold); color: var(--ink); font-size: 12px; font-weight: 700; }
.lead-badge[hidden] { display: none; }

.studio { width: min(940px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(20, 40, 75, .3); color: var(--ink); overflow: auto; }
.studio::backdrop { background: rgba(20, 40, 75, .45); }
.studio-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 16px 20px 8px; background: #fff; }
.studio-head h2 { font-size: 24px; margin-right: auto; }
.studio-view { font-weight: 700; color: var(--forest); }
.studio-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sky); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.studio-close:hover { background: var(--sky-deep); }
.studio-tabs { position: sticky; top: 64px; z-index: 2; display: flex; gap: 6px; padding: 0 20px 10px; background: #fff; border-bottom: 2px solid var(--line); }
.studio-tab { min-height: 40px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; }
.studio-tab.is-on { border-color: var(--forest); background: var(--forest); color: #fff; }
.studio-pane { padding: 18px 20px 24px; }
.studio-pane h3 { font-size: 19px; margin-bottom: 8px; }
.studio-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.headshot-box { display: grid; justify-items: center; gap: 6px; text-align: center; }

/* Drop zones: a label around a hidden file input, so tap-to-choose and keyboard both work */
.drop { position: relative; display: grid; place-items: center; gap: 6px; min-height: 120px; padding: 18px; border: 2px dashed #9DB5A6; border-radius: 16px;
  background: #F6FAF7; color: var(--ink-soft); font-weight: 400; font-size: 15px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--forest); background: var(--lime); }
.drop:focus-within { outline: 3px solid var(--marigold); outline-offset: 2px; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop.is-busy { pointer-events: none; opacity: .65; }
.drop.is-busy::after { content: 'Uploading…'; position: absolute; inset: auto 0 10px; font-weight: 700; color: var(--forest); }
.drop-round { width: 168px; height: 168px; min-height: 0; padding: 12px; border-radius: 50%; font-size: 13px; overflow: hidden; }
.drop-round img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.has-img { border-style: solid; border-color: var(--line); padding: 0; }
.drop-wide img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.drop-wide.has-img { padding: 6px; }

.photo-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo-item { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--sky); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-bar { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.photo-cover { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(20, 40, 75, .8); color: #fff; font-size: 11px; font-weight: 700; }
.icon-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger { color: var(--danger); }
.linkish.danger { color: var(--danger); font-size: 14px; }

.sold-form { margin: 0; gap: 12px; }
.sold-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.sold-fields label { font-size: 14px; gap: 4px; }
.sold-fields input { min-height: 42px; font-size: 16px; }
.sold-fields .span2 { grid-column: span 2; }
.sold-list, .lead-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.sold-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
.sold-pic { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--sky); }
.sold-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sold-txt { display: grid; gap: 2px; min-width: 0; }
.lead { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 4px; }
.lead.is-new { border-color: var(--marigold); background: #FFF8E6; }
.lead-top { display: flex; justify-content: space-between; gap: 10px; }
.lead-how { display: flex; gap: 14px; flex-wrap: wrap; }
.lead-how a { color: var(--forest); font-weight: 700; }
.lead-msg { white-space: pre-wrap; margin: 2px 0 4px; }
.lead .linkish { justify-self: start; }
@media (max-width: 680px) {
  .studio-row { grid-template-columns: minmax(0, 1fr); }
  .sold-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sold-item { grid-template-columns: 72px minmax(0, 1fr); }
  .sold-pic { width: 72px; height: 56px; }
  .sold-item .linkish { grid-column: 2; justify-self: start; }
}

/* ---------- Agent pages: name.localconnect.site ---------- */
.mp-hero { display: flex; align-items: center; gap: 24px; }
.mp-hero-text { min-width: 0; }
.mp-headshot { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid var(--mp-accent, var(--leaf)); background: #fff; }
.mp-agent-line { margin-top: 4px; color: var(--mp-top-ink, #fff); font-weight: 700; font-size: 16px; }
.mp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mp-cta .btn { text-decoration: none; }
.mp-cta .mp-call { background: var(--mp-accent, var(--leaf)); border-color: var(--mp-accent, var(--leaf)); color: var(--mp-join-ink, #fff); }
.mp-mainstack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mp-gallery, .mp-sold { height: auto; border-top-color: var(--mp-card, #6B4FA0); }
.mp-sold .panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mp-photos { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.mp-photos li:first-child { grid-column: span 2; grid-row: span 2; }
.mp-photo { display: block; width: 100%; height: 100%; min-height: 120px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sky); }
.mp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.mp-photo:hover img { transform: scale(1.03); }
.mp-sold-list { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mp-home-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.mp-home-pic { position: relative; aspect-ratio: 3 / 2; background: var(--sky); }
.mp-home-pic.no-pic { background: linear-gradient(135deg, var(--mp-bg, var(--sky)), var(--sky-deep)); }
.mp-home-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-sold-tag { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--mp-accent, var(--leaf)); color: var(--mp-join-ink, #fff); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mp-home-body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.mp-home-body h3 { font-size: 17px; }
.mp-home-price { margin-top: 4px; font-weight: 700; font-size: 18px; }
.mp-contact .stack-form textarea { min-height: 96px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mp-eho { margin-bottom: 8px; font-weight: 700; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 34, .88); }
.lightbox img { display: block; max-width: 96vw; max-height: 88vh; border-radius: 10px; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { top: 28px; right: 16px; transform: none; }
.lb-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .mp-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mp-headshot { width: 104px; height: 104px; }
  .mp-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Agent stats tab */
.stats-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stats-top .note { margin: 0; }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { min-height: 36px; padding: 0 14px; border: 0; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.seg button + button { border-left: 2px solid var(--line); }
.seg button.is-on { background: var(--forest); color: #fff; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.stat-tile { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #F6FAF7; }
.stat-num { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }
.stat-label { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.stat-chg { font-size: 13px; color: var(--ink-soft); }
.stat-chg.up { color: #1B7F4D; } .stat-chg.down { color: var(--danger); }
.stat-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin-top: 16px; padding: 8px 8px 0; border-bottom: 2px solid var(--line); }
.stat-chart .bar { flex: 1 1 0; min-width: 2px; border-radius: 3px 3px 0 0; background: var(--forest); }
.stat-chart .bar.zero { background: var(--sky-deep); }
.stat-chart .bar:hover { background: var(--marigold); }
.stat-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.stat-lists h3 { font-size: 17px; }
.stat-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.stat-list li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; overflow: hidden; font-size: 14px; }
.stat-fill { position: absolute; inset: 0 auto 0 0; background: var(--lime); z-index: 0; }
.stat-name, .stat-n { position: relative; }
.stat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-n { font-weight: 700; }
.stat-tip { margin-top: 16px; }
@media (max-width: 680px) {
  .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-num { font-size: 26px; }
  .stat-lists { grid-template-columns: minmax(0, 1fr); }
}

/* Market snapshot on agent pages */
.mp-market { height: auto; border-top-color: var(--mp-card, #6B4FA0); }
.mp-market .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mk-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-tab { min-height: 34px; padding: 0 12px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.mk-tab.is-on { border-color: var(--mp-top, var(--ink)); background: var(--mp-top, var(--ink)); color: var(--mp-top-ink, #fff); }
.mk-body { padding: 16px 20px 4px; }
.mk-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mk-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.mk-value { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.mk-value.small { font-size: 26px; }
.mk-chg { font-family: var(--body, inherit); font-size: 15px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mk-chg.up { color: #1B7F4D; background: #E3F4E9; } .mk-chg.down { color: var(--danger); background: #FDECEA; }
.mk-sub { font-family: var(--body, inherit); font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.mk-side { text-align: right; }
.mk-chart { margin-top: 14px; }
.mk-spark { display: block; width: 100%; height: 120px; }
.mk-area { fill: var(--mp-card, var(--leaf)); opacity: .12; }
.mk-line { fill: none; stroke: var(--mp-card, var(--leaf)); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mk-dot { fill: var(--mp-card, var(--leaf)); stroke: #fff; stroke-width: 2; }
.mk-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.mk-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.mk-facts li { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; background: var(--mp-bg, var(--sky)); font-weight: 600; }
.mk-note { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.mk-ask { margin: 16px 0 6px; text-decoration: none; }
.mk-credit { margin: 0; padding: 4px 20px 16px; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .mk-value { font-size: 32px; }
  .mk-side { text-align: left; }
}

/* City names under the Open houses and Garage & estate sales titles: tap one to jump to its links */
.panel-head .note.city-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: 0; margin-top: 8px; white-space: normal; overflow: visible; }
.city-chip { min-height: 26px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.city-chip:hover { border-color: var(--forest); background: var(--lime); }
.city-chip:focus-visible { outline: 3px solid var(--marigold); outline-offset: 1px; }
.panel-sales .city-chip:hover { border-color: #C7782A; background: #FBEBD8; }
.oh-row.is-flash { animation: row-flash 1.6s ease-out; }
@keyframes row-flash { 0%, 30% { background: #FFF3C4; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .oh-row.is-flash { animation: none; background: #FFF3C4; } }

/* Open houses and Garage & estate sales: same row layout, buttons share the row width evenly */
.panel-stack .oh-row { flex-direction: column; align-items: stretch; gap: 6px; }
.panel-stack .oh-links { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.panel-stack .oh-link { justify-content: center; min-height: 32px; padding: 0 8px; font-size: 13px; text-align: center; white-space: nowrap; }
.panel-stack .oh-all .oh-city { font-family: var(--body); font-size: 14px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.panel-stack .oh-all { background: #FFF8EF; margin: 0 -16px 0 -20px; padding: 10px 16px 10px 20px; }

/* Garage & estate sales: two big buttons */
.sale-btns { list-style: none; margin: 0; padding: 12px 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sale-btn { display: grid; align-content: center; gap: 2px; height: 100%; padding: 12px 14px; border: 2px solid #E2B98C; border-radius: 14px; background: #fff; color: #8A4E12; text-decoration: none; text-align: center; transition: background .15s, border-color .15s; }
.sale-btn:hover { background: #FBEBD8; border-color: #C7782A; }
.sale-btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.sale-btn-title { font-family: var(--display); font-size: 18px; font-weight: 700; }
.sale-btn-sub { font-size: 12px; color: var(--ink-soft); }

/* Neighbors' sales (posted by members) */
.nsales-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.nsales-head h3 { font-size: 17px; }
.nsales-head .btn { min-height: 34px; padding: 0 14px; font-size: 14px; }
.nsales { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.nsale { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.nsale:hover { border-color: #C7782A; background: #FFF8EF; }
.nsale:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.nsale-pic { width: 64px; height: 52px; border-radius: 8px; overflow: hidden; background: #FBEBD8; display: grid; place-items: center; font-size: 22px; }
.nsale-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nsale-txt { display: grid; gap: 1px; min-width: 0; }
.nsale-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.nsale-when { color: var(--ink-soft); font-weight: 600; }
.nsale-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsale-where { font-size: 13px; color: var(--ink-soft); }
.nsales-empty { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.sale-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: #FBEBD8; color: #8A4E12; }
.sale-tag.estate { background: #E9E3F5; color: #4F3A7A; }

/* Post a sale + view a sale */
.sale-form { margin: 0; padding: 16px 20px 8px; gap: 12px; }
.sale-kind { display: flex; gap: 18px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; }
.sale-kind legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.sale-kind label { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.sale-kind input { width: 18px; height: 18px; min-height: 0; accent-color: var(--forest); }
.sale-form .sold-fields textarea { font-size: 16px; }
.sold-fields .span3 { grid-column: 1 / -1; }
.sale-show { font-size: 14px; }
.my-sales { padding: 8px 20px 22px; border-top: 1px solid var(--line); }
.my-sales h3 { font-size: 18px; margin-top: 10px; }
.my-sale-acts { display: flex; gap: 12px; }
.sale-view { width: min(640px, calc(100vw - 24px)); }
.sale-view .studio-head { flex-wrap: wrap; }
.sale-view .studio-head h2 { flex: 1 1 100%; order: 3; font-size: 26px; }
.sale-view .sale-tag { margin-right: auto; }
.sv-body { padding: 4px 20px 22px; display: grid; gap: 10px; }
.sv-photos img#sv-photo { width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; display: block; background: var(--sky); }
.sv-thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.sv-thumb { width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.sv-thumb.is-on { border-color: var(--forest); }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-when { font-weight: 700; font-size: 17px; margin: 0; }
.sv-where { margin: 0; }
.sv-details { margin: 0; white-space: pre-wrap; }
.sv-actions .btn { text-decoration: none; }

/* Garage sales found on the web (opens under the Garage sales button) */
.sale-btn { font: inherit; cursor: pointer; }
button.sale-btn { width: 100%; }
.sale-btn.is-on { background: #FBEBD8; border-color: #C7782A; }
.garage-results { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #FFF8EF; border: 1px solid #F0D9BC; }
.gr-status { margin: 0; font-size: 13px; color: var(--ink-soft); }
.gr-status a, .gr-more a { color: #8A4E12; font-weight: 700; }
.gr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gr-list li { padding: 8px 0; border-bottom: 1px solid #F0D9BC; }
.gr-list li:first-child { padding-top: 0; }
.gr-title { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.gr-title:hover { text-decoration: underline; }
.gr-meta { font-size: 12px; color: #8A4E12; }
.gr-snippet { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.gr-more { margin: 8px 0 0; font-size: 13px; }

/* Garage sales results: coloured site tags */
.gr-list { gap: 6px; }
.gr-list li { padding: 0; border-bottom: 0; }
.gr-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #F0D9BC;
  border-left: 4px solid var(--gr, #C7782A); text-decoration: none; color: var(--ink); transition: background .15s, transform .15s; }
.gr-item:hover { background: var(--gr-bg, #FBEBD8); transform: translateX(2px); }
.gr-item:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.gr-item .gr-title { font-weight: 700; font-size: 14px; line-height: 1.3; min-width: 0; }
.gr-item:hover .gr-title { text-decoration: none; }
.gr-site { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: var(--gr, #C7782A); white-space: nowrap; }
.gr-craigslist { --gr: #5A2D82; --gr-bg: #F0E8F7; }
.gr-facebook { --gr: #1877F2; --gr-bg: #E7F0FD; }
.gr-nextdoor { --gr: #1B8A3A; --gr-bg: #E5F4EA; }
.gr-yss { --gr: #E07A1F; --gr-bg: #FDEEDF; }
.gr-gsalr { --gr: #0E8C8C; --gr-bg: #E0F3F3; }
.gr-gsf { --gr: #C2410C; --gr-bg: #FCE9DF; }
.gr-esnet { --gr: #14284B; --gr-bg: #E6ECF5; }
.gr-other { --gr: #6B7280; --gr-bg: #F1F2F4; }

.gr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; }
.gr-foot a { color: #8A4E12; font-weight: 700; }
.gr-close { margin-left: auto; min-height: 32px; padding: 0 16px; border: 2px solid #C7782A; border-radius: 999px; background: #fff; color: #8A4E12; font: inherit; font-weight: 700; cursor: pointer; }
.gr-close:hover { background: #FBEBD8; }
.gr-close:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* Close at the end of a box's list: goes back to the top */
.fold-foot { display: flex; justify-content: flex-end; padding: 12px 0 4px; list-style: none; border: 0 !important; }
/* Close buttons match the box colour */
.panel-news .fold-close { border-color: var(--ink); color: var(--ink); }
.panel-news .fold-close:hover { background: var(--sky); }
.panel-homes .fold-close { border-color: var(--leaf); color: var(--forest); }
.panel-homes .fold-close:hover { background: var(--lime); }
.fold-close { margin-left: 0; font-size: 13px; }

/* Farmers markets / Local events Close buttons */
.markets .fold-foot { padding: 8px 0 0; }
.evbox .fold-foot { padding: 10px 0 2px; }
.markets .fold-close { border-color: var(--forest); color: var(--forest); background: #fff; }
.markets .fold-close:hover { background: #F3F9EE; }
.evbox .fold-close { border-color: #3B5E8C; color: #1E3A63; background: #fff; }
.evbox .fold-close:hover { background: #F3F7FC; }

/* ---------- Compact, colourful Farmers markets and Local events ---------- */
.town-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--town, var(--teal)); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.panel-events .split-body { gap: 10px; padding: 10px 12px 12px; }
.panel-events .markets, .panel-events .evbox { padding: 10px 12px 8px; border-radius: 12px; }
.markets-head h3, .evbox-head h3 { font-size: 16px; }
.markets-head, .evbox-head { align-items: center; }
.markets-count { font-size: 11px; font-weight: 600; color: var(--forest); background: #fff; border: 1px solid #CFE3C2; border-radius: 999px; padding: 1px 8px; white-space: normal; text-align: right; }
.evbox-count { font-size: 11px; font-weight: 700; color: #1E3A63; background: #fff; border: 1px solid #C5D8EE; border-radius: 999px; padding: 1px 8px; }
.evbox .evbox-note { display: block; margin: 2px 0 0; padding: 0; background: none; border: 0; font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.panel-events .markets .markets-list { margin-top: 6px; }
.markets .market { position: relative; margin: 0 0 6px; padding: 6px 8px 6px 12px; border: 0 !important; border-radius: 10px; background: #fff; box-shadow: inset 4px 0 0 var(--town, var(--forest)); }
.markets .market h4 { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.markets .market h4 a { color: var(--ink); text-decoration: none; }
.markets .market h4 a:hover { text-decoration: underline; text-decoration-color: var(--forest); }
.markets .market-meta { margin-top: 3px; gap: 4px; }
.market-tag { padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.7; border: 0; }
.market-tag.ebt { background: #DBEAFE; color: #1E40AF; }
.market-tag.organic { background: #DCFCE7; color: #166534; }
.panel-events .evbox-scroll { margin-top: 4px; }
.evbox .events .event, .panel-events .evbox .events .event:first-child { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; margin: 0 0 6px; padding: 6px 8px; border: 0; border-radius: 10px; background: #fff; }
.evbox .event-date, .panel .evbox .event-date { height: 42px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--ev, var(--teal)) 12%, #fff); }
.panel .evbox .event-date .mon { padding: 2px 0; background: var(--ev, var(--teal)); font-size: 10px; }
.panel .evbox .event-date .day { margin-top: 2px; font-size: 17px; color: var(--ev, var(--ink)); }
.panel .evbox .event h3 { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 3px 0 0; font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.event-bits { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.evbox .empty p { font-size: 13px; margin: 0 0 4px; }
.evbox .loading, .evbox .empty { margin: 4px 0; padding: 4px 0; }

.panel .evbox .event h3 { font-family: 'Public Sans', system-ui, sans-serif; font-weight: 700; }
.markets .market h4 { -webkit-line-clamp: 2; }
.markets-count { white-space: nowrap; }

/* Whole event card opens the event */
.evbox .events .event { position: relative; transition: box-shadow .15s, transform .15s; }
.evbox .events .event:hover { box-shadow: 0 2px 8px rgba(20, 40, 75, .12); transform: translateY(-1px); }
.evbox .event-link { color: var(--ink); text-decoration: none; }
.evbox .event-link::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.evbox .event-link:focus-visible { outline: none; }
.evbox .event-link:focus-visible::after { outline: 3px solid var(--marigold); outline-offset: 1px; }
.evbox .event:hover .event-link { text-decoration: underline; text-decoration-color: var(--ev, var(--teal)); text-underline-offset: 2px; }

.hp-key { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 700 13px var(--body); color: var(--ink); white-space: nowrap; }
.gr-esorg { --gr: #7C3AED; --gr-bg: #F1EAFE; }
.gr-patch { --gr: #B91C1C; --gr-bg: #FDE8E8; }

/* ---------- Health news ---------- */
.health-band { padding: 0 0 40px; }
.panel-health { height: auto; border-top-color: #BE185D; }
.panel-health .panel-icon { background: #BE185D; }
.panel-health .panel-body { max-height: 520px; overflow-y: auto; }
.hn-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.hn-chip { min-height: 30px; padding: 0 12px; border: 2px solid var(--hn, var(--ink)); border-radius: 999px; background: #fff; color: var(--hn, var(--ink));
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hn-chip[aria-pressed="true"] { background: var(--hn, var(--ink)); color: #fff; }
.hn-chip:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.hn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hn-item { display: grid; gap: 6px; height: 100%; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--hn, var(--ink)); color: var(--ink); text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.hn-item:hover { background: var(--hn-bg, var(--sky)); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(20, 40, 75, .1); }
.hn-item:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.hn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hn-src { padding: 1px 8px; border-radius: 999px; background: var(--hn, var(--ink)); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hn-ago { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.hn-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.hn-all { --hn: var(--ink); }
.hn-epoch { --hn: #8B1E1E; --hn-bg: #FBEAEA; }
.hn-npr { --hn: #1F4E8C; --hn-bg: #E8F0FA; }
.hn-fox { --hn: #003366; --hn-bg: #E6EEF6; }
.hn-cbs { --hn: #374151; --hn-bg: #F1F2F4; }
.hn-abc { --hn: #0B6E4F; --hn-bg: #E4F4EE; }
.hn-sciencedaily { --hn: #6D28D9; --hn-bg: #F1EAFE; }
.hn-kff { --hn: #B45309; --hn-bg: #FDF1E3; }
.panel-health .fold-close { border-color: #BE185D; color: #9D174D; }
.panel-health .fold-close:hover { background: #FCE7F3; }

/* Wellness digest */
.panel-health .panel-body { max-height: 760px; }
.wd { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #FDF2F8, #F0F9FF); border: 1px solid #F5D0E6; }
.wd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wd-head h3 { font-size: 20px; color: #9D174D; }
.wd-date { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.wd-intro { margin: 6px 0 12px; font-size: 16px; }
.wd-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.wd-sec { padding: 10px 12px; border-radius: 12px; background: #fff; border-top: 4px solid var(--wd, #BE185D); }
.wd-sec h4 { font-size: 15px; color: var(--wd, #BE185D); margin: 0 0 4px; }
.wd-sec p { margin: 0; font-size: 14px; line-height: 1.45; }
.wd-c0 { --wd: #BE185D; } .wd-c1 { --wd: #1F8A84; } .wd-c2 { --wd: #6D28D9; } .wd-c3 { --wd: #B45309; } .wd-c4 { --wd: #1D4ED8; } .wd-c5 { --wd: #15803D; }
.wd-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px !important; }
.wd-links a { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--wd, #BE185D) 12%, #fff); color: var(--wd, #BE185D); font-size: 12px; font-weight: 700; text-decoration: none; }
.wd-links a:hover { text-decoration: underline; }
.wd-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-soft); }
.wd-wait { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.hn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hn-head h3 { font-size: 18px; }

/* Wellness header */
.panel-health { border-top: 0; overflow: hidden; }
.panel-health .panel-head { padding: 22px 24px 20px; border-bottom: 0;
  background: linear-gradient(120deg, #FBCFE8 0%, #FCE7F3 35%, #E0F2FE 75%, #DBEAFE 100%); }
.panel-health .panel-head h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 28px; color: #831843; }
.panel-health .panel-icon { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #EC4899, #BE185D);
  box-shadow: 0 6px 16px rgba(190, 24, 93, .35); }
.panel-health .panel-icon svg { width: 24px; height: 24px; }
.wd-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85);
  border: 1px solid #F9A8D4; color: #9D174D; font: 700 12px var(--body); letter-spacing: .02em; }
.panel-health .panel-head .note { margin: 6px 0 0 56px; font-size: 15px; color: #6B2148; white-space: normal; }
.panel-health .panel-body { padding-top: 16px; }
@media (max-width: 600px) {
  .panel-health .panel-head h2 { font-size: 24px; }
  .panel-health .panel-head .note { margin-left: 0; }
}

/* Wellness header illustration (original SVG, blue hues) */
.panel-health .panel-head { position: relative; min-height: 118px; }
.wd-art { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: min(410px, 40%); height: auto; pointer-events: none; }
.wd-art circle[fill^="url"] { transition: transform .3s; }
@media (max-width: 900px) { .wd-art { display: none; } }

/* AI summary badge top-right; illustration just below it */
.panel-health .panel-head { min-height: 150px; }
.panel-health .wd-badge { position: absolute; top: 14px; right: 20px; z-index: 1; background: #fff; box-shadow: 0 2px 6px rgba(131, 24, 67, .15); }
.wd-art { top: 46px; transform: none; }
@media (max-width: 900px) { .panel-health .panel-head { min-height: 0; padding-right: 130px; } }
@media (max-width: 600px) { .panel-health .wd-badge { position: static; display: inline-flex; margin: 10px 0 0; } .panel-health .panel-head { padding-right: 24px; } }

/* Wellness hero: picture + today's one-line summary under the title */
.wd-hero { display: flex; align-items: center; gap: 16px; margin: 12px 0 0 56px; max-width: calc(58% - 56px); }
.wd-scene { flex: none; width: 200px; height: auto; border-radius: 16px; box-shadow: 0 8px 20px rgba(15, 118, 110, .28); }
.panel-health .panel-head .wd-hero .note { margin: 0; font-size: 16px; line-height: 1.45; color: #5B1A3C; font-weight: 500; }
.panel-health .panel-head { min-height: 190px; }
.wd-art { top: 58px; }
@media (max-width: 900px) { .wd-hero { max-width: none; } }
@media (max-width: 600px) {
  .wd-hero { flex-direction: column; align-items: flex-start; margin-left: 0; }
  .wd-scene { width: 100%; max-width: 320px; }
}

/* Digest title now lives in the panel header */
.panel-health .panel-head h2 .wd-date { font-family: var(--body); letter-spacing: 0; font-size: 14px; font-weight: 700; color: #9D174D; background: rgba(255,255,255,.7); border: 1px solid #F5D0E6; border-radius: 999px; padding: 3px 10px; }
.panel-health .panel-head h2 .wd-date:empty { display: none; }
/* Wellness photo */
.wd-hero picture { flex: none; display: block; }
img.wd-scene { display: block; width: 240px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 600px) { .wd-hero picture, img.wd-scene { width: 100%; max-width: 360px; } }
/* Wellness header: photo as a soft background, small icon row in the title line */
.panel-health .panel-head { min-height: 0; padding-right: 150px; isolation: isolate; overflow: hidden;
  background: linear-gradient(100deg, rgba(253,242,248,.92) 0%, rgba(253,242,248,.72) 45%, rgba(240,249,255,.45) 100%); }
.panel-health .panel-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .38;
  background: url(/assets/img/wellness.webp) right center / cover no-repeat; }
.panel-health .panel-head h2 .wd-art { position: static; transform: none; top: auto; right: auto; width: auto; height: 34px; flex: none; margin-left: 4px; }
.wd-hero { max-width: 62ch; margin-top: 10px; }
.panel-health .panel-head .wd-hero .note { color: #4A1532; }
@media (max-width: 900px) { .panel-health .panel-head h2 .wd-art { display: block; height: 28px; } }
@media (max-width: 600px) { .panel-health .panel-head { padding-right: 24px; } .panel-health .panel-head h2 .wd-art { height: 24px; } }
.panel-health .panel-head { min-height: 150px; }
@media (max-width: 600px) { .panel-health .panel-head { min-height: 0; } }
/* Wellness icons: bigger, pushed right, each one pops in turn */
.panel-health .panel-head h2 .wd-art { height: 50px; margin-left: auto; margin-right: 8px; }
.wd-art .wa-i { transform-box: fill-box; transform-origin: 50% 50%; animation: wa-pop 4.8s ease-in-out infinite; }
.wd-art .wa-i:nth-child(2) { animation-delay: 0s; }
.wd-art .wa-i:nth-child(3) { animation-delay: .8s; }
.wd-art .wa-i:nth-child(4) { animation-delay: 1.6s; }
.wd-art .wa-i:nth-child(5) { animation-delay: 2.4s; }
.wd-art .wa-i:nth-child(6) { animation-delay: 3.2s; }
.wd-art .wa-i:nth-child(7) { animation-delay: 4s; }
@keyframes wa-pop { 0%, 18%, 100% { transform: none; filter: none; } 8% { transform: translateY(-10px) scale(1.14); filter: brightness(1.18) drop-shadow(0 6px 6px rgba(15,23,42,.35)); } }
@media (prefers-reduced-motion: reduce) { .wd-art .wa-i { animation: none; } }
@media (max-width: 900px) { .panel-health .panel-head h2 .wd-art { height: 40px; } }
@media (max-width: 600px) { .panel-health .panel-head h2 .wd-art { height: 34px; margin-left: 0; } }
/* One aligned title line: icon, title, date, animated circles, AI badge */
.panel-health .panel-head { padding-right: 24px; }
.panel-health .panel-head h2 { align-items: center; row-gap: 8px; }
.panel-health .panel-head h2 .wd-badge { position: static; margin: 0; font-family: var(--body); letter-spacing: 0; font-size: 13px; line-height: 1.4; align-self: center; }
.panel-health .panel-head h2 .wd-art { margin-right: 4px; align-self: center; }
@media (max-width: 600px) { .panel-health .panel-head h2 .wd-badge { margin: 0; } }
/* Wellness header: digest line on one line, tighter panel */
.panel-health .panel-head { min-height: 0; padding: 16px 24px 14px; }
.wd-hero { max-width: none; margin-top: 6px; }
.panel-health .panel-head .wd-hero .note { font-size: 15px; line-height: 1.4; }
@media (min-width: 1100px) { .panel-health .panel-head .wd-hero .note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 600px) { .panel-health .panel-head { padding: 14px 16px 12px; } }
/* Center the icon row in the space between the date and the AI badge */
@media (min-width: 601px) { .panel-health .panel-head h2 .wd-art { margin-left: auto; margin-right: 0; } .panel-health .panel-head h2 .wd-badge { margin-left: auto; } }
/* About box: more compact */
.about { padding-top: 14px; }
.about-card { grid-template-columns: 180px minmax(0, 1fr) 210px; gap: 18px; padding: 12px 16px; }
.about-card.no-photo { grid-template-columns: minmax(0, 1fr) 210px; }
.about-photo img { height: 110px; }
.about-photo figcaption { font-size: 11px; margin-top: 2px; }
.about-text h2 { font-size: 20px; }
.about-text #about-extract { -webkit-line-clamp: 3; line-clamp: 3; font-size: 14px; line-height: 1.45; margin-top: 4px; }
.about-links { margin-top: 4px; }
.about-county { margin-top: 4px; }
.about-credit { margin-top: 2px; font-size: 11px; }
.about-alert { gap: 8px; }
.about-alert .tile { min-height: 0; padding: 10px 14px; }
.about-alert .tile-main { font-size: 19px; line-height: 1.2; }
.about-alert .tile-sub { font-size: 13px; }
.about-alert .hp-btn { padding-top: 7px; padding-bottom: 7px; }
@media (max-width: 900px) { .about-card, .about-card.no-map { grid-template-columns: 150px minmax(0, 1fr); } .about-card.no-photo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .about-card, .about-card.no-map { grid-template-columns: minmax(0, 1fr); } .about-photo img { height: 130px; } }
.about-card { grid-template-columns: 190px minmax(0, 1fr) 210px; }
.about-card.no-photo { grid-template-columns: minmax(0, 1fr) 210px; }
.about-card > .about-photo img { min-height: 110px; }
.about-body { min-height: 0; }
.about-alert .tile-main { font-size: 17px; }
.about-alert .tile-label { font-size: 12px; }
.about-alert .tile-label .tile-icon { width: 24px; height: 24px; }
.about-alert .hp-links a { width: 32px; height: 32px; border-radius: 10px; }
.about-alert .hp-links img { width: 20px; height: 20px; }
@media (max-width: 900px) { .about-card, .about-card.no-map { grid-template-columns: 150px minmax(0, 1fr); } .about-card.no-photo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .about-card, .about-card.no-map { grid-template-columns: minmax(0, 1fr); } .about-card > .about-photo img { height: 140px; flex: none; } }
@media (max-width: 900px) { .about-body { flex: none; } .about-text #about-extract { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; } }

/* ---------- Find a doctor ---------- */
.doctor-band { padding: 0 0 40px; }
.panel-doctors { border-top-color: #2563EB; }
.panel-doctors .panel-head { background: linear-gradient(100deg, #EFF6FF 0%, #ECFEFF 60%, #F0FDF4 100%); }
.panel-doctors .panel-icon { background: linear-gradient(135deg, #2563EB, #0E7490); }
.panel-doctors .panel-icon svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-doctors h2 { color: #1E3A8A; }
.doc-body { max-height: 760px; overflow: auto; padding: 16px 20px 18px; }
.doc-search { position: sticky; top: -16px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -16px -20px 0; padding: 14px 20px 12px; background: rgba(255,255,255,.96); border-bottom: 1px solid #E2E8F0; backdrop-filter: blur(6px); }
.doc-search input[type=search] { flex: 1 1 240px; min-height: 40px; padding: 0 14px; border: 2px solid #CBD5E1; border-radius: 999px; font: inherit; font-size: 15px; }
.doc-search select { min-height: 40px; max-width: 230px; padding: 0 10px; border: 2px solid #CBD5E1; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.doc-search input[type=search]:focus, .doc-search select:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.doc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #1E3A8A; white-space: nowrap; }
.doc-check input { width: 18px; height: 18px; accent-color: #2563EB; }
.doc-search .btn { background: #2563EB; border-color: #2563EB; color: #fff; }
.doc-search .btn:hover { background: #1D4ED8; }
.doc-count { margin: 12px 0 8px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.doc-card { width: 100%; height: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 14px; background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s; }
.doc-card:hover { border-color: #93C5FD; box-shadow: 0 6px 18px rgba(30,58,138,.12); transform: translateY(-1px); }
.doc-card:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.doc-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; text-transform: uppercase; }
.doc-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.doc-top { display: flex; align-items: baseline; gap: 8px; }
.doc-name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.doc-mi { margin-left: auto; flex: none; font-size: 13px; font-weight: 700; color: #1E40AF; background: #EFF6FF; border-radius: 999px; padding: 1px 8px; }
.doc-spec { align-self: flex-start; font-size: 13px; font-weight: 700; border-radius: 6px; padding: 1px 8px; }
.doc-where { font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.doc-chip { font-size: 12px; font-weight: 600; line-height: 1.3; padding: 2px 8px; border-radius: 999px; background: #F1F5F9; color: #334155; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-chip.hosp { background: #FEF2F2; color: #991B1B; }
.doc-chip.more { background: #F1F5F9; color: #475569; }
.doc-chip.mc { background: #ECFDF5; color: #065F46; }
.doc-chip.tele { background: #F5F3FF; color: #5B21B6; }
.doc-chip.net { background: #EFF6FF; color: #1E40AF; }
/* Specialty colors (avatar + label) */
.doc-av.t1 { background: linear-gradient(135deg, #2563EB, #1E3A8A); } .doc-spec.t1 { background: #EFF6FF; color: #1E40AF; }
.doc-av.t2 { background: linear-gradient(135deg, #0D9488, #115E59); } .doc-spec.t2 { background: #F0FDFA; color: #115E59; }
.doc-av.t3 { background: linear-gradient(135deg, #DB2777, #9D174D); } .doc-spec.t3 { background: #FDF2F8; color: #9D174D; }
.doc-av.t4 { background: linear-gradient(135deg, #EA580C, #9A3412); } .doc-spec.t4 { background: #FFF7ED; color: #9A3412; }
.doc-av.t5 { background: linear-gradient(135deg, #7C3AED, #4C1D95); } .doc-spec.t5 { background: #F5F3FF; color: #5B21B6; }
.doc-av.t6 { background: linear-gradient(135deg, #16A34A, #14532D); } .doc-spec.t6 { background: #F0FDF4; color: #166534; }
.doc-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.doc-foot .gr-close { border-color: #2563EB; color: #1E40AF; }
.doc-foot .gr-close:hover { background: #EFF6FF; }
.doc-source { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }

/* Doctor details */
.doc-view { width: min(720px, calc(100vw - 24px)); }
.doc-view .studio-head { align-items: flex-start; border-bottom: 1px solid #E2E8F0; padding-bottom: 12px; background: linear-gradient(100deg, #EFF6FF, #ECFEFF); }
.dv-head-txt { margin-right: auto; min-width: 0; }
.dv-head-txt h2 { font-size: 24px; color: #1E3A8A; }
.dv-spec { margin: 2px 0 0; font-weight: 700; color: #0E7490; font-size: 15px; }
.dv-body { padding: 14px 20px 22px; }
.dv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.dv-sec { margin-top: 16px; }
.dv-sec h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: #475569; margin: 0 0 8px; font-family: var(--body); }
.dv-loc { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 12px; margin-bottom: 6px; }
.dv-loc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.dv-loc-txt strong { font-size: 14.5px; }
.dv-loc-acts { display: flex; gap: 6px; flex: none; }
.dv-loc-acts .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.dv-fac { margin-bottom: 8px; }
.dv-fac-type { font-weight: 700; font-size: 14px; color: #991B1B; }
.dv-fac ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.dv-nets { display: flex; flex-direction: column; gap: 6px; }
.dv-net { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #E2E8F0; background: #F8FAFC; }
.dv-net.yes { background: #ECFDF5; border-color: #A7F3D0; }
.dv-net.no { background: #F8FAFC; }
.dv-net strong { font-size: 15px; }
.dv-net-state { font-size: 14px; color: #475569; }
.dv-net.yes .dv-net-state { color: #065F46; font-weight: 700; }
.dv-net-tags { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.dv-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid #A7F3D0; color: #065F46; }
.dv-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.dv-dl dt { font-weight: 700; color: #475569; }
.dv-dl dd { margin: 0; }
.dv-small { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.45; }
@media (max-width: 700px) {
  .doc-list { grid-template-columns: 1fr; }
  .doc-search select { flex: 1 1 45%; max-width: none; }
  .doc-body { max-height: 680px; padding: 14px 14px 16px; }
  .doc-search { margin: -14px -14px 0; padding: 12px 14px 10px; top: -14px; }
  .dv-loc { flex-direction: column; align-items: flex-start; }
}
/* Override site-wide form defaults inside the doctor search bar */
form.doc-search { flex-direction: row; margin-top: -16px; gap: 8px; }
.doc-search input[type=search] { width: auto; height: 40px; min-height: 40px; flex: 1 1 240px; }
.doc-search label.doc-check { flex-direction: row; gap: 6px; font-size: 14px; }
.doc-search .doc-check input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; }
@media (max-width: 700px) { form.doc-search { margin-top: -14px; } }
.doc-list > li { min-width: 0; }
@media (max-width: 700px) { .doc-list { grid-template-columns: minmax(0, 1fr); } }
/* Search-by menu joined to the search box */
.doc-qwrap { flex: 1 1 340px; display: flex; min-width: 0; border: 2px solid #CBD5E1; border-radius: 999px; background: #fff; overflow: hidden; }
.doc-qwrap:focus-within { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.doc-search .doc-qwrap select { flex: none; max-width: 150px; min-height: 36px; border: 0; border-right: 2px solid #E2E8F0; border-radius: 0; background: #EFF6FF; color: #1E3A8A; font-weight: 700; padding: 0 8px 0 14px; }
.doc-search .doc-qwrap select:focus { box-shadow: none; }
.doc-search .doc-qwrap input[type=search] { flex: 1 1 auto; min-width: 0; border: 0; border-radius: 0; height: 36px; min-height: 36px; }
.doc-search .doc-qwrap input[type=search]:focus { box-shadow: none; }
@media (max-width: 700px) { .doc-qwrap { flex-basis: 100%; } .doc-search .doc-qwrap select { max-width: none; width: auto; padding: 0 6px 0 12px; } }
/* New-patient status */
.doc-chip.np-yes { background: #DCFCE7; color: #14532D; font-weight: 700; }
.doc-chip.np-existing { background: #FEF3C7; color: #92400E; }
.doc-chip.np-no { background: #F1F5F9; color: #475569; }
.dv-np { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.dv-np.np-yes { background: #DCFCE7; color: #14532D; }
.dv-np.np-existing { background: #FEF3C7; color: #92400E; }
.dv-np.np-no { background: #F1F5F9; color: #334155; }
.dv-np.np-unknown { background: #F8FAFC; color: #475569; font-weight: 600; font-size: 14px; border: 1px dashed #CBD5E1; }
/* ---------- Doctor reviews ---------- */
.doc-chip.rate-excellent { background: #FEF3C7; color: #92400E; font-weight: 700; }
.doc-chip.rate-good { background: #E0F2FE; color: #075985; font-weight: 700; }
.doc-chip.rate-average { background: #F1F5F9; color: #334155; font-weight: 700; }
.rv-sum { padding: 12px 14px; border-radius: 12px; background: #FFFBEB; border: 1px solid #FDE68A; margin-bottom: 10px; }
.rv-overall { margin: 0 0 8px; font-weight: 800; font-size: 16px; }
.rv-overall.rate-excellent { color: #92400E; } .rv-overall.rate-good { color: #075985; } .rv-overall.rate-average { color: #334155; }
.rv-bar { display: grid; grid-template-columns: 76px 1fr 28px; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 4px; }
.rv-bar-k { font-weight: 700; color: #475569; }
.rv-track { height: 10px; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0; overflow: hidden; }
.rv-fill { display: block; height: 100%; border-radius: 999px; }
.rv-fill.rate-excellent { background: linear-gradient(90deg, #F59E0B, #D97706); }
.rv-fill.rate-good { background: linear-gradient(90deg, #38BDF8, #0284C7); }
.rv-fill.rate-average { background: linear-gradient(90deg, #94A3B8, #64748B); }
.rv-bar-n { text-align: right; color: #475569; font-weight: 700; }
.rv-form { margin: 0 0 10px; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 12px; background: #F8FAFC; gap: 8px; }
.rv-form-title { margin: 0; font-weight: 800; color: #1E3A8A; }
.rv-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-pick { min-height: 38px; padding: 0 18px; border-radius: 999px; border: 2px solid #CBD5E1; background: #fff; font: inherit; font-weight: 700; color: #334155; cursor: pointer; }
.rv-pick:hover { border-color: #94A3B8; }
.rv-pick[aria-checked="true"].rate-average { background: #475569; border-color: #475569; color: #fff; }
.rv-pick[aria-checked="true"].rate-good { background: #0284C7; border-color: #0284C7; color: #fff; }
.rv-pick[aria-checked="true"].rate-excellent { background: #D97706; border-color: #D97706; color: #fff; }
.rv-pick:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.rv-form textarea { width: 100%; padding: 10px 12px; border: 2px solid #CBD5E1; border-radius: 12px; font: inherit; font-size: 15px; resize: vertical; }
.rv-form textarea:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.rv-form-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-form .btn:not(.btn-quiet) { background: #2563EB; border-color: #2563EB; color: #fff; }
.rv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-item { padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; }
.rv-item.mine { border-color: #93C5FD; background: #F8FBFF; margin-bottom: 10px; }
.rv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.rv-pill { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; color: #fff; }
.rv-pill.rate-excellent { background: #D97706; } .rv-pill.rate-good { background: #0284C7; } .rv-pill.rate-average { background: #64748B; }
.rv-date { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }
.rv-body { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.rv-acts { display: flex; gap: 6px; margin-top: 6px; }
.rv-acts .act { min-height: 28px; padding: 0 10px; border: 1px solid #CBD5E1; border-radius: 999px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: #475569; cursor: pointer; }
.rv-acts .act:hover { background: #F1F5F9; }
/* Google reviews (live) */
.gg-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; }
.gg-head > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.gg-name { font-size: 15px; }
.gg-addr { font-size: 13px; color: var(--ink-soft); }
.gg-score { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; text-align: right; flex: none; }
.gg-num { font-size: 26px; font-weight: 800; color: #202124; grid-row: span 2; }
.gg-stars { color: #FBBC04; letter-spacing: 1px; font-size: 15px; }
.gg-stars.small { font-size: 13px; }
.gg-count { font-size: 12.5px; color: #5F6368; }
.gg-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gg-item { padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; }
.gg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.gg-ph { width: 24px; height: 24px; border-radius: 50%; }
.gg-author { font-weight: 700; color: #1A73E8; }
span.gg-author { color: var(--ink); }
.gg-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 13.5px; }
.gg-by { font-weight: 700; color: #5F6368; font-family: Roboto, Arial, sans-serif; }
.gg-foot a { color: #1A73E8; font-weight: 600; }
/* Medicare patient survey */
.ps-group { padding: 10px 12px; border: 1px solid #DBEAFE; border-radius: 12px; background: #F8FBFF; margin-bottom: 8px; }
.ps-name { margin: 0 0 6px; font-weight: 700; font-size: 14.5px; color: #1E3A8A; }
.ps-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 54px; gap: 10px; align-items: center; font-size: 13.5px; padding: 3px 0; }
.ps-k { color: #334155; }
.ps-track { height: 9px; border-radius: 999px; background: #E2E8F0; overflow: hidden; }
.ps-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60A5FA, #2563EB); }
.ps-n { text-align: right; font-weight: 700; color: #1E40AF; }
@media (max-width: 600px) { .ps-row { grid-template-columns: minmax(0, 1fr) 70px 50px; } }
/* Medicare quality stars */
.mq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mq-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed #E2E8F0; }
.mq-stars { color: #D97706; letter-spacing: 1px; font-size: 15px; }
.mq-title { color: #334155; }
/* Wellness topics: no empty corner when there are 4 or 5 */
@media (min-width: 900px) {
  .wd-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-sections[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Four topics + the doctor card: the card runs down the left, topics in a 2 x 2 block */
  .wd-sections[data-count="5"] > .wd-find, .wd-sections[data-count="7"] > .wd-find { grid-row: span 2; }
}
/* Find a doctor card inside the wellness box (same look as the Find a doctor panel) */
.wd-sec.wd-find { padding: 0; overflow: hidden; border: 1px solid #DBEAFE; border-top: 4px solid #2563EB; background: #fff; display: flex; flex-direction: column; }
.wdf-head { padding: 14px 16px 12px; background: linear-gradient(100deg, #EFF6FF 0%, #ECFEFF 60%, #F0FDF4 100%); border-bottom: 1px solid #E2E8F0; }
.wdf-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; color: #1E3A8A; }
.wdf-head .panel-icon { background: linear-gradient(135deg, #2563EB, #0E7490); }
.wdf-head .panel-icon svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wdf-head .note { margin: 6px 0 0; font-size: 13.5px; }
form.doc-search.wdf-form { position: static; margin: 0; padding: 12px 14px 14px; border-bottom: 0; background: #fff; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.wdf-form .doc-qwrap { flex: 1 1 100%; }
.wdf-form > select { flex: 1 1 45%; max-width: none; }

/* Find a doctor results page */
.doctors-page .dp-band { padding: 22px 0 40px; }
.doctors-page .doc-body { max-height: none; overflow: visible; }
.doctors-page .doc-search { position: static; }
.dp-signin { margin: 24px auto; padding: 16px 20px; background: #fff; border-radius: 14px; font-weight: 600; }
.wdf-form .doc-qwrap select { max-width: 96px; padding: 0 4px 0 12px; }
/* ---------- Homes for sale (inside Open houses) ---------- */
.hs-toggle { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 0 10px; border: 0; border-radius: 12px; background: linear-gradient(100deg, #0F766E, #1D4ED8); color: #fff; font: inherit; font-weight: 800; font-size: 15.5px; cursor: pointer; box-shadow: 0 4px 12px rgba(29,78,216,.25); }
.hs-toggle:hover { filter: brightness(1.08); }
.hs-toggle.is-on { background: linear-gradient(100deg, #115E59, #1E3A8A); }
.hs-toggle:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.hs-results { margin-bottom: 12px; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hs-chip { padding: 4px 11px; border: 1px solid #BFDBFE; border-radius: 999px; background: #fff; color: #1E40AF; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.hs-chip.is-on { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }
.hs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hs-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid #E2E8F0; border-left: 5px solid #0F766E; background: linear-gradient(100deg, #F0FDFA 0%, #fff 55%); color: var(--ink); text-decoration: none; }
.hs-item:hover { border-color: #5EEAD4; box-shadow: 0 4px 14px rgba(15,118,110,.14); }
.hs-list li:nth-child(3n+2) .hs-item { border-left-color: #1D4ED8; background: linear-gradient(100deg, #EFF6FF 0%, #fff 55%); }
.hs-list li:nth-child(3n+3) .hs-item { border-left-color: #B45309; background: linear-gradient(100deg, #FFFBEB 0%, #fff 55%); }
.hs-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hs-price { font-size: 18px; font-weight: 800; color: #0F172A; }
.hs-new { font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #DC2626; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.hs-top .town-tag { margin-left: auto; }
.hs-facts { font-size: 14px; font-weight: 700; color: #334155; }
.hs-addr { font-size: 14px; color: var(--ink); }
.hs-by { font-size: 12.5px; color: var(--ink-soft); }
.hs-more { margin-top: 8px; padding: 6px 14px; border: 2px solid #1D4ED8; border-radius: 999px; background: #fff; color: #1D4ED8; font: inherit; font-weight: 700; cursor: pointer; }
.hs-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft); }
/* Homes button: two lines */
.hs-toggle { min-height: 56px; gap: 12px; }
.hs-ico { font-size: 24px; }
.hs-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.hs-l1 { font-size: 16px; font-weight: 800; }
.hs-l2 { font-size: 12.5px; font-weight: 600; opacity: .85; }
/* Homes for sale: focused window */
.hs-dialog { width: min(1100px, calc(100vw - 24px)); height: min(860px, calc(100vh - 32px)); display: none; flex-direction: column; overflow: hidden; }
.hs-dialog[open] { display: flex; }
.hs-head { flex: none; align-items: center; padding: 16px 22px 14px; background: linear-gradient(100deg, #0F766E, #1D4ED8); color: #fff; border-radius: 0; }
.hs-head-txt { margin-right: auto; min-width: 0; }
.hs-head h2 { color: #fff; font-size: 24px; margin: 0; }
.hs-sub { margin: 2px 0 0; font-size: 14px; color: #DBEAFE; }
.hs-head .studio-close { background: rgba(255,255,255,.18); color: #fff; }
.hs-head .studio-close:hover { background: rgba(255,255,255,.3); }
.hs-body { flex: 1; overflow: auto; padding: 16px 22px 20px; background: #F8FAFC; }
.hs-dialog .hs-chips { position: sticky; top: -16px; z-index: 2; margin: -16px -22px 12px; padding: 12px 22px; background: rgba(248,250,252,.96); border-bottom: 1px solid #E2E8F0; }
.hs-dialog .hs-chip { font-size: 14px; padding: 6px 14px; }
.hs-dialog .hs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hs-dialog .hs-item { height: 100%; padding: 14px 16px; gap: 4px; }
.hs-dialog .hs-price { font-size: 21px; }
.hs-dialog .hs-facts { font-size: 15px; }
.hs-dialog .hs-addr { font-size: 15px; }
.hs-dialog .hs-more { display: block; margin: 14px auto 0; }
.hs-dialog .gr-foot { justify-content: center; }
@media (max-width: 600px) { .hs-dialog { height: calc(100vh - 16px); width: calc(100vw - 12px); } .hs-body { padding: 12px; } .hs-dialog .hs-chips { margin: -12px -12px 10px; padding: 10px 12px; top: -12px; } .hs-dialog .hs-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Focused views: markets, events, garage & estate sales ---------- */
.fx-btns { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-btns .hs-toggle, .fx-sale-btns .hs-toggle { margin: 0; height: 100%; }
.fx-btns .hs-toggle[hidden] { display: none; }
.fx-btns:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
.fx-toggle { --fx-grad: linear-gradient(100deg, #0F766E, #1D4ED8); background: var(--fx-grad); }
.fx-mk, .fx-dialog.fx-mk .fx-head { --fx-grad: linear-gradient(100deg, #166534, #65A30D); --fx-shadow: rgba(22,101,52,.28); }
.fx-ev, .fx-dialog.fx-ev .fx-head { --fx-grad: linear-gradient(100deg, #6D28D9, #2563EB); --fx-shadow: rgba(109,40,217,.28); }
.fx-gs, .fx-dialog.fx-gs .fx-head { --fx-grad: linear-gradient(100deg, #C2410C, #D97706); --fx-shadow: rgba(194,65,12,.28); }
.fx-es, .fx-dialog.fx-es .fx-head { --fx-grad: linear-gradient(100deg, #9D174D, #7C3AED); --fx-shadow: rgba(157,23,77,.28); }
.fx-toggle { box-shadow: 0 4px 12px var(--fx-shadow, rgba(29,78,216,.25)); }
.fx-toggle .hs-lines { min-width: 0; }
.fx-toggle .hs-l1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fx-dialog .fx-head { background: var(--fx-grad); }
.fx-sale-btns { padding-top: 10px; }
.fx-dialog { width: min(1000px, calc(100vw - 24px)); }
.fx-body > * + * { margin-top: 14px; }
.fx-body .fx-foot { margin-top: 18px; }
.fx-body .fold-foot { display: none; }
.fx-h3 { font-family: var(--display); font-size: 18px; margin: 18px 0 6px; color: var(--ink); }
.fx-note { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
/* lists lose their small-box scrolling and become a roomy grid */
.fx-body .box-scroll { max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
.fx-body .markets, .fx-body .evbox { display: block; height: auto; max-height: none; padding: 0; border: 0; background: none; box-shadow: none; }
.fx-body .markets-head, .fx-body .evbox-head { display: none; }
.fx-body .markets-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.fx-body .markets .market { margin: 0; padding: 12px 14px 12px 18px; box-shadow: inset 5px 0 0 var(--town, var(--forest)), 0 1px 3px rgba(15,23,42,.08); }
.fx-body .market h4 { font-size: 16px; }
.fx-body .events { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin: 0; }
.fx-body .evbox .events .event { margin: 0; padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.fx-body .evbox .event h3 { font-size: 16px; -webkit-line-clamp: 3; }
.fx-body .evbox-note { margin: 0 0 8px; }
.fx-body .garage-results { margin: 0; }
.fx-body .gr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; max-height: none; overflow: visible; }
.fx-body .gr-foot { justify-content: center; }
.fx-body .garage-results > .gr-foot .gr-close { display: none; }
.fx-nsales .nsales { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fx-nsales .nsales-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-nsales .nsales-head h3 { font-family: var(--display); font-size: 18px; margin: 0; }
.fx-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fx-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.1); text-decoration: none; color: var(--ink); font-weight: 700; }
.fx-links a:hover { box-shadow: 0 0 0 2px #9D174D inset; }
.fx-link-go { color: #9D174D; font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) {
  .fx-body .markets-list, .fx-body .events, .fx-body .gr-list, .fx-nsales .nsales, .fx-links { grid-template-columns: minmax(0, 1fr); }
  .fx-btns .hs-toggle { gap: 8px; padding: 0 10px; } .fx-btns .hs-l1 { font-size: 14.5px; }
}
.fx-btns, .fx-sale-btns { grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
.fx-btns .hs-toggle, .fx-sale-btns .hs-toggle { min-height: 50px; justify-content: flex-start; padding: 0 16px; }
.fx-dialog { max-height: min(860px, calc(100vh - 32px)); }
.fx-body .evbox-note { display: none; }
.fx-nsales .nsales-head { border: 0; padding-top: 0; margin-top: 0; }
@media (max-width: 600px) { .fx-dialog { max-height: calc(100vh - 16px); } }
dialog.studio.hs-dialog.fx-dialog { height: fit-content; }
/* Markets & events panel: just the two buttons; the lists open in the big view */
.panel-events .split-body > .markets, .panel-events .split-body > .evbox { display: none !important; }
.fx-btns .hs-l2 .fx-n { font-weight: 800; }
/* Garage & estate buttons live in the Markets panel; the old sales box is kept only as the data source */
.panel-sales[hidden] { display: none !important; }
.panel-events .fx-sale-btns { flex: none; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

/* ---------- Homes for sale: Listings / Market stats tabs ---------- */
.hs-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 999px; background: #E2E8F0; }
.hs-tab { border: 0; border-radius: 999px; padding: 7px 18px; background: none; font: inherit; font-weight: 700; font-size: 14.5px; color: #334155; cursor: pointer; }
.hs-tab.is-on { background: #fff; color: #1D4ED8; box-shadow: 0 1px 3px rgba(15,23,42,.15); }
.hs-tab:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.hs-dialog .hs-tabs + .hs-chips { margin-top: 0; }
.st-sec { margin: 0 0 22px; }
.st-sec h3 { font-family: var(--display); font-size: 19px; margin: 0 0 2px; color: var(--ink); }
.st-note { margin: 0 0 10px; color: var(--ink-soft); font-size: 13.5px; }
.st-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.1); background: #fff; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid #E2E8F0; white-space: nowrap; }
.st-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #64748B; background: #F1F5F9; white-space: normal; vertical-align: bottom; }
.st-table th:first-child { text-align: left; }
.st-table tbody tr:last-child td, .st-table tbody tr:last-child th { border-bottom: 0; }
.st-table td:nth-child(3) { font-weight: 800; color: #0F172A; }
.st-all, .st-all th { background: #F8FAFC; font-weight: 700; }
.st-legend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #334155; }
.st-legend li::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.st-bars { display: grid; gap: 8px; }
.st-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.st-name { font-size: 14px; min-width: 0; }
.st-bar { display: flex; height: 26px; border-radius: 7px; overflow: hidden; background: #E2E8F0; gap: 2px; }
.st-bar span { flex: 1 1 0; min-width: 3px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--c); }
/* sequential (light to dark) for price and bedrooms; categories for home type */
.st-seq [data-i="0"] { --c: #BFDBFE; color: #1E3A8A; } .st-seq [data-i="1"] { --c: #60A5FA; } .st-seq [data-i="2"] { --c: #2563EB; } .st-seq [data-i="3"] { --c: #1D4ED8; } .st-seq [data-i="4"] { --c: #1E3A8A; }
.st-seq6 [data-i="0"] { --c: #CCFBF1; color: #134E4A; } .st-seq6 [data-i="1"] { --c: #99F6E4; color: #134E4A; } .st-seq6 [data-i="2"] { --c: #2DD4BF; color: #134E4A; } .st-seq6 [data-i="3"] { --c: #0D9488; } .st-seq6 [data-i="4"] { --c: #0F766E; } .st-seq6 [data-i="5"] { --c: #134E4A; }
.st-cat [data-i="0"] { --c: #2563EB; } .st-cat [data-i="1"] { --c: #D97706; } .st-cat [data-i="2"] { --c: #059669; } .st-cat [data-i="3"] { --c: #9333EA; } .st-cat [data-i="4"] { --c: #DB2777; } .st-cat [data-i="5"] { --c: #64748B; }
.st-legend [data-i] { color: #334155; }
@media (max-width: 600px) { .st-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .st-table { font-size: 13.5px; } .st-table th, .st-table td { padding: 8px; } }

/* Open houses: market stats per town (from Homes for sale) */
.panel .oh-row:has(.oh-stats) { flex-direction: column; align-items: stretch; gap: 6px; }
.oh-stats { display: block; font-size: 13px; color: var(--ink-soft); }
.oh-stats.is-empty { font-style: italic; }
.oh-stat-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; width: 100%; padding: 8px 10px; border: 1px solid #C7D7F5; border-radius: 10px; background: #F5F8FF; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.oh-stat-btn:hover { border-color: #1D4ED8; background: #EEF3FF; }
.oh-stat-btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.oh-st-l1 { grid-column: 1 / -1; font-size: 14px; }
.oh-st-l1 b { color: #1D4ED8; }
.oh-st-l2 { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); }
.oh-st-bar { height: 8px; border-radius: 4px; gap: 1px; align-self: center; margin-top: 2px; }
.oh-st-bar span { min-width: 2px; }
.oh-st-range { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; align-self: center; }
/* Local news: other outlets with the same story */
.story .also { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.story .also a { color: inherit; text-decoration: underline; text-decoration-color: #CBD5E1; }
.story .also a:hover { color: var(--ink); text-decoration-color: currentColor; }
/* Wellness: five set topics */
.wd-sec h4 { display: flex; align-items: center; gap: 6px; }
.wd-ico { font-size: 17px; line-height: 1; }
.wd-about { font-size: 12px !important; color: var(--ink-soft); margin: 0 0 6px !important; }
.wd-none { font-style: italic; color: var(--ink-soft); }
.wd-more { margin: 8px 0 0 !important; font-size: 12px !important; color: var(--ink-soft); }
.wd-more a { color: var(--wd, #BE185D); font-weight: 600; }

/* ---------- Layout: News | Open houses + Markets | Wellness ---------- */
.panels > .panel-stack { height: 760px; }
.panel-stack .panel-homes { flex: 1 1 0; min-height: 260px; }
.panel-stack .panel-events { flex: none; height: auto; }
.panel-stack .panel-events .split-body { overflow: visible; }
.panels > .panel-health { height: 760px; display: flex; flex-direction: column; min-width: 0; }
.panels > .panel-health .panel-head { flex: none; padding: 14px 16px 12px; }
.panels > .panel-health .panel-head h2 { font-size: 21px; gap: 8px; }
.panels > .panel-health .panel-icon { width: 36px; height: 36px; border-radius: 11px; }
.panels > .panel-health .panel-icon svg { width: 20px; height: 20px; }
.panels > .panel-health .panel-head .note { margin: 4px 0 0; font-size: 13px; }
.panels > .panel-health .panel-body { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; padding: 12px 14px 14px; }
.panels .wd-sections { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
.panels .wd-sections > .wd-find { grid-row: auto !important; }
.panels .wd-find .wdf-head { padding: 10px 12px; }
.panels .wd-find .wdf-head h2 { font-size: 18px; }
.panels .wd-find .wdf-form { padding: 10px 12px 12px; }
/* topic cards: compact, the whole card opens the big view */
.wd-card { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.wd-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.12); transform: translateY(-1px); }
.wd-card:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.wd-card h4 { margin: 0; }
.wd-snip { font-size: 13.5px; line-height: 1.4; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wd-cta { font-size: 12px; font-weight: 800; color: var(--wd, #BE185D); }
/* focused topic window */
.fx-dialog.fx-wd .fx-head { --fx-grad: linear-gradient(100deg, #BE185D, #DB2777); }
.fx-dialog.fx-wd.wd-x1 .fx-head { --fx-grad: linear-gradient(100deg, #115E59, #1F8A84); }
.fx-dialog.fx-wd.wd-x2 .fx-head { --fx-grad: linear-gradient(100deg, #5B21B6, #7C3AED); }
.fx-dialog.fx-wd.wd-x3 .fx-head { --fx-grad: linear-gradient(100deg, #92400E, #D97706); }
.fx-dialog.fx-wd.wd-x4 .fx-head { --fx-grad: linear-gradient(100deg, #1E3A8A, #2563EB); }
.fx-dialog.fx-wd { width: min(820px, calc(100vw - 24px)); }
.wd-focus .wd-about { font-size: 14px !important; }
.wd-focus .wd-text { font-size: 17px; line-height: 1.6; margin: 0; color: var(--ink); }
.wd-stories { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wd-stories a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.1); text-decoration: none; color: var(--ink); }
.wd-stories a:hover { box-shadow: 0 0 0 2px var(--wd, #BE185D) inset; }
.wd-src { font-size: 12px; font-weight: 800; color: var(--wd, #BE185D); text-transform: uppercase; letter-spacing: .03em; }
.wd-st { font-size: 15.5px; font-weight: 600; }
.wd-learn .fx-link-go { color: var(--wd, #BE185D); }
.wd-learn a:hover { box-shadow: 0 0 0 2px var(--wd, #BE185D) inset; }
@media (max-width: 1100px) { .panels > .panel-stack, .panels > .panel-health { height: 760px; } }
@media (max-width: 760px) {
  .panels > .panel-stack { height: auto; }
  .panels > .panel-health { height: auto; }
  .panels > .panel-health .panel-body { max-height: none; overflow: visible; }
  .panel-stack .panel-events { height: auto; min-height: 0; }
}
.wd-card { border: 1px solid color-mix(in srgb, var(--wd, #BE185D) 22%, #fff); border-top: 4px solid var(--wd, #BE185D); border-radius: 12px; background: #fff; padding: 10px 12px; }
@media (max-width: 760px) { .panel-stack .panel-homes { flex: none; height: 60vh; min-height: 360px; } }
/* Wellness header: just the title and date (no photo, icons, AI badge or intro line) */
.panel-health .wd-art, .panel-health .wd-badge, .panel-health .wd-hero { display: none !important; }
.panel-health .panel-head::before { content: none !important; }
.panels > .panel-health .panel-head { background: linear-gradient(100deg, #FDF2F8, #fff); }
/* Wellness title: icon on the left, title with the date right under it (same layout as the other panels) */
.panels > .panel-health .panel-head h2 { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; }
.panels > .panel-health .panel-head h2 .panel-icon { grid-row: 1 / span 2; align-self: center; }
.panels > .panel-health .panel-head h2 .wd-date { grid-column: 2; grid-row: 2; justify-self: start; margin: 0 !important; }
/* Same frame as the other two panels: colored top edge, white header with a line under it */
.panels > .panel-health { border-top: 5px solid #BE185D; }
.panels > .panel-health .panel-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(#fff, #FBFCFB); }
.panels > .panel-health .panel-head h2 { font-size: 22px; }
.panels > .panel-health .panel-icon { width: 32px; height: 32px; border-radius: 9px; }
.panels > .panel-health .panel-icon svg { width: 18px; height: 18px; }
.panels > .panel-health .panel-head h2 { justify-content: start; grid-template-columns: auto max-content; }
.panels > .panel-health .panel-head h2 .wd-date { justify-self: center; }
.oh-hv { margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #ECFDF5; vertical-align: 1px; font-style: normal; }
.oh-hv.down { background: #FEF2F2; }
.oh-stats.is-empty .oh-hv { margin-left: 6px; }
/* Find a doctor: button in the wellness column, form in the big window */
.fx-doc, .fx-dialog.fx-doc .fx-head { --fx-grad: linear-gradient(100deg, #1D4ED8, #0E7490); --fx-shadow: rgba(29,78,216,.28); }
.wd-find-btn { margin: 0; justify-content: flex-start; padding: 0 16px; min-height: 56px; }
.fx-dialog.fx-doc { width: min(720px, calc(100vw - 24px)); }
.fx-body .wd-find-full { border: 0; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.fx-body .wd-find-full .wdf-form { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-body .wd-find-full .doc-qwrap { grid-column: 1 / -1; }
.fx-body .wd-find-full .doc-check { align-self: center; }
.fx-body .wd-find-full button[type=submit] { justify-self: end; min-width: 140px; }
@media (max-width: 600px) { .fx-body .wd-find-full .wdf-form { grid-template-columns: minmax(0, 1fr); } .fx-body .wd-find-full button[type=submit] { justify-self: stretch; } }
.fx-body .wd-find-full .wdf-form button[type=submit] { grid-column: 1 / -1; justify-self: end !important; margin: 0 !important; }
/* Wellness column: no inner pink box, same spacing as Open houses */
.panels > .panel-health .wd { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; }
.panels > .panel-health .panel-body { background: #fff; }
.panels .wd-find-btn { width: 100%; }
/* Homes for sale button: gentle pulsing glow to draw the eye */
@keyframes hs-blink { 0%, 100% { box-shadow: 0 4px 12px rgba(29,78,216,.25); filter: brightness(1); } 50% { box-shadow: 0 0 0 4px rgba(56,189,248,.45), 0 6px 20px rgba(29,78,216,.45); filter: brightness(1.15); } }
#hs-toggle { animation: hs-blink 1.6s ease-in-out infinite; }
#hs-toggle:hover, #hs-toggle:focus-visible { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { #hs-toggle { animation: none; } }
.panels .panel-head { min-height: 86px; box-sizing: border-box; }
.panels > .panel-health .panel-body { padding: 4px 16px 16px 20px; }
.panels .wd-sections { margin-top: 0; }
/* Stronger blink: bright flash with a wide glowing ring, then back to normal */
@keyframes hs-blink2 {
  0%, 100% { box-shadow: 0 4px 12px rgba(29,78,216,.25); filter: brightness(1) saturate(1); transform: scale(1); }
  45%, 55% { box-shadow: 0 0 0 6px rgba(250,204,21,.85), 0 0 26px 8px rgba(56,189,248,.75); filter: brightness(1.35) saturate(1.3); transform: scale(1.03); }
}
#hs-toggle { animation: hs-blink2 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #hs-toggle { animation: none; } }
/* room for the glow so it isn't cut off at the top of the box (same spacing on both columns) */
.panels .panel-homes .panel-body, .panels > .panel-health .panel-body { padding-top: 14px; }
/* Wellness heart icon: same size, place and look as the News / Open houses icons (on the title line) */
.panels > .panel-health .panel-head h2 .panel-icon { grid-row: 1; align-self: center; width: 32px; height: 32px; border-radius: 10px; box-shadow: none; background: #BE185D; }
.panels > .panel-health .panel-head h2 .panel-icon svg { width: 18px; height: 18px; }
.forum-band[hidden] { display: none !important; }


/* ---------- Signed-out welcome: brighter look ---------- */
.welcome { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(600px 380px at 8% 0%, #D9F0DF 0%, transparent 70%),
    radial-gradient(520px 360px at 95% 10%, #FFE7C2 0%, transparent 70%),
    radial-gradient(560px 420px at 70% 100%, #D6EEF0 0%, transparent 70%),
    radial-gradient(420px 320px at 0% 100%, #FFE0E8 0%, transparent 70%),
    var(--sky); }
.welcome::before, .welcome::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .55; pointer-events: none; }
.welcome::before { width: 180px; height: 180px; right: 6%; top: 40px; background: radial-gradient(circle at 30% 30%, #FFD57A, #F2B33D); opacity: .35; }
.welcome::after { width: 120px; height: 120px; left: 46%; bottom: 30px; background: radial-gradient(circle at 30% 30%, #8FD3C9, #1F8A84); opacity: .22; }
.welcome-copy h1 .hl { background: linear-gradient(100deg, var(--forest) 0%, var(--teal) 55%, #3E7BC4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome-copy .lead { border: 0; padding: 0; border-radius: 0; background: none; display: block; }
.welcome-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.welcome-chips li { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
.welcome-chips .c1 { background: #E3F4E6; color: #1E6B47; border-color: #BFE3C9; }
.welcome-chips .c2 { background: #FFF1D6; color: #8A5A00; border-color: #F6D89A; }
.welcome-chips .c3 { background: #EEE8F8; color: #5A3E8E; border-color: #D7CBEE; }
.welcome-chips li::before { content: "✓ "; }

.feats li { position: relative; border: 0; box-shadow: 0 1px 0 rgba(20,40,75,.06), 0 6px 18px rgba(20,40,75,.06);
  transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; }
.feats li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ink); }
.feats li:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(20,40,75,.06), 0 12px 26px rgba(20,40,75,.10); }
.feats li:nth-child(1) { background: linear-gradient(90deg, #EEF2FA, #fff 55%); }
.feats li:nth-child(2) { background: linear-gradient(90deg, #E4F5F3, #fff 55%); }
.feats li:nth-child(3) { background: linear-gradient(90deg, #F1ECFA, #fff 55%); }
.feats li:nth-child(4) { background: linear-gradient(90deg, #FFF3DE, #fff 55%); }
.feats li:nth-child(1) .feat-icon { background: linear-gradient(135deg, #2B4C86, var(--ink)); }
.feats li:nth-child(2)::before { background: var(--teal); }
.feats li:nth-child(2) .feat-icon { background: linear-gradient(135deg, #36B3A9, var(--teal)); }
.feats li:nth-child(3)::before { background: #6B4FA0; }
.feats li:nth-child(3) .feat-icon { background: linear-gradient(135deg, #8B6CC4, #6B4FA0); }
.feats li:nth-child(4)::before { background: var(--marigold); }
.feats li:nth-child(4) .feat-icon { background: linear-gradient(135deg, #F6C55E, #E08A1E); }
.feats li:nth-child(1)::before { background: #2B4C86; }
.feat-icon { box-shadow: 0 4px 10px rgba(20,40,75,.18); }

/* Sign-in / join card: colored top that changes with the tab */
.auth-card { border: 0; box-shadow: 0 18px 40px rgba(20,40,75,.14), 0 2px 0 rgba(20,40,75,.05); }
.auth-tabs { padding: 14px 18px 14px; gap: 6px; background: linear-gradient(120deg, #E0892B, #E2557A); }
.auth-tab { border: 0; border-radius: 999px; color: rgba(255,255,255,.88); padding: 10px; }
.auth-tab:hover { color: #fff; background: rgba(255,255,255,.12); }
.auth-tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.auth-tab:focus-visible { outline-color: #fff; outline-offset: 2px; }
.auth-eyebrow { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #C2571F; letter-spacing: .01em; }
#signup-panel .auth-eyebrow { color: #C2571F; }
.join-perks { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.join-perks li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 12px; }
.join-perks li span { font-size: 18px; line-height: 1; }
.join-perks li:nth-child(1) { background: #EEF2FA; }
.join-perks li:nth-child(2) { background: #FFEFF3; }
.join-perks li:nth-child(3) { background: #FFF3DE; }
.join-perks li:nth-child(4) { background: #F1ECFA; }
#signin-form .btn, #forgot-form .btn, .btn-join { background: linear-gradient(120deg, #E0892B, #E2557A); border-color: transparent; box-shadow: 0 3px 0 #B23E5E; }
#signin-form .btn:hover, #forgot-form .btn:hover, .btn-join:hover { background: linear-gradient(120deg, #CF7A1E, #CF4469); }
@media (prefers-reduced-motion: reduce) { .feats li, .auth-tabs { transition: none; } .feats li:hover { transform: none; } }

/* An empty hint under a field shouldn't leave a gap. */
#signup-form .hint:empty { display: none; }

.signin-more { margin-top: 22px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #FFF3E6, #FFEAF0); border: 1px solid #F7D3C4; }
.signin-more h3 { margin: 0 0 10px; font-size: 19px; }
.signin-more .join-perks { margin: 0 0 12px; }
.signin-more .join-perks li { background: rgba(255,255,255,.75); }
.signin-more .btn { width: 100%; }

/* ---------- Layout: News | Top stories + Markets | Open houses; wellness below ---------- */
.panel-top { border-top-color: #3E7BC4; }
.panel-top .panel-icon { background: linear-gradient(135deg, #5B8FD6, #2B4C86); }
.panel-stack .panel-top { flex: 1 1 0; min-height: 260px; }
.panel-top .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.top-seg .seg-btn { padding: 5px 12px; font-size: 13px; }
.top-stories .story { padding: 10px 0; }
.top-stories .story h3 { font-size: 15.5px; line-height: 1.32; }
.top-stories .story .from { font-size: 12.5px; }
.top-stories .story .also { font-size: 12px; margin-top: 3px; color: var(--ink-soft); }
.top-stories .story .also a { color: var(--ink-soft); }
.panel-top .about-credit { margin-top: 10px; }
.panel-stack-homes .panel-homes { flex: 1 1 auto; }
.health-band { padding: 24px 0 40px; }
@media (max-width: 760px) { .panel-stack .panel-top { flex: none; height: 60vh; min-height: 360px; } }

/* ---------- Wellness: beating heart and bigger picture cards ---------- */
.panel-health .panel-icon.wd-heart { background: none !important; box-shadow: none !important; width: 48px; height: 46px; border-radius: 0; overflow: visible; }
.wd-heart svg { width: 46px !important; height: 44px !important; filter: drop-shadow(0 3px 4px rgba(142, 10, 31, .35)); transform-origin: 50% 55%; animation: wd-beat 1.15s ease-in-out infinite; }
@keyframes wd-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.16); } 24% { transform: scale(.98); } 36% { transform: scale(1.1); } 52% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wd-heart svg { animation: none; } }

.health-band .wd-sections { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px; }
@media (max-width: 1000px) { .health-band .wd-sections { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 620px) { .health-band .wd-sections { grid-template-columns: minmax(0, 1fr) !important; } }
.health-band .wd-card { padding: 0; overflow: hidden; border-radius: 18px; border: 0; border-top: 0;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 10px 24px rgba(15, 23, 42, .08); min-height: 330px; gap: 0; }
.health-band .wd-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(15, 23, 42, .08), 0 18px 36px rgba(15, 23, 42, .14); }
.wd-pic { position: relative; display: block; height: 170px; background: linear-gradient(135deg, color-mix(in srgb, var(--wd, #BE185D) 70%, #fff), var(--wd, #BE185D)); overflow: hidden; }
.wd-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.wd-card:hover .wd-pic img { transform: scale(1.05); }
.wd-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); pointer-events: none; }
.wd-pic-emoji { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .18); }
.wd-pic-none .wd-pic-emoji { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 76px; height: 76px; font-size: 42px; border-radius: 22px; }
.wd-pic-none::after { display: none; }
.wd-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 14px; flex: 1; border-top: 4px solid var(--wd, #BE185D); }
.health-band .wd-card h4 { font-size: 19px; line-height: 1.25; color: var(--wd, #BE185D); }
.health-band .wd-card h4 .wd-ico { display: none; }
.health-band .wd-snip { font-size: 14.5px; line-height: 1.5; -webkit-line-clamp: 4; }
.wd-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wd-thumbs { display: flex; }
.wd-thumbs img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(15,23,42,.2); margin-left: -8px; }
.wd-thumbs img:first-child { margin-left: 0; }
.health-band .wd-cta { font-size: 13px; }
/* Find a doctor: same size as the topic cards */
.health-band .wd-find-btn { min-height: 330px; height: 100%; border-radius: 18px; flex-direction: column; justify-content: center; gap: 14px; text-align: center;
  background: radial-gradient(120% 90% at 20% 10%, #60A5FA 0%, #2563EB 45%, #1E3A8A 100%); }
.health-band .wd-find-btn .hs-ico { font-size: 54px; width: 96px; height: 96px; border-radius: 28px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.health-band .wd-find-btn .hs-lines { align-items: center; }
.health-band .wd-find-btn .hs-l1 { font-size: 24px; }
/* story pictures in the topic window */
.wd-stories a { flex-direction: row; align-items: center; gap: 12px; }
.wd-stx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wd-sti { width: 92px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }

.health-band .panel-health .panel-body { max-height: none; overflow: visible; }
#lead-badge-3 { background: #E2557A; color: #fff; }

/* ---------- Messages: conversations ---------- */
.lead-log { list-style: none; margin: 6px 0 2px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #F8FAFC; border-radius: 12px; max-height: 320px; overflow-y: auto; }
.lead-bubble { max-width: 82%; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.lead-bubble.from-them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.lead-bubble.from-me { align-self: flex-end; background: var(--forest); color: #fff; border-bottom-right-radius: 4px; }
.lead-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.lead-at { font-size: 11px; opacity: .7; align-self: flex-end; }
.lead-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: end; margin-top: 4px; }
.lead-reply textarea { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; min-height: 42px; }
.lead-reply-hint { grid-column: 1 / -1; }

/* ---------- Join form: two-part name, hobbies picker, age and work ---------- */
#signup-form .name-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
#signup-form select { font: inherit; font-weight: 400; font-size: 16px; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
#signup-form select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px #BFE3C9; }
.pick-field { display: flex; flex-direction: column; gap: 6px; }
.pick-label { font-weight: 700; font-size: 16px; }
.pick { position: relative; }
.pick summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; color: var(--ink-soft); }
.pick summary::-webkit-details-marker { display: none; }
.pick summary::after { content: "▾"; color: var(--ink-soft); }
.pick[open] summary { border-color: var(--forest); box-shadow: 0 0 0 3px #BFE3C9; }
.pick.has-picks summary { color: var(--ink); font-weight: 600; }
.pick-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 2px; padding: 8px; background: #fff;
  border-radius: 14px; box-shadow: 0 14px 36px rgba(20, 40, 75, .22); border: 1px solid var(--line); max-height: 340px; overflow-y: auto; }
.pick-pop label { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 500; font-size: 15px; cursor: pointer; }
.pick-pop label:hover { background: var(--lime); }
.pick-pop input { width: 20px; height: 20px; min-height: 0; accent-color: var(--forest); }
.pick-done { justify-self: end; margin-top: 4px; }
@media (max-width: 420px) { #signup-form .name-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- My details ---------- */
.md-dialog { width: min(620px, calc(100vw - 24px)); }
.md-body { display: grid; gap: 14px; padding: 18px 22px 22px; margin: 0; }
.md-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.md-body select { font: inherit; font-weight: 400; font-size: 16px; min-height: 46px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.md-checks { border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px 10px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.md-langs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md-checks legend { font-weight: 700; padding: 0 6px; }
.md-checks label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; padding: 6px 0; }
.md-checks input { width: 20px; height: 20px; min-height: 0; accent-color: var(--forest); }
.md-note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.md-actions { display: flex; align-items: center; gap: 12px; }


/* ---------- Join: one question at a time (Typeform style) ---------- */
#signup-panel.tf-started .tf-intro { display: none; }
.tf { position: relative; gap: 0; margin-top: 10px; }
.tf-progress { height: 4px; border-radius: 4px; background: #F3E3DA; overflow: hidden; margin-bottom: 18px; }
.tf-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #E0892B, #E2557A); transition: width .35s ease; }
.tf-step { display: flex; flex-direction: column; gap: 12px; min-height: 230px; animation: tf-in .35s ease both; }
.tf-step[hidden] { display: none; }
@keyframes tf-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tf-step { animation: none; } }
.tf-q { margin: 0; display: flex; gap: 10px; align-items: baseline; font-family: var(--display); font-size: 24px; line-height: 1.25; color: var(--ink); }
.tf-num { flex: none; font-family: var(--body); font-size: 14px; font-weight: 800; color: #E0892B; }
.tf-req { color: #E2557A; }
.tf-help { margin: -4px 0 0 34px; font-size: 15px; color: var(--ink-soft); }
.tf .tf-input { margin-left: 34px; width: calc(100% - 34px); border: 0; border-bottom: 2px solid #F0C9B5; border-radius: 0; background: transparent; padding: 8px 2px; font-size: 22px; color: var(--ink); box-shadow: none; min-height: 0; }
.tf .tf-input:focus { outline: none; border-bottom-color: #E2557A; box-shadow: none; }
.tf .tf-input::placeholder { color: #D6B4A4; }
.tf-ziphint { margin-left: 34px; }
.tf-choices { margin-left: 34px; display: grid; gap: 8px; max-height: 330px; overflow-y: auto; padding: 2px; }
.tf .tf-choice { position: relative; flex-direction: row; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #F0C9B5; border-radius: 10px;
  background: #FFF8F3; font-weight: 500; font-size: 16px; cursor: pointer; transition: background .12s, border-color .12s; }
.tf .tf-choice:hover { background: #FFEDE3; }
.tf .tf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tf .tf-choice:focus-within { outline: 3px solid #F9C9A8; outline-offset: 1px; }
.tf-key { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 1px solid #E8A787; background: #fff; font-size: 13px; font-weight: 800; color: #C2571F; }
.tf-ctext { flex: 1; }
.tf-tick { opacity: 0; color: #C2571F; font-weight: 800; }
.tf .tf-choice.is-picked { background: #FFE3D3; border-color: #E2557A; }
.tf .tf-choice.is-picked .tf-key { background: #E2557A; border-color: #E2557A; color: #fff; }
.tf .tf-choice.is-picked .tf-tick { opacity: 1; }
.tf-agree { margin-left: 34px; }
.tf-agree a { color: #C2571F; }
.tf-nav { margin: 6px 0 0 34px; display: flex; align-items: center; gap: 12px; }
.tf-ok { border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 800; font-size: 16px; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, #E0892B, #E2557A); box-shadow: 0 3px 10px rgba(226, 85, 122, .3); }
.tf-ok:hover { filter: brightness(1.05); }
.tf-enter { font-size: 12.5px; color: var(--ink-soft); }
.tf-err { margin: 0 0 0 34px; display: inline-block; align-self: flex-start; padding: 6px 10px; border-radius: 6px; background: #FEE2E2; color: #B91C1C; font-size: 14px; font-weight: 600; }
.tf .tf-submit { min-width: 160px; }
.tf-arrows { position: absolute; right: 0; bottom: 0; display: flex; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(226, 85, 122, .25); }
.tf-arrows button { width: 38px; height: 34px; border: 0; background: linear-gradient(120deg, #E0892B, #E2557A); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.tf-arrows button + button { border-left: 1px solid rgba(255,255,255,.4); }
.tf-arrows button:disabled { opacity: .45; cursor: default; }
.tf #signup-message { margin-left: 34px; }
@media (max-width: 480px) { .tf-q { font-size: 20px; } .tf-help, .tf .tf-input, .tf-choices, .tf-nav, .tf-agree, .tf-err, .tf-ziphint, .tf #signup-message { margin-left: 0; } .tf .tf-input { width: 100%; } .tf-arrows { position: static; align-self: flex-end; margin-top: 12px; } }

.md-dialog { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.md-tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.md-tab { border: 0; background: none; padding: 10px 12px; font: 700 15px var(--body); color: var(--ink-soft); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.md-tab.is-on { color: var(--ink); border-bottom-color: var(--forest); }
.md-pane { display: grid; gap: 14px; }
.md-pane[hidden] { display: none; }
.md-body textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; resize: vertical; }
.md-toggles { display: grid; gap: 8px; }
.md-toggle { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600 !important; cursor: pointer; }
.md-toggle input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; min-height: 0; border-radius: 999px; background: #CBD5E1; position: relative; cursor: pointer; transition: background .15s; order: 2; flex: none; border: 0; padding: 0; }
.md-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.md-toggle input:checked { background: var(--forest); }
.md-toggle input:checked::after { transform: translateX(20px); }
.md-toggle-inline { border: 0; padding: 0; gap: 8px; }
.md-acc { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.md-acc > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.md-acc span { color: var(--ink-soft); font-size: 14px; }
.md-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.md-inline input { min-height: 40px; padding: 6px 10px; font-size: 15px; width: 200px; }
.md-danger b { color: var(--danger); }
.md-del { background: #fff; color: var(--danger); border-color: var(--danger); box-shadow: none; }
.md-del:hover { background: #FEF2F2; color: var(--danger); }
@media (max-width: 520px) { .md-row, .md-checks, .md-langs { grid-template-columns: minmax(0, 1fr); } .md-inline input { width: 100%; } }

/* Header, signed in: Weekly email under Change ZIP and Messages under Nearby cities; a slimmer weather bar */
.top-extra { display: flex; gap: 10px; flex-wrap: wrap; }
.top-extra:not(:has(.top-page:not([hidden]))) { display: none; }
.top-extra .btn { width: 100%; }
.signed-in .top-extra .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.signed-in .top-extra .btn:hover { background: rgba(255,255,255,.12); }
.cond { min-height: 32px; padding: 3px 12px; gap: 8px; font-size: 13px; border-radius: 10px; }
.cond-icon svg { width: 16px; height: 16px; }
.cond .aqi-dot { width: 10px; height: 10px; }
@media (min-width: 980px) {
  .signed-in .top-greeting { grid-row: 1 / 4; }
  .signed-in .brand { grid-row: 1 / 4; }
  .signed-in .top-extra, .signed-in .top-extra:not(:has(.top-page:not([hidden]))) { display: contents; }
  .signed-in #top-digest { grid-column: 3; grid-row: 2; }
  .signed-in #top-msgs { grid-column: 4; grid-row: 2; justify-self: end; width: 300px; max-width: 100%; }
  .signed-in #top-digest[hidden], .signed-in #top-msgs[hidden] { display: none; }
  .signed-in #today { grid-row: 3; }
  .signed-in .top .wrap { row-gap: 10px; }
}
@media (max-width: 979px) {
  .top-settings .top-extra { flex-basis: 100%; }
  .top-extra .top-page { flex: 1 1 0; }
}
@media (max-width: 520px) {
  .top-greeting .top-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .top-greeting .top-actions .btn, .top-extra .btn { padding: 4px 10px; font-size: 14px; line-height: 1.15; gap: 6px; }
  .top-extra .btn { white-space: nowrap; }
  .top-greeting .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
}

/* My details › About me: compact language chips so the tab fits without scrolling */
.md-langs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 8px; padding: 4px 10px 6px; }
.md-langs label { font-size: 13px; padding: 3px 0; gap: 5px; white-space: nowrap; }
.md-langs input { width: 15px; height: 15px; }
.md-langs legend { font-size: 14px; }
@media (max-width: 520px) { .md-langs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.md-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .md-row3 { grid-template-columns: minmax(0, 1fr); } }
.md-bio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -6px; }
.md-bio-actions .vt-btn { margin-top: 0; }
.md-bio-actions .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.md-body textarea[readonly] { background: #F6F8FA; color: var(--ink); cursor: default; resize: none; }
.md-bio-note { font-size: 13px; color: var(--ink-soft); }

/* Invite a neighbor */
.greet-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.invite-btn { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.12); color: #fff; font: 600 13px/1.3 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.invite-btn:hover { background: rgba(255,255,255,.24); }
.invite-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1180px; margin: 16px auto 0; padding: 16px 20px; border-radius: 18px; background: linear-gradient(100deg, #FFF4E0, #FDE7F1); border: 1px solid #F6C9A0; }
.invite-card .invite-ico { font-size: 34px; margin: 0; }
.invite-card > div:nth-child(2) { flex: 1 1 320px; }
.invite-card h2 { margin: 0 0 4px; font-size: 20px; }
.invite-card p { margin: 0; }
.invite-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* Hidden gems: button in the About card, and the pop-up guide */
.gems-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--forest); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(20, 40, 75, .18); }
.gems-btn:hover { filter: brightness(1.08); }
.gems-btn:disabled { opacity: .7; cursor: progress; }
.gems-dialog { width: min(760px, calc(100vw - 24px)); }
.gems-body { padding: 4px 24px 24px; }
.gems-intro, .gems-loading, .gems-empty { color: var(--ink-soft); font-size: 15px; margin: 0 0 8px; }
.gems-group h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 500; margin: 20px 0 8px; color: var(--ink); }
.gems-list { list-style: none; margin: 0; padding: 0; }
.gems-list li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); }
.gems-list li:last-child { border-bottom: 0; }
.gems-list li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 7px; height: 7px; border: 1.5px solid var(--ink); border-radius: 50%; }
.gems-list p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.gems-list strong { font-weight: 700; }
.gems-src { display: inline-block; margin-left: 2px; padding: 1px 9px; border-radius: 999px; background: #EEF1F5; color: #475569 !important; font-size: 12px; font-weight: 600; text-decoration: none; vertical-align: 1px; }
.gems-src:hover { background: #E2E8F0; color: #0f172a !important; }
.gems-dist { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); }
.gems-credit { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.gems-credit a { color: inherit; }

/* Top 6 (Google ratings or Wikipedia picks) at the top of the hidden gems guide */
.top6 { margin: 4px 0 8px; padding: 16px 18px; border-radius: 14px; background: #F6F8FB; border: 1px solid var(--line); }
.top6-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.top6-head h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 500; color: var(--ink); }
.top6-tabs { display: flex; gap: 4px; background: #E8EDF3; padding: 3px; border-radius: 8px; }
.top6-tab { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; }
.top6-tab.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.top6-list { margin: 0; padding: 0 0 0 22px; counter-reset: none; }
.top6-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.top6-list li:last-child { border-bottom: 0; }
.top6-list li::marker { font-weight: 700; color: var(--forest); }
.top6-list li.top6-wait { list-style: none; margin-left: -22px; color: var(--ink-soft); border: 0; }
.top6-name { font-weight: 700; color: var(--ink) !important; text-decoration: none; }
.top6-name:hover { text-decoration: underline; }
.top6-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.top6-stars { color: #B45309; font-weight: 700; }
.top6-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.top6-note a { color: inherit; }
.gems-title2 { margin: 22px 0 4px; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 500; color: var(--ink); }

/* ---------- Explore row: Top six things to do · Places to eat · Quirky culture ---------- */
.explore { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 18px; }
.explore[hidden] { display: none; }
.explore-btn { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border: 0; border-radius: 18px; color: #fff; font: inherit; text-align: left; cursor: pointer; overflow: hidden; box-shadow: 0 8px 22px -10px rgba(20, 40, 75, .55); transition: transform .18s ease, box-shadow .18s ease; isolation: isolate; }
.explore-btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .28), transparent 55%); }
.explore-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(20, 40, 75, .6); }
.explore-btn:active { transform: translateY(0); }
.explore-btn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.explore-see { background: linear-gradient(120deg, #1E6B47, #0E8A7A); }
.explore-eat { background: linear-gradient(120deg, #E0612E, #D9366B); }
.explore-quirky { background: linear-gradient(120deg, #5B3FD1, #A23CC8); }
.explore-ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .2); font-size: 26px; line-height: 1; }
.explore-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.explore-txt strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.explore-sub { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore-arrow { margin-left: auto; font-size: 20px; font-weight: 700; opacity: .85; transition: transform .18s ease; }
.explore-btn:hover .explore-arrow { transform: translateX(4px); }
.explore-btn.is-busy { cursor: progress; opacity: .85; }
@media (max-width: 1100px) { .explore { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .explore-arrow { display: none; } }
@media (max-width: 760px) {
  .explore { gap: 8px; }
  .explore-btn { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; border-radius: 14px; }
  .explore-ico { width: 38px; height: 38px; font-size: 21px; border-radius: 11px; }
  .explore-txt strong { font-size: 14px; }
  .explore-sub { display: none; }
}

/* ---------- The guide pop-ups ---------- */
.lcx { width: min(880px, calc(100vw - 20px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 24px; background: #F7F8FB; color: var(--ink); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55); }
.lcx[open] { display: flex; flex-direction: column; animation: lcx-in .28s cubic-bezier(.2, .8, .2, 1); }
.lcx::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); }
@keyframes lcx-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.lcx-hero { position: relative; display: flex; align-items: center; gap: 16px; padding: 24px 26px 22px; color: #fff; overflow: hidden; flex: none; }
.lcx-see .lcx-hero { background: linear-gradient(120deg, #1E6B47, #0E8A7A 60%, #2BB39A); }
.lcx-eat .lcx-hero { background: linear-gradient(120deg, #E0612E, #D9366B 65%, #F08A4B); }
.lcx-quirky .lcx-hero { background: linear-gradient(120deg, #4C34C4, #A23CC8 65%, #E46FB2); }
.lcx-hero::before, .lcx-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.lcx-hero::before { width: 220px; height: 220px; right: -60px; top: -110px; }
.lcx-hero::after { width: 120px; height: 120px; right: 120px; bottom: -80px; }
.lcx-emoji { position: relative; z-index: 1; flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .22); font-size: 36px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.lcx-head { position: relative; z-index: 1; min-width: 0; }
.lcx-kicker { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.lcx-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 32px; font-weight: 600; line-height: 1.1; color: #fff; }
.lcx-close { position: relative; z-index: 1; margin-left: auto; align-self: flex-start; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lcx-close:hover { background: rgba(255, 255, 255, .35); }
.lcx-body { padding: 22px 24px 8px; overflow-y: auto; flex: 1 1 auto; }
.lcx-foot { margin: 0; padding: 12px 24px 18px; font-size: 12.5px; color: #64748B; flex: none; }
.lcx-foot a { color: inherit; }
.lcx-msg { margin: 8px 0 18px; font-size: 16px; color: #475569; }
.lcx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lcx-card { position: relative; display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; color: inherit !important; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 18px -10px rgba(15, 23, 42, .25); transition: transform .18s ease, box-shadow .18s ease; animation: lcx-card .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes lcx-card { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lcx-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 30px -14px rgba(15, 23, 42, .35); }
.lcx-skel { min-height: 118px; background: linear-gradient(90deg, #EEF1F5 25%, #F8FAFC 50%, #EEF1F5 75%); background-size: 200% 100%; animation: lcx-shimmer 1.2s linear infinite; box-shadow: none; }
@keyframes lcx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.lcx-num { position: absolute; top: -8px; left: -8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 10px -3px rgba(15, 23, 42, .4); }
.lcx-see .lcx-num { background: linear-gradient(135deg, #1E6B47, #0E8A7A); }
.lcx-eat .lcx-num { background: linear-gradient(135deg, #E0612E, #D9366B); }
.lcx-quirky .lcx-num { background: linear-gradient(135deg, #4C34C4, #A23CC8); }
.lcx-rank:nth-child(1) .lcx-num { width: 36px; height: 36px; font-size: 17px; background: linear-gradient(135deg, #F5B301, #E07B00); }
.lcx-tile { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; font-size: 30px; }
.lcx-see .lcx-tile { background: #E3F3EC; }
.lcx-eat .lcx-tile { background: #FDE9E1; }
.lcx-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lcx-name { font-weight: 800; font-size: 16.5px; line-height: 1.25; color: #0F172A; }
.lcx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lcx-stars { padding: 2px 8px; border-radius: 999px; background: #FFF4D6; color: #A15C00; font-weight: 800; font-size: 13px; }
.lcx-count { font-size: 13px; color: #64748B; }
.lcx-chip { padding: 2px 9px; border-radius: 999px; background: #EEF1F5; color: #475569; font-size: 12px; font-weight: 600; }
.lcx-price { background: #E7F6EE; color: #1E6B47; }
.lcx-meta { font-size: 13px; color: #64748B; }
.lcx-go { margin-top: 2px; font-size: 13px; font-weight: 700; }
.lcx-see .lcx-go { color: #1E6B47; }
.lcx-eat .lcx-go { color: #C93A55; }
.lcx-card:hover .lcx-go { text-decoration: underline; }
/* Quirky culture: photo cards in sections */
.lcx-sec + .lcx-sec { margin-top: 22px; }
.lcx-sec-title { margin: 0 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 600; color: #0F172A; }
.lcx-gem { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.lcx-pic { display: block; height: 150px; background: #EDE9FE; }
.lcx-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.lcx-gem:hover .lcx-pic img { transform: scale(1.05); }
.lcx-pic-none { display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, #EDE9FE, #FCE7F3); }
.lcx-see .lcx-pic-none { background: linear-gradient(135deg, #E3F3EC, #D7F0EA); }
.lcx-gem .lcx-info { padding: 14px 16px 16px; }
.lcx-text { font-size: 14px; line-height: 1.5; color: #334155; }
.lcx-src { background: #F1F5F9; }
@media (max-width: 640px) {
  .lcx { border-radius: 20px; }
  .lcx-hero { padding: 18px 16px; gap: 12px; }
  .lcx-emoji { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; }
  .lcx-title { font-size: 24px; }
  .lcx-body { padding: 18px 14px 6px; }
  .lcx-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lcx[open], .lcx-card { animation: none; } .lcx-card:hover, .explore-btn:hover { transform: none; } }
.lcx-close:focus { outline: none; }
.lcx-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Combined guide from the About card: Top 6 (tabs) + hidden gems ---------- */
.lcx-all .lcx-hero { background: linear-gradient(120deg, #14284B, #1E4F6B 45%, #1E6B47 80%, #2BB39A); }
.lcx-all .lcx-emoji { background: linear-gradient(135deg, rgba(245, 179, 1, .55), rgba(224, 123, 0, .45)); }
.lcx-top { padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 26px -16px rgba(15, 23, 42, .3); }
.lcx-top .lcx-card { background: #F8FAFC; box-shadow: none; border: 1px solid #E8EDF3; }
.lcx-top .lcx-card:hover { box-shadow: 0 12px 24px -14px rgba(15, 23, 42, .35); }
.lcx-top-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lcx-top-head .lcx-sec-title { margin: 0; }
.lcx-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #EEF1F5; }
.lcx-tab { border: 0; padding: 8px 16px; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: #475569; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.lcx-tab:hover { color: #0F172A; }
.lcx-top-see .lcx-tab.is-on { background: linear-gradient(120deg, #1E6B47, #0E8A7A); color: #fff; box-shadow: 0 4px 12px -4px rgba(30, 107, 71, .6); }
.lcx-top-eat .lcx-tab.is-on { background: linear-gradient(120deg, #E0612E, #D9366B); color: #fff; box-shadow: 0 4px 12px -4px rgba(217, 54, 107, .55); }
.lcx-top-see .lcx-num { background: linear-gradient(135deg, #1E6B47, #0E8A7A); }
.lcx-top-eat .lcx-num { background: linear-gradient(135deg, #E0612E, #D9366B); }
.lcx-top .lcx-rank:nth-child(1) .lcx-num { background: linear-gradient(135deg, #F5B301, #E07B00); }
.lcx-top-see .lcx-tile { background: #E3F3EC; }
.lcx-top-eat .lcx-tile { background: #FDE9E1; }
.lcx-top-see .lcx-go { color: #1E6B47; }
.lcx-top-eat .lcx-go { color: #C93A55; }
.lcx-note { margin: 12px 0 0; font-size: 12.5px; color: #64748B; }
.lcx-note a { color: inherit; }
.lcx-gems { margin-top: 28px; }
.lcx-big { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 600; color: #0F172A; }
.lcx-lede { margin: 2px 0 16px; color: #64748B; font-size: 15px; }
.lcx-all .lcx-sec + .lcx-sec { margin-top: 22px; }
.lcx-all .lcx-gems .lcx-sec-title { font-size: 20px; }
.lcx-all .lcx-pic-none { background: linear-gradient(135deg, #E0EAFF, #E3F3EC); }

/* The About card button */
.gems-btn { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 460px; margin: 0 0 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 16px; background: linear-gradient(120deg, #14284B, #1E4F6B 50%, #1E6B47); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(20, 40, 75, .6); transition: transform .18s ease, box-shadow .18s ease; filter: none; }
.gems-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(20, 40, 75, .65); filter: none; }
.gems-btn-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #F5B301, #E07B00); font-size: 21px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.gems-btn-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gems-btn-txt strong { font-size: 15px; font-weight: 800; line-height: 1.2; }
.gems-btn-txt small { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gems-btn-arrow { margin-left: auto; font-size: 18px; font-weight: 700; opacity: .85; transition: transform .18s ease; }
.gems-btn:hover .gems-btn-arrow { transform: translateX(3px); }
.gems-btn.is-busy { cursor: progress; opacity: .85; }
@media (max-width: 640px) { .lcx-top { padding: 14px; } .lcx-tab { padding: 7px 12px; font-size: 13px; } }

/* Explore buttons, calmer and smaller: white cards in the site's navy and green (Dec 3, later) */
.explore { gap: 20px; margin-bottom: 14px; }
.explore-btn { min-height: 0; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 14px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 40, 75, .06); }
.explore-btn::after { display: none; }
.explore-btn:hover { transform: translateY(-1px); border-color: #B9CBBF; box-shadow: 0 6px 14px -8px rgba(20, 40, 75, .35); }
.explore-btn:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.explore-see, .explore-eat, .explore-quirky { background: #fff; }
.explore-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 19px; }
.explore-see .explore-ico { background: #E3F0E8; }
.explore-eat .explore-ico { background: #FBEEDD; }
.explore-quirky .explore-ico { background: #E6EBF5; }
.explore-txt strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.explore-sub { font-size: 12.5px; color: #5B6B82; opacity: 1; }
.explore-arrow { font-size: 16px; color: var(--forest); opacity: 1; }
@media (max-width: 760px) {
  .explore-btn { padding: 9px; gap: 6px; border-radius: 12px; }
  .explore-ico { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
  .explore-txt strong { font-size: 13px; }
}

/* Explore buttons: color that matches the panel below each one (navy · sky blue · leaf green),
   and the same small gap above as below. */
.panels-band:has(> .explore:not([hidden])) { padding-top: 6px; }
.explore-btn { border: 0; color: #fff; box-shadow: 0 4px 12px -6px rgba(20, 40, 75, .45); }
.explore-btn:hover { border-color: transparent; box-shadow: 0 10px 20px -10px rgba(20, 40, 75, .55); }
.explore-btn:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.explore-see { background: linear-gradient(115deg, #14284B, #2C4E85); }
.explore-eat { background: linear-gradient(115deg, #2F6FB8, #5A9BE0); }
.explore-quirky { background: linear-gradient(115deg, #237A45, #3FA765); }
.explore-btn .explore-ico { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.explore-btn .explore-txt strong { color: #fff; }
.explore-btn .explore-sub { color: rgba(255, 255, 255, .82); }
.explore-btn .explore-arrow { color: #fff; opacity: .8; }

/* About card button as a slim pill in the links row (it no longer pushes the description out) */
.about-links .gems-btn { display: inline-flex; width: auto; max-width: none; margin: 0; padding: 4px 12px 4px 4px; gap: 7px; border-radius: 999px; align-self: center; box-shadow: 0 3px 8px -5px rgba(20, 40, 75, .55); }
.about-links .gems-btn:hover { transform: translateY(-1px); }
.about-links .gems-btn-ico { width: 24px; height: 24px; border-radius: 50%; font-size: 13px; }
.about-links .gems-btn-txt strong { font-size: 13px; font-weight: 700; white-space: nowrap; }
.about-links .gems-btn-arrow { font-size: 13px; }
.about-links:has(.gems-btn) { align-items: center; }
/* The "Get your free web page" wrapper takes no space when its card is hidden (keeps the gap above the buttons even). */
.getpage-wrap:has(> .getpage[hidden]) { display: none; }

/* About card: the town description scrolls inside its space (nothing is cut off). */
.about-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #C5D3CA transparent; padding-right: 6px; }
.about-body::-webkit-scrollbar { width: 6px; }
.about-body::-webkit-scrollbar-thumb { background: #C5D3CA; border-radius: 6px; }
.about-body h2 { position: sticky; top: 0; background: #fff; z-index: 1; }
@media (max-width: 900px) {
  .about-body { max-height: 11em; }
  .about-text #about-extract { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
}
.about-body { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent); padding-bottom: 10px; }
.hs-l3 { margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .01em; opacity: .75; }
#hs-toggle { min-height: 64px; }

/* Top stories: World / U.S. sits to the right of the title, so the header lines up with Local news and Open houses */
.panel-top .panel-head { flex-wrap: nowrap; gap: 8px; min-height: 86px; box-sizing: border-box; }
.panel-top .panel-head h2 { min-width: 0; white-space: nowrap; }
.top-seg { flex: none; }
.top-seg .seg-btn { padding: 5px 10px; }

/* Header "Plans" button: phones and tablets only (computers use the corner button). */
@media (min-width: 980px) { #top-plans, .signed-in #top-plans { display: none !important; } }
#top-plans .btn { gap: 4px; }

/* ---------- Landing page (signed out, first visit) ---------- */
.lp { color: var(--ink); }
.lp .wrap { max-width: 1120px; }
.lp-hero { padding: 56px 0 64px; background: radial-gradient(90% 120% at 100% 0%, #E3F0E8 0%, transparent 55%), radial-gradient(70% 90% at 0% 100%, #E6EBF5 0%, transparent 60%); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.lp-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--forest); }
.lp-hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -0.02em; }
.lp-lead { margin: 18px 0 0; font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 36ch; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lp .btn.lp-join, .lp .btn.lp-signin { min-height: 52px; padding: 0 26px; border-radius: 14px; font-size: 17px; font-weight: 800; }
.lp .btn.lp-join { background: var(--forest); color: #fff; box-shadow: 0 10px 22px -12px rgba(30, 107, 71, .7); }
.lp .btn.lp-join:hover { filter: brightness(1.08); }
.lp .btn.lp-signin { background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.lp .btn.lp-signin:hover { background: var(--sky); }
.lp-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
/* A little preview of the page */
.lp-preview { position: relative; display: grid; gap: 12px; }
.lp-pv { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 14px 30px -18px rgba(20, 40, 75, .45); border-left: 5px solid var(--ink); animation: lp-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.lp-pv span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #EEF3FA; font-size: 22px; }
.lp-pv b { display: block; font-size: 16px; }
.lp-pv i { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-soft); }
.lp-pv-top { border-left-color: #2F6FB8; margin-left: 28px; animation-delay: .08s; }
.lp-pv-meet { border-left-color: #4C34C4; margin-left: 56px; animation-delay: .16s; }
.lp-pv-sale { border-left-color: #C7782A; margin-left: 28px; animation-delay: .24s; }
.lp-pv-home { border-left-color: var(--leaf); animation-delay: .32s; }
.lp-pv-top span { background: #E6EFFA; } .lp-pv-meet span { background: #EEEAFB; } .lp-pv-sale span { background: #FBEEDD; } .lp-pv-home span { background: #E3F0E8; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Sections */
.lp-band { padding: 56px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-h2 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.01em; }
.lp-sub { margin: 8px 0 0; font-size: 18px; color: var(--ink-soft); }
.lp-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-grid li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--sky); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; }
.lp-grid li:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -16px rgba(20, 40, 75, .45); }
.lp-grid b { font-size: 17px; }
.lp-grid li > span:last-child { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.lp-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; font-size: 24px; box-shadow: 0 2px 6px -3px rgba(20, 40, 75, .3); margin-bottom: 4px; }
.lp-pro { padding: 60px 0; background: linear-gradient(115deg, #14284B, #1E4F6B 55%, #1E6B47); color: #fff; }
.lp-pro .lp-h2, .lp-pro .lp-sub, .lp-pro b { color: #fff; }
.lp-pro .lp-sub { opacity: .88; }
.lp-pro .lp-kicker { color: #9FE0BB; }
.lp-pro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.lp-checks { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.lp-checks li { position: relative; padding-left: 30px; font-size: 16px; }
.lp-checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #3FA765; color: #fff; font-size: 12px; font-weight: 900; }
.lp-pro .btn.lp-join { background: #fff; color: var(--ink); }
.lp-page-mock { border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); color: var(--ink); transform: rotate(1.5deg); }
.lp-pm-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #EEF1F5; }
.lp-pm-bar span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.lp-pm-bar em { margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: #fff; font-style: normal; font-size: 12px; color: #475569; }
.lp-pm-hero { display: flex; align-items: center; gap: 14px; padding: 18px; background: linear-gradient(115deg, #14284B, #2C4E85); color: #fff; }
.lp-pm-av { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-style: normal; font-weight: 800; font-size: 20px; }
.lp-pm-hero b { display: block; font-size: 20px; }
.lp-pm-hero small { display: block; opacity: .85; }
.lp-pm-btns { display: flex; gap: 6px; margin-top: 8px; }
.lp-pm-btns u { text-decoration: none; padding: 4px 10px; border-radius: 8px; background: #1E6B47; font-size: 12px; font-weight: 700; }
.lp-pm-btns u + u { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.lp-pm-cards { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 54px 54px; gap: 10px; padding: 14px; background: #F7F5F0; }
.lp-pm-cards span { border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(20, 40, 75, .08); }
.lp-pm-cards span:first-child { grid-row: 1 / 3; }
.lp-steps { list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 70px; border-radius: 18px; background: var(--sky); border: 1px solid var(--line); }
.lp-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 800; font-size: 18px; }
.lp-steps b { display: block; font-size: 17px; }
.lp-steps span { font-size: 14.5px; color: var(--ink-soft); }
.lp-final { padding: 56px 0 64px; text-align: center; }
.lp-final h2 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); }
.lp-final .lp-ctas { justify-content: center; }
.lp-back { border: 0; background: none; padding: 0; margin: 0 0 14px; font: inherit; font-size: 14px; font-weight: 700; color: var(--forest); cursor: pointer; }
.lp-back:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hero-grid, .lp-pro-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-page-mock { transform: none; max-width: 460px; }
}
@media (max-width: 560px) {
  .lp-hero { padding: 32px 0 40px; }
  .lp-lead { font-size: 17px; }
  .lp-ctas .btn { flex: 1 1 auto; }
  .lp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lp-pv-top, .lp-pv-meet, .lp-pv-sale { margin-left: 0; }
  .lp-band, .lp-pro { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { .lp-pv { animation: none; } .lp-grid li:hover { transform: none; } }
@media (max-width: 560px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-grid li { padding: 14px 12px; border-radius: 14px; gap: 4px; }
  .lp-grid b { font-size: 15px; line-height: 1.25; }
  .lp-grid li > span:last-child { font-size: 13px; line-height: 1.45; }
  .lp-ico { width: 38px; height: 38px; font-size: 20px; border-radius: 11px; }
  .lp-kicker { font-size: 12px; }
}

/* ---------- Visitors: live preview of the main page + Join free / Sign in pinned at the bottom ---------- */
.guest-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 75;
  display: flex; align-items: center; gap: 18px; width: max-content; max-width: calc(100vw - 24px); padding: 10px 10px 10px 22px; border-radius: 999px;
  background: linear-gradient(115deg, #14284B, #2C4E85); color: #fff; box-shadow: 0 14px 30px -10px rgba(20, 40, 75, .7); }
.guest-bar[hidden] { display: none; }
.gb-text { margin: 0; font-size: 14.5px; line-height: 1.35; color: #DCE6F3; }
.gb-text strong { color: #fff; }
.gb-what { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #9BE3B4; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gb-btns { display: flex; gap: 8px; flex: none; }
.guest-bar .btn { min-height: 44px; padding: 0 20px; font-size: 15.5px; box-shadow: none; }
.guest-bar .gb-join { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.guest-bar .gb-join:hover { background: #297D44; }
.guest-bar .gb-signin { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.guest-bar .gb-signin:hover { background: rgba(255, 255, 255, .12); }
body.guest { padding-bottom: 96px; }
/* Visitors: no nearby-cities picker or account buttons in the header (they pick a ZIP only) */
.guest #places-form, .guest #top-extra, .guest .top-auth { display: none !important; }
@media (max-width: 760px) {
  .guest-bar { left: 10px; right: 10px; transform: none; width: auto; max-width: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; border-radius: 22px; }
  .gb-text { text-align: center; font-size: 13.5px; }
  .gb-text > span { display: none; }
  .gb-btns > .btn { flex: 1; }
  body.guest { padding-bottom: 130px; }
}
.lp-peek { margin: 14px 0 0; }
.lcx-join { text-align: center; padding: 10px 0; }
.lcx-join-btn { margin-top: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--leaf); color: #fff; font: 700 15px/1 var(--body); cursor: pointer; }
.lcx-join-btn:hover { background: #297D44; }

/* ================= Landing: highlights slide deck ================= */
.deck { position: relative; padding: 18px 0 10px; background: linear-gradient(180deg, #EEF3EF 0%, #E3ECF6 100%); overflow: hidden; }
.deck-top { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.deck-count { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--ink-soft); }
.deck-skip { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 800; font-size: 15px; color: var(--forest); cursor: pointer; }
.deck-skip:hover { text-decoration: underline; text-underline-offset: 3px; }
.deck-progress { max-width: 1072px; height: 4px; margin: 6px auto 0; border-radius: 4px; background: rgba(20, 40, 75, .12); overflow: hidden; }
.deck-progress i { display: block; height: 100%; width: 11%; background: linear-gradient(90deg, var(--leaf), var(--teal)); border-radius: 4px; transition: width .45s ease; }
.deck-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; overscroll-behavior-x: contain; }
.deck-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; box-sizing: border-box; padding: 26px max(24px, calc((100% - 1072px) / 2)) 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: min(560px, calc(100svh - 260px)); }
.s-copy h2 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; color: var(--ink); letter-spacing: -.01em; }
.s-copy .hl { color: var(--forest); }
.s-kicker { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); }
.s-lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink-soft); max-width: 34em; }
.s-swipe { margin: 22px 0 0; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.s-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.s-points li { position: relative; padding-left: 34px; font-size: 18px; line-height: 1.4; color: var(--ink); }
.s-points li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 13px; font-weight: 800; }
.s-copy-center { grid-column: 1 / -1; text-align: center; max-width: 720px; margin: 0 auto; }
.s-copy-center .s-lead { margin: 0 auto; }
.s-go { margin-top: 26px; min-height: 56px; padding: 0 34px; font-size: 18px; border-radius: 999px; background: var(--leaf); border-color: var(--leaf); }
.s-art { display: grid; place-items: center; }
/* each slide's art fades up when it comes on screen */
.slide .s-art > *, .slide .s-copy > * { transition: opacity .5s ease, transform .5s ease; }
.slide:not(.is-on) .s-art > * { opacity: .35; transform: translateY(14px) scale(.98); }
@media (prefers-reduced-motion: reduce) { .slide .s-art > *, .slide .s-copy > *, .deck-progress i { transition: none; } }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0 4px; }
.deck-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.deck-arrow:hover:not(:disabled) { background: var(--ink); color: #fff; }
.deck-arrow:disabled { opacity: .3; cursor: default; }
.deck-dots { display: flex; gap: 8px; }
.deck-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(20, 40, 75, .25); cursor: pointer; transition: width .25s ease, background .25s ease; }
.deck-dots button.on { width: 28px; background: var(--forest); }
/* the "screens" drawn on each slide */
.s-art u { display: block; height: 10px; border-radius: 6px; background: #D6DEE8; text-decoration: none; margin-top: 8px; width: 100%; }
.s-art u.w90 { width: 90%; } .s-art u.w80 { width: 80%; } .s-art u.w70 { width: 70%; } .s-art u.w60 { width: 60%; } .s-art u.w50 { width: 50%; }
.mk-phone { width: 300px; max-width: 100%; padding: 14px; border-radius: 30px; background: #fff; box-shadow: 0 30px 60px -30px rgba(20, 40, 75, .55), 0 0 0 8px #14284B; }
.mk-head { margin: -14px -14px 12px; padding: 18px 16px 14px; border-radius: 22px 22px 0 0; background: var(--ink); color: #fff; border-bottom: 4px solid var(--leaf); }
.mk-head b { display: block; font-family: var(--display); font-size: 20px; }
.mk-head small { color: #C9D6E8; font-size: 13px; }
.mk-x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.mk-x3 i, .mk-stack i, .mk-hbtn { font-style: normal; color: #fff; font-weight: 800; }
.mk-x3 i { padding: 9px 6px; border-radius: 10px; font-size: 11.5px; text-align: center; }
.x-nav { background: linear-gradient(120deg, #14284B, #2C4E85); } .x-sky { background: linear-gradient(120deg, #2F6FD0, #5A9BE8); } .x-leaf { background: linear-gradient(120deg, #1E6B47, #3AA765); }
.mk-card { padding: 12px; margin-top: 8px; border-radius: 14px; border: 1px solid var(--line); }
.mk-card b { font-size: 14px; color: var(--ink); }
.mk-meter { display: block; height: 8px; margin-top: 10px; border-radius: 6px; background: #E5ECF6; overflow: hidden; }
.mk-meter em { display: block; height: 100%; width: 78%; background: #2563EB; border-radius: 6px; }
.mk-meter.m2 em { width: 56%; }
.mk-list, .mk-rank, .mk-homes, .mk-chat, .mk-well, .mk-stack { width: 360px; max-width: 100%; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -30px rgba(20, 40, 75, .5); }
.mk-row { padding: 12px 0; border-bottom: 2px dashed var(--line); }
.mk-row:last-child { border-bottom: 0; }
.mk-row small { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.mk-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--lime); color: var(--forest); font-size: 12px; font-weight: 800; }
.mk-tag.t2 { background: #E6EEF9; color: #2C4E85; }
.mk-stack { display: grid; gap: 10px; }
.mk-stack i { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-radius: 14px; font-size: 16px; }
.mk-stack small { font-size: 12px; opacity: .85; font-weight: 700; }
.b-green { background: linear-gradient(110deg, #1E6B47, #65A30D); } .b-violet { background: linear-gradient(110deg, #7C3AED, #2563EB); }
.b-orange { background: linear-gradient(110deg, #C2410C, #D97706); } .b-plum { background: linear-gradient(110deg, #9D174D, #7C3AED); }
.mk-rank p { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mk-rank p:last-child { border-bottom: 0; }
.mk-rank b { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; }
.mk-rank p:first-child b { background: linear-gradient(135deg, #F2B33D, #D99A1E); }
.mk-rank u { margin: 0; flex: 1; }
.mk-rank em { font-style: normal; font-weight: 800; font-size: 14px; color: #B45309; white-space: nowrap; }
.mk-hbtn { display: block; padding: 14px 16px; border-radius: 14px; background: linear-gradient(110deg, #0F766E, #2563EB); font-size: 16px; }
.mk-hcard { margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid #DCE5F2; background: #F8FAFE; }
.mk-hcard b { display: block; font-family: var(--display); color: var(--ink); }
.mk-hcard span { font-size: 13px; color: var(--ink-soft); }
.mk-hcard span em { font-style: normal; font-weight: 800; color: var(--forest); margin-left: 6px; }
.mk-chat p { max-width: 75%; margin: 0 0 8px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #EEF2F7; font-size: 15px; color: var(--ink); }
.mk-chat p.me { margin-left: auto; border-radius: 16px 16px 4px 16px; background: linear-gradient(115deg, #14284B, #2C4E85); color: #fff; }
.mk-vote { display: grid; gap: 6px; margin-top: 12px; }
.mk-vote span { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.mk-vote span:first-child { border-color: var(--leaf); background: var(--lime); }
.mk-well { display: grid; gap: 10px; }
.mk-well i { font-style: normal; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; }
.mk-aq em { width: 12px; height: 12px; border-radius: 50%; background: #22C55E; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-tiles span { display: grid; place-items: center; height: 74px; border-radius: 14px; font-size: 28px; }
.mk-tiles .t1 { background: linear-gradient(160deg, #5EA9A0, #1F6F66); } .mk-tiles .t2 { background: linear-gradient(160deg, #D08A4E, #8A4B12); } .mk-tiles .t3 { background: linear-gradient(160deg, #6A8FE8, #1D4ED8); }
.s-pro .lp-page-mock { width: 380px; max-width: 100%; }
.s-end { grid-template-columns: minmax(0, 1fr); }
/* themed backdrops, slide by slide */
.s-cover { background: radial-gradient(70% 90% at 90% 20%, rgba(47, 143, 78, .16), transparent 60%); }
.s-news { background: radial-gradient(70% 90% at 90% 30%, rgba(44, 78, 133, .14), transparent 60%); }
.s-events { background: radial-gradient(70% 90% at 90% 30%, rgba(124, 58, 237, .12), transparent 60%); }
.s-guides { background: radial-gradient(70% 90% at 90% 30%, rgba(242, 179, 61, .18), transparent 60%); }
.s-homes { background: radial-gradient(70% 90% at 90% 30%, rgba(37, 99, 235, .12), transparent 60%); }
.s-meet { background: radial-gradient(70% 90% at 90% 30%, rgba(20, 40, 75, .14), transparent 60%); }
.s-well { background: radial-gradient(70% 90% at 90% 30%, rgba(31, 138, 132, .16), transparent 60%); }
.s-pro { background: radial-gradient(70% 90% at 90% 30%, rgba(157, 23, 77, .12), transparent 60%); }
.s-end { background: radial-gradient(60% 80% at 50% 40%, rgba(47, 143, 78, .16), transparent 65%); }
@media (max-width: 760px) {
  .deck { padding-top: 10px; }
  .deck-top { padding: 0 16px; }
  .deck-progress { margin: 4px 16px 0; }
  .slide { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 16px 8px; align-content: start; min-height: 0; }
  .s-art { order: -1; }
  .s-copy h2 { font-size: clamp(28px, 8vw, 36px); margin-bottom: 10px; }
  .s-kicker { font-size: 12.5px; margin-bottom: 8px; }
  .s-lead { font-size: 16.5px; }
  .s-points { gap: 8px; }
  .s-points li { font-size: 16px; padding-left: 30px; }
  .s-points li::before { width: 22px; height: 22px; font-size: 12px; }
  .s-swipe { margin-top: 14px; font-size: 14px; }
  .mk-list, .mk-rank, .mk-homes, .mk-chat, .mk-well, .mk-stack { width: 100%; padding: 14px; }
  .mk-phone { width: 250px; }
  .mk-stack i { padding: 12px 14px; font-size: 15px; }
  .mk-row { padding: 8px 0; }
  .mk-tiles span { height: 56px; }
  .s-cover .mk-card + .mk-card { display: none; }
  .s-end { padding-top: 40px; }
  .deck-nav { padding: 6px 0 0; }
  .deck-arrow { width: 42px; height: 42px; font-size: 24px; }
}

/* ================= Phones: tidy header, panels that fit their content, swipeable digest ================= */
.area-toggle { display: none; }
@media (max-width: 640px) {
  .signed-in .top { padding: 12px 0 12px; }
  .signed-in .top .wrap { display: grid !important; grid-template-columns: 52px minmax(0, 1fr); gap: 8px 12px !important; align-items: center; }
  .signed-in .brand { grid-column: 1; grid-row: 1 / 3; }
  .signed-in .brand-mark { width: 52px !important; height: 52px !important; box-shadow: 0 0 0 2px rgba(255,255,255,.9) !important; }
  .signed-in .top-greeting { display: contents; }
  .signed-in .greet-row { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; justify-content: flex-start; min-width: 0; }
  .signed-in .greet-row h1 { font-size: 22px; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .signed-in .invite-btn { flex: none; font-size: 12.5px; padding: 3px 10px; }
  .signed-in .top-greeting .place { grid-column: 2; grid-row: 2; margin: 0; font-size: 14.5px; text-align: left; line-height: 1.3; }
  .signed-in .top-greeting .top-actions { grid-column: 1 / -1; grid-row: 3; margin: 4px -16px 0; padding: 2px 16px 4px; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .signed-in .top-actions::-webkit-scrollbar { display: none; }
  .signed-in .top-actions:not(:has(> :not([hidden]):not(.who))) { display: none; }
  .signed-in .top .who { display: none !important; }
  .signed-in .top-actions > *, .signed-in .top-actions .btn, .signed-in .top-actions .top-page { flex: none; }
  .signed-in .top .btn-small { min-height: 36px; padding: 0 13px; font-size: 14px; white-space: nowrap; }
  .signed-in .top-settings { grid-column: 1 / -1; grid-row: 4; display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
  .signed-in .top-settings[hidden] { display: none !important; }
  .area-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .area-toggle[aria-expanded="true"] { background: #fff; color: var(--ink); border-color: #fff; }
  .top-settings:not(.area-open) > #zip-form, .top-settings:not(.area-open) > #places-form { display: none !important; }
  .top-settings.area-open > #zip-form, .top-settings.area-open > #places-form { order: 5; flex-basis: 100%; width: 100%; }
  .signed-in .top-extra { display: contents; }
  .signed-in .top-extra .top-page[hidden] { display: none; }
  .signed-in .top-settings #today { order: 4; flex-basis: 100%; margin-top: 2px; }
  .signed-in .top-settings #today .cond { min-height: 36px; padding: 4px 10px; font-size: 13px; }
  .signed-in .picker { width: 100% !important; }
  /* Meetups is a chip in the header on phones, so the floating button shrinks to a round icon */
  .lcp-fab { padding: 0 !important; width: 54px; height: 54px; justify-content: center; }
  .lcp-fab > span:not(.lcp-fab-ico) { display: none; }
  .lcp-fab .lcp-fab-ico { background: none; width: auto; height: auto; font-size: 24px; }
}
@media (max-width: 760px) {
  /* panels take the height of what's in them, up to most of the screen, and scroll inside after that */
  .panel, .panel-news, .panel-stack .panel, .panel-forum { height: auto !important; min-height: 0 !important; max-height: 78vh; }
  .panel-stack .panel-homes { flex: none; }
  .panel-news .panel-body, .panel-top .panel-body { max-height: 62vh; }
  /* wellness topics swipe sideways instead of a long column */
  .health-band .wd-sections { display: grid; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .health-band .wd-sections > * { scroll-snap-align: start; }
}
/* deck fits the screen above the pinned Join / Sign in bar */
.deck { display: flex; flex-direction: column; }
@media (min-width: 761px) { .slide { min-height: clamp(340px, calc(100svh - 380px), 560px); } }
@media (max-width: 760px) {
  .deck-nav { order: 2; padding: 8px 0 0; gap: 12px; }
  .deck-top { order: 0; } .deck-progress { order: 1; } .deck-track { order: 3; }
  .deck-arrow { width: 36px; height: 36px; font-size: 22px; border-width: 1.5px; }
  .on-landing .top { padding: 10px 0; }
  .on-landing .brand-mark { width: 52px; height: 52px; }
  .on-landing .brand-name { font-size: 26px; }
}
.deck-top { width: 100%; box-sizing: border-box; }
.deck-progress { width: calc(100% - 48px); flex: none; }
@media (max-width: 760px) { .deck-progress { width: calc(100% - 32px); } }
@media (max-width: 760px) {
  /* keep each slide's picture short so the words fit above the Join / Sign in bar */
  .slide { gap: 14px; padding-top: 12px; }
  .s-art .mk-row:nth-child(n+3), .s-art .mk-rank p:nth-child(n+4), .s-art .mk-chat p:nth-child(3),
  .s-art .mk-homes .mk-hcard + .mk-hcard, .s-art .lp-pm-cards, .s-art .mk-tiles { display: none; }
  .mk-rank p { padding: 7px 0; } .mk-rank b { width: 28px; height: 28px; }
  .mk-stack { gap: 7px; } .mk-stack i { padding: 10px 12px; font-size: 14.5px; }
  .mk-chat p { padding: 8px 12px; font-size: 14px; margin-bottom: 6px; }
  .mk-vote { margin-top: 8px; } .mk-vote span { padding: 7px 10px; }
  .mk-well i { padding: 10px 12px; }
  .mk-phone { width: 230px; padding: 12px; } .mk-head { padding: 14px 14px 10px; }
  .s-pro .lp-page-mock { transform: none; }
  .lp-pm-hero { padding: 14px; } .lp-pm-hero b { font-size: 17px; } .lp-pm-av { width: 46px; height: 46px; font-size: 16px; }
}
.on-landing .gb-text { display: none; }
@media (max-width: 760px) { .on-landing .guest-bar { padding: 10px 12px; } body.guest.on-landing { padding-bottom: 90px; } }
@media (max-width: 640px) {
  .signed-in .top-settings { flex-direction: row !important; justify-content: flex-start; align-items: center; }
  .signed-in .top-settings #today { justify-content: flex-start; }
  /* most-used account buttons first */
  .signed-in .top-actions #my-details { order: 1; } .signed-in .top-actions #top-page { order: 2; } .signed-in .top-actions #top-public { order: 3; }
  .signed-in .top-actions #signout { order: 4; } .signed-in .top-actions #change-pw { order: 5; }
}

/* ===== Deck, presentation style: each slide is a bold colored card on a dark stage ===== */
.deck { background: radial-gradient(120% 80% at 50% 0%, #1B3360 0%, #0E1B33 70%); }
.deck-count { color: rgba(255, 255, 255, .7); }
.deck-skip { color: #9BE3B4; }
.deck-progress { background: rgba(255, 255, 255, .15); }
.deck-progress i { background: linear-gradient(90deg, #9BE3B4, #F2B33D); }
.slide { --inset-x: max(14px, calc((100% - 1120px) / 2)); position: relative; background: none !important; color: #fff;
  padding: 54px calc(var(--inset-x) + 48px) 50px; }
.slide::before { content: ''; position: absolute; z-index: 0; inset: 14px var(--inset-x); border-radius: 30px;
  background: radial-gradient(45% 70% at 85% 15%, rgba(255, 255, 255, .18), transparent 70%), var(--slide-bg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.slide > * { position: relative; z-index: 1; }
.slide .s-copy h2 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .18); }
.slide .s-copy .hl { color: #B8F5C8; }
.slide .s-kicker { color: rgba(255, 255, 255, .85); }
.slide .s-lead, .slide .s-swipe { color: rgba(255, 255, 255, .88); }
.slide .s-points li { color: #fff; font-weight: 600; }
.slide .s-points li::before { background: #fff; color: var(--slide-ink, #1E6B47); }
.slide .s-art > * { box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .55); }
.s-cover  { --slide-ink: #1E6B47; --slide-bg: linear-gradient(135deg, #14284B 0%, #1E6B47 100%); }
.s-news   { --slide-ink: #1D4ED8; --slide-bg: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); }
.s-events { --slide-ink: #7C3AED; --slide-bg: linear-gradient(135deg, #6D28D9 0%, #DB2777 100%); }
.s-guides { --slide-ink: #C2410C; --slide-bg: linear-gradient(135deg, #9A3412 0%, #EA8A0C 100%); }
.s-homes  { --slide-ink: #0F766E; --slide-bg: linear-gradient(135deg, #0F766E 0%, #0284C7 100%); }
.s-meet   { --slide-ink: #4338CA; --slide-bg: linear-gradient(135deg, #312E81 0%, #7C3AED 100%); }
.s-well   { --slide-ink: #15803D; --slide-bg: linear-gradient(135deg, #115E59 0%, #16A34A 100%); }
.s-pro    { --slide-ink: #BE185D; --slide-bg: linear-gradient(135deg, #831843 0%, #DB2777 100%); }
.deck-arrow { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.deck-arrow:hover:not(:disabled) { background: #fff; color: #14284B; }
.deck-dots button { background: rgba(255, 255, 255, .35); }
.deck-dots button.on { background: #9BE3B4; }
@media (max-width: 760px) {
  .slide { --inset-x: 10px; padding: 28px 28px 30px; }
  .slide::before { inset: 8px 10px; border-radius: 26px; }
}
.s-art { min-width: 0; width: 100%; }
.s-pro .lp-page-mock { width: 100%; max-width: 380px; transform: none; }
.s-art .lp-pm-btns u { display: inline-block; width: auto; height: auto; margin-top: 0; border-radius: 8px; background: #1E6B47; }
.s-art .lp-pm-btns u + u { background: transparent; }
body.on-landing { background: #0E1B33; }
