/* ERE PMS design system. Follows ERE Brand Guidelines v2 (Sep 2026):
   - Four neutrals plus the website's warm greys. No accent colour, no gradients, no tints.
   - Montserrat for everything: headlines open light and land bold on one phrase; small tracked
     capitals (eyebrows) name a section before the headline speaks.
   - Bebas Neue only for big numerals: amounts, counts, dates in stat rows.
   - Structure from hairlines and space. No cards, no shadows, no rounded panels, no chips.
     The black panel is the one dramatic device on a page (staff sidebar, entrance art, the band).
   - The recurring device: a 1 px rule that starts at the page edge and stops short (.mark).
   - Red, amber and green appear only as a small square beside a word (.status).
   App adaptations for WCAG 2.2 AA: small grey type uses darker warm greys than print
   (#5E5A53, #6E675C) to keep 4.5:1 on paper; field borders use Sand for 3:1. */

@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-wght-normal.d16dfe26bcd7.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.311d352d9323.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/bebas-neue-latin-ext-400-normal.089e175e5cfe.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/bebas-neue-latin-400-normal.5853435d21b1.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand neutrals */
  --black: #141414;
  --ink: #1F1C17;
  --paper: #F6F6F6;
  --greige: #DFDCD5;
  /* Website supporting tones */
  --body: #2A2722;
  --espresso: #2B2822;
  --sand: #8D8474;
  --page: #ECEAE5;
  --hairline: #E4E1DB;
  --white: #FFFFFF;
  /* Accessible small-type greys (app adaptation) */
  --text-2: #5E5A53;
  --eyebrow: #6E675C;
  --on-dark-2: #A8A298;
  --on-dark-3: #8F897F;
  --dark-line: #2E2A25;
  /* Verdicts: a marker beside a word, never decoration */
  --ok: #2F6B4F;
  --warn: #8A6516;
  --bad: #9B3030;

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --num: "Bebas Neue", "Montserrat", "Arial Narrow", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 56px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--body);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.on-dark :focus-visible, .side :focus-visible, .band :focus-visible, .entrance__art :focus-visible { outline-color: var(--white); }
::selection { background: var(--black); color: var(--white); }
h1, h2, h3, h4 { margin: 0; color: var(--black); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 b, h2 b, h1 strong, h2 strong, .display b, .h1 b, .h2 b { font-weight: 700; }
h1, .h1 { font-size: clamp(1.9rem, 1.45rem + 1.7vw, 2.85rem); line-height: 1.06; letter-spacing: -0.025em; }
h2, .h2 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 2rem); line-height: 1.12; }
h3, .h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--black); color: var(--white); padding: 10px 14px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.display { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -0.035em; font-weight: 300; color: var(--black); margin: 0; text-wrap: balance; }
.h1, .h2 { text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 0.98rem + 0.32vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 36em; }
.eyebrow { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--eyebrow); line-height: 1.4; margin: 0 0 14px; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }
.strong { font-weight: 600; color: var(--black); }
.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.num { font-family: var(--num); font-weight: 400; letter-spacing: 0.012em; line-height: 0.92; color: var(--black); }
.num-xl { font-size: clamp(3.6rem, 2.4rem + 4.4vw, 6.4rem); }
.num-l { font-size: clamp(2.6rem, 2.1rem + 1.8vw, 3.6rem); }
.num-m { font-size: 2.1rem; }
.num-s { font-size: 1.55rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 24px; }
.mt-l { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

/* The hairline from the left: starts at the page edge, stops just past the content edge. Each
   layout says where its page edge is with --edge (distance from that edge to the content). */
.mark::before {
  content: ""; display: block; height: 1px; background: var(--black);
  width: calc(var(--edge, var(--gutter)) + 56px);
  margin: 0 0 18px calc(-1 * var(--edge, var(--gutter)));
}
.on-dark .mark::before, .side .mark::before, .band .mark::before, .entrance__art .mark::before { background: var(--greige); }

/* Icons: Lucide sprite, thin strokes to sit with light Montserrat. */
.i { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-s { width: 16px; height: 16px; }
.i-l { width: 26px; height: 26px; stroke-width: 1.25; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.cols { display: grid; gap: 56px 64px; }
@media (min-width: 1024px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .cols-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cols-8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.section { margin-top: 64px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem); }
.section-head a { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 26px;
  border: 1px solid var(--black); border-radius: 0; background: var(--black); color: var(--white);
  font: 600 0.75rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: var(--greige); border-color: var(--greige); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--greige); }
.btn-ghost-light:hover { background: var(--white); color: var(--black); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: var(--white); }
.btn-block { width: 100%; }
.btn-s { min-height: 40px; padding: 0 18px; font-size: 0.7rem; }
.btn .i { width: 16px; height: 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; color: var(--black); text-decoration: none; }
.go .i { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.go:hover { text-decoration: underline; }
.go:hover .i { transform: translateX(4px); }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Status: a square marker beside a word ---------- */
.status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--body); white-space: nowrap; line-height: 1.2;
}
.status::before { content: ""; width: 7px; height: 7px; background: var(--s, var(--sand)); flex: none; }
.status-ok { --s: var(--ok); }
.status-warn { --s: var(--warn); }
.status-bad { --s: var(--bad); }
.status-black { --s: var(--black); }
.status-quiet { --s: var(--greige); }
.on-dark .status, .side .status { color: var(--greige); }

/* ---------- Stat rows (Bebas numerals) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--black); margin: 0; }
.stat { padding: 20px 16px 24px 0; border-bottom: 1px solid var(--hairline); min-width: 0; }
.stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--hairline); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 24px 24px 28px 0; }
  .stat:nth-child(even) { padding-left: 0; border-left: 0; }
  .stat + .stat { padding-left: 24px; border-left: 1px solid var(--hairline); }
}
.stat__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--eyebrow); }
.stat__value { font-family: var(--num); font-size: clamp(2.5rem, 2rem + 1.7vw, 3.6rem); line-height: 0.95; color: var(--black); margin: 12px 0 8px; letter-spacing: 0.01em; }
.stat__value small { font-size: 0.5em; margin-left: 2px; }
.stat__note { font-size: 0.82rem; color: var(--text-2); line-height: 1.45; }

/* ---------- Lists of rows (instead of cards) ---------- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.list > li { border-bottom: 1px solid var(--hairline); }
.list-quiet { border-top-color: var(--hairline); }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 18px 0; color: inherit; text-decoration: none; }
.item-lead { grid-template-columns: 64px minmax(0, 1fr) auto; }
.item__lead { font-family: var(--num); font-size: 1.5rem; line-height: 1; color: var(--black); }
.item__lead small { display: block; font-family: var(--font); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--eyebrow); margin-top: 4px; }
.item__title { font-weight: 600; color: var(--black); font-size: 0.97rem; line-height: 1.35; }
.item__meta { font-size: 0.85rem; color: var(--text-2); margin-top: 3px; line-height: 1.45; }
.item__aside { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.item__amount { font-weight: 600; color: var(--black); font-variant-numeric: tabular-nums; white-space: nowrap; }
a.item:hover .item__title { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .item:has(> .item__aside) { grid-template-columns: minmax(0, 1fr); }
  .item-lead:has(> .item__aside) { grid-template-columns: 56px minmax(0, 1fr); }
  .item-lead > .item__aside { grid-column: 2; }
  .item__aside { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; gap: 8px 16px; margin-top: 6px; }
}
a.item .chev { color: var(--sand); transition: transform 200ms var(--ease); }
a.item:hover .chev { transform: translateX(3px); color: var(--black); }

/* Key and value pairs */
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; margin: 0; border-top: 1px solid var(--hairline); }
.kv dt, .kv dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 0.9rem; }
.kv dt { color: var(--text-2); padding-right: 16px; }
.kv dd { color: var(--black); font-weight: 500; }

/* Tables */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--black); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--eyebrow); padding: 14px 18px 14px 0; border-bottom: 1px solid var(--hairline); white-space: nowrap; vertical-align: bottom; }
.table td { padding: 15px 18px 15px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.table td:last-child, .table th:last-child { padding-right: 0; }
.table .r { text-align: right; }
.table .t { color: var(--black); font-weight: 600; }
.table-empty { padding: 28px 0; color: var(--text-2); }
@media (max-width: 700px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 14px 0 16px; border-bottom: 1px solid var(--hairline); }
  .table-stack td { display: flex; gap: 12px; padding: 3px 0; border: 0; }
  .table-stack td::before { content: attr(data-label); flex: 0 0 92px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--eyebrow); padding-top: 3px; }
}

/* Notices (messages, warnings): a rule, not a box */
.notice { border-left: 2px solid var(--black); padding: 2px 0 2px 16px; margin: 0 0 24px; font-size: 0.92rem; color: var(--body); }
.notice-bad { border-left-color: var(--bad); }
.notice-ok { border-left-color: var(--ok); }
.notice-warn { border-left-color: var(--warn); }
.messages { list-style: none; margin: 0 0 28px; padding: 0; }
.messages li { border-left: 2px solid var(--black); padding: 2px 0 2px 16px; margin-bottom: 10px; font-size: 0.92rem; }
.messages li.error { border-left-color: var(--bad); }
.messages li.success { border-left-color: var(--ok); }
.messages li.warning { border-left-color: var(--warn); }

/* Progress: an SVG bar sized by attributes (CSP: no inline styles) */
.bar { display: block; width: 100%; height: 4px; }
.bar .track { fill: var(--hairline); }
.bar .fill { fill: var(--black); }

/* ---------- Forms ---------- */
label, .label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 9px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="search"], input[type="date"], input[type="url"], select, textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--sand); border-radius: 0; background: var(--white); color: var(--black);
  font: 400 1rem/1.4 var(--font); letter-spacing: 0;
  transition: border-color 160ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
input:hover, select:hover, textarea:hover { border-color: var(--black); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--black); outline-offset: 0; border-color: var(--black); }
input::placeholder, textarea::placeholder { color: #8F897F; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--black); width: 18px; height: 18px; margin: 0 10px 0 0; vertical-align: -3px; }
.field { margin: 0 0 20px; }
.help { display: block; font-size: 0.8rem; color: var(--text-2); margin-top: 8px; line-height: 1.45; }
.errorlist { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; border-left: 2px solid var(--bad); color: var(--bad); font-size: 0.86rem; }
.check-row { display: flex; align-items: center; gap: 0; }
.check-row label { margin: 0; font-size: 0.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--body); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--eyebrow); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin: 28px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* ---------- Public site ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.site-head .logo img { height: 38px; width: auto; }
@media (min-width: 768px) { .site-head { padding-block: 30px; } .site-head .logo img { height: 44px; } }

.hero { padding-top: 40px; }
@media (min-width: 768px) { .hero { padding-top: 72px; } }
@media (min-width: 1280px) { .hero { padding-top: 96px; } }
.hero .display { max-width: 11.5em; }
.hero .lede { margin-top: 28px; }
.hero .actions { margin-top: 36px; }
.skyline {
  display: block; width: 100%; height: clamp(110px, 13.4vw, 330px); margin-top: 56px; background: var(--black);
  -webkit-mask: url("../art/skyline-line.75edad69333c.webp") center bottom / cover no-repeat;
  mask: url("../art/skyline-line.75edad69333c.webp") center bottom / cover no-repeat;
}
.ground { height: 1px; background: var(--black); }

.block { padding-top: 72px; }
@media (min-width: 1024px) { .block { padding-top: 128px; } }
.block-head { max-width: 760px; }

.relations { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--black); }
.relations a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 6px 14px; align-items: baseline;
  padding: 24px 0 26px; border-bottom: 1px solid var(--hairline); text-decoration: none; color: inherit;
}
.relations .n { font-family: var(--num); font-size: 1.55rem; line-height: 1; color: var(--sand); }
.relations .t { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 2.1rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; color: var(--black); }
.relations .d { grid-column: 2 / 3; color: var(--text-2); font-size: 0.95rem; max-width: 34em; }
.relations .a { grid-row: 1; grid-column: 3; align-self: center; color: var(--black); transition: transform 220ms var(--ease); }
.relations a:hover .t { font-weight: 400; }
.relations a:hover .a { transform: translateX(5px); }
@media (min-width: 900px) {
  .relations a { grid-template-columns: 88px minmax(0, 380px) minmax(0, 1fr) 32px; padding: 32px 0 34px; align-items: center; }
  .relations .d { grid-column: 3; grid-row: 1; max-width: none; }
  .relations .a { grid-column: 4; }
}

.caps { display: grid; grid-template-columns: 1fr; gap: 0 36px; margin-top: 44px; }
@media (min-width: 700px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .caps { grid-template-columns: repeat(4, 1fr); } }
.cap { padding: 26px 0 32px; border-top: 1px solid var(--hairline); }
.cap .i { width: 24px; height: 24px; stroke-width: 1.25; color: var(--black); margin-bottom: 18px; }
.cap h3 { margin-bottom: 8px; }
.cap p { font-size: 0.9rem; color: var(--text-2); margin: 0; }

.band { background: var(--black); color: var(--greige); margin-top: 120px; padding: 72px 0 80px; }
@media (min-width: 1024px) { .band { margin-top: 160px; padding: 112px 0; } }
.band h2, .band h2 b { color: var(--white); }
.band .eyebrow { color: var(--on-dark-2); }
.band p { color: var(--greige); }
.band-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .band-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.band-art { width: 100%; height: auto; }

.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0 48px; border-top: 1px solid var(--black); }
@media (min-width: 900px) { .points { grid-template-columns: 1fr 1fr; } }
.points li { padding: 24px 0 26px; border-bottom: 1px solid var(--hairline); }
.points h3 { margin-bottom: 6px; }
.points p { color: var(--text-2); font-size: 0.93rem; margin: 0; }

.site-foot { margin-top: 112px; border-top: 1px solid var(--hairline); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 32px 48px; font-size: 0.8rem; color: var(--text-2); }
.site-foot img { height: 32px; width: auto; }
.site-foot a { color: var(--text-2); }

/* ---------- Entrance (every sign-in and account page) ---------- */
.entrance { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.entrance__art {
  --edge: var(--gutter);
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--black); color: var(--greige); padding: 22px var(--gutter) 0; overflow: hidden;
}
.entrance__art .logo img { height: 34px; width: auto; }
.entrance__art .copy { margin: 36px 0 26px; max-width: 30em; }
.entrance__art h1, .entrance__art .h1 { color: var(--white); font-size: clamp(1.7rem, 1.3rem + 1.8vw, 3.1rem); }
.entrance__art p { color: var(--on-dark-2); margin-top: 16px; max-width: 30em; }
.entrance__art .eyebrow { color: var(--on-dark-2); }
.entrance__art .skyline { margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); height: 92px; background: var(--sand); }
.entrance__form { display: flex; align-items: flex-start; justify-content: center; padding: 44px var(--gutter) 72px; }
.entrance__panel { width: 100%; max-width: 420px; }
.entrance__panel h1, .entrance__panel .h1 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); margin-bottom: 14px; }
.entrance__panel .lede { font-size: 1rem; margin-bottom: 28px; }
.entrance__panel .stack > * + * { margin-top: 12px; }
.entrance__foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 0.82rem; color: var(--text-2); }
.entrance__foot a { color: var(--black); }
.list + .entrance__foot { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .entrance { grid-template-columns: minmax(440px, 46%) minmax(0, 1fr); grid-template-rows: none; }
  .entrance__art { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 44px 56px 0; --edge: 56px; }
  .entrance__art .logo img { height: 44px; }
  .entrance__art .copy { margin: auto 0 48px; }
  .entrance__art .skyline { margin: 0 -56px; width: calc(100% + 112px); height: 190px; }
  .entrance__form { align-items: center; padding: 64px 56px; }
}
/* allauth's element templates render inside the entrance panel */
.entrance__panel form { margin: 0; }
.entrance__panel form p { margin: 0 0 20px; }
.entrance__panel form p > span { display: block; font-size: 0.8rem; color: var(--text-2); margin-top: 8px; line-height: 1.45; }
.entrance__panel section + section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.entrance__panel section h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 10px; }
.entrance__panel img[src^="data:"] { width: 196px; height: 196px; margin: 8px 0 20px; background: var(--white); padding: 10px; border: 1px solid var(--hairline); }
.entrance__panel .btn + .btn, .entrance__panel .btn-row { margin-top: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.providers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* Single-message pages (errors, offline): a cover, so centred is allowed */
.cover { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.cover__body { display: flex; flex-direction: column; justify-content: center; padding-block: 40px 64px; }
.cover .num-xl { margin-bottom: 18px; }
.cover .skyline { margin-top: 0; height: clamp(80px, 10vw, 200px); }

/* ---------- Staff console ---------- */
.env-ribbon { background: var(--warn); color: var(--white); text-align: center; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 6px 12px; }
.app { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.side { background: var(--black); color: var(--greige); display: flex; flex-direction: column; }
.side__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.side__logo img { height: 32px; width: auto; }
.side__desk { display: none; }
.side__drawer { position: relative; }
.side__drawer > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--white); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 10px 0; }
.side__drawer > summary::-webkit-details-marker { display: none; }
.side__drawer[open] > summary .i-open, .side__drawer:not([open]) > summary .i-close { display: none; }
.side__drawer .drawer { position: absolute; right: calc(-1 * var(--gutter)); top: calc(100% + 14px); width: 100vw; max-width: 420px; background: var(--black); border-top: 1px solid var(--dark-line); padding: 8px 0 24px; z-index: 30; max-height: calc(100vh - 70px); overflow-y: auto; }
.nav-group { margin-top: 26px; }
.nav-group:first-child { margin-top: 8px; }
.nav-group__label { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-3); padding: 0 28px; margin: 0 0 6px; }
.nav a, .nav .soon {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 28px; color: var(--greige); text-decoration: none; font-size: 0.9rem; line-height: 1.35;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); font-weight: 600; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--white); }
.nav .soon { color: var(--on-dark-3); cursor: default; }
.nav .soon small { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3); }
.side__foot { margin-top: auto; padding: 22px 28px 28px; border-top: 1px solid var(--dark-line); font-size: 0.82rem; }
.side__foot .who { color: var(--white); font-weight: 600; }
.side__foot .role { color: var(--on-dark-2); margin-top: 2px; }
.side__foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.side__foot form { display: inline; margin: 0; }
.side__foot a, .side__foot .linkbtn { color: var(--greige); font-size: 0.8rem; }
.side__foot a:hover, .side__foot .linkbtn:hover { color: var(--white); }
.main { --pad: var(--gutter); --edge: var(--pad); padding: 32px var(--pad) 96px; min-width: 0; }
.main__inner { max-width: 1180px; }
.pagehead { margin-bottom: 44px; }
.pagehead .lede { margin-top: 14px; font-size: 1rem; }
.pagehead-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
@media (min-width: 1024px) {
  .app { grid-template-columns: 276px minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .side__top { padding: 36px 28px 18px; }
  .side__logo img { height: 40px; }
  .side__desk { display: block; }
  .side__drawer { display: none; }
  .main { --pad: 56px; padding-top: 48px; }
}
@media (min-width: 1440px) { .main { --pad: 72px; } }

/* ---------- Portals (owners, tenants, guests, buyers, contractors) ---------- */
.p-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--hairline); }
.p-head__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.p-head__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.p-head__left .place { padding-left: 14px; border-left: 1px solid var(--hairline); }
.p-tabs-row { display: none; }
.p-head .logo img { height: 32px; width: auto; }
.place { display: inline-flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 0; text-decoration: none; color: inherit; }
.place__text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.place__role { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--eyebrow); }
.place__name { font-size: 0.9rem; font-weight: 600; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.p-tools { display: flex; align-items: center; gap: 18px; }
.p-tools a { color: var(--black); display: inline-flex; }
.p-tools .initials, .initials { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--black); color: var(--white); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-decoration: none; }
.p-tabs { display: none; }
.p-main { padding: 30px 0 120px; }
.p-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--white); border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom);
}
.p-bottom a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 9px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-2); text-decoration: none; }
.p-bottom a[aria-current="page"] { color: var(--black); }
.p-bottom a[aria-current="page"] .i { stroke-width: 2; }
@media (min-width: 900px) {
  .p-head .logo img { height: 38px; }
  .p-tabs-row { display: block; border-top: 1px solid var(--hairline); }
  .p-tabs { display: flex; gap: 32px; }
  .p-head__left { gap: 22px; }
  .p-head__left .place { padding-left: 22px; }
  .p-tabs a { position: relative; padding: 15px 0 14px; font-size: 0.86rem; font-weight: 500; color: var(--text-2); text-decoration: none; }
  .p-tabs a:hover { color: var(--black); }
  .p-tabs a[aria-current="page"] { color: var(--black); font-weight: 600; }
  .p-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--black); }
  .p-bottom { display: none; }
  .p-main { padding: 52px 0 96px; }
  .place__name { max-width: 380px; }
}
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--black); }
.quick a { display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 20px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--black); font-weight: 600; font-size: 0.9rem; }
.quick a:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hairline); }
.quick .i { width: 24px; height: 24px; stroke-width: 1.25; }
@media (min-width: 900px) {
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick a, .quick a:nth-child(even) { padding: 22px 18px 24px 0; border-left: 0; }
  .quick a + a { padding-left: 20px; border-left: 1px solid var(--hairline); }
}
.feature { border-top: 1px solid var(--black); padding-top: 22px; }
.feature .num-l { margin: 10px 0 12px; }
.photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--page); color: var(--sand); }
.photo .i { width: 26px; height: 26px; stroke-width: 1.25; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--black); }
.steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--num); font-size: 1.3rem; color: var(--sand); }
.steps li.done::before { color: var(--black); }
.check { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--sand); color: var(--white); }
.check-on { background: var(--black); border-color: var(--black); }
.check-snag { background: var(--bad); border-color: var(--bad); }
.check .i { width: 15px; height: 15px; stroke-width: 2.2; }
.toggle { display: inline-flex; border: 1px solid var(--black); }
.toggle span { padding: 8px 14px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.toggle .on { background: var(--black); color: var(--white); }

/* htmx: indicator styles live here (htmx's own injected <style> is disabled for the CSP). */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .side, .p-head, .p-bottom, .env-ribbon, .site-head, .skyline { display: none !important; }
  body { background: var(--white); }
  .app { display: block; }
}
