:root {
    --ink: #4d2952;
    --muted: #716374;
    --forest: #592b60;
    --forest-dark: #3f1d46;
    --mint: #e1f2ee;
    --cream: #f8f5f1;
    --paper: #fffefa;
    --line: #ded3e0;
    --gold: #e87a33;
    --aqua: #87c7b9;
    --green: #959f64;
    --shadow: 0 18px 50px rgba(77, 41, 82, 0.1);
    --radius: 22px;
}

/* Clubhouse television signboard */
.signboard-page { margin:0; min-height:100vh; overflow:hidden; color:#372104; background:#F9EAD3; }
.signboard-page.is-quiet-hours { cursor: none; }
.signboard-page.is-quiet-hours::after { content:"";position:fixed;inset:0;z-index:9999;background:#000; }
.signboard-shell { display:grid; grid-template-rows:auto 1fr auto; width:100vw; height:100vh; background:#F9EAD3; }
.signboard-topbar { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:2.5vw; padding:2.2vh 3vw; border-bottom:1px solid rgba(55,33,4,.18); color:#372104; background:#fff; }
.signboard-community span,.signboard-weather small,.signboard-clock span { display:block; color:rgba(55,33,4,.68); font-size:clamp(.8rem,1.1vw,1.2rem); letter-spacing:.08em; text-transform:uppercase; }
.signboard-community strong { display:block; margin-top:.25rem; font-family:Georgia,"Times New Roman",serif; font-size:clamp(1.2rem,2vw,2.2rem); }
.signboard-community img { display:block; width:clamp(130px,15vw,230px); max-height:10vh; object-fit:contain; object-position:center; }
.signboard-clock { min-width:0; text-align:left; }
.signboard-clock time { display:block; font-family:inherit; font-size:clamp(1.4rem,2.5vw,2.8rem); font-weight:700; line-height:normal; }
.signboard-weather { display:flex; align-items:center; justify-content:flex-end; gap:1vw; text-align:left; }
.weather-icon { color:#372104; font-family:Georgia,"Times New Roman",serif; font-size:clamp(2.3rem,4vw,4.5rem); font-weight:400; line-height:1; }
.signboard-weather strong { display:block; font-size:clamp(1.4rem,2.5vw,2.8rem); }
.signboard-stage { position:relative; min-height:0; overflow:hidden; }
.signboard-slide { position:absolute; inset:0; display:grid; place-items:center; gap:4vw; padding:5vh 7vw; opacity:0; transform:scale(.985); transition:opacity .65s ease,transform .65s ease; }
.signboard-slide.is-visible { opacity:1; transform:none; }
.signboard-slide.has-image { grid-template-columns:minmax(35%,.85fr) minmax(45%,1fr); }
.signboard-image { width:100%; height:100%; min-height:0; overflow:hidden; border-radius:2vw; box-shadow:0 2vw 5vw rgba(0,0,0,.38); }
.signboard-image img { width:100%; height:100%; object-fit:cover; }
.signboard-copy { max-width:1100px; text-align:center; }
.has-image .signboard-copy { text-align:left; }
.signboard-label { margin:0 0 1.5vh!important; color:#372104!important; font-size:clamp(.9rem,1.5vw,1.5rem)!important; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.signboard-copy h1 { max-width:none;margin:0; color:#372104; font:700 clamp(3rem,7.5vw,8.5rem)/.98 Georgia,"Times New Roman",serif; letter-spacing:-.04em; text-wrap:balance; }
.has-image .signboard-copy h1 { font-size:clamp(2.7rem,5.6vw,6.5rem); }
.signboard-slide:not(.has-image):not(.signboard-events-slide) { grid-template-columns:minmax(0,1fr); }
.signboard-slide:not(.has-image):not(.signboard-events-slide) .signboard-copy { display:flex;width:86vw;max-width:1700px;min-width:0;margin-inline:auto;box-sizing:border-box;align-items:center;justify-content:center;flex-direction:column;text-align:center;justify-self:center; }
.signboard-slide:not(.has-image):not(.signboard-events-slide) .signboard-copy h1 { width:100%;font-size:clamp(3rem,6.5vw,7.5rem);white-space:nowrap;text-wrap:nowrap;text-align:center; }
.signboard-slide:not(.has-image).is-long-headline .signboard-copy h1 { font-size:clamp(2.7rem,4.4vw,5.3rem); }
.signboard-slide:not(.has-image).is-very-long-headline .signboard-copy h1 { font-size:clamp(2.3rem,3.2vw,4.1rem); }
.signboard-copy>p:last-child { margin:3vh 0 0; color:rgba(55,33,4,.88); font-size:clamp(1.35rem,2.6vw,3rem); line-height:1.35; text-wrap:balance; }
.signboard-events-slide { grid-template-columns:minmax(0,1fr); }
.signboard-events-slide .signboard-copy { width:100%;max-width:1100px;margin-inline:auto;box-sizing:border-box;justify-self:center;text-align:center; }
.signboard-events-slide .signboard-copy h1 { display:block;width:100%;max-width:none;font-size:clamp(2.8rem,5vw,5.8rem);white-space:nowrap;text-wrap:nowrap;text-align:center; }
.signboard-event-list { display:grid; gap:1.3vh; margin-top:3vh; text-align:left; }
.signboard-event-list.is-two-columns { grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;column-gap:2vw; }
.signboard-event { display:grid; grid-template-columns:minmax(130px,.28fr) minmax(0,1.5fr) minmax(150px,.55fr); align-items:center; gap:2vw; padding:1.5vh 2vw; border:1px solid rgba(55,33,4,.2); border-radius:1vw; background:rgba(255,255,255,.2); }
.signboard-event time { color:#372104; font-size:clamp(1.1rem,1.8vw,2rem); font-weight:800; }
.signboard-event strong { min-width:0; font:700 clamp(1.3rem,2.3vw,2.6rem)/1.1 Georgia,"Times New Roman",serif; white-space:normal;overflow-wrap:anywhere; }
.signboard-event span { color:rgba(55,33,4,.75); font-size:clamp(1rem,1.5vw,1.6rem); }
.signboard-event-list.is-two-columns .signboard-event { grid-template-columns:minmax(95px,.34fr) minmax(0,1fr);column-gap:1.2vw;padding:1.2vh 1.3vw; }
.signboard-event-list.is-two-columns .signboard-event time { grid-row:1 / 3;align-self:center; }
.signboard-event-list.is-two-columns .signboard-event span { grid-column:2; }
.signboard-slide.is-urgent { background:radial-gradient(circle at center,rgba(189,48,48,.5),rgba(75,13,21,.72)); }
.signboard-slide.is-urgent .signboard-copy h1,.signboard-slide.is-urgent .signboard-copy>p:last-child { color:#fff; }
.signboard-slide.is-urgent .signboard-label { color:#fff!important; }
.signboard-footer { display:flex; justify-content:space-between; padding:1.4vh 3vw; color:rgba(55,33,4,.7); border-top:1px solid rgba(55,33,4,.18); font-size:clamp(.72rem,1vw,1rem); letter-spacing:.05em; }
.signboard-footer a { color:inherit; }
.signboard-admin-layout { display:grid; grid-template-columns:minmax(320px,.78fr) minmax(420px,1.22fr); gap:28px; align-items:start; }
.signboard-form-panel,.signboard-message-list { padding:clamp(20px,3vw,34px); border:1px solid var(--line); border-radius:20px; background:var(--paper); box-shadow:var(--shadow); }
.signboard-form-panel h2,.signboard-message-list h2 { margin-top:0; }
.signboard-schedule-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.schedule-repeat-option[hidden] { display:none; }
.signboard-admin-card { display:flex; justify-content:space-between; gap:20px; padding:20px 0; border-top:1px solid var(--line); }
.signboard-admin-card:first-of-type { border-top:0; }
.signboard-admin-card h3 { margin:.2rem 0; font-family:Georgia,"Times New Roman",serif; font-size:1.35rem; }
.signboard-admin-card p { margin:.4rem 0; color:var(--muted); }
.signboard-admin-card small { color:var(--muted); }
.signboard-admin-card.is-inactive { opacity:.58; }
.contractor-submit-note { max-width:360px; margin:0; padding:14px 18px; border:1px solid var(--line); border-radius:14px; color:var(--muted); background:var(--paper); font-size:.95rem; line-height:1.45; }
.contractor-submit-note a { color:var(--forest-dark); font-weight:700; }
@media(max-width:800px){.signboard-admin-layout{grid-template-columns:1fr}.signboard-topbar{grid-template-columns:1fr auto}.signboard-weather{display:none}.signboard-slide.has-image{grid-template-columns:1fr;grid-template-rows:45% 1fr}.has-image .signboard-copy{text-align:center}.signboard-schedule-grid{grid-template-columns:1fr}}

/* Residential contractor and vendor directory. */
.hero.contractor-hero { display:flex;align-items:end;justify-content:space-between;gap:28px;padding:clamp(22px,3.2vw,42px) 0 28px; }
.contractor-hero h1,.contractor-form-intro h1 { font-size:clamp(3rem,7vw,5.5rem); }
.contractor-filter { display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto auto;gap:12px;align-items:end;margin-bottom:28px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow); }
.contractor-filter .form-field { gap:5px; }
.contractor-filter .form-field select { width:100%;height:46px;min-height:46px;padding:11px 13px;border:1px solid #cfc2d1;border-radius:11px;color:var(--ink);background:white;font:inherit;outline:none; }
.contractor-filter .form-field select:focus { border-color:var(--forest);box-shadow:0 0 0 3px rgba(89,43,96,.12); }
.contractor-filter button,.contractor-filter .profile-cancel-button { min-height:50px; }
.contractor-filter-wrap { margin-bottom:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow); }
.contractor-filter-wrap > summary { padding:17px 20px;color:var(--forest-dark);background:#f6f8f5;border-radius:var(--radius);cursor:pointer;font-weight:800; }
.contractor-filter-wrap[open] > summary { border-bottom:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0; }
.contractor-filter-wrap .contractor-filter { margin:0;padding:18px;border:0;border-radius:0;background:transparent;box-shadow:none; }
.contractor-grid { display:grid;grid-template-columns:minmax(0,1fr);gap:22px;margin-bottom:64px; }
.contractor-card { align-self:start;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow); }
.contractor-card > header { display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 24px 18px;border-bottom:1px solid var(--line); }
.contractor-card > header h2 { margin-top:4px;font-size:clamp(1.55rem,3vw,2rem); }
.contractor-description { margin:0;padding:20px 24px 0;color:var(--muted);line-height:1.6; }
.contractor-details { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:20px 24px 0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--line); }
.contractor-details div { min-width:0;padding:12px 13px;background:white; }
.contractor-details dt { color:var(--muted);font-size:.64rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase; }
.contractor-details dd { margin:3px 0 0;overflow-wrap:anywhere;font-size:.84rem;font-weight:700; }
.contractor-details a,.contractor-edit-link { color:var(--forest);text-underline-offset:2px; }
.contractor-edit-link { display:inline-block;margin:18px 24px 0;font-weight:800; }
.contractor-comments { margin-top:22px;border-top:1px solid var(--line); }
.contractor-comments > summary { padding:17px 24px;color:var(--forest-dark);background:#f6f8f5;cursor:pointer;font-weight:800; }
.contractor-comments > .no-comments,.contractor-comments > .comment-list,.contractor-comments > .comment-form-wrap { margin-inline:24px; }
.contractor-comments > .no-comments { margin-top:18px; }
.contractor-comments .comment-form-wrap { margin-bottom:22px; }
.contractor-comment-hidden { border-color:#d9b26a;background:#fff8e8; }
.contractor-comment-hidden::before { content:"Hidden from residents";display:block;margin-bottom:8px;color:#805d16;font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase; }
.contractor-comments .photo-comment footer { align-items:center; }
.contractor-comments .photo-comment footer span,.contractor-comments .photo-comment time { display:block; }
.contractor-comments .photo-comment form { margin:0; }
.comment-moderate-button { padding:8px 11px;color:var(--forest-dark);background:#e8efe9;font-size:.75rem; }
.contractor-form-layout { display:grid;grid-template-columns:minmax(0,.8fr) minmax(480px,1.2fr);gap:clamp(36px,7vw,82px);align-items:start;padding:clamp(48px,8vw,92px) 0 72px; }
.contractor-form-intro { position:sticky;top:24px; }
.contractor-form-panel { padding:clamp(24px,4vw,38px);border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow); }
.contractor-contact-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }

@media (max-width:900px) {
    .contractor-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .contractor-form-layout { grid-template-columns:1fr; }
    .contractor-form-intro { position:static; }
}

@media (max-width:700px) {
    .contractor-hero { align-items:flex-start;flex-direction:column; }
    .contractor-filter,.contractor-grid,.contractor-contact-grid { grid-template-columns:1fr; }
    .contractor-card > header { flex-direction:column; }
    .contractor-details { grid-template-columns:1fr;margin-inline:18px; }
    .contractor-description { padding-inline:18px; }
    .contractor-comments > summary { padding-inline:18px; }
    .contractor-comments > .no-comments,.contractor-comments > .comment-list,.contractor-comments > .comment-form-wrap { margin-inline:18px; }
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    background: var(--cream);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 7%, rgba(232, 122, 51, 0.13), transparent 26rem),
        var(--cream);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    border-bottom: 1px solid rgba(89, 43, 96, 0.14);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.official-topbar {
    padding: 8px 20px;
    color: white;
    background: var(--forest-dark);
    font-size: 0.75rem;
    font-weight: 750;
    text-align: center;
}

.official-topbar a,
.official-topbar .official-site-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.official-topbar a:hover,
.official-topbar a:focus-visible {
    color: #f4c49f;
}

.standalone-logout {
    color: var(--forest-dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.standalone-logout:hover,
.standalone-logout:focus-visible {
    color: var(--gold);
}

.header-inner,
main,
footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.header-inner {
    position: relative;
    min-height: 108px;
    padding-bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header .header-inner::after {
    content: "This website is not affiliated with the Fields at Indian Creek HOA or its Executive Board.";
    position: absolute;
    left: 0;
    bottom: 9px;
    right: 0;
    max-width: none;
    white-space: nowrap;
    color: var(--forest-dark);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.25;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 190px;
    height: auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.brand small {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.directory-count {
    padding: 8px 13px;
    border: 1px solid rgba(23, 79, 64, 0.16);
    border-radius: 999px;
    color: var(--forest);
    background: rgba(255, 255, 255, 0.54);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero {
    padding: clamp(56px, 8vw, 104px) 0 clamp(42px, 6vw, 74px);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--forest);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.08;
}

h1 {
    max-width: 700px;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.055em;
}

.intro {
    max-width: 620px;
    margin: 18px 0 30px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.search-form {
    max-width: 900px;
}

.search-form > label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 800;
}

.search-controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.input-wrap {
    position: relative;
    flex: 1 1 440px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 15px;
    height: 15px;
    border: 2px solid var(--forest);
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: var(--forest);
    transform: rotate(45deg);
}

input,
button,
.clear-search,
.map-button {
    min-height: 56px;
    border-radius: 14px;
    font: inherit;
}

input {
    width: 100%;
    border: 1px solid #cbd6d0;
    padding: 0 20px 0 52px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 8px 30px rgba(25, 53, 43, 0.06);
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgba(23, 79, 64, 0.12), 0 8px 30px rgba(25, 53, 43, 0.06);
}

button {
    border: 0;
    padding: 0 25px;
    color: white;
    background: var(--forest);
    font-weight: 800;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.map-button,
.header-action,
.list-button,
.record-map-link {
    text-decoration: none;
}

button:hover {
    background: var(--forest-dark);
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid var(--forest);
    color: var(--forest);
    background: transparent;
}

.record-map-link {
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 11px;
    border: 1px solid rgba(23, 79, 64, 0.28);
    border-radius: 9px;
    color: var(--forest);
    background: white;
    font-size: 0.75rem;
    font-weight: 800;
}

.record-map-link:hover {
    border-color: var(--forest);
    background: var(--mint);
}

.header-action,
.list-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--forest);
    border-radius: 12px;
    color: var(--forest);
    font-size: 0.86rem;
    font-weight: 800;
}

.header-action:hover,
.list-button:hover {
    color: white;
    background: var(--forest);
}

.map-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(46px, 7vw, 82px) 0 34px;
}

.map-intro h1 {
    font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.map-intro .intro {
    margin-bottom: 0;
}

.selected-home-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 13px 18px;
    border: 1px solid #e6c978;
    border-radius: 13px;
    background: #fff3cf;
}

.selected-home-banner span {
    color: #73560e;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.selected-home-label {
    flex: 0 0 auto;
}

.selected-home-details {
    min-width: 0;
}

.selected-home-details strong,
.selected-home-details small {
    display: block;
}

.selected-home-details strong {
    line-height: 1.25;
}

.selected-home-banner.selection-cleared {
    display: none;
}

.map-shell {
    margin-bottom: 72px;
    overflow: hidden;
    border: 1px solid rgba(23, 79, 64, 0.11);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #f8faf7;
}

.map-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.zoom-controls {
    display: flex;
    gap: 6px;
}

.zoom-controls button {
    min-width: 42px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #cbd6d0;
    border-radius: 9px;
    color: var(--forest);
    background: white;
}

.zoom-controls button:hover {
    color: white;
    background: var(--forest);
}

.map-viewport {
    height: min(72vh, 850px);
    min-height: 520px;
    overflow: auto;
    overscroll-behavior: contain;
    background: #eef3ef;
    outline: none;
}

.map-viewport:focus-visible {
    box-shadow: inset 0 0 0 4px rgba(23, 79, 64, 0.2);
}

.map-canvas {
    --map-scale: 1;
    width: calc(820px * var(--map-scale));
    min-width: calc(820px * var(--map-scale));
    margin: 0 auto;
    padding: 24px;
    transform-origin: top center;
}

.map-canvas svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    background: white;
    box-shadow: 0 8px 30px rgba(25, 53, 43, 0.12);
}

.map-canvas #Houses polygon[data-map-address] {
    fill: rgba(23, 79, 64, 0.1);
    stroke: var(--forest);
    stroke-width: 0.012;
    cursor: pointer;
    transition: fill 120ms ease, stroke-width 120ms ease;
}

.map-canvas #Houses polygon[data-map-address]:focus-visible {
    stroke: #000;
    stroke-width: 0.035;
    animation: property-border-flash 0.9s step-end infinite;
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .map-canvas #Houses polygon[data-map-address]:hover {
        stroke: #000;
        stroke-width: 0.035;
        animation: property-border-flash 0.9s step-end infinite;
    }
}

.map-canvas #Houses polygon.selected-house {
    stroke: #000;
    stroke-width: 0.035;
    animation: property-border-flash 0.9s step-end infinite;
}

.map-canvas #Houses polygon.selected-house.flash-paused {
    stroke: var(--forest);
    stroke-width: 0.012;
    stroke-opacity: 1;
    animation: none;
}

@keyframes property-border-flash {
    0%, 49% {
        stroke-opacity: 1;
    }
    50%, 100% {
        stroke-opacity: 0.18;
    }
}

.map-button:hover {
    color: white;
    background: var(--forest-dark);
}

button:active {
    transform: translateY(1px);
}

.clear-search {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: var(--forest);
    font-weight: 800;
}

.results {
    margin-bottom: 72px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(23, 79, 64, 0.11);
    border-radius: var(--radius);
    background: rgba(255, 254, 250, 0.93);
    box-shadow: var(--shadow);
}

.results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.results-heading h2 {
    font-size: clamp(1.7rem, 4vw, 2.55rem);
}

.results-heading > p {
    margin: 0;
    color: var(--muted);
    white-space: nowrap;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

td {
    padding: 19px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 0.92rem;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr {
    transition: background 150ms ease;
}

tbody tr:hover {
    background: #f7faf7;
}

.resident-name {
    font-weight: 800;
}

.book-title {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 700;
}

.books-table th:first-child,
.books-table td:first-child {
    width: 48%;
}

.books-table th:nth-child(2),
.books-table td:nth-child(2) {
    width: 32%;
}

.book-category {
    color: #315f56;
    background: #dff1ed;
}

.book-row {
    cursor: pointer;
}

.book-row:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.book-details-hint {
    display: block;
    margin-top: 3px;
    color: var(--forest);
    font-size: 0.72rem;
    font-weight: 800;
}

.book-dialog {
    width: min(720px, calc(100% - 28px));
    max-height: min(84vh, 780px);
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 24px 80px rgba(77, 41, 82, 0.28);
}

.book-dialog::backdrop {
    background: rgba(44, 25, 47, 0.62);
    backdrop-filter: blur(3px);
}

.book-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px 22px;
    border-bottom: 1px solid var(--line);
    background: #fbf7f3;
}

.book-dialog-header h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.dialog-close {
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--forest);
    background: white;
    font-size: 1.65rem;
    line-height: 1;
}

.book-dialog-body {
    max-height: calc(84vh - 118px);
    overflow-y: auto;
    padding: 26px 28px 30px;
}

.book-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin: 0;
}

.book-detail-grid div {
    min-width: 0;
}

.book-detail-grid dt,
.book-description h3 {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.book-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.book-description {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.book-description p {
    margin: 0;
    color: #4e4550;
    white-space: pre-line;
}

.gallery-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    padding: clamp(52px, 8vw, 96px) 0 clamp(34px, 5vw, 58px);
}

.gallery-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 18px;
}

.clubs-hero {
    padding-bottom: clamp(34px, 5vw, 58px);
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 72px;
}

.club-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.club-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.club-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbf7f3;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: 1.75rem;
    line-height: 1;
}

.club-icon img {
    display: block;
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.club-icon-fallback {
    color: var(--forest);
    font-size: 1.2rem;
}

.club-card h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.club-card > p {
    margin: 10px 0 24px;
    color: var(--muted);
}

.club-link {
    display: inline-flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--forest);
    font-weight: 800;
    text-decoration: none;
}

.club-link:hover {
    color: var(--forest-dark);
}

.gallery-hero h1,
.upload-intro h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

.gallery-hero .intro {
    margin-bottom: 0;
}

.upload-button {
    display: inline-flex;
    min-height: 54px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 14px;
    color: white;
    background: var(--forest);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(89, 43, 96, 0.18);
}

.upload-button:hover {
    background: var(--forest-dark);
}

.gallery-alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
}

.gallery-alert.success {
    border-color: var(--aqua);
    color: #315f56;
    background: #edf8f5;
}

.gallery-alert.error {
    border-color: #e1b7ad;
    color: #7b3510;
    background: #fff8f5;
}

/* Community document library. */
.documents-hero { padding-bottom:24px; }
.documents-upload-panel { margin:0 0 28px;padding:18px 22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow); }
.documents-upload-panel>summary { cursor:pointer;color:var(--forest-dark);font-weight:800; }
.documents-upload-panel[open]>summary { margin-bottom:20px; }
.documents-upload-panel .upload-form { max-width:760px; }
.documents-filter { display:flex;align-items:end;gap:12px;margin:0 0 20px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--paper); }
.documents-filter .form-field { flex:1;max-width:420px; }
.documents-filter button,.documents-filter .profile-cancel-button { min-height:48px; }
.documents-list { margin-bottom:70px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--paper);box-shadow:var(--shadow); }
.documents-list-header,.document-row { display:grid;align-items:center;gap:18px;padding:15px 22px; }
.documents-list-header { grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); }
.documents-list-header { color:var(--muted);background:var(--cream);font-size:.76rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase; }
.document-row { border-top:1px solid var(--line); }
.document-row { grid-template-columns:minmax(0,1fr) auto; }
.document-row>a { display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:18px;color:var(--forest-dark);font-weight:800;text-decoration:none; }
.document-row>a:hover { color:var(--forest); }
.document-row time { color:var(--muted);font-weight:600; }
.document-row .document-category { color:var(--muted);font-weight:600; }
.document-row form { grid-column:2;grid-row:1; }
.document-row .danger-button { min-height:38px;padding:0 13px;font-size:.8rem; }
@media(max-width:650px){.documents-filter{align-items:stretch;flex-direction:column}.documents-filter .form-field{max-width:none}.documents-list-header{display:none}.document-row{grid-template-columns:1fr auto}.document-row>a{grid-template-columns:1fr;gap:4px}.document-row time,.document-row .document-category{font-size:.88rem}.document-row form{grid-column:2}}

.gallery-empty {
    margin-bottom: 72px;
    padding: clamp(38px, 7vw, 76px);
    border: 1px dashed rgba(89, 43, 96, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 254, 250, 0.8);
    text-align: center;
}

.gallery-empty h2 {
    margin: 0 auto 12px;
    max-width: 620px;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.gallery-empty > p:not(.eyebrow) {
    margin: 0 auto 26px;
    max-width: 560px;
    color: var(--muted);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
    margin-bottom: 72px;
}

.club-post-feed {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

.club-post-feed .photo-image-link img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.club-post-feed .photo-image-link:hover img {
    transform: none;
}

.photo-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    scroll-margin-top: 24px;
}

.photo-card:target {
    box-shadow: 0 0 0 4px rgba(232, 122, 51, 0.35), var(--shadow);
}

.photo-image-link {
    display: block;
    overflow: hidden;
    background: #ece7ed;
}

.photo-image-link img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 220ms ease;
}

.photo-image-link:hover img {
    transform: scale(1.015);
}

.photo-card-body {
    padding: 24px;
}

.photo-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.photo-heading h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.photo-creator {
    margin: 0 0 4px;
    color: var(--forest);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.comment-count {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    color: #315f56;
    background: var(--mint);
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.photo-card-body > time {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.8rem;
}

.photo-description {
    margin: 18px 0 0;
    color: #514852;
}

.photo-comments {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.photo-comments h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.no-comments {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

.comment-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.photo-comment {
    margin: 0;
    padding: 13px 14px;
    border-left: 3px solid var(--aqua);
    border-radius: 0 10px 10px 0;
    background: #f8faf9;
}

.photo-comment p {
    margin: 0 0 8px;
    font-size: 0.88rem;
}

.photo-comment footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px 14px;
    width: auto;
    padding: 0;
    text-align: left;
}

.photo-comment footer time {
    color: var(--muted);
    font-size: 0.72rem;
}

.comment-form-wrap summary {
    width: fit-content;
    color: var(--forest);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.comment-form {
    display: grid;
    gap: 13px;
    margin-top: 15px;
}

.commenting-as {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.commenting-as strong {
    color: var(--ink);
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 800;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #cfc2d1;
    border-radius: 11px;
    padding: 11px 13px;
    color: var(--ink);
    background: white;
    font: inherit;
    outline: none;
}

.form-field input {
    min-height: 46px;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(89, 43, 96, 0.12);
}

.form-field small {
    color: var(--muted);
    font-size: 0.73rem;
}

.comment-form button {
    width: fit-content;
    min-height: 44px;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
    gap: clamp(38px, 7vw, 86px);
    align-items: start;
    padding: clamp(52px, 8vw, 96px) 0 72px;
}

.upload-intro {
    position: sticky;
    top: 28px;
}

.upload-intro .intro {
    margin-bottom: 22px;
}

.back-link {
    color: var(--forest);
    font-weight: 800;
    text-underline-offset: 3px;
}

.upload-panel {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.upload-form {
    display: grid;
    gap: 20px;
}

.upload-form input[type="file"] {
    padding: 9px;
}

.upload-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    color: white;
    background: var(--forest);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.upload-form button {
    justify-self: start;
    min-width: 180px;
}

.address {
    font-weight: 400;
}

.muted {
    color: var(--muted);
    font-size: 0.82rem;
}

.contact-link {
    display: block;
    width: fit-content;
    color: var(--forest);
    text-decoration-color: rgba(23, 79, 64, 0.3);
    text-underline-offset: 3px;
}

.phone-link {
    white-space: nowrap;
}

.email-link {
    overflow-wrap: anywhere;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 9px;
    border-radius: 999px;
    color: var(--forest);
    background: var(--mint);
    font-size: 0.72rem;
    font-weight: 800;
}

.tag-accent {
    color: #7b3510;
    background: #fbe3d3;
}

.tag-new {
    color: #315f56;
    background: #dff1ed;
}

.message {
    display: grid;
    gap: 5px;
    min-height: 180px;
    place-content: center;
    border: 1px dashed #bdc9c3;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

.message strong {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.error {
    border-color: #e1b7ad;
    background: #fff8f5;
}

footer {
    padding: 0 0 34px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.site-disclaimer {
    max-width: 920px;
    margin: 12px auto 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.78rem;
    line-height: 1.55;
}

footer .site-disclaimer {
    display: none;
}

@media (max-width: 760px) {
    .header-inner,
    main,
    footer {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 86px;
    }

    .brand-logo {
        width: 145px;
    }

    .directory-count {
        display: none;
    }

    .hero {
        padding-top: 48px;
    }

    .search-controls {
        flex-wrap: wrap;
    }

    .input-wrap {
        flex-basis: 100%;
    }

    button {
        flex: 1;
    }

    .results {
        margin-inline: -2px;
        padding: 20px 14px;
        border-radius: 18px;
    }

    .results-heading {
        align-items: start;
    }

    .table-wrap {
        overflow: visible;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    tbody {
        display: grid;
        gap: 12px;
    }

    tbody tr {
        padding: 6px 16px;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: var(--paper);
    }

    tbody tr:hover {
        background: var(--paper);
    }

    td {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 0;
        overflow-wrap: anywhere;
    }

    td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    td:last-child {
        border-bottom: 0;
    }

    .books-table td {
        display: block;
        width: 100% !important;
    }

    .books-table td::before {
        display: block;
        margin-bottom: 4px;
    }

    .books-table .book-title,
    .books-table td {
        overflow-wrap: normal;
        word-break: normal;
    }

    .book-dialog-header,
    .book-dialog-body {
        padding-inline: 20px;
    }

    .book-detail-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .map-canvas {
        width: 100%;
        min-width: 0;
        padding: 14px;
    }

    .map-viewport {
        overflow-x: hidden;
    }

    .gallery-hero {
        display: block;
    }

    .gallery-actions {
        align-items: center;
        margin-top: 22px;
    }

    .gallery-hero .upload-button {
        margin-top: 0;
    }

    .club-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .upload-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .upload-intro {
        position: static;
    }

    .photo-card-body {
        padding: 20px;
    }

    .zoom-controls {
        display: none;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 3.05rem;
    }

    .intro {
        margin-top: 14px;
    }

    .gallery-actions {
        display: grid;
        justify-items: start;
    }

    .club-grid {
        grid-template-columns: 1fr;
    }

    button,
    .clear-search,
    .map-button {
        width: 100%;
        justify-content: center;
    }

    .map-intro {
        display: block;
    }

    .map-intro .list-button {
        margin-top: 22px;
    }

    .map-toolbar {
        align-items: flex-start;
    }

    .map-viewport {
        height: 68vh;
        min-height: 440px;
    }

    .map-canvas {
        width: 100%;
        min-width: 0;
        padding: 14px;
    }

    .results-heading {
        display: block;
    }

    .results-heading > p {
        margin-top: 8px;
    }

    td {
        grid-template-columns: 68px minmax(0, 1fr);
    }
}

.home-header {
    position: relative;
    z-index: 20;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.4vw, 30px);
}

.home-nav a {
    color: var(--forest-dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.home-nav a:hover,
.home-nav a:focus-visible {
    color: var(--gold);
}

.header-actions,
.page-nav {
    display: flex;
    align-items: center;
}

.header-actions {
    gap: 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-nav {
    flex-wrap: wrap;
    gap: clamp(12px, 2.4vw, 30px);
    justify-content: flex-end;
    margin-left: auto;
}

.page-nav a {
    color: var(--forest-dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.page-nav a:hover,
.page-nav a:focus-visible {
    color: var(--gold);
}

.home-header-tools {
    display: grid;
    align-self: stretch;
    align-content: space-between;
    justify-items: end;
    gap: 8px;
}

.official-site-link {
    flex: 0 0 100%;
    color: var(--forest-dark);
    font-size: 0.73rem;
    font-weight: 850;
    text-align: right;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.official-site-link:hover,
.official-site-link:focus-visible {
    color: var(--gold);
}

.community-hero { padding-bottom:24px; }
.community-compose,.community-review { margin:0 0 28px;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--paper);box-shadow:var(--shadow);overflow:hidden; }
.community-compose>summary,.community-review>summary { padding:20px 24px;color:var(--forest-dark);font-weight:900;cursor:pointer; }
.community-compose[open]>summary,.community-review[open]>summary { border-bottom:1px solid var(--line); }
.community-compose>.upload-form { padding:24px; }
.community-review>article { padding:22px 24px;border-top:1px solid var(--line); }
.community-review>article:first-of-type { border-top:0; }
.community-review h3 { margin:.25rem 0; }
.community-review-actions form { display:flex;gap:10px;flex-wrap:wrap; }
.community-feed { display:grid;gap:24px; }
.community-list-heading { display:grid;grid-template-columns:minmax(240px,2fr) minmax(130px,1fr) minmax(190px,1fr) minmax(100px,.55fr);gap:18px;padding:0 24px;color:var(--muted);font-size:.76rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase; }
.community-post { position:relative;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:var(--shadow);overflow:hidden; }
.community-post-summary { display:grid;grid-template-columns:minmax(240px,2fr) minmax(130px,1fr) minmax(190px,1fr) minmax(100px,.55fr);align-items:center;gap:18px;padding:20px 24px;cursor:pointer;list-style:none; }
.community-post-summary::-webkit-details-marker { display:none; }
.community-post-summary::before { content:"+";position:absolute;right:10px;top:4px;color:var(--muted);font-weight:900; }
.community-post[open]>.community-post-summary::before { content:"−"; }
.community-post-summary strong { color:var(--forest-dark);font:700 1.2rem/1.2 Georgia,"Times New Roman",serif; }
.community-post-summary span,.community-post-summary time { color:var(--muted);font-size:.88rem; }
.community-post-expanded { padding:0 clamp(22px,4vw,38px) clamp(22px,4vw,38px);border-top:1px solid var(--line); }
.community-post time { color:var(--muted);font-size:.8rem;white-space:nowrap; }
.community-post-text { padding:24px 0;font-size:1.05rem;line-height:1.7; }
.community-attachment-image,.community-attachment-video { display:block;width:min(100%,900px);max-height:70vh;margin:0 auto 24px;border-radius:16px;background:#111;object-fit:contain; }
.community-comments { border-top:1px solid var(--line); }
.community-comments>summary { padding:18px 0 4px;color:var(--forest-dark);font-weight:850;cursor:pointer; }
.community-comment { margin-top:16px;padding:18px;border-radius:14px;background:var(--cream); }
.community-comment.is-pending { border:1px dashed var(--gold); }
.community-comment p { margin:0 0 8px; }
.community-comment p time { margin-left:8px; }
.community-comment small { display:block;margin-top:8px;color:var(--muted);font-weight:700; }
.community-comment-form { display:grid;gap:10px;margin-top:20px; }
.community-comment-form label { font-weight:850; }
.community-comment-form textarea { width:100%;box-sizing:border-box; }
.community-comment-form button { justify-self:start; }
.community-hide-post { margin-top:16px;text-align:right; }
.community-pagination { display:flex;align-items:center;justify-content:center;gap:24px;margin:30px 0; }
.community-pagination a { color:var(--forest-dark);font-weight:850; }
.text-danger-button { min-height:0;padding:0;border:0;background:none;color:#9d2929;font:inherit;font-size:.82rem;font-weight:800;text-decoration:underline; }
.honeypot { position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important; }

@media(max-width:800px){.community-list-heading{display:none}.community-post-summary{grid-template-columns:minmax(0,1fr) auto}.community-post-summary strong{grid-column:1 / -1}.community-post-summary time{white-space:normal}.community-compose>.upload-form{padding:18px}}

.home-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(430px, 1.28fr);
    align-items: center;
    gap: clamp(32px, 6vw, 78px);
    min-height: 650px;
    padding: 64px 0 78px;
}

.home-welcome h1 {
    max-width: 7ch;
    margin: 8px 0 0;
    font-size: clamp(3.8rem, 8vw, 7rem);
    line-height: 0.88;
}

.home-welcome .intro {
    max-width: 34rem;
}

.home-primary-link,
.home-link-action {
    display: inline-flex;
    align-items: center;
    color: var(--forest);
    font-weight: 850;
}

.home-primary-link {
    min-height: 50px;
    margin-top: 26px;
    padding: 0 22px;
    border-radius: 999px;
    color: white;
    background: var(--forest);
    text-decoration: none;
}

.home-primary-link:hover,
.home-primary-link:focus-visible {
    background: var(--gold);
}

.featured-carousel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 8px solid var(--paper);
    border-radius: 34px 10px 34px 10px;
    background: var(--forest);
    box-shadow: 0 28px 70px rgba(63, 29, 70, 0.23);
}

.carousel-stage,
.carousel-slide,
.carousel-slide > a,
.carousel-slide img {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 500ms ease, visibility 500ms ease;
}

.carousel-slide.is-active {
    visibility: visible;
    opacity: 1;
}

.carousel-slide > a {
    display: block;
}

.carousel-slide img {
    display: block;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 62px 28px 24px;
    color: white;
    background: linear-gradient(transparent, rgba(35, 13, 39, 0.92));
}

.carousel-caption p,
.carousel-caption h2,
.carousel-caption span {
    margin: 0;
}

.carousel-caption p {
    color: #f4c49f;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.carousel-caption h2 {
    margin-top: 4px;
    color: white;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.carousel-caption span {
    font-size: 0.82rem;
}

.carousel-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--forest-dark);
    background: rgba(255, 254, 250, 0.9);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.carousel-previous {
    left: 14px;
}

.carousel-next {
    right: 14px;
}

.carousel-dots {
    position: absolute;
    z-index: 4;
    right: 22px;
    bottom: 18px;
    display: flex;
    gap: 7px;
}

.carousel-dots button {
    width: 9px;
    height: 9px;
    min-height: 0;
    padding: 0;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
}

.carousel-dots button.is-active {
    background: white;
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: clamp(26px, 6vw, 54px);
    color: white;
    background:
        radial-gradient(circle at 74% 26%, rgba(232, 122, 51, 0.9) 0 9%, transparent 9.5%),
        linear-gradient(145deg, var(--forest-dark), var(--forest) 58%, #75477b);
}

.featured-placeholder > span {
    color: var(--aqua);
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1;
}

.featured-placeholder p,
.featured-placeholder h2,
.featured-placeholder small {
    margin: 0;
}

.featured-placeholder p {
    color: #f4c49f;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.featured-placeholder h2 {
    margin: 5px 0;
    color: white;
    font-size: clamp(1.65rem, 3.4vw, 2.7rem);
}

.home-resources {
    padding: 80px 0 96px;
    border-top: 1px solid var(--line);
}

.home-section-heading {
    max-width: 660px;
    margin-bottom: 34px;
}

.home-section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.home-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-link-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: 0 9px 28px rgba(77, 41, 82, 0.06);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-link-card:hover,
.home-link-card:focus-visible {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.home-link-icon {
    min-height: 46px;
    display: block;
    color: var(--gold);
    font-size: 2rem;
}

.home-link-card h3 {
    margin: 15px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

.home-link-card p {
    min-height: 6.2em;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.92rem;
}

.home-link-action {
    font-size: 0.78rem;
}

.featured-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--mint);
    cursor: pointer;
}

.featured-option input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--forest);
}

.featured-option span,
.featured-option strong,
.featured-option small {
    display: block;
}

.featured-option small {
    margin-top: 3px;
    color: var(--muted);
}

.post-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.featured-badge {
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: var(--gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-page {
    min-height: 100vh;
}

.auth-shell {
    min-height: calc(100vh - 36px);
    display: grid;
    place-items: center;
    padding-block: 42px;
}

.auth-page > .auth-shell:first-child {
    min-height: 100vh;
}

.auth-card {
    width: min(100%, 520px);
    padding: clamp(28px, 6vw, 52px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.auth-card-wide {
    width: min(100%, 760px);
}

.auth-logo {
    width: 170px;
    max-width: 48vw;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

.auth-card .auth-logo + .eyebrow::before {
    content: "This website is not affiliated with the Fields at Indian Creek HOA or its Executive Board.";
    display: block;
    margin-bottom: 24px;
    color: var(--forest-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.auth-card h1 {
    margin: 6px 0 0;
    font-size: clamp(2.5rem, 8vw, 4.4rem);
}

.auth-help {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    font-size: 0.84rem;
    font-weight: 800;
}

.activation-link {
    display: block;
    margin-top: 16px;
    color: var(--forest);
    font-size: 0.84rem;
    font-weight: 850;
    text-align: center;
}

button.password-toggle {
    width: fit-content;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--forest);
    background: transparent;
    box-shadow: none;
    font-size: 0.76rem;
    font-weight: 850;
    text-decoration: underline;
}

button.password-toggle:hover,
button.password-toggle:focus-visible {
    color: var(--gold);
    background: transparent;
}

.directory-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--aqua);
    border-radius: 14px;
    color: var(--ink);
    background: var(--mint);
    font-size: 0.8rem;
    line-height: 1.5;
    cursor: pointer;
}

.directory-consent input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    accent-color: var(--forest);
}

.directory-consent span,
.directory-consent strong {
    display: block;
}

.directory-consent strong {
    margin-bottom: 4px;
}

.shared-contact-fields {
    padding: 16px;
    border-radius: 14px;
    background: #f7fbfa;
}

.shared-contact-fields[hidden] {
    display: none !important;
}

.setup-link {
    display: block;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.auth-card .official-site-link {
    display: block;
    margin-top: 16px;
    text-align: center;
}

.login-disclaimer {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
}

.auth-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: white;
    font: inherit;
}

.compact-hero {
    padding-bottom: 34px;
}

.user-admin-list {
    display: grid;
    gap: 14px;
    padding-bottom: 80px;
}

.new-resident-panel {
    margin-bottom: 28px;
    overflow: hidden;
    border: 2px solid var(--aqua);
    border-radius: 18px;
    background: var(--paper);
}

.new-resident-panel > summary {
    padding: 20px 24px;
    color: var(--forest);
    font-weight: 900;
    cursor: pointer;
}

.user-admin-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}

.user-admin-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    cursor: pointer;
}

.user-admin-card summary span,
.user-admin-card summary strong,
.user-admin-card summary small {
    display: block;
}

.user-admin-card summary small {
    margin-top: 3px;
    color: var(--muted);
}

.account-status {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--muted);
    background: #eee8ef;
    font-size: 0.7rem;
    font-weight: 900;
}

.account-status.active {
    color: #29473d;
    background: var(--mint);
}

.account-status.deleted {
    color: #7a3232;
    background: #f4dddd;
}

.resident-deleted {
    border-style: dashed;
    background: #f3eff3;
}

.resident-deleted > summary {
    opacity: 0.78;
}

.resident-fields {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.soft-delete-option {
    color: #7a3232;
}

.user-admin-form {
    padding: 24px;
    border-top: 1px solid var(--line);
}

.permission-options,
.club-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 22px 0;
}

.permission-options label,
.club-permissions label,
.permission-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 750;
}

.permission-options input[type="checkbox"],
.club-permissions input[type="checkbox"],
.permission-check input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    accent-color: var(--forest);
}

.club-permissions {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.club-permissions legend {
    padding-inline: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
}

.post-management {
    margin: 24px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fcfaf7;
}

.post-management > summary {
    cursor: pointer;
    font-weight: 850;
}

.post-management .upload-form {
    margin-top: 18px;
}

.danger-button {
    margin-top: 12px;
    color: #8c2626;
    background: #fff0f0;
    border: 1px solid #e6b9b9;
}

.market-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 70px 0 38px;
}

.market-hero h1 {
    margin: 5px 0 0;
}

.market-hero .intro {
    max-width: 680px;
}

.market-notice {
    margin-bottom: 30px;
    padding: 16px 18px;
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    color: var(--ink);
    background: #fff7ef;
    font-size: 0.86rem;
}

.market-search {
    margin-bottom: 38px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}

.market-search > label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 850;
}

.market-search input {
    padding-left: 18px;
}

.listing-section {
    padding-bottom: 84px;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.listing-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: 0 10px 34px rgba(77, 41, 82, 0.08);
}

.listing-muted {
    opacity: 0.72;
}

.listing-image {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: white;
    background: var(--forest);
    font-size: 3.5rem;
}

.listing-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.listing-body {
    padding: 22px;
}

.listing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.listing-badges span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--forest-dark);
    background: var(--mint);
    font-size: 0.67rem;
    font-weight: 900;
}

.listing-badges .status-pending {
    background: #fff0d8;
}

.listing-badges .status-closed {
    color: var(--muted);
    background: #eee8ef;
}

.listing-card h3 {
    margin: 14px 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.listing-price {
    margin: 0;
    color: var(--gold);
    font-size: 1.35rem;
    font-weight: 900;
}

.listing-description {
    color: var(--muted);
}

.listing-details {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.listing-details div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
}

.listing-details dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.listing-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.84rem;
}

.listing-edit-link {
    color: var(--forest);
    font-size: 0.8rem;
    font-weight: 850;
}

.admin-listing-table {
    display: grid;
    gap: 14px;
    padding-bottom: 80px;
}

.admin-listing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.admin-listing-row h2,
.admin-listing-row p {
    margin: 3px 0;
}

.admin-listing-row h2 {
    font-size: 1.35rem;
}

.admin-listing-actions,
.admin-listing-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-listing-actions select {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

.admin-listing-actions button {
    min-height: 42px;
    padding-inline: 14px;
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-welcome h1 {
        max-width: none;
    }

    .featured-carousel {
        width: 100%;
        max-height: 620px;
    }

    .home-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-link-card p {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .site-header:not(.home-header) .header-inner {
        flex-wrap: wrap;
        padding-block: 14px;
    }

    .site-header:not(.home-header) .header-actions,
    .site-header:not(.home-header) .header-inner > .page-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .home-header .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 16px;
        padding-bottom: 50px;
    }

    .site-header:not(.home-header) .header-inner {
        padding-bottom: 50px;
    }

    .site-header .header-inner::after {
        bottom: 10px;
        max-width: 100%;
        white-space: normal;
    }

    .home-nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .home-header-tools {
        width: 100%;
        justify-items: stretch;
    }

    .official-site-link {
        text-align: left;
    }

    .home-nav a {
        font-size: 0.78rem;
    }

    .page-nav {
        gap: 8px 18px;
    }

    .page-nav a {
        font-size: 0.78rem;
    }

    .home-hero {
        gap: 34px;
        padding: 46px 0 60px;
    }

    .home-welcome h1 {
        font-size: clamp(3.4rem, 17vw, 5rem);
    }

    .featured-carousel {
        aspect-ratio: 4 / 4.4;
        border-width: 5px;
        border-radius: 25px 8px 25px 8px;
    }

    .featured-placeholder {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
    }

    .home-link-grid {
        grid-template-columns: 1fr;
    }

    .market-hero,
    .admin-listing-row,
    .admin-listing-actions,
    .admin-listing-actions form {
        align-items: stretch;
        flex-direction: column;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .home-resources {
        padding: 62px 0 72px;
    }

    .carousel-caption {
        padding-inline: 18px;
    }

    .auth-field-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding-inline: 22px;
    }

    .user-admin-card > summary {
        align-items: flex-start;
        padding-inline: 18px;
    }

    .user-admin-form {
        padding-inline: 18px;
    }
}

/* Compact spacing on the club directory without changing the individual club pages. */
.clubs-page .clubs-hero {
    padding: 12px 0 20px;
}

.clubs-page .club-grid {
    gap: 16px;
    margin-bottom: 32px;
}

.clubs-page .club-card {
    min-height: 220px;
    padding: 20px;
}

.clubs-page .club-card-top {
    margin-bottom: 14px;
}

.clubs-page .club-card > p {
    margin: 8px 0 16px;
}

.clubs-page .club-link {
    padding-top: 12px;
}

.clubs-page footer {
    padding-bottom: 20px;
}

/* FICTalent landing page and individual resident galleries. */
.fictalent-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 0 34px;
}

.fictalent-hero h1 {
    font-size: clamp(3rem, 7vw, 5.6rem);
}

.talent-gallery-grid,
.resident-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 64px;
}

.talent-gallery-card,
.resident-gallery-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.talent-gallery-cover {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8ece9;
}

.talent-gallery-cover img,
.resident-gallery-card > a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.talent-gallery-cover:hover img,
.resident-gallery-card > a:hover img {
    transform: scale(1.025);
}

.talent-gallery-card-body,
.resident-gallery-card-body {
    padding: 22px;
}

.talent-gallery-card-body h2,
.resident-gallery-card-body h2 {
    margin-top: 10px;
    font-size: 1.65rem;
}

.talent-gallery-card-body > p,
.resident-gallery-card-body > p {
    margin: 7px 0 18px;
    color: var(--muted);
}

.resident-gallery-page {
    padding-bottom: 64px;
}

.gallery-owner-heading {
    padding: clamp(36px, 6vw, 68px) 0 28px;
}

.gallery-owner-heading h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
}

.gallery-owner-heading .back-link {
    display: inline-block;
    margin-top: 18px;
}

.gallery-add-panel {
    max-width: 760px;
    margin-top: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.gallery-add-area {
    margin-bottom: 34px;
}

.gallery-add-panel[hidden] {
    display: none;
}

.upload-spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-right: 9px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -3px;
    animation: gallery-upload-spin .7s linear infinite;
}

.is-uploading .upload-spinner {
    display: inline-block;
}

.gallery-upload-form button:disabled,
.documents-upload-form button:disabled {
    cursor: wait;
    opacity: .82;
}

.upload-progress-message {
    min-height: 1.4em;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .88rem;
}

@keyframes gallery-upload-spin {
    to { transform: rotate(360deg); }
}

/* Use the home-page navigation treatment in every standard site header. */
.site-header .header-inner {
    align-items: flex-start;
}

.site-header .header-actions {
    align-self: flex-start;
}

.site-header .header-inner > .home-nav {
    margin-left: auto;
}

@media (max-width: 620px) {
    .site-header .header-inner {
        align-items: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        padding-block: 16px;
        padding-bottom: 50px;
    }

    .site-header .header-inner > .home-nav,
    .site-header .header-actions {
        width: 100%;
        margin-left: 0;
    }

    .site-header .home-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .upload-spinner { animation-duration: 1.4s; }
}

.gallery-add-panel h2 {
    margin-bottom: 18px;
}

.gallery-cover-choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbf7f3;
}

.gallery-cover-choice input[type="checkbox"] {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    min-height: 14px;
    margin: 3px 0 0;
    padding: 0;
    border-radius: 2px;
    box-shadow: none;
    accent-color: var(--forest);
}

.gallery-cover-choice span,
.gallery-cover-choice strong {
    display: block;
}

.gallery-cover-choice span {
    color: var(--muted);
    font-size: .88rem;
}

.gallery-cover-choice strong {
    margin-bottom: 2px;
    color: var(--ink);
}

.gallery-empty {
    margin-bottom: 50px;
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
}

.gallery-empty strong {
    font-size: 1.3rem;
}

.resident-gallery-card > a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.resident-gallery-card-body form {
    margin-top: 16px;
}

.gallery-owner-controls {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.gallery-cover-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--forest-dark);
    font-size: .84rem;
    font-weight: 800;
}

.gallery-cover-form input[type="checkbox"] {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    min-height: 14px;
    margin: 0;
    padding: 0;
    border-radius: 2px;
    box-shadow: none;
    accent-color: var(--forest);
}

.gallery-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.gallery-image-actions form {
    margin-top: 12px;
}

.gallery-rotate-button {
    color: var(--forest-dark);
    background: #e8efe9;
}

@media (max-width: 900px) {
    .talent-gallery-grid,
    .resident-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .fictalent-hero { align-items: flex-start; flex-direction: column; }
    .talent-gallery-grid,
    .resident-gallery-grid { grid-template-columns: 1fr; }
}

.clubs-page .site-disclaimer {
    margin-top: 8px;
    padding-top: 10px;
}

.club-page .gallery-hero {
    padding-top: clamp(10px, 1.6vw, 19px);
}

/* Keep the signed-in account menu aligned with the logo at every width. */
.site-header:not(.home-header) .header-inner > .page-nav {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
}

.site-header:not(.home-header) .header-inner {
    align-items: flex-end;
}

.site-header:not(.home-header) .header-inner > .page-nav {
    padding-bottom: 10px;
}

.directory-page .hero {
    padding-top: clamp(28px, 4vw, 52px);
}

.directory-page .search-form {
    margin-top: 24px;
}

.directory-disclaimer {
    max-width: 900px;
    margin-top: 18px;
}

.directory-sharing-notice {
    margin-bottom: 22px;
}

.site-header:not(.home-header) .header-inner > .page-nav a {
    white-space: nowrap;
}

@media (max-width: 620px) {
    .site-header:not(.home-header) .header-inner {
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .site-header:not(.home-header) .header-inner > .page-nav {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 14px;
    }

    .site-header:not(.home-header) .header-inner > .page-nav a {
        font-size: .75rem;
    }
}

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

    .map-canvas #Houses polygon[data-map-address] {
        animation: none !important;
        stroke-opacity: 1;
    }
}

/* Property-backed directory and resident account rebuild */
.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-form .password-input-wrap {
    position: relative;
    width: 100%;
}

.account-form .password-input-wrap input {
    width: 100%;
    min-height: 46px;
    margin: 0;
}

.account-form .password-input-wrap:has(.password-toggle) input {
    padding-right: 110px;
}

.account-form .password-input-wrap button.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    min-height: auto;
    transform: translateY(-50%);
}

.account-form .password-input-wrap button.password-toggle:hover,
.account-form .password-input-wrap button.password-toggle:focus-visible {
    transform: translateY(-50%);
}

.password-help-placeholder {
    visibility: hidden;
}

.account-form .form-field select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd6d0;
    border-radius: 12px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
}

.profile-shell {
    padding: clamp(52px, 8vw, 96px) 0;
}

.profile-heading > .back-link {
    display: inline-block;
    margin-bottom: 18px;
}

.profile-heading h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.profile-card {
    max-width: 820px;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.profile-form-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.profile-form-actions > * {
    min-height: 50px;
}

.profile-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid var(--forest);
    border-radius: 14px;
    color: var(--forest);
    background: transparent;
    font-weight: 800;
    text-decoration: none;
}

.profile-cancel-button:hover,
.profile-cancel-button:focus-visible {
    color: white;
    background: var(--forest);
}

.account-home {
    display: grid;
    gap: 2px;
    margin-bottom: 26px;
    padding: 18px 20px;
    border-radius: 15px;
    background: var(--mint);
}

.account-home span,
.account-home small {
    color: var(--muted);
}

.account-home span {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.directory-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.directory-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: 0 14px 38px rgba(77, 41, 82, .08);
}

.directory-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--line);
}

.directory-card-header > div {
    min-width: 0;
}

.directory-card-header h2 {
    overflow-wrap: anywhere;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.directory-card-header h2.owner-name {
    font-size: clamp(1.24rem, 2.4vw, 1.72rem);
}

.directory-card-type {
    margin: 0 0 5px;
    color: var(--forest);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.lot-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--forest-dark);
    background: var(--mint);
    font-size: .72rem;
    font-weight: 850;
}

.directory-card-address {
    display: grid;
    gap: 2px;
    padding: 18px 24px;
    background: rgba(225, 242, 238, .52);
}

.directory-card-address > span,
.directory-contact span {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.directory-card-address strong {
    overflow-wrap: anywhere;
    font-size: 1rem;
}

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

.directory-contact a {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
}

.directory-contact a:hover,
.directory-contact a:focus-visible {
    border-color: var(--gold);
    background: #fff8f2;
}

.directory-contact strong {
    overflow-wrap: anywhere;
    font-size: .86rem;
}

.directory-no-account {
    margin: 0;
    padding: 18px 24px 0;
    color: var(--muted);
    font-size: .88rem;
}

.directory-property-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 18px 24px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--line);
}

.directory-property-facts div {
    min-width: 0;
    padding: 11px 13px;
    background: white;
}

.directory-property-facts dt {
    color: var(--muted);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.directory-property-facts dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-size: .82rem;
    font-weight: 700;
}

.directory-card-footer {
    padding: 20px 24px 24px;
}

.directory-card-footer .record-map-link {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.property-facts {
    display: grid;
    gap: 7px;
    margin: 0;
}

.property-facts div {
    display: grid;
    gap: 1px;
}

.property-facts dt {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.property-facts dd {
    margin: 0;
    font-size: .88rem;
}

.owner-address {
    margin-top: 8px;
    color: var(--muted);
    font-size: .78rem;
}

.owner-address summary {
    cursor: pointer;
    font-weight: 750;
}

.owner-address span {
    display: block;
    max-width: 250px;
    margin-top: 4px;
}

.contact-link {
    display: block;
    overflow-wrap: anywhere;
}

.selected-home-banner small {
    margin-top: 2px;
    color: var(--muted);
    line-height: 1.35;
    overflow-wrap: break-word;
}

.community-map-shell {
    overflow: hidden;
}

.community-map {
    display: grid;
    gap: 22px;
    padding: clamp(18px, 4vw, 34px);
    background:
        linear-gradient(90deg, transparent 49.75%, rgba(255,255,255,.72) 50%, transparent 50.25%),
        #dbe9dc;
}

.street-lane {
    display: grid;
    grid-template-columns: minmax(160px, 210px) 1fr;
    gap: 20px;
    align-items: stretch;
}

.street-label {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 16px;
    color: white;
    background: var(--forest-dark);
}

.street-label span {
    color: rgba(255,255,255,.7);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.street-label h2 {
    margin-top: 3px;
    font-size: 1.35rem;
}

.street-homes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
    padding: 12px;
    border: 9px solid #9c8e82;
    border-radius: 18px;
    background: #70655d;
}

.map-home {
    display: grid;
    min-height: 66px;
    place-content: center;
    border: 2px solid rgba(89,43,96,.2);
    border-radius: 10px 10px 5px 5px;
    color: var(--forest-dark);
    background: var(--paper);
    box-shadow: 0 4px 0 rgba(63,29,70,.16);
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.map-home:hover,
.map-home:focus-visible {
    transform: translateY(-3px);
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.map-home strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.map-home span {
    color: var(--muted);
    font-size: .68rem;
}

.map-home.selected-house {
    color: white;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(232,122,51,.25), 0 5px 0 rgba(63,29,70,.22);
    animation: selectedHomePulse 1.4s ease-in-out infinite alternate;
}

.map-home.selected-house span {
    color: rgba(255,255,255,.84);
}

@keyframes selectedHomePulse {
    to { transform: translateY(-3px) scale(1.04); }
}

@media (max-width: 700px) {
    .profile-form-actions {
        flex-direction: column;
    }

    .selected-home-banner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 16px;
    }

    .selected-home-details strong {
        white-space: nowrap;
    }

    .selected-home-details small {
        max-width: 100%;
        text-wrap: pretty;
    }

    .directory-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .directory-card-header,
    .directory-card-address,
    .directory-card-footer {
        padding-inline: 18px;
    }

    .directory-contact {
        grid-template-columns: 1fr;
        padding-inline: 18px;
    }

    .directory-property-facts {
        margin-inline: 18px;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding-inline: 20px;
    }

    .street-lane {
        grid-template-columns: 1fr;
        gap: 8px;
    }

.street-label {
        min-height: auto;
    }
}

/* Final header alignment override: keep every standard menu level with the top of the logo. */
.site-header .header-inner,
.site-header:not(.home-header) .header-inner {
    align-items: flex-start;
}

.site-header .header-actions,
.site-header .home-nav,
.site-header .standalone-logout {
    align-self: flex-start;
}

/* Keep the space between every standard header and its page content compact and uniform. */
body:not(.signboard-page) .site-header + main {
    padding-top: 24px;
}

body:not(.signboard-page) .site-header + main > :first-child {
    margin-top: 0;
    padding-top: 0 !important;
}

@media (max-width: 620px) {
    body:not(.signboard-page) .site-header + main {
        padding-top: 16px;
    }
}

/* Resident-facing responsive view of the community signboard. */
.happenings-main {
    width: min(960px, calc(100% - 40px));
    padding-bottom: 64px;
}

.happenings-heading {
    padding-bottom: 24px;
}

.happenings-heading h1 {
    margin: 4px 0 8px;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
}

.happenings-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.happenings-clock,
.happenings-weather {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.happenings-clock {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
}

.happenings-clock strong,
.happenings-weather strong {
    color: var(--forest-dark);
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    line-height: 1;
}

.happenings-clock span,
.happenings-weather div span {
    color: var(--muted);
    font-size: .88rem;
}

.happenings-weather-icon {
    color: var(--gold);
    font: 400 clamp(2.5rem, 7vw, 4rem)/1 Georgia, "Times New Roman", serif;
}

.happenings-stage {
    min-height: 360px;
}

.happenings-card {
    display: grid;
    min-height: 360px;
    align-content: center;
    padding: clamp(26px, 6vw, 58px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f9ead3;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.happenings-card.has-image {
    grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: clamp(24px, 5vw, 48px);
    padding: 24px;
}

.happenings-image {
    width: 100%;
    height: 100%;
    max-height: 480px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255,255,255,.55);
}

.happenings-copy {
    min-width: 0;
    align-self: center;
}

.happenings-card h2 {
    max-width: none;
    margin: 4px 0 14px;
    color: #372104;
    font: 700 clamp(2rem, 6vw, 4.8rem)/1.02 Georgia, "Times New Roman", serif;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.happenings-card p:not(.eyebrow) {
    margin: 0;
    color: rgba(55,33,4,.86);
    font-size: clamp(1rem, 2.3vw, 1.4rem);
    line-height: 1.55;
}

.happenings-card.is-urgent {
    color: white;
    background: linear-gradient(145deg, #7a2433, #3f1d46);
}

.happenings-card.is-urgent h2,
.happenings-card.is-urgent p:not(.eyebrow),
.happenings-card.is-urgent .eyebrow {
    color: white;
}

.happenings-event-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.happenings-event {
    display: grid;
    grid-template-columns: minmax(90px, .25fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(55,33,4,.18);
    border-radius: 13px;
    background: rgba(255,255,255,.4);
}

.happenings-event time {
    color: #372104;
    font-weight: 850;
}

.happenings-event strong,
.happenings-event span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.happenings-event strong {
    color: #372104;
    font: 700 1.2rem/1.2 Georgia, "Times New Roman", serif;
}

.happenings-event span {
    margin-top: 3px;
    color: rgba(55,33,4,.7);
    font-size: .88rem;
}

.happenings-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.happenings-controls[hidden] {
    display: none;
}

.happenings-controls span {
    min-width: 52px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

@media (max-width: 700px) {
    .happenings-main {
        width: min(100% - 24px, 960px);
    }

    .happenings-heading h1 {
        font-size: clamp(2.3rem, 13vw, 4rem);
    }

    .happenings-info,
    .happenings-card.has-image {
        grid-template-columns: 1fr;
    }

    .happenings-clock,
    .happenings-weather {
        padding: 15px 17px;
    }

    .happenings-card,
    .happenings-card.has-image {
        min-height: 0;
        padding: 20px;
    }

    .happenings-image {
        height: auto;
        max-height: 55vh;
        aspect-ratio: 4 / 3;
    }

    .happenings-card h2 {
        font-size: clamp(1.8rem, 10vw, 3.2rem);
    }

    .happenings-event {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .happenings-controls {
        justify-content: space-between;
        gap: 8px;
    }

    .happenings-controls button {
        min-height: 44px;
        padding-inline: 14px;
    }
}

/* Compact date, time, and weather bar for Community Happenings. */
.happenings-info {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--paper);
    box-shadow: 0 6px 18px rgba(77, 41, 82, .06);
}

.happenings-clock,
.happenings-weather {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.happenings-clock {
    align-items: baseline;
    flex-direction: row;
    gap: 12px;
}

.happenings-clock strong,
.happenings-weather strong {
    font-size: 1.15rem;
    line-height: 1.2;
}

.happenings-clock span,
.happenings-weather div span {
    font-size: .78rem;
}

.happenings-weather {
    gap: 8px;
}

.happenings-weather-icon {
    font-size: 1.65rem;
}

@media (max-width: 580px) {
    .happenings-info {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 11px 14px;
    }

    .happenings-clock {
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
    }

    .happenings-weather {
        padding-top: 9px;
        border-top: 1px solid var(--line);
    }
}

.user-total-count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 14px 0 0;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--paper);
    font-size: .84rem;
    font-weight: 750;
}

.user-total-count strong {
    color: var(--forest-dark);
    font-size: 1rem;
}
