/* Plymouth Housing Authority — site styles (v2)
   Brand colors from the PHA logo. Targets WCAG 2.1 AA. */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --navy: #013f7a;        /* 11.4:1 on white */
  --navy-deep: #002b56;
  --blue: #0273bc;        /* 5.1:1 on white */
  --green: #177b2d;       /* 5.6:1 on white */
  --sun: #fabc1f;         /* on navy, or under dark text only */
  --sky: #eaf3fb;
  --sky-2: #d7e8f6;
  --meadow: #e8f4ea;
  --ink: #142233;
  --muted: #4a5869;       /* 7.1:1 on white */
  --line: #d3deea;
  --white: #ffffff;
  --focus: #c25e00;
  --maxw: 1180px;
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --base-size: 1.125rem;

  /* legacy aliases used in templates */
  --river: var(--navy); --river-dark: var(--navy-deep); --river-light: var(--sky);
  --brick: var(--green); --brick-light: var(--meadow); --gold: var(--sun); --cream: var(--sky);
}

html.text-lg { --base-size: 1.3rem; }
html.text-xl { --base-size: 1.5rem; }

html.hc {
  --navy: #000; --navy-deep: #000; --blue: #000; --green: #000; --sun: #ffff00;
  --sky: #fff; --sky-2: #fff; --meadow: #fff; --ink: #000; --muted: #000; --line: #000;
}
html.hc a { text-decoration: underline !important; }
html.hc .card, html.hc .panel, html.hc .path, html.hc .home-card { border: 2px solid #000 !important; box-shadow: none !important; }
html.hc .scene, html.hc .wave { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0; font-family: var(--font); font-size: var(--base-size); line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 800; }

a { color: #015d9c; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--sun); color: #1a1300; font-weight: 800; padding: .75rem 1.1rem; border-radius: 0 0 10px 10px; text-decoration: none; }
.skip-link:focus { top: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-deep); color: #fff; font-size: .9rem; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; justify-content: space-between; padding-top: .4rem; padding-bottom: .4rem; }
.utility a { color: #fff; }
.utility a:hover { color: var(--sun); }
.utility-left, .utility-right { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; }
.a11y-tools { display: flex; gap: .35rem; }
.a11y-tools button { font: inherit; font-size: .85rem; font-weight: 600; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: .15rem .7rem; cursor: pointer; min-height: 32px; min-width: 32px; }
.a11y-tools button:hover { background: rgba(255,255,255,.14); }
.a11y-tools button[aria-pressed="true"] { background: var(--sun); color: #1a1300; border-color: var(--sun); }
html.hc .utility { background: #000; }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 58px; width: auto; display: block; }
.brand-name { display: block; font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--navy); text-transform: uppercase; letter-spacing: .01em; }
.brand-sub { display: block; font-weight: 800; font-size: .82rem; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.nav-toggle { display: none; font: inherit; font-weight: 800; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; min-height: 44px; align-items: center; gap: .45rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; flex-wrap: wrap; }
.primary-nav li { margin: 0; }
.primary-nav a { display: block; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
.primary-nav a:hover { background: var(--sky); color: var(--navy); }
.primary-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
html.hc .primary-nav a[aria-current="page"] { background: #000; }
.wave-rule { height: 5px; background: linear-gradient(90deg, var(--green), #3b8938 40%, var(--blue)); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .primary-nav ul { flex-direction: column; padding: .4rem 0 .8rem; }
  .primary-nav a { padding: .8rem 1rem; border-radius: 12px; }
}

/* ---------- Help notice ---------- */
.notice { background: var(--meadow); color: var(--ink); font-size: .95rem; }
.notice .wrap { padding-top: .55rem; padding-bottom: .55rem; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; }
.notice strong { color: var(--green); }
html.hc .notice strong { color: #000; }

/* ---------- Home hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #f5f9fd 70%, #fff 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: center; padding-top: 3.2rem; padding-bottom: 1rem; }
.hero h1 { color: var(--navy); max-width: 11ch; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 34rem; }
.hero-promises { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.hero-promises li { display: flex; gap: .6rem; align-items: center; margin: 0; font-weight: 600; }
.hero-promises svg { width: 26px; height: 26px; flex: none; color: var(--green); }
.scene { width: 100%; height: auto; display: block; border-radius: 0 0 32px 32px; }
.beam { transform-origin: 0 0; animation: beam-sweep 3.2s ease-out .4s both; }
@keyframes beam-sweep { 0% { opacity: 0; transform: rotate(-14deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(0); } }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 2.2rem; } .hero h1 { max-width: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); position: relative; }
.page-hero .wrap { padding-top: 2.6rem; padding-bottom: 2.4rem; position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 20ch; }
.page-hero p { max-width: 44rem; font-size: 1.2rem; color: var(--muted); margin-bottom: 0; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 12c20-8 40-8 60 0s40 8 60 0' fill='none' stroke='%23d7e8f6' stroke-width='3'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 18px; }
.breadcrumb { font-size: .92rem; margin-bottom: .9rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li { margin: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; }

/* ---------- Waves ---------- */
.wave { display: block; width: 100%; height: 60px; }
.wave-top { margin-bottom: -1px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent; min-height: 50px; line-height: 1.2; }
.btn svg { width: 20px; height: 20px; }
.btn-primary, .btn-river { background: var(--navy); color: #fff; }
.btn-primary:hover, .btn-river:hover { background: var(--navy-deep); color: #fff; }
.btn-sun { background: var(--sun); color: #1a1300; }
.btn-sun:hover { background: #ffcf4d; color: #1a1300; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--sky); color: var(--navy); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
html.hc .btn { background: #000 !important; color: #fff !important; border-color: #000 !important; }

/* ---------- Sections ---------- */
section.block { padding: 4.2rem 0; }
section.block.alt { background: var(--sky); }
section.block.tight { padding-top: 1.5rem; }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.eyebrow { display: block; font-weight: 800; font-size: 1rem; color: var(--green); margin-bottom: .4rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- "What brings you here" paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }
.path { border-radius: 22px; padding: 1.8rem 1.7rem 1.5rem; color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.path.p-navy { background: var(--navy); }
.path.p-green { background: var(--green); }
.path.p-blue { background: #015d9c; }  /* darker logo blue for white text: 7.0:1 */
.path h3 { color: #fff; font-size: 1.55rem; margin-bottom: .3rem; }
.path p { color: rgba(255,255,255,.92); }
.path .path-icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 1rem; }
.path .path-icon svg { width: 32px; height: 32px; color: var(--sun); }
.path ul { list-style: none; padding: 0; margin: .4rem 0 0; border-top: 1px solid rgba(255,255,255,.25); }
.path li { margin: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.path li a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .2rem; color: #fff; text-decoration: none; font-weight: 600; }
.path li a::after { content: ""; width: 9px; height: 9px; border-top: 2.5px solid var(--sun); border-right: 2.5px solid var(--sun); transform: rotate(45deg); flex: none; transition: transform .15s; }
.path li a:hover { text-decoration: underline; }
.path li a:hover::after { transform: translateX(3px) rotate(45deg); }
.path li a:focus-visible { outline-color: var(--sun); }
html.hc .path { background: #fff !important; color: #000; }
html.hc .path h3, html.hc .path p, html.hc .path li a { color: #000; }

/* ---------- Community homes ---------- */
.homes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; }
@media (max-width: 900px) { .homes { grid-template-columns: 1fr; max-width: 560px; } }
.home-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.home-card .home-art { display: block; background: var(--sky); }
.home-card .home-art svg { display: block; width: 100%; height: auto; }
.home-card .home-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.home-card h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.home-card .count { font-weight: 600; color: var(--muted); margin-bottom: .8rem; }
.home-card .count strong { color: var(--navy); font-size: 1.2rem; }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { margin: 0; background: var(--sky); color: var(--navy); font-weight: 600; font-size: .92rem; padding: .25rem .75rem; border-radius: 999px; }
.home-card .more { margin-top: auto; font-weight: 800; }

/* legacy community-card (inner page) */
.community-card { border-top: 6px solid var(--navy); }
.community-card.c-blue { border-top-color: var(--blue); }
.community-card.c-green { border-top-color: var(--green); }
.community-card .units { font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.community-card .units span { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* ---------- Welcome split ---------- */
.welcome { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 880px) { .welcome { grid-template-columns: 1fr; } }
.welcome .quote { background: var(--navy); color: #fff; border-radius: 26px 26px 26px 6px; padding: 2rem; position: relative; }
.welcome .quote p { font-size: 1.35rem; line-height: 1.45; font-weight: 600; margin: 0; }
.welcome .quote .who { display: block; margin-top: 1rem; font-size: 1rem; color: var(--sun); font-weight: 800; }

/* ---------- Steps (a real sequence) ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.4rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 6%; right: 6%; border-top: 3px dashed var(--sky-2); z-index: 0; }
.step { counter-increment: step; position: relative; z-index: 1; margin: 0; padding: 0; background: transparent; border: 0; }
.step::before { content: counter(step); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sun); color: #1a1300; font-weight: 800; font-size: 1.35rem; margin-bottom: .9rem; box-shadow: 0 0 0 6px #fff; }
section.alt .step::before { box-shadow: 0 0 0 6px var(--sky); }
.step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.step p { font-size: 1rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .steps::before { top: 10px; bottom: 10px; left: 26px; right: auto; border-top: 0; border-left: 3px dashed var(--sky-2); }
  .step { padding-left: 76px; min-height: 54px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Panels ---------- */
.panel { background: var(--sky); border-radius: 18px; padding: 1.6rem; }
.panel.warn { background: #fff4d6; border: 2px solid var(--sun); }
.panel.green { background: var(--meadow); }
.panel h2, .panel h3 { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo .tile { border-radius: 22px; padding: 2rem; display: flex; gap: 1.2rem; align-items: flex-start; }
.duo .tile svg.tile-icon { width: 48px; height: 48px; flex: none; }
.duo .tile.t-sun { background: #fff4d6; }
.duo .tile.t-sun svg.tile-icon { color: #8a5a00; }
.duo .tile.t-meadow { background: var(--meadow); }
.duo .tile.t-meadow svg.tile-icon { color: var(--green); }
.duo .tile h2 { font-size: 1.6rem; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 14px; overflow: hidden; }
caption { text-align: left; font-weight: 800; padding: .5rem 0; color: var(--navy); }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; }
tbody th { font-weight: 600; }
html.hc thead th { background: #000; }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: .75rem; }
details[open] { border-color: var(--blue); }
summary { cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 800; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 1.3rem; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; background: var(--navy); color: #fff; }
details .answer { padding: 0 1.3rem 1.2rem; }
details .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { min-width: 9.5rem; font-weight: 800; color: var(--navy); }
@media (max-width: 520px) { .contact-list li { flex-direction: column; gap: 0; } }

.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 18px; }

.two-col { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2.8rem; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.toc { position: sticky; top: 7rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: .35rem 0; text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

.tag { display: inline-block; font-size: .85rem; font-weight: 800; background: var(--sky); color: var(--navy); padding: .2rem .7rem; border-radius: 999px; }

/* EHO */
.eho { display: inline-flex; align-items: center; gap: .6rem; }
.eho svg { width: 46px; height: 46px; flex: none; }
.eho-text { font-weight: 800; font-size: .85rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #e3ebf5; font-size: .98rem; }
.site-footer .wave-top path { fill: var(--navy-deep); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8rem; letter-spacing: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding: 2.2rem 0 2rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-logo { background: #fff; border-radius: 14px; padding: .6rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { display: block; width: 170px; height: auto; }
.footer-eho { border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); padding: 1.4rem 0; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
@media (max-width: 620px) { .footer-eho { grid-template-columns: 1fr; } }
.footer-eho p { margin: 0; font-size: .92rem; color: #dbe5f1; }
.footer-eho svg { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding: 1.2rem 0 1.6rem; font-size: .9rem; color: #d2ddea; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
html.hc .site-footer { background: #000; }

/* ---------- Print ---------- */
@media print {
  .utility, .site-header, .notice, .site-footer .footer-top, .nav-toggle, .btn-row, .skip-link, .wave, .scene { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; }
  .page-hero, .hero { background: #fff !important; }
}

/* Printable form */
.form-sheet { border: 1px solid var(--line); border-radius: 14px; padding: 2rem; background: #fff; }
.form-sheet .field { border-bottom: 1px solid #888; min-height: 2.2rem; margin-bottom: 1rem; }
.form-sheet .lbl { font-weight: 800; display: block; font-size: .95rem; margin-bottom: .2rem; }
.form-sheet .lines { border-bottom: 1px solid #888; height: 2rem; }
.wave-footer { height: 50px; margin-bottom: -2px; }
.wave-footer path { fill: var(--navy-deep); }
section.alt + .wave-footer { background: var(--sky); }
html.hc .wave-footer path { fill: #000; }

/* Logo in home hero */
.hero-logo { background: #fff; border-radius: 28px; padding: 1.8rem; box-shadow: 0 20px 50px rgba(1,63,122,.18); max-width: 520px; justify-self: center; width: 100%; }
.hero-logo img { display: block; width: 100%; height: auto; }

/* Community photos (img/communities/<name>.jpg) */
.home-photo { display: block; width: 100%; aspect-ratio: 12 / 5; height: auto; object-fit: cover; }

/* Google Maps links on community cards */
.home-card .more { display: flex; flex-direction: column; gap: .5rem; font-weight: 800; }
.maps-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.maps-link svg { width: 20px; height: 20px; flex: none; }
.home-photo[hidden] { display: none; }
.home-fallback svg { display: block; width: 100%; height: auto; }

/* ---------- Rotating hero photos (50% opacity) ---------- */
.hero { isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: .5; }
/* Soft white wash behind the headline keeps text contrast at AA over any photo */
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.86) 46%, rgba(255,255,255,.25) 72%, rgba(255,255,255,0) 100%); }
@media (max-width: 880px) { .hero-bg::after { background: rgba(255,255,255,.82); } }
.hero-pause {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2; font: inherit; font-size: .9rem; font-weight: 700;
  background: rgba(255,255,255,.95); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px;
  padding: .35rem .9rem; min-height: 40px; cursor: pointer;
}
.hero-pause:hover { background: var(--sky); }
html.hc .hero-bg { display: none; }
html.hc .hero-pause { display: none; }
@media print { .hero-bg, .hero-pause { display: none !important; } }
