/*
    Hurd V3 design system.
    Mobile first: base rules are for phones, then min-width queries add
    tablet (600px) and desktop (960px) layouts.
*/

/* Montserrat, served with the site and preloaded so it's ready before the pages draw.
   One variable file covers every weight. SIL Open Font License: fonts/Montserrat-OFL.txt */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

/* Arial sized to Montserrat's measurements, so text moves less if the web font is late */
@font-face {
    font-family: "Montserrat Fallback";
    src: local("Arial"), local("ArialMT");
    size-adjust: 113.4%;
    ascent-override: 85%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
    --green: #245004;
    --green-hover: #163202;
    --green-dark: #1d4203;
    --orange: #FAA620;
    --orange-hover: #e8940c;
    --ink: #1c2417;
    --muted: #44503b;
    --bg: #fbfbf7;
    --soft-green: #eef2e7;
    --soft-orange: #fff3dc;
    --border: #e6e9df;
    --field-border: #7d8a71;   /* 3.7:1 on white; the brief's #b9c2b0 was under the 3:1 WCAG asks of input borders */
    --error: #a1260d;

    --font: Montserrat, "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-h1: clamp(36px, 5.6vw, 66px);
    --fs-h2: clamp(28px, 3.6vw, 40px);

    --radius-card: 20px;
    --radius-pill: 999px;
    --tap: 44px;
    --tap-form: 48px;
    --wrap: 1240px;
    --gutter: 24px;
}

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
}

/* <ResponsiveImage> wraps each photo in <picture>; the <img> inside keeps the layout */
picture {
    display: contents;
}

/* ...and its <source> tags must not become grid or flex items */
picture source {
    display: none;
}

a {
    color: var(--green);
}

a:hover {
    color: var(--green-hover);
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--orange);
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--orange);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.page-intro {
    padding-top: 48px;
    padding-bottom: 72px;
}

.page-title {
    margin: 0;
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wrap--wide {
    max-width: 1320px;
}

/* React pages draw after their script loads; holding a screen's height keeps the footer
   from showing first and then jumping down */
#root {
    min-height: 100vh;
}

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

/* ---------- Shared text pieces ---------- */
.section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 64px;
    padding-bottom: 72px;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.section__title {
    margin: 0;
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section__sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    font-size: 15px;
    font-weight: 700;
}

.text-link--muted {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

/* A button that looks like a link, for actions that stay on the page */
.link-button {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--green);
    font: 700 14px var(--font);
    cursor: pointer;
}

.eyebrow {
    color: #8a5a00;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge,
.pill {
    background: var(--orange);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.badge {
    align-self: flex-start;
    padding: 8px 14px;
}

.pill {
    padding: 5px 10px;
}

.icon-tile {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--soft-green);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    padding-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.crumbs a {
    display: inline-flex;
    align-items: center;
    min-width: var(--tap);
    min-height: var(--tap);
    font-weight: 600;
}

.select {
    min-height: var(--tap);
    padding: 10px 12px;
    border: 1.5px solid var(--field-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 600 15px var(--font);
}

/* Loading and error messages for API calls */
.status {
    padding: 24px 0;
    color: var(--muted);
    font-size: 15px;
}

.status--error {
    color: var(--error);
    font-weight: 600;
}

.notice {
    padding: 20px;
    border: 1px dashed var(--field-border);
    border-radius: 18px;
    background: #fff;
    font-size: 15px;
}

.band--green {
    background: var(--green);
    color: #fff;
}

.band--soft {
    background: var(--soft-green);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tap);
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font: 700 15px/1.2 var(--font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn--form {
    min-height: var(--tap-form);
}

.btn--green {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.btn--green:hover {
    background: var(--green-hover);
    border-color: var(--green-hover);
    color: #fff;
}

/* Orange always takes dark text */
.btn--orange {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--ink);
}

.btn--orange:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    color: var(--ink);
}

.btn--outline {
    background: transparent;
    border-color: var(--green);
    color: var(--green);
}

.btn--outline:hover {
    background: var(--soft-green);
    color: var(--green);
}

/* Outline on a green background */
.btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
}

/* Link-style action that still gets a 44px target */
.btn--text {
    padding-left: 4px;
    padding-right: 4px;
    background: transparent;
    color: var(--green);
    text-decoration: underline;
}

.btn--block {
    display: flex;
    width: 100%;
    min-height: 52px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Filter chips ---------- */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    min-width: var(--tap);
    padding: 10px 16px;
    border: 1.5px solid var(--green);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--green);
    font: 700 14px/1.2 var(--font);
    white-space: nowrap;
    cursor: pointer;
}

.chip:hover {
    background: var(--soft-green);
}

.chip[aria-pressed="true"] {
    background: var(--green);
    color: #fff;
}

/* ---------- Cards ---------- */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    color: var(--ink);
}

.card__media {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--soft-green);
}

.card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
    padding: 16px 18px 20px;
}

.card__eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: #4b5a3f;
}

.card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.card__text {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* Actions sit at the bottom so buttons line up across a row of cards */
.card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.card__actions .btn {
    padding: 10px 14px;
    font-size: 14px;
}

.card__actions .btn--text {
    padding: 10px 4px;
}

/* ---------- Header ---------- */
.site-header {
    position: relative;
    z-index: 5;
    background: var(--green);
    border-bottom: 4px solid var(--orange);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header__logo {
    display: flex;
    flex-shrink: 0;
}

.site-header__logo img {
    display: block;
    width: auto;
    height: 52px;
    border-radius: 4px;
}

.site-nav,
.site-header__actions {
    display: none;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 2px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link[aria-current] {
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--orange);
}

.site-nav__link[aria-current] {
    font-weight: 700;
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--tap);
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-pill);
    background: transparent;
    color: #fff;
    font: 700 15px var(--font);
    cursor: pointer;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 8px var(--gutter) 24px;
    background: var(--green-dark);
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu__link:hover {
    color: #fff;
}

.mobile-menu__link[aria-current] {
    box-shadow: inset 4px 0 0 var(--orange);
    padding-left: 14px;
}

.mobile-menu__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 18px;
}

@media (min-width: 960px) {
    .site-nav {
        display: flex;
        flex-grow: 1;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .site-header__actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .menu-btn,
    .mobile-menu {
        display: none;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    border-top: 6px solid var(--orange);
    color: #dfe5d8;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 28px;
}

.site-footer__about {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer__about p {
    margin: 0;
}

.site-footer__about img {
    width: 150px;
    border-radius: 4px;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
}

.site-footer__heading {
    margin: 0 0 4px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    min-width: var(--tap);
    color: #fff;
}

.site-footer__nav a:hover {
    color: var(--orange);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #b9c3ad;
    font-size: 13px;
}

.site-footer__legal-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 16px;
}

/* Small on purpose: for staff, not residents */
.site-footer__staff {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: var(--tap);
    color: #b9c3ad;
    text-decoration: none;
}

.site-footer__staff:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__eho {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ================= Home ================= */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    overflow: hidden;
    background: var(--green-dark);
    color: #fff;
}

.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 65%;
}

/* 52% dark green over the photo keeps white text readable */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(14, 28, 4, 0.52);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    padding-top: 48px;
    padding-bottom: 120px;
}

.hero__title {
    max-width: 780px;
    margin: 0;
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.hero__accent {
    color: var(--orange);
}

.hero__lede {
    max-width: 580px;
    margin: 0;
    color: #eef3e8;
    font-size: clamp(16px, 1.8vw, 20px);
}

/* Where and Bedrooms side by side even on a phone, Search beside them when there's room */
.search-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    max-width: 720px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.search-card__field {
    display: flex;
    flex: 1 1 120px;
    flex-direction: column;
    min-width: 0;
    padding: 2px 10px 0;
    color: #5a6650;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.search-card__field select {
    min-height: var(--tap);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 600 16px var(--font);
    letter-spacing: normal;
    text-transform: none;
}

.search-card__submit {
    flex: 1 1 140px;
    min-height: var(--tap-form);
    border-radius: 12px;
    font-size: 16px;
}

.hero__popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 18px;
    margin: 0;
    color: #eef3e8;
    font-size: 14px;
    font-weight: 600;
}

.hero__popular a {
    display: inline-flex;
    align-items: center;
    min-width: var(--tap);
    min-height: var(--tap);
    color: #fff;
    font-weight: 700;
}

.hero__popular a:hover {
    color: var(--orange);
}

/* Overlaps the bottom of the hero by 72px and stays three across on phones */
.stats {
    position: relative;
    z-index: 3;
    max-width: 1040px;
    margin-top: -72px;
}

.stats__card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 22px 8px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(28, 48, 10, 0.14);
}

.stat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    text-align: center;
}

.stat + .stat {
    border-left: 1px solid #eceee6;
}

.stat__text {
    display: flex;
    flex-direction: column;
}

.stat__value {
    font-size: clamp(24px, 3.6vw, 36px);
    font-weight: 800;
    line-height: 1.1;
}

.stat__label {
    color: var(--muted);
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 600;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.city-tile {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
}

.city-tile:hover {
    color: #fff;
}

.city-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.city-tile:hover img {
    transform: scale(1.05);
}

.city-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(14, 28, 4, 0.48);
}

/* Count pill above the city name, never beside it */
.city-tile__text {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.city-tile__name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.why-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
}

.why-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.why-card p {
    margin: 0;
    color: #e1ead8;
    font-size: 15px;
    line-height: 1.65;
}

.section--flush {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-bottom: 24px;
}

/* Swipeable row of cards */
.featured-row {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 4px var(--gutter) 18px;
    overflow-x: auto;
    list-style: none;
    scroll-padding-left: var(--gutter);
    scroll-snap-type: x mandatory;
}

.featured-row li {
    display: flex;
    flex: 0 0 290px;
    scroll-snap-align: start;
}

.feature-card {
    width: 100%;
    text-decoration: none;
}

.feature-card:hover {
    border-color: var(--green);
    color: var(--ink);
}

.feature-card__more {
    margin-top: auto;
    padding-top: 8px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.quote-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 28px;
    background: var(--soft-orange);
    color: #4a3a12;
}

.quote-band blockquote {
    margin: 0;
    color: #2a2412;
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 600;
    line-height: 1.4;
}

.quote-band figcaption {
    font-size: 15px;
    font-weight: 700;
}

.quote-band figcaption a {
    color: #6b4300;
}

.quote-band__quote {
    display: flex;
    flex: 3 1 420px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.quote-band__count {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    font-size: 15px;
}

.quote-band__n {
    color: var(--green);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.quote-band--small {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 26px;
    border-radius: 20px;
}

.quote-band--small blockquote {
    font-size: 18px;
    line-height: 1.55;
}

.quote-band--small figcaption {
    font-size: 14px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.tile:hover {
    border-color: var(--green);
    color: var(--ink);
}

.tile strong {
    font-size: 17px;
}

.tile span {
    color: var(--muted);
    font-size: 14px;
}

.careers-teaser {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.careers-teaser__text {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.careers-teaser__text p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.careers-teaser__photo {
    flex: 1 1 380px;
    min-width: 0;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 24px;
}

@media (min-width: 600px) {
    .stats__card {
        gap: 12px;
        padding: 26px 20px;
    }
}

@media (min-width: 960px) {
    .hero {
        min-height: 620px;
    }

    .hero__inner {
        padding-top: 72px;
        padding-bottom: 128px;
    }
}

/* ================= Communities ================= */
.communities {
    padding-bottom: 72px;
}

.communities .crumbs {
    padding-top: 28px;
}

.communities__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.communities__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* The map banner and its toggle only show from 600px up */
.map-toggle,
.map-banner {
    display: none;
}

.map-banner {
    padding-top: 16px;
}

.map-banner__box {
    position: relative;
    padding: 28px 36px 36px;
    border: 1px solid #dfe5d6;
    border-radius: 22px;
    background: var(--soft-green);
}

.map-banner__frame {
    position: relative;
    aspect-ratio: 1000 / 242;
}

.map-banner__state {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.map-banner__state path {
    fill: #dce6cf;
    stroke: #9fb38a;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.map-banner__hint {
    position: absolute;
    right: 20px;
    bottom: 8px;
    margin: 0;
    color: #55604c;
    font-size: 12px;
}

/* The dot sits exactly on the city; the 44px button around it is the tap target */
.map-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font);
    cursor: pointer;
    transform: translate(-22px, -50%);
}

.map-pin--left {
    flex-direction: row-reverse;
    transform: translate(calc(-100% + 22px), -50%);
}

.map-pin__dot {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 8px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.map-pin__label {
    display: none;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.map-pin:hover .map-pin__label {
    background: var(--green);
    color: #fff;
}

.map-pin[aria-pressed="true"] .map-pin__dot,
.map-pin[aria-pressed="true"] .map-pin__label {
    background: var(--orange);
    color: var(--ink);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.filter-bar__field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.filter-bar .chip-group {
    align-items: center;
    gap: 6px;
}

.filter-bar__label {
    margin-right: 2px;
    font-size: 14px;
    font-weight: 700;
}

.filter-bar__count {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.results__group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
}

.results__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 12px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--border);
}

.results__head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

/* 320px keeps View homes, Call and Directions on one line */
.results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 18px;
}

.no-results {
    margin-top: 24px;
    padding: 28px;
    border: 1px dashed var(--field-border);
    border-radius: 18px;
    background: #fff;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

.no-results .link-button {
    font-size: 15px;
    text-decoration: underline;
}

/* Work-address drive times */
.commute {
    display: flex;
    flex: 1 1 320px;
    gap: 8px;
    min-width: 0;
}

.commute__field {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: var(--tap-form);
    padding: 0 14px;
    border: 1.5px solid var(--field-border);
    border-radius: var(--radius-pill);
    background: #fff;
}

.commute__field svg {
    flex-shrink: 0;
}

.commute__input {
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
    min-height: var(--tap);
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 500 15px var(--font);
}

.commute__input::placeholder {
    color: var(--muted);
}

.commute__go {
    flex-shrink: 0;
}

.drive-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 12px 0 0;
    padding: 8px 16px;
    border-radius: 16px;
    background: var(--soft-orange);
    color: #3d2a00;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.drive-strip--error {
    border: 1.5px solid var(--error);
    background: #fff;
    color: var(--error);
    font-weight: 600;
}

.drive-strip__clear {
    color: #6b4300;
}

.drive-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--soft-orange);
}

.drive-box__time {
    display: flex;
    flex-direction: column;
}

.drive-box__time strong {
    color: #3d2a00;
    font-size: 18px;
}

.drive-box__time span {
    color: #5a3b00;
    font-size: 12px;
    font-weight: 600;
}

.drive-box__route {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: #6b4300;
    font-size: 13px;
    font-weight: 700;
}

@media (min-width: 600px) {
    .map-toggle {
        display: inline-flex;
    }

    .map-banner {
        display: block;
    }
}

/* From 900px the pins show "City · count" labels instead of a count in the dot */
@media (min-width: 900px) {
    .map-pin__count {
        display: none;
    }

    .map-pin__label {
        display: inline-block;
    }
}

/* ================= Community ================= */
.gallery {
    display: flex;
    gap: 12px;
    height: clamp(260px, 42vw, 460px);
    margin-top: 16px;
}

.gallery__main {
    position: relative;
    flex: 2 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: var(--soft-green);
}

.gallery__main img,
.gallery__thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__all {
    position: absolute;
    right: 14px;
    bottom: 14px;
    min-height: var(--tap);
    padding: 12px 16px;
    border: 0;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    color: var(--ink);
    font: 700 14px var(--font);
    cursor: pointer;
}

/* Below 640px only the large photo shows */
.gallery__thumbs {
    display: none;
}

.gallery__thumbs img {
    border-radius: 16px;
    background: var(--soft-green);
}

.photo-dialog {
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 20px;
}

.photo-dialog::backdrop {
    background: rgba(14, 28, 4, 0.7);
}

.photo-dialog__head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.photo-dialog__head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.photo-dialog__list {
    display: grid;
    gap: 12px;
    padding: 16px 20px 20px;
}

.photo-dialog__list img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* Contact card first on phones, right-hand column from 960px */
.community {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 32px;
    padding-bottom: 72px;
}

.community__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(28, 48, 10, 0.08);
}

.contact-card__facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #eef0e8;
    color: #33402b;
    font-size: 14px;
    line-height: 1.5;
}

.contact-card__facts dt {
    font-weight: 700;
}

.contact-card__facts dd {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.community__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community__title {
    margin: 0;
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.community__tagline {
    margin: 0;
    color: var(--muted);
}

.fact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 4px 0 0;
    list-style: none;
}

.fact-chips li {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--soft-green);
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.community__text {
    max-width: 720px;
    margin: 8px 0 0;
    color: #33402b;
    line-height: 1.75;
}

.community__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community__h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.plan-card__image {
    width: 100%;
    height: 240px;
    padding: 12px;
    background: #f6f7f2;
    object-fit: contain;
}

.plan-card__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.plan-card__price {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.panel {
    flex: 1 1 280px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
}

.panel__title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    color: #33402b;
    font-size: 14px;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-list svg {
    flex-shrink: 0;
}

.also-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.also-card {
    height: 100%;
    border-radius: 16px;
    text-decoration: none;
}

.also-card:hover {
    border-color: var(--green);
    color: var(--ink);
}

.also-card .card__body {
    gap: 4px;
    padding: 12px 14px;
}

/* Location & what's nearby */
.nearby__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.nearby__address {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.nearby {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.nearby-map {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #dfe5d6;
    border-radius: 20px;
    background: #f1f4ec;
}

.nearby-map svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nearby-map__zone {
    fill: var(--green);
    fill-opacity: 0.07;
    stroke: var(--green);
    stroke-opacity: 0.45;
    stroke-width: 0.5;
    stroke-dasharray: 2 2;
}

.nearby-map__zone--10 {
    fill-opacity: 0.1;
}

.nearby-map__zone--5 {
    fill-opacity: 0.16;
}

.nearby-map__north,
.nearby-map__legend text {
    fill: #2f4a1a;
    font: 700 7px var(--font);
}

.nearby-map__legend text {
    font-size: 6px;
}

/* Each swatch matches how its area looks with the others drawn over it */
.nearby-map__swatch {
    fill: var(--green);
    stroke: var(--green);
    stroke-opacity: 0.45;
    stroke-width: 0.5;
}

.nearby-map__swatch--20 {
    fill-opacity: 0.07;
}

.nearby-map__swatch--10 {
    fill-opacity: 0.16;
}

.nearby-map__swatch--5 {
    fill-opacity: 0.3;
}

.nearby-map__pin circle {
    fill: var(--green);
    stroke: #fff;
    stroke-width: 1.5;
}

.nearby-map__pin text {
    fill: #fff;
    font: 700 6.5px var(--font);
    text-anchor: middle;
}

.nearby-map__pin--off circle {
    fill: #c9d1c0;
}

.nearby-map__pin--off text {
    fill: #3d4636;
}

.nearby-map__home circle {
    fill: var(--orange);
    stroke: #fff;
    stroke-width: 2;
}

.nearby-map__home path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nearby__list {
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nearby__place {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.nearby__n {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.nearby__name {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.nearby__name span {
    color: var(--muted);
    font-size: 13px;
}

.nearby__time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.nearby__time strong {
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
}

.nearby__time span {
    color: var(--muted);
    font-size: 12px;
}

.nearby__note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Call / Apply stays at the bottom of the screen below 960px */
.sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
}

/* Keep keyboard focus from landing behind the sticky bar */
html:has(.sticky-bar) {
    scroll-padding-bottom: 84px;
}

@media (min-width: 640px) {
    .gallery__thumbs {
        display: grid;
        flex: 1 1 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 12px;
        min-width: 0;
    }
}

@media (min-width: 960px) {
    .community {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-card {
        flex: 0 0 340px;
        order: 2;
    }

    .sticky-bar {
        display: none;
    }

    html:has(.sticky-bar) {
        scroll-padding-bottom: 0;
    }
}

/* ================= Apply and Resident Center ================= */
.page-head {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 44px;
    padding-bottom: 44px;
}

.page-head__title {
    margin: 0;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.page-head__sub {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.page-head__sub a {
    font-weight: 700;
}

/* Links inside a sentence: vertical padding makes a 44px tap area without moving the text */
.page-head__sub a,
.form-note a {
    padding: 14px 0;
}

.section--tight {
    gap: 18px;
    padding-top: 44px;
    padding-bottom: 24px;
}

.section__head--inline {
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px 16px;
}

.section__note {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.section__head--inline .section__note {
    margin: 0;
    font-size: 14px;
}

.apply-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.paper-list {
    margin: 0 0 48px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    list-style: none;
}

.paper-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 14px 20px;
    border-bottom: 1px solid #eef0e8;
}

.paper-row:last-child {
    border-bottom: 0;
}

.paper-row__name {
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.paper-row__name span {
    color: var(--muted);
    font-size: 13px;
}

/* Two equal-width buttons */
.paper-row__actions {
    display: grid;
    flex: 1 1 420px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 460px;
}

.paper-row__actions .btn {
    padding: 10px 12px;
    font-size: 14px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

a.action-card:hover {
    border-color: var(--green);
    color: var(--ink);
}

.action-card--alert {
    background: var(--soft-orange);
    color: #3d2a00;
}

.action-card__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--green);
}

.action-card__icon--orange {
    background: var(--orange);
}

.action-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-card__text strong {
    font-size: 17px;
}

.action-card__text span {
    color: var(--muted);
    font-size: 14px;
}

.action-card--alert .action-card__text span {
    color: #4a3a12;
}

.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.survey-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.survey-card:hover {
    border-color: var(--green);
    color: var(--ink);
}

.survey-card .eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
}

.survey-card strong {
    font-size: 20px;
}

.survey-card span {
    color: var(--muted);
    font-size: 15px;
}

.survey-card .survey-card__go {
    margin-top: auto;
    padding-top: 6px;
    color: var(--green);
    font-weight: 700;
}

.comment-section {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 72px;
    scroll-margin-top: 16px;
}

.comment-section__intro {
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.comment-section__intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.comment-section .form-card {
    flex: 2 1 520px;
}

/* ================= Forms ================= */
.form-card {
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
}

.form-card__legend {
    padding: 0 6px;
    font-size: 15px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.form-grid__full {
    grid-column: 1 / -1;
}

.topic-picker {
    margin: 0;
    padding: 0;
    border: 0;
}

.topic-picker legend {
    padding: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field__label {
    font-size: 14px;
    font-weight: 700;
}

.input {
    width: 100%;
    min-height: var(--tap-form);
    padding: 12px 14px;
    border: 1.5px solid var(--field-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 500 16px var(--font);
}

textarea.input {
    resize: vertical;
}

.field--error .input {
    border-color: var(--error);
    border-width: 2px;
}

.field__error {
    margin: 0;
    color: var(--error);
    font-size: 13px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.form-actions__notes {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    gap: 6px;
}

.form-note {
    margin: 0;
    color: #55604c;
    font-size: 13px;
}

.btn--big {
    min-height: 52px;
    padding: 14px 30px;
    font-size: 16px;
}

/* The notice in each form stands in for Google's floating badge, which would cover the page */
.grecaptcha-badge {
    visibility: hidden;
}

.form-card--done {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 36px;
}

.form-card--done h3 {
    margin: 0;
    font-size: 22px;
}

.form-card--done p {
    margin: 0;
    color: var(--muted);
}

.done-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green);
}

.done-mark--big {
    width: 64px;
    height: 64px;
}

/* ================= Surveys ================= */
.progress {
    position: sticky;
    top: 0;
    z-index: 3;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.progress__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px var(--gutter);
}

.progress__label {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.progress__track {
    flex-grow: 1;
    height: 8px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--border);
}

.progress__bar {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--green);
    transition: width 0.2s;
}

.survey {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 760px;
    margin: 0 auto;
    padding: 36px var(--gutter) 80px;
}

/* Keep fields from sliding under the sticky progress bar when they get focus */
html:has(.progress) {
    scroll-padding-top: 64px;
}

.survey__intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survey__intro .eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
}

.survey__intro p {
    margin: 0;
    color: var(--muted);
}

.survey__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.questions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 16px 18px;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.question--missing {
    border: 2px solid var(--error);
}

.question__text {
    flex: 1 1 300px;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.question__error {
    flex-basis: 100%;
}

/* Large Yes / No buttons */
.yes-no {
    display: grid;
    flex: 0 1 220px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.yes-no button,
.rating__buttons button {
    min-height: var(--tap-form);
    border: 1.5px solid var(--field-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 700 15px var(--font);
    cursor: pointer;
}

.yes-no__yes[aria-pressed="true"],
.rating__buttons .rating__on {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.yes-no__no[aria-pressed="true"] {
    border-color: #7a4a00;
    background: var(--orange);
    color: var(--ink);
}

.rating {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* In this column layout the question text's flex-basis would become a 300px height */
.rating .question__text {
    flex: none;
}

.rating__optional {
    color: #55604c;
    font-weight: 500;
}

.rating__buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.rating__buttons button {
    font-size: 16px;
    font-weight: 800;
}

.rating__ends {
    display: flex;
    justify-content: space-between;
    color: #55604c;
    font-size: 12px;
    font-weight: 600;
}

.survey-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    padding-top: 72px;
    padding-bottom: 96px;
    text-align: center;
}

.survey-done h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
}

.survey-done p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (min-width: 600px) {
    .form-card {
        padding: 26px;
    }

    .form-card--done {
        padding: 36px;
    }
}

/* ---------- Reviews ---------- */
.band--orange {
    background: var(--soft-orange);
}

.reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 44px;
    padding-bottom: 44px;
}

.reviews-head .page-title {
    color: #2a2412;
}

.reviews-head__sub {
    margin: 8px 0 0;
    color: #4a3a12;
}

.reviews {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 72px;
}

/* One scrolling row of chips instead of many wrapped rows on phones and tablets */
@media (max-width: 959px) {
    .reviews .chip-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 4px 8px;
        margin: -4px -4px 0;
    }

    .reviews .chip {
        flex-shrink: 0;
    }
}

.review-columns {
    columns: 320px;
    column-gap: 18px;
}

.review {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
    break-inside: avoid;
}

.review blockquote {
    margin: 0;
    color: #2c3826;
    font-size: 15px;
    line-height: 1.65;
}

.review figcaption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
}

.review figcaption a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Careers and About ---------- */
.split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding-top: clamp(36px, 6vw, 72px);
    padding-bottom: clamp(36px, 6vw, 72px);
}

.split__text {
    display: flex;
    flex: 1 1 440px;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.split__text p {
    margin: 0;
    color: #33402b;
    line-height: 1.75;
}

.split__title {
    margin: 0;
    font-size: clamp(32px, 4.6vw, 50px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.split__note {
    align-self: center;
    color: var(--muted);
    font-size: 15px;
}

.split__photo {
    flex: 1 1 420px;
    min-width: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefit {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 22px;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.benefit:hover {
    border-color: var(--green);
}

.benefit .eyebrow {
    font-size: 12px;
}

.benefit strong {
    font-size: 18px;
}

.mission__text {
    max-width: 820px;
    margin: 0;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 600;
    line-height: 1.6;
}
