/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Allura"; src: url("fonts/allura-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-200-normal.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* YVES Community Website — shared styles
   Colours and type are set once here as tokens. */

:root {
  /* Palette drawn from the YVES brochure */
  --salt: #F7F2EA;      /* white sand — page background */
  --dune: #EDE2D0;      /* warm sand — alternate sections */
  --surface: #FFFDF9;   /* sea foam — panels */
  --ink: #1E1A2B;       /* body text */
  --muted: #6A6470;     /* driftwood — secondary text */
  --deep: #233656;      /* welcome-guide navy — brand */
  --slate: #4A6896;     /* welcome-guide slate blue */
  --mist: #E6EBF2;      /* slate tint */
  --deep-2: #18263F;    /* deep navy */
  --sea: #6FB6BE;       /* pool aqua */
  --sea-soft: #E3EFEF;
  --ocean: #2C4A63;     /* open water */
  --sun: #D5BD95;       /* golden sand — accents */
  --bronze: #927E57;    /* sunset bronze */
  --line: #E4D8C4;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--salt);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--deep-2); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { font-family: var(--body); font-weight: 300; font-size: 1.45rem; letter-spacing: .38em; color: var(--deep); padding-left: 14px; border-left: 1px solid var(--bronze); }
.brand-sub { font-size: .9rem; color: var(--muted); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 10px; white-space: nowrap; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--dune); }
.nav a[aria-current="page"] { background: var(--deep); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .brand-sub { display: none; }
}

/* ---------- Report bar ---------- */
.report-bar { background: var(--deep-2); color: #E3EAF3; font-size: .95rem; }
.report-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.report-bar a { color: #fff; font-weight: 600; }
.report-bar .emergency { color: var(--sun); font-weight: 600; }

/* ---------- Home hero: open water running up onto the sand ---------- */
.hero {
  color: #fff; overflow: hidden; position: relative;
  background:
    radial-gradient(ellipse 45% 30% at 72% 88%, rgba(255,226,170,.75), transparent 70%),
    linear-gradient(180deg, #233656 0%, #34507A 40%, #6F84A3 68%, #C3A170 87%, #E2C58F 100%);
}
.hero .wrap { padding-top: 72px; padding-bottom: 12px; position: relative; z-index: 1; }
.hero-word {
  font-family: var(--body); font-weight: 200; letter-spacing: .32em;
  font-size: clamp(4.2rem, 17vw, 12.5rem); line-height: .9; margin: 0;
  color: #fff; position: relative; padding-top: 70px;
}
.hero-word::before {   /* the brochure's vertical line motif */
  content: ""; position: absolute; left: .06em; top: 0; width: 1px; height: 56px; background: var(--sun);
}
.hero-tag { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-family: var(--display); font-weight: 500; font-style: italic; max-width: 26ch; margin: 18px 0 8px; color: #fff; }
.hero-place { color: #E9DFF0; margin: 0 0 28px; }

/* Layered waves */
.shore { display: block; width: 100%; position: relative; }
.shore .drift { will-change: transform; }
.hero-shore { height: 180px; margin-top: -30px; }
.head-shore { height: 64px; margin-top: 28px; }
.foot-shore { height: 64px; }
.w-back path { fill: rgba(44,74,99,.88); }
.w-mid path  { fill: rgba(63,120,144,.85); }
.w-foam path { fill: rgba(250,245,236,.88); }
.w-sand path { fill: var(--salt); }
.foot-wrap { line-height: 0; margin-top: -2px; }
.foot-shore .w-back path { fill: rgba(146,126,87,.45); }
.foot-shore .w-deep path { fill: var(--deep-2); }
@media (prefers-reduced-motion: no-preference) {
  .drift { animation: drift 28s linear infinite; }
  .w-mid  { animation-duration: 20s; animation-direction: reverse; }
  .w-foam { animation-duration: 16s; }
  .w-sand, .w-deep { animation-duration: 40s; animation-direction: reverse; }
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-1440px); } }

/* Quick links sit on the waterline */
.quick { background: transparent; position: relative; z-index: 2; margin-top: -26px; }
.quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 30px -18px rgba(24,38,63,.45); }
.quick li + li { border-left: 1px solid var(--line); }
.quick a { display: block; padding: 22px 20px; text-decoration: none; color: var(--ink); height: 100%; }
.quick a:hover { background: var(--sea-soft); }
.quick strong { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--deep); }
.quick span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .quick ul { grid-template-columns: 1fr 1fr; }
  .quick li:nth-child(3) { border-left: 0; }
  .quick li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { color: #fff; padding: 56px 0 0; overflow: hidden;
  background: radial-gradient(ellipse 45% 70% at 85% 100%, rgba(226,197,143,.55), transparent 70%), linear-gradient(180deg, #233656 0%, #34507A 55%, #6F84A3 100%); }
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p { color: #E3EAF3; max-width: 62ch; font-size: 1.15rem; margin: 0; }
.crumb { color: var(--sun); font-size: .95rem; margin-bottom: 10px; }
.crumb a { color: var(--sun); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section.alt { background: var(--dune); }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

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

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.section.alt .panel { background: var(--surface); }
.panel h3 { color: var(--deep); }
.panel p:last-child { margin-bottom: 0; }

/* Channel guide: where to go for what */
.channels { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.channels th, .channels td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.channels tr:last-child td { border-bottom: 0; }
.channels th { background: var(--dune); color: var(--deep); font-family: var(--display); font-weight: 600; }
.channels td:first-child { font-weight: 600; white-space: nowrap; color: var(--deep); }
@media (max-width: 640px) {
  .channels thead { display: none; }
  .channels tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .channels td { display: block; border: 0; padding: 4px 18px; }
}

/* News list */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.news time { color: var(--muted); font-size: .95rem; padding-top: 3px; }
.news h3 { margin-bottom: .25em; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--deep); color: #fff; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--deep-2); color: #fff; }
.hero .btn.ghost, .page-head .btn.ghost { color: #fff; border-color: #fff; }
.btn.ghost { background: transparent; color: var(--deep); border: 2px solid var(--deep); }
.btn.ghost:hover { background: var(--sea-soft); color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Photo placeholders — replace with licensed photos */
.photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #E9D7B5 0 34%, #9AA6AE 34% 48%, #3F6A82 48% 60%, #FAF5EC 60% 62%, #DCC59C 62% 100%);
  display: flex; align-items: flex-end; padding: 14px; color: #5E4C2E; font-size: .9rem; font-weight: 600;
  border: 1px solid var(--line);
}
.photo.wide { aspect-ratio: 16 / 7; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.gallery .photo:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .photo:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; } }

/* Facilities */
.facility { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.facility:first-of-type { border-top: 1px solid var(--line); }
.facility h3 { font-size: 1.7rem; color: var(--deep); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; margin: 12px 0 0; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) { .facility { grid-template-columns: 1fr; gap: 6px; } .facts { grid-template-columns: 1fr 1fr; } }

/* Accordions (Living at YVES) */
.guide details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.guide summary { cursor: pointer; padding: 18px 22px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; color: var(--deep); font-size: 1.4rem; line-height: 1; }
.guide details[open] summary::after { content: "–"; }
.guide details[open] summary { border-bottom: 1px solid var(--line); }
.guide .body { padding: 18px 22px 8px; }
.guide ul { padding-left: 1.2em; margin: 0 0 1em; }
.guide li { margin-bottom: .35em; }

/* Notes for editors (visible markers of content still to confirm) */
.tbc { background: #F4E6C9; border-bottom: 2px dotted var(--sun); padding: 0 3px; border-radius: 3px; }

/* ---------- Committee ---------- */
.members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .members { grid-template-columns: 1fr; } }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(160deg, #EFE4D2 0 52%, var(--ocean) 52% 64%, var(--sun) 64%); color: var(--deep); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.8rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .role { display: inline-block; background: var(--deep); color: #fff; font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.member .role.ordinary { background: var(--sea-soft); color: var(--deep); }
.member h3 { font-size: 1.65rem; margin-bottom: .2em; }
.member .lot { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.member h4 { font-family: var(--body); font-size: .95rem; font-weight: 700; margin: 14px 0 6px; color: var(--deep); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--salt); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .9rem; }
@media (max-width: 480px) { .member { grid-template-columns: 1fr; } }

.roles-explained { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .roles-explained { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .roles-explained { grid-template-columns: 1fr; } }

/* ---------- Projects register ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filters button { font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.projects { display: grid; gap: 16px; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; display: grid; grid-template-columns: 1fr 230px; gap: 28px; }
.project h3 { font-size: 1.6rem; margin-bottom: .1em; }
.project .area { color: var(--muted); margin-bottom: 14px; }
.project dl { margin: 0; display: grid; gap: 10px; }
.project dt { font-weight: 700; font-size: .95rem; color: var(--deep); }
.project dd { margin: 0; }
.project aside { border-left: 1px solid var(--line); padding-left: 24px; }
.project aside p { font-size: .95rem; color: var(--muted); margin-bottom: .5em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
.status.completed { color: #2E7D4F; }
.status.progress { color: #2C5F82; }
.status.review { color: #7A5A00; }
.status.vote { color: #A04A1E; }
.status.planned { color: var(--muted); }
@media (max-width: 760px) { .project { grid-template-columns: 1fr; gap: 16px; } .project aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; }
.legend .status { margin: 0; }

/* Contacts */
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .contact-list { grid-template-columns: 1fr; } }
.contact-list .panel dl { margin: 10px 0 0; display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.emergency-panel { background: var(--deep-2); color: #fff; border: 0; }
.emergency-panel h3, .emergency-panel a { color: var(--sun); }
.emergency-panel p { color: #E3EAF3; }

/* Callout */
.callout { border-left: 4px solid var(--sun); background: var(--surface); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.callout p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-2); color: #D3DDEA; padding: 48px 0 32px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-mark { font-family: var(--body); font-weight: 300; letter-spacing: .38em; font-size: 1.8rem; color: #fff; margin-bottom: 10px; }
.footer-small { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .88rem; color: #9FB0C6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Inner page heads: dusk over the water */
.head-shore .w-back path { fill: rgba(111,182,190,.45); }
.quick strong { font-size: 1.3rem; }

/* ================================================================
   Photography and resident-guide components (v3)
   ================================================================ */

/* Hero with arched photo */
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: end; }
.hero .wrap.hero-grid { padding-bottom: 0; }
.hero-copy { padding-bottom: 96px; }
.hero-figure { margin: 0; justify-self: end; width: min(100%, 360px); position: relative; z-index: 0; margin-bottom: -150px; }
.hero-figure img {
  width: 100%; height: 600px; object-fit: cover; object-position: 50% 40%;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 30px 60px -30px rgba(24,38,63,.7);
}
.hero-figure::before { /* thin gold arch echoing the brochure's line work */
  content: ""; position: absolute; inset: -14px -14px 0 -14px;
  border: 1px solid rgba(213,189,149,.55); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none;
}
.hero-shore { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-figure { justify-self: start; width: 100%; margin-bottom: -110px; }
  .hero-figure img { height: 340px; object-position: 50% 30%; border-radius: 180px 180px 0 0; }
  .hero-figure::before { display: none; }
}

/* Start here */
.start { position: relative; z-index: 2; margin-top: -34px; }
.start-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 14px 34px -20px rgba(24,38,63,.5); padding: 22px 24px 16px; }
.start-title { font-size: 1.5rem; margin: 0 0 10px; }
.start ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.start li + li { border-left: 1px solid var(--line); }
.start a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 14px 10px; text-decoration: none; color: var(--ink); border-radius: var(--radius-sm); font-weight: 500; line-height: 1.3; height: 100%; }
.start a:hover { background: var(--salt); }
.start .icon { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--dune); color: var(--deep); }
@media (max-width: 900px) {
  .start ul { grid-template-columns: repeat(3, 1fr); }
  .start li:nth-child(4) { border-left: 0; }
  .start li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .start ul { grid-template-columns: repeat(2, 1fr); }
  .start li:nth-child(4) { border-left: 1px solid var(--line); }
  .start li:nth-child(3), .start li:nth-child(5) { border-left: 0; }
  .start li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.sig { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--bronze); }
.icon { width: 28px; height: 28px; flex: none; }

/* First-contact band */
.first-contact { background: var(--deep); color: #E8EEF5; padding: 44px 0; }
.first-contact-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.first-contact h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.first-contact p { margin: 0; color: #D6E0EC; }
.fc-icon .icon { width: 64px; height: 64px; color: var(--sun); }
.btn.light { background: var(--sun); color: var(--deep); }
.btn.light:hover { background: #E6D2AE; color: var(--deep); }
@media (max-width: 760px) { .first-contact-inner { grid-template-columns: 1fr; gap: 14px; } .fc-icon .icon { width: 44px; height: 44px; } }

/* Feature with photo */
.feature-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.feature-fig { margin: 0; }
.feature-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; gap: 28px; } .feature-fig img { aspect-ratio: 4 / 3; border-radius: 160px 160px var(--radius-lg) var(--radius-lg); } }

.sign-off { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--deep); margin-top: 32px; max-width: 40ch; }

/* Facility rules */
.level-title { font-size: 1.8rem; margin: 36px 0 16px; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.rule .icon { width: 44px; height: 44px; color: var(--bronze); grid-row: span 2; }
.rule h4 { font-size: 1.45rem; margin: 2px 0 6px; }
.rule ul { margin: 0; padding-left: 1.1em; }
.rule li { margin-bottom: .3em; }
@media (max-width: 700px) { .rules { grid-template-columns: 1fr; } }
.level24 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; margin-top: 32px; }
.level24 .facts { grid-template-columns: 1fr; gap: 14px; }
.level24 .facts dt { font-weight: 700; color: var(--deep); font-size: .98rem; }
@media (max-width: 760px) { .level24 { grid-template-columns: 1fr; } }

/* Photos with captions */
.photo-fig { margin: 0; }
.photo-fig img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 3 / 4; background: var(--dune); }
.photo-fig figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; font-style: italic; }

/* Resident guide layout */
.handbook { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.toc { position: sticky; top: 92px; align-self: start; }
.toc-title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .97rem; }
.toc a:hover { color: var(--deep); border-left-color: var(--sun); }
.toc-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.hb-section { padding: 8px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.hb-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.hb-head .icon { width: 52px; height: 52px; padding: 11px; border-radius: 50%; background: var(--dune); color: var(--deep); }
.hb-head h2 { margin: 0; }
.hb-head p { margin: 2px 0 0; font-family: var(--display); font-style: italic; color: var(--bronze); font-size: 1.2rem; }
.hb-body { display: block; }
.has-fig .hb-body { display: grid; grid-template-columns: 1fr 260px; gap: 36px; align-items: start; }
.hb-text h3 { font-size: 1.35rem; margin: 20px 0 6px; }
.hb-text h3:first-child { margin-top: 0; }
.hb-text ul { padding-left: 1.15em; margin: 0 0 .8em; }
.hb-text li { margin-bottom: .35em; }
.hb-text .callout { margin: 18px 0; }
@media (max-width: 960px) {
  .handbook { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .toc { position: static; }
  .toc ul { border-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin: 0; background: var(--surface); }
}
@media (max-width: 680px) {
  .has-fig .hb-body { grid-template-columns: 1fr; gap: 18px; }
  .has-fig .photo-fig { order: -1; }
  .has-fig .photo-fig img { aspect-ratio: 4 / 3; }
}

/* Paint table */
.paint { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.paint th, .paint td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.paint tr:last-child th, .paint tr:last-child td { border-bottom: 0; }
.paint th { font-weight: 600; width: 38%; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #F1EFE9; border: 1px solid #CFC8BA; vertical-align: -3px; margin-right: 10px; }
@media (max-width: 520px) { .paint th, .paint td { display: block; width: auto; border: 0; padding: 8px 16px 0; } .paint td { padding-bottom: 12px; border-bottom: 1px solid var(--line); } }

/* Skills register */
.skills { background: var(--dune); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.skills-grid > div > .icon { width: 56px; height: 56px; color: var(--bronze); margin-bottom: 12px; }
.skills-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.skills-card ul { padding-left: 1.15em; }
.skills-card li { margin-bottom: .4em; }
@media (max-width: 820px) { .skills-grid { grid-template-columns: 1fr; gap: 20px; } }

.local { list-style: none; padding: 0; margin: 0 0 16px; columns: 2; column-gap: 32px; }
.local li { padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.small { font-size: .95rem; color: var(--muted); }
@media (max-width: 480px) { .local { columns: 1; } }

/* Who do I contact */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.compare-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.compare-col.primary { border: 2px solid var(--deep); }
.compare-col h3 { font-size: 1.6rem; margin: 8px 0 2px; }
.role-sub { color: var(--bronze); font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.compare-col ul { padding-left: 1.15em; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--deep); color: #fff; }
.tag.paid { background: var(--dune); color: var(--deep); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.feature-fig img, .photo-fig img { height: auto; }
img[src*="parking-bollard"] { object-position: 50% 80%; }
img[src*="rubbish-chute"] { object-position: 50% 40%; }

/* ================================================================
   Home: welcome cover (after the welcome-guide's first slide)
   ================================================================ */
.welcome { padding: 28px 0 56px; background: linear-gradient(180deg, #EEF0F2 0%, var(--salt) 100%); }
.welcome-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; align-items: stretch; }

.cover { position: relative; border-radius: 20px; overflow: hidden; min-height: 720px; background: #F3D9AE; box-shadow: 0 24px 50px -32px rgba(24,38,63,.55); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.cover::after { /* soft wash so overlaid text stays readable on the bright sky */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(250,244,234,.42) 0%, rgba(250,244,234,.18) 45%, rgba(250,244,234,0) 62%);
}
.cover-text { position: relative; z-index: 1; padding: 64px 0 0 52px; max-width: 70%; color: var(--slate); }
.cover-mark { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 5.6vw, 4.6rem); letter-spacing: .32em; line-height: 1; margin: 0 0 14px; color: var(--slate); }
.wl { display: block; color: var(--slate); }
.cover-wave { margin: 0 0 14px 4px; }
.cover-wave.small { margin: 18px 0 18px 90px; }
.cover-place { font-family: var(--body); font-weight: 400; text-transform: uppercase; letter-spacing: .32em; font-size: 1rem; margin: 0 0 54px; color: var(--slate); }
.cover-title { margin: 0; font-weight: 400; line-height: 1; }
.script { display: block; font-family: "Allura", "Snell Roundhand", cursive; font-size: clamp(5rem, 9vw, 7.6rem); line-height: .9; color: #2F4A7A; margin-left: -8px; }
.cover-sub { display: block; font-family: var(--body); font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: clamp(1rem, 1.6vw, 1.35rem); color: #2F4A7A; margin: 14px 0 0 26px; }
.cover-lede { font-size: 1.12rem; color: #2B3550; margin: 0 0 0 26px; max-width: 24ch; text-align: center; }
.cover-badge {
  position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; margin: 0;
  display: flex; align-items: center; gap: 16px; color: #fff;
  text-transform: uppercase; letter-spacing: .16em; font-size: .86rem; line-height: 1.6; font-weight: 500; max-width: 420px;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.badge-ic { flex: none; width: 56px; height: 56px; border-radius: 50%; background: rgba(110,140,185,.9); display: grid; place-content: center; gap: 4px; }
.badge-ic .wl { color: #fff; }
.cover-badge::before { content: ""; position: absolute; left: -28px; right: -28px; bottom: -26px; height: 170px; z-index: -1; background: linear-gradient(0deg, rgba(20,24,30,.5), transparent); }

/* Guide card */
.guide-card { background: #F6F2EC; border: 1px solid #E7DFD3; border-radius: 20px; padding: 40px 40px 28px; display: flex; flex-direction: column; }
.gc-title { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.3rem); color: #1D2742; margin: 0 0 8px; }
.gc-tag { text-transform: uppercase; letter-spacing: .14em; font-size: .86rem; color: var(--slate); padding-bottom: 14px; border-bottom: 1px solid #C9D2DF; margin-bottom: 18px; max-width: none; }
.gc-intro { color: #2B3550; font-size: 1.05rem; }
.gc-label { display: flex; align-items: center; gap: 18px; font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--slate); margin: 10px 0 14px; }
.gc-label::after { content: ""; flex: 1; height: 1px; background: #C9D2DF; }
.tiles { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
.tiles li { border-left: 1px solid #DDD5C8; }
.tiles li:nth-child(3n+1) { border-left: 0; }
.tiles a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 6px 12px; text-decoration: none; color: #3A4256; text-align: center; line-height: 1.3; border-radius: 12px; font-size: .98rem; }
.tiles a:hover { background: #EDE7DE; }
.tile-ic { width: 68px; height: 68px; border-radius: 50%; background: #E8E4DE; display: grid; place-items: center; color: #3E5684; }
.tile-ic .icon { width: 34px; height: 34px; stroke-width: 1.3; }

.gc-connect { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; background: #E4E9F1; border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.gc-connect h3 { font-family: var(--body); text-transform: uppercase; letter-spacing: .14em; font-size: .92rem; font-weight: 600; color: var(--slate); margin: 0 0 4px; }
.gc-connect p { margin: 0; font-size: .96rem; color: #2B3550; }
.gc-connect .btn { grid-column: 2; justify-self: start; margin-top: 8px; padding: 9px 18px; font-size: .95rem; }
.gc-round { width: 62px; height: 62px; border-radius: 50%; background: #4F6C9C; color: #fff; display: grid; place-items: center; grid-row: span 2; }
.gc-round .icon { width: 34px; height: 34px; }
.btn.slate { background: #4F6C9C; color: #fff; }
.btn.slate:hover { background: #3E5684; color: #fff; }

.gc-heart { display: flex; align-items: center; gap: 16px; background: #EDE5DA; border-radius: 16px; padding: 14px 20px; margin-top: auto; }
.gc-heart p { margin: 0; color: #2B3550; font-size: .98rem; }
.gc-heart-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #4F6C9C; display: grid; place-items: center; color: #4F6C9C; }
.gc-heart-ic .icon { width: 24px; height: 24px; }
.gc-heart .wl { flex: none; }

@media (max-width: 1080px) {
  .cover-text { padding: 48px 0 0 36px; max-width: 80%; }
}
@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .cover { min-height: 640px; }
  .cover-img { object-position: 70% 50%; }
}
@media (max-width: 520px) {
  .welcome { padding: 14px 0 36px; }
  .cover { min-height: 600px; border-radius: 16px; }
  .cover-img { object-position: 72% 50%; }
  .cover::after { background: linear-gradient(90deg, rgba(250,244,234,.55) 0%, rgba(250,244,234,.25) 70%, rgba(250,244,234,.1) 100%); }
  .cover-text { padding: 36px 0 0 24px; max-width: 92%; }
  .cover-place { margin-bottom: 34px; font-size: .85rem; }
  .cover-wave.small { margin-left: 60px; }
  .cover-sub, .cover-lede { margin-left: 10px; }
  .cover-badge { left: 18px; right: 18px; bottom: 18px; font-size: .78rem; }
  .guide-card { padding: 28px 20px 20px; border-radius: 16px; }
  .tile-ic { width: 58px; height: 58px; }
  .tiles a { font-size: .9rem; }
  .gc-connect { grid-template-columns: 1fr; }
  .gc-round { grid-row: auto; width: 52px; height: 52px; }
  .gc-connect .btn { grid-column: 1; }
  .gc-heart .wl { display: none; }
}
/* Home cover: proportions closer to the slide */
.welcome-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
.cover { min-height: 0; aspect-ratio: 864 / 900; }
.cover-img { object-position: 78% 50%; }
.cover-text { max-width: 64%; padding: 52px 0 0 44px; }
.cover-place { margin-bottom: 40px; }
.script { font-size: clamp(4.6rem, 8vw, 6.8rem); }
.guide-card { padding: 34px 34px 24px; }
.gc-intro { margin-bottom: 6px; }
.tile-ic { width: 60px; height: 60px; }
.tile-ic .icon { width: 30px; height: 30px; }
.tiles { margin-bottom: 16px; }
.tiles a { padding: 8px 4px 10px; font-size: .95rem; gap: 8px; }
.gc-connect { grid-template-columns: auto 1fr auto; padding: 14px 18px; }
.gc-connect .btn { grid-column: auto; margin: 0; align-self: center; }
.gc-round { grid-row: auto; width: 54px; height: 54px; }
@media (max-width: 1080px) { .gc-connect { grid-template-columns: auto 1fr; } .gc-connect .btn { grid-column: 2; justify-self: start; } }
@media (max-width: 900px) { .cover { aspect-ratio: auto; min-height: 620px; } .cover-text { max-width: 80%; } }
@media (max-width: 520px) {
  .cover { min-height: 580px; }
  .cover-text { max-width: 92%; padding: 34px 0 0 22px; }
  .gc-connect { grid-template-columns: 1fr; }
  .gc-connect .btn { grid-column: 1; }
}
.welcome-grid { align-items: stretch; }
.cover { aspect-ratio: auto; min-height: 640px; }
.cover-img { object-position: 52% 50%; }
@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .cover { min-height: 620px; }
  .cover-img { object-position: 64% 50%; }
}
@media (max-width: 520px) {
  .cover { min-height: 560px; }
  .cover-img { object-position: 70% 50%; }
  .tiles a { font-size: .86rem; }
}
@media (max-width: 520px) { .cover-img { object-position: 84% 50%; } .cover-lede { max-width: 20ch; } }
