/* HHC's websites: one stylesheet for every site. The brand (concept C, 7 Nov 2026): Harper Green, limewash, stone and
   brass; Source Serif 4 for headings, Inter for text; line drawings in brass on each site's deep colour. Each site
   sets --accent (App.razor): its name, buttons and details, and a deep version of it behind its drawings. Written for
   WCAG 2.2 AA and older readers: 18px text, strong contrast, large targets, visible focus, nothing that needs a mouse. */

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/SourceSerif4Variable.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/InterVariable.woff2") format("woff2");
}

:root {
    --accent: #1f3b2d;
    --accent-deep: color-mix(in srgb, var(--accent) 50%, #0a0f0c);
    --green: #1f3b2d;
    --green-deep: #142a1f;
    --limewash: #f4f1ea;
    --stone: #d9d2c4;
    --paper: #fbfaf6;
    --ink: #1b211d;
    --soft: #4b544e;
    --brass: #b08a52;
    --brass-light: #dcbd84;
    --brass-text: #7a5826;
    --on-dark: #f4f1ea;
    --on-dark-soft: rgb(244 241 234 / 80%);
    --focus: #ffbf47;
    --ill-line: rgb(244 241 234 / 82%);
    --ill-accent: var(--brass-light);
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    --radius: 6px;
    --blueprint: linear-gradient(rgb(255 255 255 / 4.5%) 1px, transparent 1px) 0 0 / 32px 32px,
                 linear-gradient(90deg, rgb(255 255 255 / 4.5%) 1px, transparent 1px) 0 0 / 32px 32px;
    --four: repeat(4, minmax(0, 1fr));
}

@media (max-width: 60rem) { :root { --four: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { :root { --four: minmax(0, 1fr); } }

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

html { font-size: 112.5%; }

body { margin: 0; font-family: var(--sans); line-height: 1.6; color: var(--ink); background: var(--limewash); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h2 { margin: 0 0 1.75rem; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
p { margin: 0; }
img { max-width: 100%; }

a { color: var(--green); text-underline-offset: 0.15em; }

a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }

.skip { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--paper); z-index: 10; }
.skip:focus { left: 0.5rem; }

.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.eyebrow-light { color: var(--brass-light); }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 36rem; }

/* Buttons: one clear action, at least 44px tall. */
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.2rem;
    border-radius: var(--radius); border: 2px solid var(--accent); background: var(--accent); color: #fff;
    font-weight: 600; text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.button:hover { filter: brightness(1.12); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--stone); }
.button-quiet:hover { border-color: var(--ink); filter: none; }
.button-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.button-outline-light { background: transparent; border-color: rgb(244 241 234 / 55%); color: var(--on-dark); }
.button-outline-light:hover { border-color: var(--on-dark); filter: none; }
.button-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* The draft notice, and the canvas notes switch beside it. */
.draft { background: #f3e6c8; color: #4d3a10; font-size: 0.88rem; }
.draft-row { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; justify-content: space-between; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.draft a { color: #4d3a10; font-weight: 600; }

/* The logo: the mark, "HARPER", and the division under it in the site's colour. */
.lockup { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--green); }
.mark { width: 2.6rem; height: 2.6rem; flex: none; }
.lockup-words { display: flex; flex-direction: column; line-height: 1; }
.lockup-name { font: 600 1.45rem/1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase; margin-right: -0.16em; }
.lockup-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 0.4rem; white-space: nowrap; }
.lockup-division { align-self: stretch; display: inline-flex; align-items: center; padding-left: 0.6rem; border-left: 1px solid var(--stone); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--accent); }

.masthead { background: var(--paper); border-bottom: 1px solid var(--stone); }
.masthead-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.masthead-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.brand { text-decoration: none; border-radius: var(--radius); }

.site-nav { border-top: 1px solid var(--stone); }
.site-nav ul { list-style: none; margin: 0 auto; display: flex; gap: 0.25rem 1.75rem; overflow-x: auto; scrollbar-width: none; }
.site-nav a { display: block; padding: 0.7rem 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--stone); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* The way back from a division to the whole company and its other teams. */
.family-bar { background: var(--green); color: var(--on-dark); font-size: 0.88rem; }
.family-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.family-bar a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.family-bar a:hover { text-decoration: underline; }
.family-home { font-weight: 600; }
.family-teams { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.family-teams a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; }

/* Phones: the row of pages gives way to a Menu button listing every page and team. */
.site-menu { display: none; }
@media (max-width: 52rem) {
    .site-nav { display: none; }
    .family-teams { display: none; }
    .site-menu { display: block; padding-bottom: 0.75rem; }
    .site-menu > summary { list-style: none; cursor: pointer; width: 100%; justify-content: center; }
    .site-menu > summary::-webkit-details-marker { display: none; }
    .site-menu-icon { font-size: 1.15rem; line-height: 1; }
    .site-menu[open] > summary { margin-bottom: 0.5rem; }
    .site-menu ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
    .site-menu li a { display: flex; align-items: center; min-height: 48px; padding: 0 0.25rem; border-bottom: 1px solid var(--stone); color: var(--ink); text-decoration: none; font-weight: 500; }
    .site-menu li a[aria-current="page"] { color: var(--accent); font-weight: 700; }
    .site-menu-head { margin: 1rem 0 0.25rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
}

/* The drawings: lines in limewash, dimensions and callouts in brass. */
.ill { display: block; width: 100%; height: auto; color: var(--ill-line); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ill-glass { fill: currentColor; fill-opacity: 0.1; }
.ill-live { fill: var(--ill-accent); fill-opacity: 0.32; }
.ill-ground line { opacity: 0.55; }
.ill-accent { stroke: var(--ill-accent); color: var(--ill-accent); }
.ill-dash { stroke-dasharray: 3 4; }
.ill text { stroke: none; fill: var(--ill-accent); font: 600 11px/1 var(--mono); letter-spacing: 0.06em; }
.ill .ill-num, .ill .ill-dim { text-anchor: middle; }
.ill .ill-num { font-size: 12px; }
.ill .ill-left { text-anchor: start; }
.ill .ill-strong { font-size: 13px; }
.ill .ill-small { font-size: 9.5px; letter-spacing: 0.08em; }

/* The hero: the promise on the site's deep colour, the drawing, and an example card over it. */
.hero { background: var(--blueprint), var(--accent-deep); color: var(--on-dark); padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; }
.hero h1 { margin: 0 0 1.4rem; font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero-intro { font-size: 1.15rem; color: var(--on-dark-soft); max-width: 34rem; }
.hero-art { position: relative; padding-bottom: 7.5rem; }
.hero-example { position: absolute; left: -2rem; bottom: -1.5rem; width: min(17.5rem, 80%); }

.example { margin: 0; background: #fff; color: var(--ink); border: 1px solid var(--stone); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: 1.2rem 1.35rem 0.9rem; box-shadow: 0 24px 50px -24px rgb(0 0 0 / 55%); font-size: 0.92rem; }
.example figcaption { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.6rem; }
.example-tag { align-self: flex-start; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); background: var(--limewash); border: 1px solid var(--stone); border-radius: 3px; padding: 0.12rem 0.42rem; }
.example-title { font: 600 1.2rem/1.2 var(--serif); }
.example dl { margin: 0; }
.example-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--limewash); }
.example-line dt { color: var(--soft); }
.example-line dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 54rem) {
    .hero { padding: 2.75rem 0 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-art { padding-bottom: 0; }
    .hero-example { position: static; width: auto; margin-top: -2rem; }
}

/* A photo header: the photo fills the header under a wash of the site's deep colour, strongest behind the words,
   with a slow settle as the page opens. The example card sits over the photo. */
.hero.has-photo, .page-hero.has-photo { position: relative; isolation: isolate; background: var(--accent-deep); }
.hero.has-photo { display: flex; align-items: center; min-height: clamp(36rem, 78vh, 48rem); padding: 5rem 0 4rem; }
.page-hero.has-photo { display: flex; align-items: flex-end; min-height: clamp(22rem, 46vh, 30rem); padding: 4rem 0 3.5rem; }
.hero.has-photo > .wrap, .page-hero.has-photo > .wrap { position: relative; z-index: 1; width: 100%; }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: hero-settle 14s ease-out both; }
.hero.has-photo::before, .page-hero.has-photo::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--accent-deep) 94%, transparent) 0%, color-mix(in srgb, var(--accent-deep) 82%, transparent) 42%, color-mix(in srgb, var(--accent-deep) 30%, transparent) 100%),
        linear-gradient(0deg, rgb(10 15 12 / 45%) 0%, transparent 45%);
}
.hero.has-photo h1, .page-hero.has-photo h1 { text-shadow: 0 2px 18px rgb(0 0 0 / 30%); }
.hero.has-photo .hero-art { padding-bottom: 0; align-self: end; display: flex; justify-content: flex-end; }
.hero.has-photo .hero-example { position: static; width: min(19rem, 100%); box-shadow: 0 24px 60px rgb(0 0 0 / 35%); }
.hero-credit { position: absolute; right: 1rem; bottom: 0.6rem; z-index: 1; margin: 0; font-size: 0.72rem; color: rgb(255 255 255 / 78%); }
.hero-credit a { color: inherit; }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }
@media (max-width: 54rem) {
    .hero.has-photo { min-height: 0; padding: 3.5rem 0 3.5rem; }
    .hero.has-photo::before, .page-hero.has-photo::before {
        background: linear-gradient(180deg, color-mix(in srgb, var(--accent-deep) 72%, transparent) 0%, color-mix(in srgb, var(--accent-deep) 92%, transparent) 55%);
    }
    .hero.has-photo .hero-art { justify-content: stretch; }
    .hero.has-photo .hero-example { width: auto; margin-top: 0; }
}

/* Facts under the hero. */
.facts { background: var(--paper); border-bottom: 1px solid var(--stone); }
.facts-row { list-style: none; margin: 0 auto; display: grid; grid-template-columns: var(--four); }
.facts-row li { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.5rem 1rem 1.5rem 0; }
.facts-row b { font: 600 1.6rem/1.1 var(--serif); color: var(--accent); }
.facts-row span { color: var(--soft); font-size: 0.92rem; }

/* Sections. */
.band { padding: 5rem 0; background: var(--limewash); }
.band-quiet { background: var(--paper); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
@media (max-width: 40rem) { .band { padding: 3.25rem 0; } }

/* Divisions on the corporate site: each with its drawing on its own colour. */
.divisions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: var(--four); }
.division { --accent-deep: color-mix(in srgb, var(--accent) 50%, #0a0f0c); background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.division-art { background: var(--blueprint), var(--accent-deep); padding: 1rem 0.75rem 0.25rem; border-bottom: 4px solid var(--accent); }
.division-words { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.division-name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.division h3 a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.division p { color: var(--soft); font-size: 0.95rem; }

/* Worries and answers: the worry quiet, our answer strong. */
.pains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
.pain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem 2.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--stone); }
.pain-worry { color: var(--soft); font: italic 400 1.1rem/1.45 var(--serif); }
.pain-worry::before { content: "“"; }
.pain-worry::after { content: "”"; }
.pain-answer { font-weight: 600; padding-left: 2rem; position: relative; }
.pain-answer::before { content: ""; position: absolute; left: 0; top: 0.22rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--accent); }
.pain-answer::after { content: ""; position: absolute; left: 0.42rem; top: 0.44rem; width: 0.36rem; height: 0.62rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 40rem) { .pain { grid-template-columns: 1fr; } }

/* Photos of the work: one large, two beside it. */
.gallery { background: var(--green-deep); color: var(--on-dark); padding: 5rem 0; }
.gallery .eyebrow { color: var(--brass-light); }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1rem; }
.photo { margin: 0; position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.photo-large { grid-row: span 2; }
.photo img, .photo-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.photo-large img, .photo-large .photo-empty { aspect-ratio: auto; height: 100%; min-height: 22rem; }
.photo-empty { display: grid; place-content: center; justify-items: center; gap: 0.6rem; background: var(--blueprint), var(--accent-deep); border: 1px dashed rgb(244 241 234 / 30%); color: rgb(244 241 234 / 60%); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.photo-empty-mark { width: 3rem; height: 3rem; opacity: 0.5; }
.photo figcaption { font-size: 0.88rem; color: var(--on-dark-soft); }
.photo-tag { position: absolute; top: 0.6rem; left: 0.6rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: rgb(20 42 31 / 82%); color: var(--on-dark); padding: 0.2rem 0.5rem; border-radius: 3px; }
@media (max-width: 44rem) { .gallery-grid { grid-template-columns: 1fr; } .photo-large { grid-row: auto; } .photo-large img, .photo-large .photo-empty { min-height: 0; aspect-ratio: 4 / 3; } }

/* What we offer, and more pages. */
.services, .more { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: var(--four); }
.service, .more-card { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; }
.service { border-top: 4px solid var(--accent); }
.service p, .more-card p { color: var(--soft); font-size: 0.95rem; }
.more { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.more-card h3 a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.more-card h3 a::after { content: " →"; color: var(--accent); }

/* How it works: a real order, so numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; grid-template-columns: var(--four); counter-reset: step; }
.step { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font: 600 2.6rem/1 var(--serif); color: var(--brass-text); margin-bottom: 0.7rem; }
.step p { color: var(--soft); }

/* The promise and the gains, on Harper Green. */
.band-green { background: var(--blueprint), var(--green); color: var(--on-dark); }
.band-green h2 { max-width: 44rem; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 2.5rem; }
.gains { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.gain { border-top: 1px solid rgb(244 241 234 / 35%); padding-top: 1rem; }
.gain h3 { color: #fff; }
.gain p { color: var(--on-dark-soft); }
.portal-teaser { margin-top: 3rem; padding: 1.5rem 1.75rem; border: 1px solid rgb(244 241 234 / 30%); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: rgb(255 255 255 / 5%); }
.portal-teaser h3 { color: #fff; }
.portal-teaser p { color: var(--on-dark-soft); }
.band-green .canvas-note, .hero .canvas-note, .gallery .canvas-note, .page-hero .canvas-note { background: rgb(255 255 255 / 8%); color: var(--on-dark); border-color: rgb(220 189 132 / 60%); }
.band-green .canvas-note-label, .hero .canvas-note-label, .gallery .canvas-note-label, .page-hero .canvas-note-label { color: var(--brass-light); }

/* Contact. */
.contact { background: var(--stone); }
.contact h2 { margin-bottom: 0.75rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.contact-ways { display: flex; flex-direction: column; gap: 0.75rem; }
.contact .button-quiet { border-color: var(--soft); background: var(--paper); }
@media (max-width: 44rem) { .contact-grid { grid-template-columns: 1fr; } }

/* A site's other pages. */
.page-hero { background: var(--blueprint), var(--accent-deep); color: var(--on-dark); padding: 3.5rem 0; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.page-hero h1 { margin: 0 0 1rem; font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.05; }
.page-hero-summary { font-size: 1.15rem; color: var(--on-dark-soft); max-width: 34rem; }
@media (max-width: 54rem) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-ill { max-width: 26rem; } }
.page-body { padding-top: 3rem; padding-bottom: 4rem; }
.page-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem 3rem; padding: 2rem 0; border-top: 1px solid var(--stone); }
.page-section h2 { font-size: 1.6rem; margin: 0; }
.page-section p { max-width: 38rem; font-size: 1.05rem; }
@media (max-width: 44rem) { .page-section { grid-template-columns: 1fr; } }
.big-link { font: 600 1.6rem/1.2 var(--serif); }

.ticks { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.ticks li { padding-left: 1.8rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.3rem; top: 0.3rem; width: 0.4rem; height: 0.72rem; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
@media (max-width: 44rem) { .split { grid-template-columns: 1fr; } }

/* "Your project online": an example of the client's project page. */
.portal-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
@media (max-width: 54rem) { .portal-hero-grid { grid-template-columns: 1fr; } }
.portal-mock { margin: 0; background: var(--paper); color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -28px rgb(0 0 0 / 65%); border: 1px solid rgb(244 241 234 / 30%); font-size: 0.88rem; }
.portal-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; background: var(--green); color: var(--on-dark); font-weight: 600; }
.portal-bar .example-tag { margin-left: auto; }
.portal-bar-mark { width: 1.4rem; height: 1.4rem; }
.portal-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.portal-title { font: 600 1.35rem/1.2 var(--serif); }
.portal-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stages, 5), minmax(0, 1fr)); gap: 0.35rem; }
.portal-stages li { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.55rem; border-top: 5px solid var(--stone); font-size: 0.74rem; }
.portal-stages li span { font-weight: 600; }
.portal-stages li b { font-weight: 400; color: var(--soft); }
.portal-stages .done { border-top-color: var(--green); }
.portal-stages .now { border-top-color: var(--brass); }
.portal-update { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; padding: 0.8rem; background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); }
.portal-photo { background: var(--blueprint), var(--green-deep); border-radius: 4px; padding: 0.3rem; }
.portal-update-who { font-size: 0.74rem; color: var(--soft); margin-bottom: 0.2rem; }
.portal-costs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.portal-costs caption { text-align: left; font-weight: 600; margin-bottom: 0.3rem; }
.portal-costs th, .portal-costs td { padding: 0.35rem 0; border-top: 1px solid var(--stone); text-align: left; font-weight: 400; }
.portal-costs td { text-align: right; }
.portal-costs tfoot th, .portal-costs tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }

/* Footer, on deep green. */
.footer { background: var(--green-deep); color: var(--on-dark); padding: 3.5rem 0; font-size: 0.95rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }
.footer .lockup { color: var(--on-dark); }
.footer .lockup-division { color: var(--on-dark); opacity: 0.8; border-left-color: currentColor; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2rem; }
.footer-brand p { margin-top: 1rem; opacity: 0.8; }
.footer-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 0.75rem; }
.site-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-links a[aria-current="page"] { font-weight: 700; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-legal { opacity: 0.7; font-size: 0.85rem; margin-top: 0.5rem; }

/* The canvas notes (?notes=1, preview only): where each part of the page comes from. */
.canvas-note { display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 1.25rem; padding: 0.55rem 0.8rem; border: 1px dashed var(--brass); border-radius: var(--radius); background: #fbf5e9; color: var(--ink); font-size: 0.85rem; }
.canvas-note-label { flex: none; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); }

/* Not found. */
.plain-page { padding: 4rem 0; }
.plain-page h1 { font-size: 2.2rem; margin: 0 0 1rem; }

/* The holding page, until go-live: the mark and the name on Harper Green. */
.holding { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--blueprint), var(--green); color: var(--on-dark); }
.holding-card { max-width: 32rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.holding-mark { width: 88px; height: 88px; margin-bottom: 28px; color: var(--on-dark); }
.holding-name { font: 600 clamp(2.4rem, 8vw, 3.4rem)/1 var(--serif); letter-spacing: 0.18em; text-transform: uppercase; margin-right: -0.18em; }
.holding-division { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; margin-top: 0.8rem; opacity: 0.85; }
.holding h1 { margin: 2.5rem 0 0; font: 400 1.25rem/1.4 var(--sans); color: var(--on-dark-soft); }

@media (prefers-reduced-motion: no-preference) {
    .button { transition: filter 140ms ease, border-color 140ms ease; }
}

/* Photo credits (example photos only) and the photo in the project page example. */
.photo-credit { display: block; font-size: 0.72rem; opacity: 0.75; margin-top: 0.15rem; }
.photo-credit a { color: inherit; }
.portal-photo-img { width: 7.5rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }

/* The enquiry form (Contact, and later share pages): big fields, labels above, hints and errors tied to their fields,
   a clear focus ring, at least 44px targets. Errors are marked by words and a thick bar, never by colour alone. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.enquiry { max-width: 38rem; }
.enquiry-form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.field-hint { margin: 0 0 0.4rem; color: var(--soft); font-size: 0.95rem; }
.field-message { margin: 0 0 0.4rem; color: #8a1c1c; font-weight: 600; }
.field-error { border-left: 5px solid #8a1c1c; padding-left: 0.9rem; }
.enquiry-form input:not([type="radio"], [type="checkbox"]), .enquiry-form textarea {
    display: block; width: 100%; box-sizing: border-box; min-height: 2.75rem; padding: 0.55rem 0.7rem;
    font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--soft); border-radius: var(--radius);
}
.enquiry-form textarea { min-height: 8rem; resize: vertical; }
.enquiry-form .input-short { max-width: 14rem; }
.enquiry-form [aria-invalid="true"] { border-color: #8a1c1c; }
.enquiry-form input:focus-visible, .enquiry-form textarea:focus-visible, .enquiry-form button:focus-visible {
    outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus);
}
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choice { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; }
.choice input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--accent); flex: none; }
.choice label { font-weight: 500; }
.enquiry-form .button { align-self: flex-start; font-size: 1.05rem; padding-inline: 1.6rem; }
.enquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 4px solid #8a1c1c; border-radius: var(--radius); background: #fff; padding: 1rem 1.25rem; }
.error-summary:focus { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); }
.error-summary h3 { margin-bottom: 0.5rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: #8a1c1c; font-weight: 600; }
.enquiry-thanks { border-left: 6px solid var(--accent); background: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.enquiry-thanks:focus { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); }
.enquiry-thanks h3 { font-size: 1.4rem; }
.notice-version { color: var(--soft); font-size: 0.95rem; margin-top: 2rem; }

/* A client's share page (docs/adr/0009): their words on the division's colour, then their photos, then how to get in
   touch. Photos keep their space while they load (width and height on each), and every link shows the focus ring. */
.share-words { margin: 0; max-width: 40rem; }
.share-words p { font: 400 clamp(1.25rem, 2.6vw, 1.6rem)/1.4 var(--serif); margin: 0 0 0.75rem; }
.share-words footer { color: var(--on-dark-soft); font-size: 1rem; margin-top: 1rem; }
.share-words footer::before { content: "\2014\00a0"; }
.share-section { padding: 1.5rem 0 2.5rem; }
.share-section h2 { font-size: 1.6rem; margin: 0 0 1.25rem; }
.share-pair { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.share-pair figure { margin: 0; }
.share-pair figcaption { font-weight: 600; margin-top: 0.5rem; }
.share-photos { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.share-photos.is-single { grid-template-columns: minmax(0, 48rem); }
.share-pair img, .share-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--stone); }
.share-pair a, .share-photos a { display: block; border-radius: 6px; }
.share-pair a:focus-visible, .share-photos a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.share-note { color: var(--soft); font-size: 0.95rem; border-top: 1px solid var(--stone); padding-top: 1.5rem; margin-top: 1rem; }

/* A phone: the logo with the division beside it was wider than the screen (it pushed every division's page
   sideways). There the division's name moves into the strip above, beside the way back. */
.family-here { display: none; }
@media (max-width: 30rem) {
    .lockup .lockup-division { display: none; }
    .family-here { display: inline-flex; align-items: center; font-weight: 700; color: var(--brass-light); }
}
.site-menu > summary { gap: 0.5rem; }
