/* idenhq.com's light site theme: white ground, Newsreader headings at regular weight, Geist body
   in grey, Geist Mono labels, grey section chips, a quiet left rail and, on reports, an "On this
   page" index. Geometry from idenhq.com at 1440: a 1248px frame of 224 rail / 800 main / 224
   index, text 32px inside the main column. Cards follow the home page's Read more row; the list
   follows /field-notes. Below 1200 the rail becomes a 56px bar. */
:root {
  --bg: #fdfeff;
  --ink: #2c2b31;
  --muted: #767676;
  --faint: #8f8f91;
  --label: rgba(26, 26, 26, 0.45);
  --line: #ececee;
  --rule: #e6e6e8;
  --chip: #f2f2f3;
  --chip-edge: #c6c6c6;
  --chip-ink: #6e6e6e;
  --panel: #f7f7f8;
  --indigo: #4f46e5;
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --frame: 1248px;
  --inset: 32px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }

/* ---------- frame and rail ---------- */
.frame { max-width: var(--frame); margin: 0 auto; display: grid; grid-template-columns: 224px 800px 224px; }
main { min-width: 0; padding: 70px var(--inset) 0; }
.rail { position: relative; }
.rail::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--line) 0, var(--line) calc(100% - 144px), rgba(236, 236, 238, 0) 100%); }
.railbox { position: sticky; top: 128px; padding-left: 28px; width: 196px; }
.mark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); font: 400 19px/1.1 var(--serif); letter-spacing: -0.02em; }
.railnav { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 29px; }
.railnav a { font-size: 14px; line-height: 21px; letter-spacing: 0.02em; color: var(--faint); text-decoration: none; transition: color 150ms; }
.railnav a:hover, .railnav a[aria-current] { color: var(--ink); }
.railfoot { position: fixed; bottom: 44px; left: calc(max(0px, (100vw - var(--frame)) / 2) + 28px); width: 168px; display: flex; flex-direction: column; gap: 14px; }
.railfoot .md { align-self: flex-start; font: 10px/1 var(--mono); color: var(--faint); border: 1px solid #c9c9ce; border-radius: 3px; padding: 3px 5px; text-decoration: none; }
.railfoot .md:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: 26px; line-height: 1.3; margin: 60px 0 24px; }
.crumb + article h1, .crumb + h1 { margin-top: 0; }
h2 { font-size: 20px; line-height: 26px; margin: 56px 0 16px; }
.lede { margin: 0 0 20px; max-width: 660px; font-size: 15px; line-height: 23px; color: var(--muted); }
.meta { margin: 0; font-size: 13px; line-height: 20px; color: var(--faint); letter-spacing: 0.01em; }
.crumb { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 40px; font: 500 14px/18px var(--sans); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--label); text-decoration: none; transition: color 150ms; }
.crumb:hover { color: rgba(26, 26, 26, 0.7); }
.crumb svg { width: 12px; height: 12px; }

/* The home headings' grey chip, in flow, pulled left onto the rail's hairline. */
.tabchip { position: relative; left: calc(-1 * var(--inset)); display: inline-flex; align-items: center; height: 28px; margin: 0 0 32px;
  padding: 5px 12px 5px var(--inset); border-left: 2px solid var(--chip-edge); background: var(--chip);
  font-size: 12px; line-height: 18px; letter-spacing: 0.02em; color: var(--chip-ink); }
.tabchip + h2 { margin-top: 0; }

/* ---------- hub sections ---------- */
.seg { margin-top: 96px; }
.seg h2 { font-size: 26px; line-height: 1.25; margin-bottom: 32px; }

/* Cards: the home page's Read more row. 3 across, 20px apart, 16:9 cover at 12px radius. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; text-decoration: none; color: inherit; }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--chip); container-type: inline-size; }
.cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter 0.2s; }
.card:hover .cover > svg { filter: brightness(0.94); }
.cover-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.5cqw;
  padding: 0 8% 1%; background: rgba(0, 0, 0, 0.18); color: #fff; text-align: center; }
.cover-mark { font: 400 7.6cqw/1 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.cover-chip { display: inline-flex; align-items: center; gap: 1.8cqw; padding: 1.8cqw 3.6cqw 1.8cqw 3cqw; border-radius: 2.4cqw;
  background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  font: 500 5.4cqw/1.2 var(--sans); letter-spacing: 0; white-space: nowrap; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cover-chip .ico { width: 6.2cqw; height: 6.2cqw; flex: none; }
.card-meta { display: flex; flex-direction: column; gap: 8px; }
.card-kind { font-size: 12px; line-height: 18px; letter-spacing: 0.02em; color: #6e6e6e; }
.card-title { font-size: 15px; line-height: 22.5px; letter-spacing: 0.02em; color: var(--ink); text-wrap: balance; transition: color 0.15s; }
.card:hover .card-title { color: #000; }

/* The list: /field-notes rows. Pill, title, then read time and date on the right. */
.list { list-style: none; margin: 32px 0 0; padding: 0; }
.list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list li:first-child a { border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 2px 6px; border-radius: 4px; background: var(--chip);
  font-size: 12px; line-height: 18px; color: #6e6e6e; letter-spacing: 0.01em; }
.pill-ico { width: 12px; height: 12px; }
.row-title { flex: 1; min-width: 0; font-size: 15px; line-height: 22.5px; color: #3a3a3d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 150ms; }
.list a:hover .row-title { color: #0a0a0a; }
.row-meta { display: flex; gap: 8px; flex: none; font-size: 14px; line-height: 21px; color: #7a7a7a; font-variant-numeric: tabular-nums; }
.row-meta .sep { color: #d4d4d4; }

/* ---------- report ---------- */
.hero { margin: 32px 0 0; }
.hero .cover { aspect-ratio: 2.4 / 1; }
.hero .cover-mark { font-size: 4.6cqw; }
.hero .cover-chip { font-size: 3cqw; padding: 1cqw 2.2cqw 1cqw 1.8cqw; border-radius: 1.4cqw; gap: 1.2cqw; }
.hero .cover-chip .ico { width: 3.4cqw; height: 3.4cqw; }
.aside { margin: 48px 0 0; }
.answer { margin: 0 !important; font-size: 16px !important; line-height: 25px !important; color: var(--ink) !important; max-width: 700px; }
article p, article li { font-size: 15px; line-height: 22.5px; color: var(--muted); }
article p { margin: 0 0 14px; }
article p a, article li a, .sources a { color: #121212; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
article p a:hover, article li a:hover { color: #000; }
article ul, article ol { padding-left: 20px; margin: 0 0 14px; }
article li { margin-bottom: 6px; }
article ol li::marker { color: var(--faint); font-family: var(--mono); font-size: 13px; }
code { font: 13px var(--mono); background: var(--panel); border: 1px solid var(--rule); padding: 0 4px; border-radius: 3px; color: var(--ink); }
.faqs { border-top: 1px solid var(--line); }
.faqs details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faqs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 22px; color: var(--ink); font-weight: 500; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font: 16px/22px var(--mono); color: var(--faint); }
.faqs details[open] summary::after { content: "\2212"; }
.faqs details p { margin: 8px 0 0; }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 12px; }
.sources li span { display: block; font-size: 13px; line-height: 20px; color: var(--faint); margin-top: 2px; }
.more { margin-top: 96px; }
.toc-inline { display: none; }

.pick { display: flex; gap: 10px; align-items: baseline; margin: 16px 0 0 !important; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: #fff;
  font-size: 14.5px !important; line-height: 21px !important; color: var(--ink) !important; max-width: 700px; }
.pick span { flex: none; font: 11px/21px var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--indigo); }
.wtable.rubric td { width: auto !important; white-space: normal !important; font-size: 13px; }
.wtable.rubric td:first-child { width: 22% !important; }

/* ---------- ranking ---------- */
#ranking { position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ranking { width: 100%; border-collapse: collapse; margin: 20px 0 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.ranking td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ranking td.rk { width: 28px; font: 12px/22px var(--mono); color: var(--faint); }
.ranking td.vn { width: 164px; padding-right: 14px; }
.ranking a { color: var(--ink) !important; font-weight: 500; background: none !important; text-decoration: none; }
.ranking a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ranking .bar { display: block; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.ranking .bar span { display: block; height: 100%; background: #b4b4b9; border-radius: 3px; }
.ranking tr:first-child .bar span { background: var(--indigo); }
.ranking td.sc { width: 56px; text-align: right; font: 13px/22px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 13px; line-height: 18px; }
.matrix th { text-align: left; font: 11px/15px var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--faint); font-weight: 400; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.matrix td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.matrix td:first-child { color: var(--ink); white-space: nowrap; }
.matrix td:not(:first-child) { font-family: var(--mono); }
article h3 { font: 500 15px/22px var(--sans); color: var(--ink); margin: 32px 0 4px; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #e3e3e6; }
.dots i.on { background: var(--ink); }
.wtable, .stable { width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 14px; line-height: 20px; }
.wtable th { text-align: left; font: 11px/16px var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--faint); font-weight: 400; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.wtable td, .stable td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.wtable td:first-child, .stable td:first-child { color: var(--ink); width: 34%; }
.wtable td:nth-child(2), .stable td:nth-child(2) { width: 64px; white-space: nowrap; }
.wtable tr.off td { color: #b0b0b3; }
.wtable tr.off .dots i { background: #efeff1; }
.stable td a { color: var(--ink); font: 11px var(--mono); text-decoration: none; margin-left: 2px; }
.stable td a:hover { text-decoration: underline; }
.scorecards { border-top: 1px solid var(--line); margin-top: 16px; }
.scorecards details { border-bottom: 1px solid var(--line); }
.scorecards summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) 48px 16px; gap: 14px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; font-size: 15px; color: var(--ink); }
.scorecards summary::-webkit-details-marker { display: none; }
.scorecards summary::after { content: "+"; font: 15px/1 var(--mono); color: var(--faint); text-align: right; }
.scorecards details[open] summary::after { content: "\2212"; }
.scorecards .rk { font: 12px var(--mono); color: var(--faint); }
.scorecards .vn { font-weight: 500; }
.scorecards .sc { text-align: right; font: 13px var(--mono); }
.vsum, .vrat { font-size: 14px !important; line-height: 21px !important; margin: 0 0 8px !important; }
.vrat { color: var(--faint) !important; }
.scorecards details > table { margin-bottom: 16px; }

/* What users say: pointers in the right band, beyond the text column's hairline. Not scored. */
.band { font-size: 13px; line-height: 19px; }
.band ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.band li { margin: 0 0 8px !important; font-size: 13px !important; line-height: 18px !important; }
.band .bv { display: block; color: var(--ink); }
.band a { color: var(--muted) !important; font-weight: 400 !important; background: none !important; text-decoration: underline; text-decoration-color: #d4d4d8; text-underline-offset: 2px; }
.band .bn { display: block; color: var(--faint); font-size: 12px; }
.band a + .bn { display: inline; margin-left: 6px; }
.band .bnote { margin: 12px 0 0 !important; font-size: 11.5px !important; line-height: 17px !important; color: var(--faint) !important; }
@media (min-width: 1200px) {
  .frame main { box-shadow: inset -1px 0 0 var(--line); }
  .band { position: absolute; top: 0; left: calc(100% + var(--inset) + 28px); width: 168px; }
  .artindex { transition: opacity 200ms ease; }
  .artindex[data-hidden] { opacity: 0; pointer-events: none; }
}
@media (max-width: 1199px) {
  .band { margin: 8px 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; }
  .band ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}
@media (max-width: 520px) {
  .ranking td.barc { display: none; }
  .ranking td.vn { width: auto; }
  .wtable td:last-child { display: none; }
  .wtable th:last-child { display: none; }
}

/* ---------- footer ---------- */
footer { margin: 120px 0 0; padding: 32px 0 64px; border-top: 1px solid var(--line); }
.about-block { max-width: 620px; margin-bottom: 28px; }
.about-block h2 { margin: 0 0 12px; font-size: 20px; line-height: 26px; }
.about-block p { margin: 0 0 10px; font-size: 14px; line-height: 21px; color: var(--muted); max-width: none; }
.about-block .disc { margin-top: 14px; font-size: 12.5px; line-height: 19px; color: var(--faint); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { font-size: 13px; color: var(--faint); text-decoration: none; }
footer nav a:hover { color: var(--ink); }

/* ---------- right index ---------- */
.artindex { position: sticky; top: 128px; align-self: start; padding-left: 28px; width: 196px; max-height: calc(100vh - 176px); overflow-y: auto; }
.eyebrow { margin: 0 0 12px; font: 11px/16px var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--faint); }
.artindex ol, .toc-inline ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.artindex a, .toc-inline a { display: block; padding: 2px 0; font-size: 13px; line-height: 20px; letter-spacing: 0.02em; color: var(--faint); text-decoration: none; transition: color 150ms; }
.artindex a:hover, .artindex a[data-active] { color: #201f23; }

/* ---------- below 1200: bar ---------- */
.bar { display: none; }
@media (max-width: 1199px) {
  :root { --inset: 24px; }
  .frame { display: block; max-width: 848px; }
  .rail, .artindex { display: none; }
  .bar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 24px;
    background: rgba(253, 254, 255, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .bar .mark { flex-direction: row; align-items: baseline; gap: 8px; font-size: 18px; }
  .menu { position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--ink); padding: 8px 0 8px 12px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: -8px; top: 44px; min-width: 200px; display: flex; flex-direction: column; padding: 8px; background: #fff;
    border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
  .menu nav a { padding: 8px 10px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 4px; }
  .menu nav a:hover, .menu nav a[aria-current] { color: var(--ink); background: var(--panel); }
  main { padding-top: 40px; }
  h1 { margin-top: 24px; }
  .tabchip { border-left-width: 4px; padding-left: 20px; }
  .toc-inline { display: block; margin: 24px 0 0; border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; }
  .toc-inline summary { cursor: pointer; font: 11px/20px var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--faint); }
  .toc-inline ol { margin-top: 8px; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { margin-top: 72px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .list a { flex-wrap: wrap; row-gap: 4px; padding: 12px 0; }
  .row-title { flex-basis: 100%; white-space: normal; }
  .row-meta { margin-left: auto; font-size: 13px; }
}
