/* South East Party Walls
   Layout concept: a surveyor's drawing sheet. Slate title blocks, hairline rules,
   mono labels for sections of the Act and postcodes, tape-measure yellow for the party wall itself. */
:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #17222a;
  --muted: #4a5862;
  --line: #d4dce1;
  --line-strong: #a3b2bc;
  --slate: #1e2b34;
  --slate-2: #2a3a45;
  --on-slate: #eef3f5;
  --on-slate-muted: #b8c5cd;
  --tape: #f2c12e;
  --tape-ink: #16130a;
  --tape-soft: #fbf0c6;
  --brick: #ad422b;
  --brick-soft: #f4ddd6;
  --focus: #1769aa;
  --hatch: #cfd8dd;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.22rem;
  --step-2: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem);
  --step-4: clamp(2.05rem, 1.4rem + 2.9vw, 3.35rem);

  --radius: 3px;
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10171c;
    --surface: #162029;
    --ink: #e7edf0;
    --muted: #a8b5bd;
    --line: #2a3640;
    --line-strong: #4b5b67;
    --slate: #0a1014;
    --slate-2: #16212a;
    --on-slate: #e7edf0;
    --on-slate-muted: #9fb0bb;
    --tape: #f2c12e;
    --tape-ink: #16130a;
    --tape-soft: #3a3219;
    --brick: #d8694f;
    --brick-soft: #3b2520;
    --focus: #7cc0f5;
    --hatch: #24313b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10171c;
  --surface: #162029;
  --ink: #e7edf0;
  --muted: #a8b5bd;
  --line: #2a3640;
  --line-strong: #4b5b67;
  --slate: #0a1014;
  --slate-2: #16212a;
  --on-slate: #e7edf0;
  --on-slate-muted: #9fb0bb;
  --tape: #f2c12e;
  --tape-ink: #16130a;
  --tape-soft: #3a3219;
  --brick: #d8694f;
  --brick-soft: #3b2520;
  --focus: #7cc0f5;
  --hatch: #24313b;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 112%; }
h2 { font-size: var(--step-3); font-weight: 760; font-stretch: 108%; }
h3 { font-size: var(--step-1); font-weight: 720; font-stretch: 104%; }
h4 { font-size: var(--step-0); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: 0.35em; }
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--tape);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
b, strong { font-weight: 700; }
small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 50;
  background: var(--tape); color: var(--tape-ink); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.muted { color: var(--muted); }

/* placeholders for details still to be supplied */
.ph {
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 500;
  background: var(--tape-soft);
  color: var(--ink);
  border: 1px dashed var(--line-strong);
  padding: 0.05em 0.4em;
  border-radius: 2px;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--tape-ink);
  border-radius: var(--radius);
  background: var(--tape);
  color: var(--tape-ink);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--small { padding: 8px 14px; font-size: 0.92rem; }
.on-slate .btn--ghost { color: var(--on-slate); border-color: var(--on-slate); }
.on-slate .btn--ghost:hover { background: var(--on-slate); color: var(--slate); }
.on-slate .btn:not(.btn--ghost):hover { background: var(--on-slate); color: var(--slate); border-color: var(--on-slate); }
.btn .ph { background: transparent; border-color: currentColor; color: inherit; }

/* ---------- header ---------- */
.site-header { background: var(--slate); color: var(--on-slate); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 12px 20px; min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--on-slate); }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-stretch: 116%;
  font-size: 1.08rem; letter-spacing: 0.005em; line-height: 1.1;
}
.brand__sub {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-slate-muted);
  margin-top: 3px;
}
.menu-toggle {
  margin-left: auto;
  font: 700 0.95rem/1 var(--font-body);
  background: transparent; color: var(--on-slate);
  border: 2px solid var(--on-slate); border-radius: var(--radius);
  padding: 10px 14px; cursor: pointer;
}
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.nav li + li { margin-top: 0; }
.nav a:not(.btn) {
  display: block; padding: 10px 9px;
  color: var(--on-slate); text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--tape); }
.nav__cta { margin-left: 8px; }
@media (max-width: 1080px) {
  .js .nav { display: none; width: 100%; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding-block: 8px 14px; }
  .nav a:not(.btn) { padding: 12px 2px; border-bottom: 1px solid var(--slate-2); font-size: 1.02rem; }
  .nav__cta { margin: 14px 0 0; }
  .nav__cta .btn { width: 100%; }
}
@media (min-width: 1081px) { .menu-toggle { display: none; } }
@media (max-width: 400px) { .brand__name { font-size: 0.98rem; font-stretch: 108%; } .brand__mark { width: 34px; height: 34px; } .brand { gap: 10px; } }

/* ---------- breadcrumbs + page head ---------- */
.page-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head .wrap { padding-block: clamp(26px, 4vw, 52px); }
.page-head h1 { max-width: 22ch; margin-bottom: 0.35em; }
.page-head .lede { margin-bottom: 0; color: var(--ink); }
.crumbs ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.86rem; color: var(--muted); }
.crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration-color: var(--line-strong); }
.page-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.page-facts li { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 2px; }

/* ---------- page body ---------- */
.page-body { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(32px, 5vw, 64px); }
@media (min-width: 980px) {
  .page-body--aside { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
.page-main { min-width: 0; }
.page-aside { min-width: 0; display: grid; gap: 22px; }
@media (min-width: 980px) {
  .page-aside { position: sticky; top: calc(20px + env(safe-area-inset-top, 0px)); }
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.1em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose > :last-child { margin-bottom: 0; }
.prose ul li::marker { color: var(--brick); }

.quote-card { background: var(--slate); color: var(--on-slate); padding: 22px; border-radius: var(--radius); }
.quote-card .eyebrow { color: var(--on-slate-muted); }
.quote-card__title { font-family: var(--font-display); font-weight: 760; font-stretch: 108%; font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.6em; }
.quote-card p { font-size: 0.95rem; }
.quote-card .ph { color: var(--ink); }
.quote-card .btn { width: 100%; margin-top: 4px; }
.quote-card dl { margin: 0 0 1em; display: grid; gap: 6px; font-size: 0.95rem; }
.quote-card dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-slate-muted); }
.quote-card dd { margin: 0 0 6px; }

.toc { border: 1px solid var(--line); padding: 16px 18px; border-radius: var(--radius); background: var(--surface); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.93rem; }
.toc li + li { margin-top: 0.4em; }
.toc a { text-decoration-color: var(--line-strong); }

/* notes, tables, figures inside content */
.note {
  border-left: 4px solid var(--tape);
  background: var(--surface);
  padding: 14px 18px; margin: 1.5em 0;
}
.note > :last-child { margin-bottom: 0; }
.note__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-weight: 500; font-size: 0.76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.num, .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.figure { margin: 1.8em 0; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

.photo-slot { margin: 0; }
.photo-slot__box {
  aspect-ratio: 4 / 3; max-width: 100%;
  border: 1px solid var(--line-strong);
  background: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 11px), var(--surface);
  display: grid; place-items: center; text-align: center; padding: 16px;
  color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: .04em;
}
.photo-slot figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 6.5vw, 92px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section__head > :last-child { margin-bottom: 0; }
.band { background: var(--slate); color: var(--on-slate); }
.band .eyebrow { color: var(--on-slate-muted); }
.band .section__head p:not(.eyebrow) { color: var(--on-slate-muted); }
.band a:not(.btn) { color: var(--on-slate); }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); background: var(--bg); }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: clamp(36px, 5.5vw, 76px); }
@media (min-width: 940px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); } }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 3.9rem); font-stretch: 118%; line-height: 1.02; max-width: 15ch; }
.hero .lede { margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 0.95rem; color: var(--muted); }
.hero__facts li { margin: 0; padding-left: 22px; position: relative; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 8px; border-left: 2px solid var(--brick); border-bottom: 2px solid var(--brick); transform: rotate(-45deg); }
.hero__facts b { color: var(--ink); }

.elevation { margin: 0; border: 1px solid var(--line-strong); background: var(--surface); }
.elevation svg { display: block; width: 100%; height: auto; }
.titleblock {
  display: grid; grid-template-columns: auto 1fr auto; border-top: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.titleblock span { padding: 8px 12px; }
.titleblock span + span { border-left: 1px solid var(--line-strong); }
@media (max-width: 480px) { .titleblock { grid-template-columns: 1fr 1fr; } .titleblock span:last-child { display: none; } }

/* drawing strokes, shared by every inline diagram */
.d-face { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.d-roof { fill: var(--line); stroke: var(--ink); stroke-width: 1.4; }
.d-line { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.d-thin { fill: none; stroke: var(--muted); stroke-width: 1; }
.d-dash { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; }
.d-wall { fill: var(--brick); stroke: none; }
.d-wall-soft { fill: var(--brick-soft); stroke: var(--brick); stroke-width: 1.4; }
.d-glass { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }
.d-ground { fill: var(--hatch); stroke: none; }
.d-ink { fill: var(--ink); }
.d-tape { fill: var(--tape); }
.d-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; fill: var(--muted); text-transform: uppercase; }
.d-label--ink { fill: var(--ink); }
.d-label--brick { fill: var(--brick); }

/* ---------- home components ---------- */
.sides { display: grid; gap: 20px; }
@media (min-width: 820px) { .sides { grid-template-columns: 1fr 1fr; } }
.side { border: 1px solid var(--line-strong); background: var(--surface); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; border-radius: var(--radius); }
.side__tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--tape); color: var(--tape-ink); padding: 3px 9px; margin-bottom: 14px; border-radius: 2px;
}
.side--neighbour .side__tag { background: var(--ink); color: var(--bg); }
.side h3 { font-size: var(--step-2); }
.side .btn { align-self: flex-start; margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 11px; height: 6px; border-left: 2px solid var(--brick); border-bottom: 2px solid var(--brick); transform: rotate(-45deg); }

.services { display: grid; gap: 16px; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); background: var(--bg); padding: 20px; border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .15s ease;
}
.section--alt .service { background: var(--bg); }
.service:hover { border-color: var(--ink); }
.service__tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .07em; color: var(--brick); text-transform: uppercase; }
.service h3 { margin: 0; font-size: 1.15rem; }
.service p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.service__go { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 0.92rem; }

.split { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } }
.split--media { align-items: center; }
@media (min-width: 900px) { .split--media { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

.housing { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.housing > div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .housing > div { grid-template-columns: 200px 1fr; } }
.housing dt { font-family: var(--font-display); font-weight: 720; font-stretch: 104%; font-size: 1.05rem; }
.housing dd { margin: 0; color: var(--muted); }

.fees { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 760px) { .fees { grid-template-columns: repeat(3, 1fr); } }
.fee { border: 1px solid var(--line-strong); background: var(--bg); padding: 22px; border-radius: var(--radius); display: flex; flex-direction: column; }
.fee__what { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.fee__price { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 2.2rem; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.fee__price .ph { font-size: 0.42em; vertical-align: middle; }
.fee__price .fee__from { font-size: 0.45em; font-weight: 600; font-stretch: 100%; vertical-align: 0.35em; margin-right: 0.1em; }
.fee__per { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.fee p:last-child { margin-bottom: 0; font-size: 0.95rem; }

/* process timeline: a measured run of days */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { margin: 0; position: relative; padding: 0 0 26px 54px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem;
  background: var(--tape); color: var(--tape-ink); border-radius: 2px;
}
.steps li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; border-left: 2px dashed var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps__when { display: block; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 0.3em; }
.steps p { margin: 0; }
.band .steps li::after { border-left-color: var(--slate-2); }
.band .steps__when { color: var(--on-slate-muted); }
.band .steps p { color: var(--on-slate-muted); }
@media (min-width: 1000px) {
  .steps--ruler { grid-template-columns: repeat(6, 1fr); gap: 0 18px; border-top: 2px solid var(--on-slate-muted); padding-top: 0; }
  .steps--ruler li { padding: 56px 0 0; }
  .steps--ruler li::before { top: 12px; width: 34px; height: 34px; }
  .steps--ruler li::after { left: 0; top: -2px; bottom: auto; height: 12px; border-left: 2px solid var(--on-slate-muted); }
  .steps--ruler li:last-child::after { display: block; }
}

.area-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .area-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  text-decoration: none; color: inherit;
}
.area:hover { border-color: var(--ink); }
.area__name { font-weight: 700; }
.area__pc { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: .03em; }
.area--home { border-color: var(--ink); }
.area--home .area__name::after { content: "Our base"; margin-left: 8px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; background: var(--tape); color: var(--tape-ink); padding: 1px 6px; border-radius: 2px; vertical-align: 2px; }

.creds { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 2px; }

.reviews-slot { border: 1px dashed var(--line-strong); padding: 24px; border-radius: var(--radius); background: var(--surface); max-width: 760px; }
.reviews-slot > :last-child { margin-bottom: 0; }

.photo { margin: 1.8em 0; }
.photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--hatch); }
.photo figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.photo--tall { max-width: 460px; }
.split .photo { margin: 0; }
.photo-pair { display: grid; gap: 16px; margin: 1.8em 0; }
@media (min-width: 640px) { .photo-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.photo-pair .photo { margin: 0; }

/* places + chips */
.chips { list-style: none; padding: 0; margin: 0 0 1.5em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 2px; font-size: 0.95rem; }
.chips .mono { color: var(--muted); font-size: 0.78rem; margin-left: 6px; }

.jobs { display: grid; gap: 16px; margin: 1.2em 0 1.8em; }
@media (min-width: 640px) { .jobs { grid-template-columns: 1fr 1fr; } }
.job { border: 1px dashed var(--line-strong); padding: 16px; border-radius: var(--radius); background: var(--surface); }
.job p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.job .eyebrow { margin-bottom: 6px; }

/* cards for hubs + related */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.2em 0 2em; }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--ink); }
.card__tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brick); }
.card__title { font-family: var(--font-display); font-weight: 720; font-stretch: 104%; font-size: 1.1rem; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.group-title { font-size: var(--step-2); margin-top: 1.8em; }
.group-title:first-child { margin-top: 0; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-2); }

/* faq */
.faq { margin-top: 3rem; }
.faq h2 { font-size: var(--step-3); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative;
  font-weight: 700; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 12px;
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 500; color: var(--brick);
}
.faq details[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 0 18px; max-width: 68ch; }
.faq__a > :last-child { margin-bottom: 0; }
.section .faq { margin-top: 0; }

/* cta band */
.cta-band { background: var(--slate); color: var(--on-slate); }
.cta-band .wrap { padding-block: clamp(40px, 5.5vw, 72px); display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 1.3fr) auto; } }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: var(--on-slate-muted); max-width: 56ch; }
.cta-band .ph { color: var(--ink); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* forms */
.form { display: grid; gap: 16px; max-width: 720px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: grid; gap: 8px; }
.radios label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; border-radius: var(--radius); cursor: pointer; }
.radios input { width: auto; margin-top: 5px; accent-color: var(--brick); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.check input { margin-top: 5px; accent-color: var(--brick); }
.form-status { border-left: 4px solid var(--tape); background: var(--surface); padding: 12px 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* contact + hub layouts */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-size: 1.05rem; }

/* notice checker tool */
.tool { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius); }
.tool__part { padding: clamp(18px, 3vw, 30px); }
.tool__part + .tool__part { border-top: 1px solid var(--line-strong); }
.tool__part h2 { font-size: var(--step-2); }
.works { display: grid; gap: 8px; }
.works label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; }
.works input { margin-top: 5px; accent-color: var(--brick); flex: none; }
.works .mono { color: var(--brick); font-size: 0.78rem; display: block; margin-top: 2px; }
.result { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--tape); background: var(--bg); }
.result > :last-child { margin-bottom: 0; }
.result h3 { margin-bottom: 0.4em; }
.timeline { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline li { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--font-mono); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.example-flag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--tape-soft); border: 1px dashed var(--line-strong); padding: 2px 8px; border-radius: 2px; }

/* notice-type diagrams */
.diagrams { display: grid; gap: 16px; margin: 1.6em 0; }
@media (min-width: 760px) { .diagrams { grid-template-columns: repeat(3, 1fr); } }
.diagrams figure { margin: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px; }
.diagrams figcaption { font-size: 0.9rem; margin-top: 6px; }
.diagrams figcaption b { display: block; }

/* ---------- footer ---------- */
.skyline { display: block; width: 100%; height: 70px; margin-top: 0; }
.skyline path, .skyline rect, .skyline polygon { fill: var(--slate); }
.site-footer { background: var(--slate); color: var(--on-slate); font-size: 0.95rem; }
.site-footer a { color: var(--on-slate); text-decoration-color: var(--slate-2); }
.site-footer a:hover { text-decoration-color: var(--tape); }
.footer-grid { display: grid; gap: 30px; padding-block: 18px 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.footer-title { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-slate-muted); margin: 0 0 12px; }
.site-footer .brand { margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 6px; }
.footer-brand p { color: var(--on-slate-muted); }
.footer-brand .ph, .footer-legal .ph { color: var(--ink); }
.footer-nap { font-style: normal; display: grid; gap: 4px; margin-bottom: 1em; }
.footer-legal { border-top: 1px solid var(--slate-2); padding-block: 18px 26px; color: var(--on-slate-muted); font-size: 0.84rem; display: grid; gap: 6px; }
.footer-legal p { margin: 0; }

/* mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px;
  background: var(--slate); border-top: 1px solid var(--slate-2);
  padding-top: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.action-bar .btn { flex: 1; padding-block: 11px; }
@media (max-width: 899px) { body { padding-bottom: 76px; } }
@media (min-width: 900px) { .action-bar { display: none; } }

/* placeholders inside buttons take the button's own colours */
.btn .ph, .on-slate .btn .ph, .cta-band .btn .ph { background: transparent; border-color: currentColor; color: inherit; }
.cta-band + .site-footer { border-top: 1px solid var(--slate-2); }
@media (max-width: 440px) {
  .brand__sub { display: none; }
  .header-inner { gap: 10px 12px; min-height: 64px; }
  .menu-toggle { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .action-bar, .cta-band, .page-aside, .skyline { display: none !important; }
  body { background: #fff; color: #000; }
}
