/* Leeb Investor - boxed investor research sheet (locked brief). System fonts only. */
:root {
  --canvas: #FBF9F4;
  --sheet: #FFFFFF;
  --fill: #EFEDE8;
  --ink: #26282B;
  --burgundy: #6B2C33;
  --border: #D8D2C4;
  --hairline: #E5E0D3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--burgundy); }
a:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: -4rem; left: 1rem;
  z-index: 10;
  padding: .5rem .75rem;
  background: var(--ink);
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.skip:focus { top: .75rem; }

.sheet {
  max-width: 980px;
  margin: 24px auto 48px;
  background: var(--sheet);
  border: 1px solid var(--border);
}

/* identity row */
.identity-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 56px;
  padding: 14px 32px 10px;
  border-bottom: 3px double var(--burgundy);
}
.wordmark {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: .04em;
}
.wordmark a { color: var(--ink); text-decoration: none; }
.identity-row .descriptor {
  margin: 0;
  flex: 1;
  font: 12px/1.4 Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5b5e63;
}
.methodology-link {
  font: 12px/1.4 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--burgundy);
}

/* segmented coverage bar */
.coverage-bar { border-bottom: 1px solid var(--border); }
.coverage-bar ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 24px;
  list-style: none;
}
.coverage-bar li { border-right: 1px solid var(--border); }
.coverage-bar li:first-child { border-left: 1px solid var(--border); }
.coverage-bar a {
  display: block;
  padding: 11px 16px;
  background: var(--fill);
  font: 12px/1 Arial, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.coverage-bar a:hover, .coverage-bar a:focus { background: var(--sheet); color: var(--burgundy); }

main { padding: 28px 32px 40px; }

.module-label {
  margin: 0 0 6px;
  font: 700 11px/1.3 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--burgundy);
}

main h2 {
  margin: 4px 0 14px;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
main h2 a { color: var(--ink); text-decoration: none; }
main h2 a:hover, main h2 a:focus { color: var(--burgundy); }

.meta-line {
  margin: 0 0 14px;
  font: 12px/1.5 Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5b5e63;
}

/* dossier abstract */
.dossier-abstract {
  border: 1px solid var(--border);
  background: var(--sheet);
  padding: 20px 24px 22px;
  margin: 0 0 34px;
}
.abstract-scope { max-width: 760px; margin: 0 0 16px; }

/* fact table */
.fact-table {
  border-collapse: collapse;
  margin: 0;
  min-width: 55%;
}
.fact-table th, .fact-table td {
  border: 1px solid var(--border);
  padding: 7px 12px;
  text-align: left;
  vertical-align: top;
}
.fact-table th {
  width: 9em;
  background: var(--fill);
  font: 700 11px/1.5 Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fact-table td { font-size: 15px; }

/* research ledger */
.home-ledger, .coverage-index, .methodology, .sources-archive { margin: 0 0 34px; }
.ledger {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.year-divider {
  padding: 9px 0 5px;
  border-bottom: 1px solid var(--hairline);
  font: 700 13px/1 "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-variant: small-caps;
  letter-spacing: .14em;
  color: var(--burgundy);
}
.ledger-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.row-date {
  flex: 0 0 7.5em;
  font: 12px/1.6 "Courier New", Courier, monospace;
  color: #5b5e63;
}
.row-main { flex: 1; min-width: 0; }
.row-main > a { font-size: 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.row-main > a:hover, .row-main > a:focus { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.row-scope { margin: 3px 0 0; font-size: 14px; color: #43464b; }
.row-tag {
  flex: 0 0 auto;
  font: 11px/1.6 Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.ledger-more { margin: 12px 0 0; font-size: 15px; }

/* coverage group index */
.coverage-columns, .sources-columns {
  display: flex;
  gap: 28px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.coverage-group, .sources-group { flex: 1; border-left: 1px solid var(--hairline); padding-left: 18px; }
.coverage-group:first-child, .sources-group:first-child { border-left: 0; padding-left: 0; }
.coverage-group h3, .sources-group h3 {
  margin: 0 0 8px;
  font: 700 13px/1.4 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.coverage-group ul, .sources-group ul { margin: 0; padding: 0; list-style: none; }
.coverage-group li, .sources-group li {
  padding: 4px 0;
  border-bottom: 1px dotted var(--hairline);
  font-size: 15px;
}
.year-links { display: flex; flex-wrap: wrap; gap: 6px; }
.year-links li { border-bottom: 0 !important; }
.year-links a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--fill);
  font: 12px/1.4 "Courier New", Courier, monospace;
  text-decoration: none;
  color: var(--ink);
}
.year-links a:hover, .year-links a:focus { color: var(--burgundy); background: var(--sheet); }

/* methodology + floated fact panel */
.methodology p { max-width: 760px; }
.fact-panel {
  float: right;
  width: 300px;
  max-width: 100%;
  margin: 0 0 14px 22px;
  border: 1px solid var(--border);
  background: var(--fill);
  padding: 14px 16px 10px;
}
.fact-panel h2 {
  margin: 0 0 8px;
  font-size: 17px;
}
.fact-panel dl { margin: 0; }
.fact-panel dt {
  font: 700 10px/1.6 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.fact-panel dd { margin: 0 0 7px; font-size: 14px; }
.panel-source {
  margin: 8px 0 2px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font: 11px/1.4 "Courier New", Courier, monospace;
  color: #5b5e63;
}
.methodology::after, .dossier::after { content: ""; display: block; clear: both; }

/* colophon */
.colophon {
  border-top: 3px double var(--burgundy);
  padding: 20px 32px 22px;
}
.colophon-columns { display: flex; gap: 40px; }
.colophon-group { flex: 1; }
.colophon-group h2 {
  margin: 0 0 6px;
  font: 700 12px/1.4 Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.colophon-group ul { margin: 0; padding: 0; list-style: none; }
.colophon-group li { padding: 2px 0; font-size: 14px; }
.colophon-group a { text-decoration: none; border-bottom: 1px solid var(--hairline); color: var(--ink); }
.colophon-group a:hover, .colophon-group a:focus { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.disclaimer-line {
  margin: 16px 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: #43464b;
}
.copyright-line { margin: 0; font: 12px/1.5 Arial, sans-serif; color: #5b5e63; }

/* article dossier pages */
.breadcrumb {
  margin: 0 0 18px;
  font: 12px/1.6 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5b5e63;
}
.breadcrumb a { text-decoration: none; }
.dossier h1 {
  margin: 0 0 8px;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
}
.dossier .fact-table { margin: 0 0 22px; }
.standfirst { max-width: 760px; font-size: 17px; }
.narrative { max-width: 760px; }
.narrative p { margin: 0 0 14px; }
.narrative a { text-decoration: underline; }
.narrative table { border-collapse: collapse; margin: 0 0 16px; }
.narrative th, .narrative td { border: 1px solid var(--border); padding: 6px 10px; font-size: 15px; }
.publication-note, .chronology {
  max-width: 760px;
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.publication-note h2, .chronology h2 { font-size: 20px; margin: 0 0 8px; }
.publication-note p { font-size: 14px; color: #43464b; margin: 0; }
.chronology ul { margin: 0; padding-left: 1.2em; }
.chronology li { margin: 0 0 6px; font-size: 15px; }
.adjacent {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
.adjacent a {
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--fill);
  font: 12px/1.4 Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.adjacent a:hover, .adjacent a:focus { color: var(--burgundy); background: var(--sheet); }
.archive-section { margin: 0 0 30px; }
.archive-section h2 { margin-top: 22px; }

/* 404 */
.not-found-page { display: flex; min-height: 100vh; align-items: center; }
.not-found-sheet { margin: 24px auto; padding: 48px 40px; max-width: 640px; }
.not-found-sheet h1 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 34px;
  margin: 10px 0 12px;
}

/* mobile transformations (locked brief) */
@media (max-width: 700px) {
  .sheet { margin: 0 0 32px; border-left: 0; border-right: 0; }
  .identity-row { flex-wrap: wrap; padding: 12px 16px 10px; gap: 4px 16px; }
  .identity-row .descriptor { flex: 1 1 100%; order: 3; }
  .coverage-bar ul { padding: 0 8px; }
  .coverage-bar a { padding: 10px 12px; }
  main { padding: 20px 16px 32px; }
  .colophon { padding: 18px 16px; }
  .coverage-columns, .sources-columns, .colophon-columns { flex-direction: column; gap: 18px; }
  .coverage-group, .sources-group { border-left: 0; padding-left: 0; }
  .fact-panel { float: none; width: 100%; margin: 0 0 16px; }
}

@media (max-width: 480px) {
  .dossier-abstract { padding: 16px 14px; }
  main h2 { font-size: 22px; }
  .dossier h1 { font-size: 24px; }
  .fact-table { width: 100%; }
  .fact-table tr { display: block; border-bottom: 1px solid var(--border); }
  .fact-table th, .fact-table td { display: block; border: 0; padding: 4px 0; }
  .fact-table th { background: transparent; width: auto; padding-top: 8px; }
  .fact-table tbody { display: block; border: 1px solid var(--border); padding: 4px 12px 8px; }
  .ledger-row { flex-wrap: wrap; gap: 4px 12px; }
  .row-date { flex-basis: auto; font-size: 11px; }
  .row-tag { order: 2; }
  .row-main { flex-basis: 100%; order: 3; }
}
