/* Landing page, photo banner with a task strip (picked 2026-10-13). Tokens also feed assistant.css. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #F6F5F2; --bg-raised: #FFFFFF; --bg-tab: #F4EFE8; --bg-soft: #FBF9F6;
    --line: #EEEBE5; --line-strong: #E6E3DC;
    --ink: #1B1A18; --ink-soft: #45423C; --ink-faint: #63605A;
    --margin: #9E2A2B; --accent-hover: #862223; --accent-soft: #F7E3E1;
    --info: #2F4B66; --info-bg: #E4EBF1; --danger-bg: #F7E3E1;
    --night: #1E1B18; --night-ink: #CAC4BB;
    --serif: 'Source Serif 4', Georgia, serif;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
/* Phones: every rem-sized text a step smaller. */
@media (max-width: 480px) { html { font-size: 14.5px; } }
body { font-family: 'Public Sans', -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); overflow-x: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
section { scroll-margin-top: 80px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--margin); outline-offset: 2px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Nav sits over the photo, then turns solid once the page scrolls. */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 40px;
    color: #FFFFFF; transition: background .2s, box-shadow .2s;
}
.nav.is-solid, body.nav-open .nav { background: var(--night); box-shadow: 0 8px 24px -16px rgba(0,0,0,.6); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #FFFFFF; }
.nav-brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #FFFFFF; text-decoration: none; font-size: .95rem; font-weight: 600; transition: background .15s; }
.nav-links a:hover { background: rgba(255,255,255,.12); }
.nav-actions { display: flex; gap: 8px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: 10px; border: 1px solid transparent; font-family: inherit; font-size: .95rem; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn-solid { background: var(--margin); color: #FFFFFF; }
.btn-solid:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.nav-hamburger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #FFFFFF; font-size: 1.05rem; cursor: pointer; align-items: center; justify-content: center; }
.nav-mobile-panel { position: fixed; top: 68px; left: 0; right: 0; z-index: 59; display: none; flex-direction: column; gap: 2px; padding: 8px 16px 16px; background: var(--night); border-top: 1px solid rgba(255,255,255,.1); }
.nav-mobile-panel a { min-height: 48px; display: flex; align-items: center; padding: 0 8px; border-radius: 8px; color: #FFFFFF; text-decoration: none; font-weight: 600; }
.nav-mobile-panel a:hover { background: rgba(255,255,255,.08); }
.nav-mobile-actions { display: flex; gap: 10px; margin-top: 8px; }
.nav-mobile-actions .btn { flex: 1; }

/* Hero: the photo from Landing Page settings, full width, darker on the text side. */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #FFFFFF; background-color: #4A4640; background-size: cover; background-repeat: no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,19,17,.85) 0%, rgba(21,19,17,.5) 55%, rgba(21,19,17,.12) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 90px; }
.hero-kicker { font-size: 1rem; font-weight: 600; color: #EEEAE4; }
.hero h1 { margin-top: 8px; font-family: var(--serif); font-size: clamp(2rem, 6vw, 4rem); line-height: 1.06; font-weight: 700; max-width: 640px; }
.hero .tagline { margin-top: 14px; max-width: 520px; font-size: 1.15rem; line-height: 1.55; color: #EEEAE4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .btn { min-height: 50px; padding: 0 22px; font-size: 1rem; }
.only-phone { display: none; }

/* Task strip overlapping the bottom of the photo. */
.tasks { position: relative; z-index: 2; margin-top: -70px; }
.task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 24px 50px -30px rgba(0,0,0,.5); overflow: hidden; }
.task { display: flex; flex-direction: column; gap: 8px; padding: 22px; text-decoration: none; color: var(--ink); transition: background .15s; }
.task + .task { border-left: 1px solid var(--line); }
button.task { width: 100%; border-top: 0; border-right: 0; border-bottom: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
button.task:first-child { border-left: 0; }
.task:focus-visible { outline: 3px solid var(--margin); outline-offset: -3px; }
.task:hover { background: var(--bg-soft); }
.task .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--margin); display: grid; place-items: center; font-size: 1.05rem; transition: transform .2s, background .2s, color .2s; }
.task:hover .ic { background: var(--margin); color: #FFFFFF; transform: rotate(-4deg) scale(1.06); }
.task b { font-size: 1.05rem; }
.task span { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }

.block { padding: 64px 0 24px; }
.block.alt { margin-top: 40px; padding: 48px 0; background: var(--bg-raised); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.block-head h2 { font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.block-head p { font-size: .92rem; color: var(--ink-faint); }
.empty-note { padding: 24px; text-align: center; font-size: .95rem; color: var(--ink-faint); background: var(--bg-raised); border: 1px dashed var(--line-strong); border-radius: 16px; }

/* Announcements */
.ann-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ann-card { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ann-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(0,0,0,.45); }
.ann-img { position: relative; flex: none; height: 170px; overflow: hidden; background: var(--bg-tab); display: grid; place-items: center; color: var(--margin); font-size: 1.8rem; }
/* The photo fills its 170px box and never spills over the text below it. */
.ann-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ann-body { position: relative; flex: 1; background: var(--bg-raised); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ann-badge { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--info-bg); color: var(--info); font-size: .76rem; font-weight: 700; text-transform: capitalize; }
.ann-body b { font-size: 1.1rem; line-height: 1.3; }
.ann-body .ann-text { display: block; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; }
.ann-card:focus-visible { outline: 3px solid var(--margin); outline-offset: 3px; }
.ann-more { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--ink-faint); }
.ann-more a { font-weight: 700; color: var(--margin); }

/* The sign-in-first prompt for tasks that need an account. */
.ann-view-card.lp-ask { width: min(360px, 100%); padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.lp-ask .ann-view-x { background: var(--bg-tab); }
.lp-ask-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--margin); font-size: 1.1rem; }
.lp-ask h3 { font-family: var(--serif); font-size: 1.2rem; }
.lp-ask p { font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.lp-ask-go { width: 100%; justify-content: center; margin-top: 4px; }
.lp-ask-new { font-size: .82rem !important; }
.lp-ask-new a { font-weight: 700; color: var(--margin); }

/* One announcement read in full, over the page. */
.ann-view { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; }
.ann-view[hidden] { display: none; }
.ann-view-bg { position: absolute; inset: 0; background: rgba(27,26,24,.55); }
.ann-view-card { position: relative; box-sizing: border-box; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px; background: var(--bg-raised); color: var(--ink); box-shadow: 0 24px 48px -20px rgba(0,0,0,.5); }
.ann-view-x { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #1B1A18; cursor: pointer; }
.ann-view-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #1B1A18; }
.ann-view-photos[hidden] { display: none; }
.ann-view-photos img { flex: 0 0 100%; width: 100%; max-height: 340px; object-fit: contain; scroll-snap-align: center; }
.ann-view-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.ann-view-body h3 { padding-right: 36px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.ann-view-body time { font-size: .84rem; color: var(--ink-faint); }
#annViewText { font-size: .96rem; line-height: 1.6; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }
.ann-view-note { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-faint); }
.ann-view-note a { font-weight: 700; color: var(--margin); }
.ann-body time { font-size: .82rem; color: var(--ink-faint); }

/* Officials */
.off-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.off { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.off img, .off .ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg-tab); border: 3px solid var(--bg-raised); box-shadow: 0 0 0 1px var(--line-strong); display: grid; place-items: center; color: var(--ink-faint); font-size: 1.6rem; transition: box-shadow .2s; }
.off:hover img, .off:hover .ph { box-shadow: 0 0 0 2px var(--margin); }
.off b { font-size: .95rem; line-height: 1.3; }
.off span { font-size: .82rem; color: var(--ink-faint); text-transform: capitalize; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 64px; }
.c-card { padding: 24px; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 18px; display: flex; flex-direction: column; gap: 6px; }
.c-card h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.hotline { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .15s; }
.hotline:hover { background: var(--bg-soft); }
.hotline small { display: block; font-size: .76rem; color: var(--ink-faint); text-transform: capitalize; }
.hotline b { color: var(--margin); white-space: nowrap; }
.c-row { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.c-row i { width: 18px; margin-top: 5px; color: var(--margin); text-align: center; }

/* Footer */
.foot { background: var(--night); color: var(--night-ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 44px 0 28px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand img { width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; }
.foot-brand span { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #FFFFFF; }
.foot p { font-size: .9rem; line-height: 1.65; }
.foot h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #FFFFFF; margin-bottom: 12px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.foot ul a { color: var(--night-ink); text-decoration: none; }
.foot ul a:hover { color: #FFFFFF; }
.foot ul i { width: 16px; margin-right: 8px; color: #F08A80; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .82rem; }
.foot-bottom a { color: #F08A80; }

@media (max-width: 960px) {
    .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .task:nth-child(3) { border-left: 0; }
    .task:nth-child(n+3) { border-top: 1px solid var(--line); }
    .ann-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .ann-card { scroll-snap-align: start; }
}
@media (max-width: 860px) {
    .nav { padding: 12px 16px; }
    .nav-links, .nav-actions { display: none; }
    .nav-hamburger { display: flex; }
    body.nav-open .nav-mobile-panel { display: flex; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hero { min-height: 480px; align-items: flex-end; }
    .hero::before { background: linear-gradient(180deg, rgba(21,19,17,.55) 0%, rgba(21,19,17,.25) 40%, rgba(21,19,17,.9) 100%); }
    .hero-inner { padding-bottom: 86px; }
    .hero .tagline { font-size: 1rem; }
    .hero-actions .btn { flex: 1; }
    .only-wide { display: none; }
    .only-phone { display: inline-flex; }
    .tasks { margin-top: -60px; }
    .task { padding: 16px; min-height: 104px; }
    .task span { display: none; }
    .block-head h2 { font-size: 1.6rem; }
    .ann-row { grid-auto-columns: 85%; }
    .off-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
    .off img, .off .ph { width: 72px; height: 72px; font-size: 1.2rem; }
    .off b { font-size: .82rem; }
    .off span { font-size: .72rem; }
    .contact-grid { grid-template-columns: 1fr; }
    /* Phones: a short footer, the brand line and contact rows set close together. */
    .foot-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 26px; padding-bottom: 16px; }
    .foot-brand { margin-bottom: 6px; }
    .foot-brand img { width: 28px; height: 28px; }
    .foot p { font-size: .85rem; line-height: 1.5; }
    .foot h3 { margin-bottom: 8px; }
    .foot ul { gap: 6px; font-size: .85rem; }
    .foot-bottom { padding-top: 12px; padding-bottom: 16px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ann-card, .task .ic, .btn { transition: none; }
}
