/* ==========================================================================
   Investor documents: shared styles for signin.html and dashboard.html
   Tokens first, then base, then components, then the two screens.
   ========================================================================== */

/* Self-hosted: no Google Fonts request on every visit (was previously loaded from fonts.googleapis.com,
   which sends every investor's IP to Google on each page load). Latin-subset variable font, ~88KB. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-variable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Neutrals built from the logo's own ink (#111111) and paper (#F5F5F5). */
  --ground: #f1f2f1;
  --sheet: #ffffff;
  --sheet-raised: #fafbfa;
  --ink: #252525;
  --ink-2: #3f4446;
  --ink-3: #61676a;
  --rule: #dcdfdd;
  --rule-soft: #e9ebea;
  --rule-strong: #252525;

  /* One accent: sky blue #59BFF7 (dark ink on it for contrast). Actions + focus only. */
  --accent: #59bff7;
  --accent-hover: #46b2ee;
  --accent-press: #33a3e0;
  --accent-ink: #06202f;
  --accent-tint: #e3f4fd;
  --accent-text: #1478b3;

  --danger: #9e2b25;
  --danger-tint: #f8e9e7;

  --row-hover: #f5f7f6;
  --skeleton: #eceeed;
  --shadow-sheet: 0 1px 2px rgb(17 17 17 / 0.04), 0 8px 24px -12px rgb(17 17 17 / 0.10);
  --shadow-toast: 0 2px 4px rgb(17 17 17 / 0.08), 0 12px 32px -8px rgb(17 17 17 / 0.22);

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-data: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --t-label: 0.75rem;     /* 12px  field labels, caps */
  --t-small: 0.875rem;    /* 14px */
  --t-body: 1rem;         /* 16px */
  --t-lead: 1.1875rem;    /* 19px */
  --t-h3: 1.0625rem;      /* 17px */
  --t-h2: 1.5rem;         /* 24px */
  --t-h1: 2.125rem;       /* 34px */

  /* 4px baseline */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px;

  --radius: 6px;
  --radius-sm: 4px;
  --tap: 44px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d0e0e;
    --sheet: #151717;
    --sheet-raised: #191b1b;
    --ink: #f5f5f5;
    --ink-2: #c3c8c6;
    --ink-3: #959b99;
    --rule: #2b2f2e;
    --rule-soft: #222525;
    --rule-strong: #f5f5f5;
    --accent: #59bff7;
    --accent-hover: #72caf9;
    --accent-press: #45b2ee;
    --accent-ink: #04141f;
    --accent-tint: #12303f;
    --accent-text: #59bff7;
    --danger: #f0938b;
    --danger-tint: #3a1d1b;
    --row-hover: #1b1e1e;
    --skeleton: #212424;
    --shadow-sheet: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --shadow-toast: 0 2px 4px rgb(0 0 0 / 0.4), 0 16px 40px -8px rgb(0 0 0 / 0.7);
  }
}
:root[data-theme="dark"] {
  --ground: #0d0e0e;
  --sheet: #151717;
  --sheet-raised: #191b1b;
  --ink: #f5f5f5;
  --ink-2: #c3c8c6;
  --ink-3: #959b99;
  --rule: #2b2f2e;
  --rule-soft: #222525;
  --rule-strong: #f5f5f5;
  --accent: #59bff7;
  --accent-hover: #72caf9;
  --accent-press: #45b2ee;
  --accent-ink: #04141f;
  --accent-tint: #12303f;
  --accent-text: #59bff7;
  --danger: #f0938b;
  --danger-tint: #3a1d1b;
  --row-hover: #1b1e1e;
  --skeleton: #212424;
  --shadow-sheet: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  --shadow-toast: 0 2px 4px rgb(0 0 0 / 0.4), 0 16px 40px -8px rgb(0 0 0 / 0.7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--rule) transparent;
  accent-color: var(--accent);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-tint); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.num, time, .tabular { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px;
  background: var(--sheet); color: var(--ink);
  padding: var(--s2) var(--s4); border: 1px solid var(--rule-strong);
  z-index: 100;
}
.skip-link:focus { top: var(--s4); }
[hidden] { display: none !important; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }

/* Field label: the title-block caps used for every small descriptor. Never above a heading. */
.label {
  font-size: var(--t-label);
  font-weight: 600;
  font-stretch: 82%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.33;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 28px; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap);
  padding: 0 var(--s5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--t-body);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out), transform 120ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: var(--accent-hover); }
.btn:active { --btn-bg: var(--accent-press); transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: var(--t-body); }

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--rule);
}
.btn--quiet:hover { --btn-bg: var(--row-hover); border-color: var(--ink-3); }
.btn--quiet:active { --btn-bg: var(--rule-soft); }

.btn--text {
  --btn-bg: transparent;
  --btn-fg: var(--accent-text);
  min-height: var(--tap);
  padding: 0 var(--s2);
  margin: 0 calc(var(--s2) * -1);
  font-weight: 600;
}
.btn--text:hover { --btn-bg: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
.btn--text:active { --btn-bg: transparent; }
.btn--text[disabled] { color: var(--ink-3); opacity: 1; text-decoration: none; }

/* Loading: spinner replaces the leading icon, label stays readable */
.btn .spinner { display: none; }
.btn[data-loading="true"] .spinner { display: block; }
.btn[data-loading="true"] .btn__icon { display: none; }
.btn[data-loading="true"] { cursor: progress; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form fields ---------- */
.field { display: grid; gap: var(--s2); }
.field__label { font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font-size: 1.0625rem; /* 17px keeps iOS from zooming */
  caret-color: var(--accent);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-tint); }

.field-error {
  display: flex; gap: var(--s2); align-items: flex-start;
  color: var(--danger);
  font-size: var(--t-small);
  line-height: 1.45;
}
.field-error .icon { margin-top: 1px; }

/* ==========================================================================
   SIGN-IN
   ========================================================================== */
.signin {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--s8) var(--s4) var(--s6);
}
.signin__brand { display: flex; justify-content: center; padding-bottom: var(--s10); }
.signin__brand .logo img { height: 34px; }
.signin__main { display: flex; align-items: flex-start; justify-content: center; }

.sheet {
  width: 100%;
  max-width: 440px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
  padding-top: 2px;
  /* follow the roof step so no white corner shows above the stepped rule */
  clip-path: polygon(0 0, calc(100% - 39px) 0, calc(100% - 9px) 9.75px, 100% 9.75px, 100% 100%, 0 100%);

}
/* The logo's 18-degree roof step: the one recurring mark. A 2px ink rule that steps down at its right end. */
.roofrule { position: relative; height: 2px; }
.roofrule::before {
  content: ""; position: absolute; left: 0; top: 0; right: 40px; height: 2px; background: var(--rule-strong);
}
.roofrule::after {
  content: ""; position: absolute; right: 0; top: 0; width: 40px; height: 12px;
  background: var(--rule-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 0h1l30 9.75H40V11.75H30.7L0 2Z'/%3E%3C/svg%3E") no-repeat 0 0 / 40px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 0h1l30 9.75H40V11.75H30.7L0 2Z'/%3E%3C/svg%3E") no-repeat 0 0 / 40px 12px;
}
.sheet > .roofrule { position: absolute; left: -1px; right: -1px; top: 0; }

.sheet__body { padding: var(--s10) var(--s10) var(--s8); }
/* Execute mode: before Turnstile renders into this div (and whenever it never needs to show a
   visible challenge), it must take up no visible space -- no reserved height, no background/border,
   so the empty container doesn't sit on the page as a grey placeholder box. */
.turnstile-widget { display: block; height: 0; min-height: 0; padding: 0; margin: 0; border: 0; background: transparent; overflow: hidden; }
/* Once Cloudflare actually injects a real iframe into it (challenge needed), give it room and
   center it rather than letting it butt against the footer. */
.turnstile-widget:not(:empty) { display: flex; justify-content: center; align-items: center; height: auto; overflow: visible; padding: 0 var(--s10) var(--s5); }
.sheet__foot {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s5) var(--s10);
  border-top: 1px solid var(--rule-soft);
  background: var(--sheet-raised);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.5;
}
.sheet__foot .icon { color: var(--ink-2); margin-top: 1px; }
.sheet__foot strong { color: var(--ink); font-weight: 600; }

.step { display: grid; gap: var(--s6); }
.step__head { display: grid; gap: var(--s2); }
.step__title { font-size: 1.75rem; line-height: 1.18; font-weight: 650; letter-spacing: -0.015em; font-stretch: 94%; }
.step__lede { color: var(--ink-2); font-size: var(--t-body); }
.step__lede strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.step form { display: grid; gap: var(--s5); }
.step[data-entering] { animation: step-in 260ms var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.back-link {
  justify-self: start;
  display: inline-flex; align-items: center; gap: var(--s1);
  min-height: var(--tap);
  margin: calc(var(--s3) * -1) 0 calc(var(--s3) * -1) -2px;
  padding: 0;
  border: 0; background: none;
  color: var(--ink-2);
  font-size: var(--t-small); font-weight: 600;
  cursor: pointer;
}
.back-link:hover { color: var(--ink); }

/* One real input, six drawn cells. The input owns focus, paste and one-time-code autofill. */
.otp { position: relative; }
.otp__cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); pointer-events: none; }
.otp__cell {
  position: relative;
  display: grid; place-items: center;
  height: 60px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
  font-size: 1.75rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.otp__cells .otp__cell:nth-child(3) { margin-right: var(--s2); }
.otp__cells .otp__cell:nth-child(4) { margin-left: var(--s2); }
.otp__input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  letter-spacing: 2em;
  opacity: 0.01;
  cursor: text;
}
.otp__input:focus { outline: none; }
.otp--focused .otp__cell[data-active] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.otp--focused .otp__cell[data-active]:empty::after {
  content: ""; width: 2px; height: 28px; background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.otp[data-invalid] .otp__cell { border-color: var(--danger); }
.otp[data-invalid].otp--focused .otp__cell[data-active] { box-shadow: 0 0 0 3px var(--danger-tint); }
.otp[data-invalid] .otp__cells { animation: nudge 300ms var(--ease-out); }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.resend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); color: var(--ink-2); font-size: var(--t-small); }
.resend .btn--text { font-size: var(--t-small); }
.status-line { color: var(--accent-text); font-size: var(--t-small); font-weight: 500; }

.signin__foot {
  display: flex; flex-direction: column; align-items: center; gap: var(--s1);
  padding-top: var(--s10);
  color: var(--ink-3);
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 520px) {
  .signin { padding-top: var(--s6); }
  .signin__brand { padding-bottom: var(--s6); }
  .signin__brand .logo img { height: 28px; }
  .sheet__body { padding: var(--s8) var(--s5) var(--s6); }
  .sheet__foot { padding: var(--s4) var(--s5); }
  .step__title { font-size: 1.5rem; }
  .otp__cell { height: 54px; font-size: 1.5rem; }
  .otp__cells { gap: 6px; }
  .otp__cells .otp__cell:nth-child(3) { margin-right: 4px; }
  .otp__cells .otp__cell:nth-child(4) { margin-left: 4px; }
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 68px;
  padding: 0 var(--s8);
}
.topbar__right { display: flex; align-items: center; gap: var(--s5); }
.topbar__who { text-align: right; line-height: 1.3; }
.topbar__name { font-weight: 600; font-size: var(--t-small); }
.topbar__email { color: var(--ink-3); font-size: 0.8125rem; }
.topbar .btn { min-height: 40px; padding: 0 var(--s4); font-size: var(--t-small); }

.page {
  max-width: 1200px; margin: 0 auto;
  padding: var(--s12) var(--s8) var(--s20);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas:
    "index title"
    "index content"
    "index foot";
  grid-template-rows: auto auto 1fr;
  column-gap: var(--s12);
  align-items: start;
}
.titleblock { grid-area: title; }
.index { grid-area: index; }
.content { grid-area: content; }
.content:focus { outline: none; }
.page-foot { grid-area: foot; }

/* Index column: the sheet index */
.index { position: sticky; top: calc(68px + var(--s12)); display: grid; gap: var(--s10); }
.index__group { display: grid; gap: var(--s3); }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index__list li { border-bottom: 1px solid var(--rule-soft); }
.index__link {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3);
  padding: var(--s3) 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-small);
  line-height: 1.35;
  transition: color var(--dur) var(--ease-out);
}
.index__link:hover { color: var(--ink); }
.index__link[aria-current="true"] { color: var(--ink); font-weight: 600; }
.index__count { color: var(--ink-3); font-weight: 500; }

/* Year index: ruled, square cells sharing hairlines; selection is ink weight + ink rule. */
.years {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.year-chip {
  min-height: var(--tap);
  padding: 0 var(--s2);
  border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: var(--t-small); font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.year-chip[data-year="all"] { grid-column: 1 / -1; text-align: left; padding: 0 var(--s3); }
.year-chip:hover { background: var(--row-hover); color: var(--ink); }
.year-chip:focus-visible { outline-offset: -2px; border-radius: 0; }
.year-chip[aria-pressed="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); background: var(--sheet); }

/* Title block */
.titleblock { display: grid; gap: var(--s5); padding-bottom: var(--s8); }
.titleblock h1 { font-size: var(--t-h1); line-height: 1.12; font-weight: 650; letter-spacing: -0.02em; font-stretch: 92%; }
.titleblock__who { color: var(--ink-2); font-size: var(--t-lead); line-height: 1.4; }
.titleblock__who strong { color: var(--ink); font-weight: 600; }
.titleblock__email { display: none; color: var(--ink-3); font-size: var(--t-small); }

.fields {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.fields > div { display: grid; gap: 2px; padding: var(--s3) var(--s8) var(--s3) 0; }
.fields > div + div { padding-left: var(--s5); border-left: 1px solid var(--rule); }
.fields dt { order: 0; }
.fields dd { margin: 0; font-size: var(--t-body); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.filter-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4);
  margin-bottom: var(--s6);
  padding: var(--s3) var(--s4);
  background: var(--accent-tint);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--t-small);
}
.filter-note .btn--text { font-size: var(--t-small); }

/* Tract = one property */
.tracts { display: grid; gap: var(--s16); }
.tract { scroll-margin-top: calc(68px + var(--s6)); }
.tract__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s6);
  padding-top: var(--s4);
}
.tract__name { font-size: var(--t-h2); line-height: 1.2; font-weight: 650; letter-spacing: -0.012em; font-stretch: 94%; }
.tract__meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); color: var(--ink-3); font-size: var(--t-small); }
.tract__meta b { color: var(--ink-2); font-weight: 600; }
.tract > .register__cols { margin-top: var(--s6); border-top: 1px solid var(--rule); }

.group { margin-top: var(--s6); }
.register__cols + .group { margin-top: var(--s4); }
.group__title {
  display: flex; align-items: baseline; gap: var(--s3);
  font-size: var(--t-h3); font-weight: 600; line-height: 1.3;
  padding-bottom: var(--s3);
}
.group__count { color: var(--ink-3); font-weight: 500; font-size: var(--t-small); }

/* The register. Same columns in every tract so years line up down the page. */
.register { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.register__cols,
.entry {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 124px 76px 148px;
  column-gap: var(--s5);
  align-items: center;
}
.register__cols { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--rule); }
.register__cols span:nth-child(4) { text-align: right; }
.entry {
  position: relative;
  min-height: 64px;
  padding: var(--s3);
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color var(--dur) var(--ease-out);
}
.entry:hover, .entry:focus-within { background: var(--row-hover); }
.entry__year { font-size: var(--t-body); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.entry__year--none { color: var(--ink-3); }
.entry__doc { display: grid; gap: 2px; min-width: 0; }
.entry__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); font-weight: 600; color: var(--ink); line-height: 1.35; }
.entry__label { font-weight: 600; color: var(--ink); line-height: 1.35; }
.entry__file { color: var(--ink-3); font-size: 0.8125rem; line-height: 1.4; }
.entry__posted, .entry__size { color: var(--ink-2); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.entry__size { text-align: right; }
.entry__inline-size { display: none; }
.entry__action { justify-self: end; }
.entry__action .btn { min-width: 132px; }

/* Magnitude: the most recent tax year carries the weight. */
.entry--latest .entry__year { font-size: 1.375rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

/* Download button states */
.btn--download[data-state="done"] { --btn-bg: var(--accent-tint); --btn-fg: var(--accent-text); }
.btn--download .btn__done { display: none; }
.btn--download[data-state="done"] .btn__done { display: block; }
.btn--download[data-state="done"] .btn__icon { display: none; }

.missing {
  margin-top: var(--s10);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: var(--t-small);
}

/* Empty / error states */
.notice {
  display: grid; gap: var(--s4); justify-items: start;
  max-width: 560px;
  padding: var(--s8) 0 var(--s10);
}
.notice h2 { font-size: var(--t-h2); font-weight: 650; letter-spacing: -0.012em; font-stretch: 94%; }
.notice p { color: var(--ink-2); max-width: 60ch; }

/* Skeleton (loading) */
.sk { display: block; background: var(--skeleton); border-radius: var(--radius-sm); }
.sk-line { height: 14px; }
.skeleton { display: grid; gap: var(--s16); }
.skeleton .sk-tract { display: grid; gap: var(--s4); padding-top: var(--s4); border-top: 2px solid var(--rule); }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: sk-pulse 1.4s ease-in-out infinite; }
  @keyframes sk-pulse { 50% { opacity: 0.55; } }
}

.page-foot {
  margin-top: var(--s16);
  padding-top: var(--s6);
  border-top: 1px solid var(--rule);
  display: grid; gap: var(--s3);
  color: var(--ink-3);
  font-size: var(--t-small);
  max-width: 68ch;
}
.page-foot p { display: flex; gap: var(--s3); align-items: flex-start; }
.page-foot .icon { margin-top: 2px; color: var(--ink-3); }

/* Toast (download confirmation, sign-out problems) */
.toast-region {
  position: fixed; left: 50%; bottom: var(--s6); z-index: 50;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 440px);
  pointer-events: none;
}
.toast {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4) var(--s5);
  background: var(--ink); color: var(--sheet);
  border-radius: var(--radius);
  box-shadow: var(--shadow-toast);
  font-size: var(--t-small);
  line-height: 1.45;
  pointer-events: auto;
  animation: toast-in 240ms var(--ease-out) both;
}
.toast .icon { margin-top: 1px; }
.toast[data-leaving] { animation: toast-out 200ms ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(4px); } }

/* ---------- Dashboard responsive ---------- */
@media (max-width: 1080px) {
  .register__cols, .entry { grid-template-columns: 68px minmax(0, 1fr) 112px 140px; }
  .register__cols span:nth-child(4), .entry__size { display: none; }
  .entry__inline-size { display: inline; }
}
@media (max-width: 900px) {
  .topbar__inner { padding: 0 var(--s4); min-height: 60px; }
  .topbar__who { display: none; }
  .titleblock__email { display: block; }
  .logo img { height: 24px; }
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "index" "content" "foot";
    grid-template-rows: auto;
    padding: var(--s8) var(--s4) var(--s16);
  }
  .index { position: static; gap: var(--s6); padding-bottom: var(--s8); }
  .index__group--properties .label { display: none; }
  .index__list {
    display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    margin: 0 calc(var(--s4) * -1); padding: 0 var(--s4);
    scroll-padding-inline: var(--s4);
  }
  .index__list::-webkit-scrollbar { display: none; }
  .index__list li { border-bottom: 0; flex: none; }
  .index__list li + li { border-left: 1px solid var(--rule-soft); }
  .index__link { min-height: var(--tap); align-items: center; padding: 0 var(--s4); white-space: nowrap; }
  .index__list li:first-child .index__link { padding-left: 0; }
  .titleblock { padding-bottom: var(--s6); }
  .page-foot { margin-top: var(--s12); }
  .titleblock h1 { font-size: 1.75rem; }
  .titleblock__who { font-size: var(--t-body); }
  .tract { scroll-margin-top: calc(60px + var(--s4)); }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fields > div { padding-right: var(--s3); }
  .fields > div + div { padding-left: var(--s3); }
  .fields dd { font-size: var(--t-small); }
  .tracts { gap: var(--s12); }
  .tract__name { font-size: 1.3125rem; }
  .register__cols { display: none; }
  .entry {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "year   action"
      "doc    action"
      "posted action";
    row-gap: 2px;
    padding: var(--s4) 0;
    column-gap: var(--s4);
  }
  .entry:hover, .entry:focus-within { background: transparent; }
  .entry__year { grid-area: year; }
  .entry__doc { grid-area: doc; }
  .entry__posted { grid-area: posted; font-size: 0.8125rem; color: var(--ink-3); }
  .entry__posted::before { content: "Posted "; }
  .entry__action { grid-area: action; align-self: center; }
  .entry__action .btn { min-width: 0; padding: 0 var(--s4); }
  .entry__action .btn__label-long { display: none; }
  /* On phones the label already carries the year; the latest row keeps its magnitude on the label. */
  .entry__year { display: none; }
  .entry--latest .entry__label { font-size: 1.1875rem; font-weight: 700; }
}
@media (min-width: 641px) {
  .entry__action .btn__label-short { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar, .index, .entry__action, .page-foot, .toast-region { display: none !important; }
  body { background: #fff; color: #000; }
  .page { display: block; padding: 0; }
}

/* ---- investors.* portal (home, property) ---- */
.page--single { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "content" "foot"; max-width: 960px; }
.back-link { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink-2); font-size: var(--t-small); text-decoration: none; }
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.prop-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.prop-card { border-bottom: 1px solid var(--rule-soft); }
.prop-card__link { display: grid; gap: 2px; padding: var(--s5) var(--s3); text-decoration: none; color: inherit; transition: background-color var(--dur) var(--ease-out); }
.prop-card__link:hover, .prop-card__link:focus-visible { background: var(--row-hover); }
.prop-card__name { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.01em; }
.prop-card__meta { color: var(--ink-3); font-size: var(--t-small); }
.prop-status { color: var(--ink-2); max-width: 60ch; padding: var(--s4) 0; }
.prop-section { margin-bottom: var(--s12); }
.post { padding: var(--s5) 0; border-top: 1px solid var(--rule-soft); display: grid; gap: var(--s2); max-width: 70ch; }
.post__title { font-size: var(--t-body); font-weight: 650; }
.post__date { color: var(--ink-3); font-size: var(--t-small); }
.post__body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }

/* ---- portal polish: sections read as sheet headings, property rows as a register ---- */
.prop-section > h2.group__title {
  font-size: var(--t-h2); font-weight: 650; letter-spacing: -0.012em; font-stretch: 94%; line-height: 1.2;
  padding: var(--s4) 0 0; border-top: 2px solid var(--rule-strong); margin-bottom: var(--s5);
}
.prop-section .register { margin-top: 0; }
.prop-card__link {
  grid-template-columns: minmax(0, 1fr) 20px; column-gap: var(--s4); align-items: center;
  padding: var(--s6) var(--s3); min-height: 88px;
}
.prop-card__name { font-size: 1.375rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.012em; font-stretch: 94%; grid-column: 1; }
.prop-card__meta { grid-column: 1; font-size: var(--t-small); color: var(--ink-2); }
.prop-card__link::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.prop-card__link:hover::after { background: var(--ink); transform: translateX(3px); }
.titleblock .back-link { margin: 0 0 var(--s2) -2px; }

/* ---- no flash while moving between pages ---- */
/* Section headings and empty lists stay hidden until their data has arrived, so a page never shows an empty frame that then jumps. */
.content[aria-busy="true"] > .prop-section { visibility: hidden; }
.content[aria-busy="true"] { min-height: 40vh; }
/* Cross-document view transition: the browser cross-fades old page -> new page, and the top bar (the same on every page) stays put. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 140ms; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Show / Hide button inside password fields. */
.pw { position: relative; }
.pw .input { padding-right: 4.75rem; }
.pw__btn {
  position: absolute; top: 50%; right: var(--s2); transform: translateY(-50%);
  min-height: 36px; min-width: 56px; padding: 0 var(--s3);
  border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--accent-text); font: inherit; font-size: var(--t-small); font-weight: 600; cursor: pointer;
}
.pw__btn:hover { background: var(--accent-tint); }
.pw__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
