/* The G&D Index · Ezra's Notes
   Same stylesheet as Investor Letters (letters.ezrasnotes.com), plus the block at the end. */

:root {
  --ink: #111;
  --mute: #555;
  --rule: #111;
  --hair: #d6d6d6;
  --paper: #fff;
  --hover: #f6f6f6;
  --button-hover: #333;
  --head: "Archivo Black", "Arial Black", Helvetica, sans-serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  --ink: #ededed;
  --mute: #a3a3a3;
  --rule: #ededed;
  --hair: #333;
  --paper: #0e0e0e;
  --hover: #1b1b1b;
  --button-hover: #c9c9c9;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 780px;
  padding: 0 22px 48px;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--body);
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code { font-size: .85em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 15px; color: var(--mute); }

/* ── Masthead ─────────────────────────────── */
.masthead { padding-top: 20px; text-align: center; }
.topline {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 12px/1 var(--head); text-transform: uppercase; letter-spacing: .14em;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.topline a { text-decoration: none; }
.topright { display: flex; align-items: baseline; gap: 14px; }
.theme-toggle {
  font: 11px/1 var(--head); text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink); background: none; border: 1px solid var(--ink); padding: 5px 8px 4px; cursor: pointer;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.topline .checked { color: var(--mute); font-family: var(--body); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 14px; }
.nameplate {
  display: block; margin: 18px 0 14px;
  font: clamp(38px, 9vw, 68px)/1 var(--head);
  letter-spacing: -.01em; text-decoration: none;
}
.byline { margin: -4px 0 16px; font: italic 17px/1.3 var(--body); color: var(--mute); }
.byline a { color: var(--ink); text-decoration: none; font-style: italic; }
.byline a:hover { text-decoration: underline; }
.masthead nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px;
  padding: 9px 0; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule);
  font: 13px/1.4 var(--head); text-transform: uppercase; letter-spacing: .12em;
}
.masthead nav a { text-decoration: none; }
.masthead nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

main { padding-top: 30px; }

/* ── Type ─────────────────────────────────── */
h1, h2 { font-family: var(--head); font-weight: 400; line-height: 1.1; }
.page-title { font-size: clamp(32px, 6vw, 46px); margin: 0 0 8px; }
.dek { font-size: 21px; line-height: 1.5; margin: 0 0 12px; }
.free { font-size: 16px; margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--ink); }
.lede { border-bottom: 1px solid var(--hair); padding-bottom: 18px; margin-bottom: 30px; }
.rule-head {
  font-size: 13px; text-transform: uppercase; letter-spacing: .14em;
  border-top: 3px solid var(--rule); padding-top: 9px; margin: 34px 0 6px;
}
.firm, .firm-line { color: var(--mute); font-style: italic; }
.firm-line { margin: 0 0 16px; }
.firm-line.big { font-size: 20px; }
.style { margin: 0 0 14px; }

/* ── Latest letters list ──────────────────── */
.letters { list-style: none; margin: 0; padding: 0; }
.letters li {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--hair);
}
.period { font: 14px/1 var(--head); letter-spacing: .03em; white-space: nowrap; }
.who a { font-weight: 600; text-decoration: none; }
.who a:hover { text-decoration: underline; }
.who .firm { display: block; font-size: 15px; }
.read { font: 12px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }

/* ── Call to action ───────────────────────── */
.cta {
  margin: 40px 0; padding: 22px 24px; text-align: center;
  border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 4px;
}
.cta-kicker { font: 12px/1 var(--head); text-transform: uppercase; letter-spacing: .16em; margin: 0 0 10px; }
.cta-text { font-size: 20px; margin: 0 0 16px; }
.cta.slim { margin-top: 48px; }
.button {
  display: inline-block; padding: 12px 22px; background: var(--ink); color: var(--paper);
  font: 13px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
}
.button:hover { background: var(--button-hover); }
.nav-cta { border-bottom: 2px solid var(--ink); }

/* ── Best for · via ───────────────────────── */
.best-for { margin: 0 0 14px; }
.best-for span { font: 11px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; background: var(--ink); color: var(--paper); padding: 4px 6px 3px; margin-right: 6px; vertical-align: 2px; }
.via { font: italic 13px var(--body); color: var(--mute); text-transform: none; letter-spacing: 0; }
.read .via { display: block; margin-top: 4px; text-align: right; }
.cta-sub { font-size: 15px; color: var(--mute); margin: -6px 0 18px; }

/* ── Share ─────────────────────────────── */
.share { margin: 28px 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.share-text { margin: 0; font-style: italic; }
.share-buttons { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-buttons a, .share-buttons button {
  font: 11px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
  color: var(--ink); background: none; border: 1px solid var(--ink); padding: 8px 10px 7px; cursor: pointer; }
.share-buttons a:hover, .share-buttons button:hover { background: var(--ink); color: var(--paper); }
.share-buttons .share-native { background: var(--ink); color: var(--paper); }

/* ── Wanted (classified ad) ─────────────── */
.wanted { margin: 40px 0; padding: 16px 18px; border: 1px dashed var(--ink); text-align: center; }
.wanted-kicker { display: inline-block; margin: 0 0 8px; padding: 3px 8px 2px; background: var(--ink); color: var(--paper);
  font: 11px/1.2 var(--head); text-transform: uppercase; letter-spacing: .2em; }
.wanted-head { margin: 0 0 6px; font: 22px/1.15 var(--head); }
.wanted-body { margin: 0; font-size: 16px; }

/* ── Roster (home) ────────────────────────── */
.roster { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.roster li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.roster a { font-weight: 600; text-decoration: none; }
.roster .firm { font-size: 15px; }
.more { font: 13px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; }

/* ── Directory ────────────────────────────── */
.filter input {
  width: 100%; margin: 12px 0 8px; padding: 12px 14px;
  font: 17px var(--body); border: 1px solid var(--rule); border-radius: 0; background: var(--paper); color: var(--ink);
}
.directory { list-style: none; padding: 0; margin: 0; }
.directory li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.directory h2 { font-size: 26px; margin: 0 0 2px; }
.directory h2 a { text-decoration: none; }
.directory .style { font-size: 16px; color: var(--mute); }
.directory .why { margin: 0 0 10px; }
.meta { font: 12px/1.4 var(--head); text-transform: uppercase; letter-spacing: .1em; margin: 0; }

/* ── Managers table ───────────────────────── */
.mtable { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; line-height: 1.45; }
.mtable th { font: 11px/1.2 var(--head); text-transform: uppercase; letter-spacing: .12em; text-align: left;
  border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 9px 10px 7px 0; }
.mtable td { vertical-align: top; padding: 11px 10px 11px 0; border-bottom: 1px solid var(--hair); }
.mtable .who { width: 26%; }
.mtable .who a { font-weight: 600; text-decoration: none; font-size: 16px; }
.mtable .who a:hover { text-decoration: underline; }
.mtable .who .firm { display: block; font-size: 14px; }
.mtable .style { width: 34%; color: var(--mute); }
.mtable .num { text-align: right; white-space: nowrap; font-family: var(--head); font-size: 14px; padding-right: 0; }
.mtable th.num { font-size: 11px; }
.mtable .latest, .mtable .reg { display: block; font: italic 12px var(--body); color: var(--mute); }
.mtable tbody tr:hover { background: var(--hover); }

/* ── Manager page ─────────────────────────── */
.crumb { font: 12px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 18px; }
.crumb a { text-decoration: none; }
.take { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ink); }
.take p { font-size: 20px; margin: 0; }
.take .take-label { font: 12px/1 var(--head); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; }
.source { font-size: 15px; color: var(--mute); border-bottom: 3px double var(--rule); padding-bottom: 14px; }
.notice { border: 1px solid var(--rule); padding: 14px 16px; }
.year { display: grid; grid-template-columns: 90px 1fr; gap: 16px; border-bottom: 1px solid var(--hair); padding: 12px 0; }
.year h2 { font-size: 22px; margin: 2px 0 0; }
.year-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.year-list a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.year-list a:hover { border-bottom-width: 2px; }
.arrow { font-size: .8em; }

/* ── About ────────────────────────────────── */
.prose h2 { font-size: 20px; margin: 30px 0 8px; }

/* ── Footer ───────────────────────────────── */
footer { margin-top: 56px; padding-top: 14px; border-top: 3px double var(--rule); font-size: 14px; color: var(--mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 12px/1.4 var(--head); text-transform: uppercase; letter-spacing: .1em; }
.footer-links a { color: var(--ink); text-decoration: none; }
.rights { max-width: 560px; }

/* ── Phones ───────────────────────────────── */
@media (max-width: 720px) {
  .mtable thead { display: none; }
  .mtable, .mtable tbody, .mtable tr, .mtable td { display: block; width: auto; }
  .mtable tr { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .mtable td { border: 0; padding: 2px 0; }
  .mtable .num { text-align: left; }
  .mtable .latest, .mtable .reg { display: inline; margin-left: 6px; }
  .mtable .bf::before { content: "Best for: "; font: 11px var(--head); text-transform: uppercase; letter-spacing: .1em; }
}

@media (max-width: 560px) {
  body { font-size: 17px; padding: 0 16px 40px; }
  .letters li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .letters .period { grid-column: 1 / -1; font-size: 12px; color: var(--mute); }
  .roster { columns: 1; }
  .year { grid-template-columns: 1fr; gap: 6px; }
  .dek, .take p, .cta-text { font-size: 19px; }
  .topline .checked { display: none; }
}

/* companies, company pages and search */
.clist { list-style: none; margin: 18px 0 24px; padding: 0; columns: 3 220px; column-gap: 32px; }
.clist li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair); }
.clist a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.ccount, .smeta, .hit-meta { color: var(--mute); font-size: 15px; }
.hits { list-style: none; margin: 18px 0 20px; padding: 0; border-top: 3px double var(--rule); }
.hits li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.hit-when { font-family: "Archivo Black", Arial, sans-serif; font-size: 15px; padding-top: 3px; }
.hit-what > a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.hit-meta { display: block; margin-top: 4px; }
.hit-meta a { color: inherit; }
.sresults { list-style: none; margin: 6px 0 26px; padding: 0; }
.sresults li { padding: 9px 0; border-bottom: 1px solid var(--hair); }
.sresults a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.smeta { display: block; margin-top: 2px; }
#results .cta-kicker { margin-top: 26px; }
@media (max-width: 560px) {
  .hits li { grid-template-columns: 1fr; }
}
.section-head { font-size: 22px; margin: 30px 0 4px; }
.top10 { columns: 2 260px; }
[hidden] { display: none !important; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 10px 0 26px;
  font: 13px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; }
.pager a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.pager-nums { display: flex; flex-wrap: wrap; gap: 8px; }
.pager-nums a, .pager-nums span { min-width: 28px; text-align: center; padding: 7px 4px 6px; border: 1px solid var(--hair); }
.pager-nums a { border-bottom: 1px solid var(--hair); }
.pager-nums span[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sectors { list-style: none; margin: 8px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sectors li { border: 1px solid var(--hair); padding: 7px 10px 6px; }
.sectors a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.sectors a[aria-current] { border-bottom-width: 2px; font-weight: 600; }
.sectors .ccount { margin-left: 4px; }

/* ── The G&D Index additions ─────────────── */
.issues li { grid-template-columns: 128px 1fr auto; }
.issues .period a { text-decoration: none; }
.issues .period a:hover { text-decoration: underline; }
.issues .who a { font-weight: 400; }
.unofficial { margin: 0 0 10px; font-style: italic; color: var(--ink); }
.pg { font: 14px/1 var(--head); letter-spacing: .03em; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--ink); }
.pg:hover { border-bottom-width: 2px; }
.hit-meta .pg { font-size: 12px; }
.who-line { display: block; font-weight: 600; }
.who-line a { text-decoration: none; }
.who-line a:hover { text-decoration: underline; }
.hit-what .firm { display: block; font-size: 15px; }
.note { margin: 6px 0 4px; font-size: 16px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips a { font: 10px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  border: 1px solid var(--hair); padding: 5px 7px 4px; color: var(--ink); }
.chips a:hover { border-color: var(--ink); }
.dir { display: inline-block; font: 10px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; padding: 4px 6px 3px; vertical-align: 2px; margin-right: 4px; }
.dir-long { background: var(--ink); color: var(--paper); }
.dir-short { border: 1px solid var(--ink); color: var(--ink); }
.draft-tag { display: inline-block; font: 10px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; padding: 3px 5px 2px;
  border: 1px dashed var(--mute); color: var(--mute); vertical-align: 3px; }
.page-title .draft-tag { font-size: 12px; vertical-align: 10px; }
.preview-bar { margin: 0 -22px; padding: 6px 22px; background: var(--hover); border-bottom: 1px dashed var(--mute); font: italic 14px var(--body); color: var(--mute); text-align: center; }
.hits.flush { border-top: 0; margin: 0; }
.year .hits li { grid-template-columns: 110px 1fr; padding: 4px 0 12px; border-bottom: 0; }
.sectors.big li { font-size: 17px; }
.filter input { -webkit-appearance: none; appearance: none; }
.pfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 6px 0 14px; }
.seg { display: inline-flex; }
.seg button { font: 11px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); background: none;
  border: 1px solid var(--ink); padding: 9px 12px 8px; cursor: pointer; margin-left: -1px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pfilters label { font: 11px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; }
.pfilters select { font: 16px var(--body); margin-left: 6px; padding: 6px 8px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); }
.ptable .when { width: 18%; white-space: nowrap; }
.ptable .when a { text-decoration: none; }
.ptable .who { width: 36%; }
.ptable .style { width: 36%; }
@media (max-width: 720px) {
  .ptable .when { font: 12px var(--head); }
}
@media (max-width: 560px) {
  .issues li { grid-template-columns: 1fr auto; }
  .year .hits li { grid-template-columns: 1fr; }
  .preview-bar { margin: 0 -16px; }
}
.issues .period .draft-tag { display: table; margin-top: 6px; }
.rule-head + .hits { border-top: 0; margin-top: 4px; }
.source.plain { border-bottom: 0; padding-bottom: 0; }
.with { display: block; font-size: 15px; color: var(--mute); }
@media (max-width: 720px) {
  .ptable .latest { display: block; margin: 2px 0 0; }
  .ptable .when { margin-bottom: 4px; }
}
@media (max-width: 720px) {
  .ptable .when, .ptable .who, .ptable .style { width: auto; }
}
.security { font-weight: 400; font-size: 15px; color: var(--mute); }

/* Pager for long lists */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 22px 0 8px; }
.pager button { font: 11px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); background: none;
  border: 1px solid var(--ink); padding: 9px 11px 8px; min-width: 36px; cursor: pointer; }
.pager button:hover:not(:disabled) { background: var(--hover); }
.pager button[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .gap { padding: 0 2px; color: var(--mute); }
.pager .pinfo { margin-left: 8px; color: var(--mute); }
.wanted-head a { color: var(--ink); text-decoration: none; }
.footer-follow { margin-top: 10px; }
