/* A small editorial stylesheet. Data and written work take priority. */
:root {
  --paper: #f9f8f5;
  --ink: #263138;
  --muted: #626965;
  --line: #ddded8;
  --accent: #415f54;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: 36px; line-height: 1.2; letter-spacing: -.025em; }
h2 { font-size: 25px; line-height: 1.35; letter-spacing: -.015em; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.profile-link { text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
button:disabled { opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  padding: 7px 12px;
  background: var(--paper);
  z-index: 10;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Shared navigation and restrained page introductions. */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font: 24px/1.2 var(--serif); letter-spacing: -.025em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.header-inner nav { display: flex; gap: 30px; }
.header-inner nav a { padding-block: 12px; font-size: 13px; text-decoration: none; }
.header-inner nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; color: var(--accent); }
.page-intro { padding: 32px 0 25px; }
.page-intro > p { margin-top: 10px; }
.page-intro .project-attribution { margin-top: 7px; font-size: 12px; color: var(--muted); }
.deals-page { padding-bottom: 34px; }
.reading-page { max-width: 760px; padding-bottom: 45px; }

/* Tracker controls retain native, keyboard-friendly form elements. */
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.filter-grid { display: grid; grid-template-columns: minmax(180px, 1fr) 220px 150px auto; gap: 14px; align-items: end; }
.filter-grid > div { min-width: 0; }
.filter-grid label { display: block; font-size: 12px; margin-bottom: 5px; color: var(--muted); }
.filter-grid input, .filter-grid select {
  height: 38px;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #c9cec6;
  border-radius: 2px;
  background: #fffefa;
  font-size: 13px;
}
.filter-grid input::placeholder { color: #747b75; }
.reset-button { padding: 0 2px; height: 38px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; color: var(--muted); }
.reset-button:hover { color: var(--ink); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0 9px; font-size: 11px; color: var(--muted); }
.results-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.page-size { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.page-size select { padding: 3px 5px; background: transparent; border: 1px solid #c9cec6; border-radius: 2px; font-size: 11px; }

/* Compact rows with plain sector labels, without category decoration. */
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
th { padding: 9px 12px; border-block: 1px solid #b8bfb5; font-size: 12px; font-weight: 500; color: #4e5851; }
th:first-child { width: 114px; }
th:nth-child(3) { width: 182px; }
th:last-child { width: 158px; }
th button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; font-size: inherit; font-weight: inherit; }
th button:disabled { opacity: 1; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: #f0f1eb; }
.date-cell { white-space: nowrap; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.transaction-cell { font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.sector-cell { font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.source-cell { font-size: 11px; line-height: 1.7; color: #505c54; overflow-wrap: anywhere; }
.source-cell a { text-decoration: none; }
.source-cell a:hover { text-decoration: underline; }
.source-cell a span[aria-hidden] { white-space: nowrap; }
.pagination-bar { margin-top: 19px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; color: var(--muted); }
.pagination { display: flex; gap: 4px; align-items: center; }
.pagination button { min-width: 30px; min-height: 32px; padding: 0 7px; border: 1px solid transparent; background: transparent; border-radius: 2px; font-size: 12px; }
.pagination button:hover:not(:disabled) { border-color: #c9cec6; }
.pagination button[aria-current] { border-color: #adb6a7; color: var(--ink); background: #eceee6; }
.pagination .page-step { padding-inline: 10px; }
.pagination .ellipsis { padding-inline: 3px; }
.button { display: inline-block; padding: 7px 13px; border: 1px solid #b8bfb5; background: transparent; border-radius: 2px; font-size: 13px; text-decoration: none; }
.button:hover { background: #eceee6; }
.empty-state { padding: 32px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.empty-state h3 { font-size: 24px; }
.empty-state p { margin: 9px 0 15px; font-size: 13px; color: var(--muted); }
.notice { font-size: 12px; margin-top: 18px; }
.methodology { max-width: 880px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.methodology summary { width: fit-content; padding: 5px 0; }
.methodology > div { margin-top: 10px; }
.methodology p + p { margin-top: 10px; }

/* Research is a conventional list and a single readable text column. */
.research-entry { padding: 23px 0 27px; border-top: 1px solid var(--line); }
.research-entry h2 { font-size: 26px; }
.research-entry > p { margin-top: 12px; font-size: 14px; }
.research-entry .research-meta, .research-entry .research-author { font-size: 12px; color: var(--muted); }
.research-entry .research-meta { margin-top: 8px; }
.research-entry .research-author { margin-top: 9px; }
.article-header h1 { font-size: 36px; }
.article-header .article-deck { font-size: 17px; color: #4c5750; }
.article-header .article-byline { font-size: 12px; color: var(--muted); margin-top: 14px; }
.article-byline > span { margin-left: 20px; display: inline-block; }
.article-facts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 25px; font-size: 12px; }
.article-facts > div { display: flex; gap: 6px; }
.article-facts dt { color: var(--muted); }
.article-facts dd { font-weight: 500; }
.article-contents { margin: 0 0 25px; font-size: 12px; color: var(--muted); }
.article-contents summary { width: fit-content; }
.article-contents nav { display: grid; gap: 6px; padding: 12px 0 0 16px; }
.article-contents a { width: fit-content; }
.prose section + section { margin-top: 30px; }
.prose h2 { margin-bottom: 13px; }
.prose p { font-size: 15px; line-height: 1.9; }
.prose p + p { margin-top: 15px; }
.article-body h2 { font-size: 25px; }
.funding-figure { margin-top: 21px; padding: 14px 0; border-block: 1px solid var(--line); }
.funding-figure figcaption { font-size: 13px; font-weight: 500; }
.funding-figure dl { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.funding-figure dl > div { display: flex; gap: 9px; }
.funding-figure dt { color: var(--muted); }
.funding-figure p { margin-top: 9px; font-size: 12px; color: var(--muted); }
.article-sources > p { font-size: 12px; color: var(--muted); }
.article-sources ol { padding-left: 20px; }
.article-sources li { margin-bottom: 9px; padding-left: 3px; font-size: 12px; overflow-wrap: anywhere; }
.about-page .page-intro { padding-bottom: 22px; }
.about-page .prose h2 { font-size: 25px; }
.not-found { padding-block: 45px 65px; }
.not-found p { margin: 15px 0; }

/* Shared footer keeps only attribution and the original disclaimer. */
.site-footer { padding: 23px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-credit { font-size: 12px; }
.disclaimer { font-size: 11px; line-height: 1.8; max-width: 880px; margin-top: 9px; }

@media (max-width: 900px) {
  .container { width: calc(100% - 40px); }
  .filter-grid { grid-template-columns: minmax(160px, 1fr) 185px 130px auto; gap: 10px; }
  th:first-child { width: 100px; }
  th:nth-child(3) { width: 140px; }
  th:last-child { width: 125px; }
  td, th { padding-inline: 9px; }
  .results-meta { gap: 4px 18px; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 67px; gap: 18px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand img { height: 25px; width: 25px; }
  .header-inner nav { gap: 20px; }
  .filter-grid { grid-template-columns: 1fr 1fr auto; gap: 12px; }
  .search-field { grid-column: 1 / -1; }
  .results-meta { flex-direction: column; gap: 2px; }
  .page-intro { padding-top: 27px; padding-bottom: 22px; }
  h1, .article-header h1 { font-size: 32px; }
}

@media (max-width: 580px) {
  .container { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; padding-block: 13px; gap: 4px 20px; }
  .brand { font-size: 20px; min-height: 32px; gap: 7px; }
  .header-inner nav { margin-left: auto; gap: 16px; }
  .header-inner nav a { padding-block: 7px; font-size: 12px; }
  .page-intro > p { font-size: 14px; }
  .page-intro .project-attribution { font-size: 11px; }
  .filter-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 9px 12px; }
  .filter-grid input, .filter-grid select { font-size: 12px; }
  .filter-grid label { font-size: 11px; }
  .reset-button { justify-self: start; grid-column: 1 / -1; height: 25px; font-size: 11px; }
  .results-bar { margin-top: 11px; font-size: 10px; gap: 10px; }
  .last-updated { font-size: 10px; }
  .page-size { gap: 5px; }
  .page-size label { font-size: 10px; }
  table, tbody, tr, td { display: block; width: 100%; }
  .table-wrap { border-top: 1px solid #b8bfb5; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody tr { display: grid; grid-template-columns: 1fr 1.5fr; gap: 7px 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 0; }
  .date-cell { grid-column: 1; grid-row: 1; font-size: 11px; }
  .sector-cell { grid-column: 2; grid-row: 1; text-align: right; font-size: 11px; }
  .transaction-cell { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .source-cell { grid-column: 1 / -1; grid-row: 3; font-size: 11px; }
  .source-cell::before { content: 'Source: '; color: var(--muted); }
  .pagination-bar { flex-direction: column; gap: 10px; margin-top: 17px; }
  .pagination { gap: 2px; }
  .pagination button { min-width: 28px; font-size: 11px; padding-inline: 5px; }
  .pagination .page-step { padding-inline: 6px; }
  .methodology { font-size: 11px; }
  .reading-page { padding-bottom: 32px; }
  .research-entry { padding-block: 19px 22px; }
  .research-entry h2 { font-size: 24px; }
  .research-entry > p { font-size: 14px; }
  .research-entry .research-meta, .research-entry .research-author { font-size: 11px; }
  .article-header .article-deck { font-size: 16px; }
  .article-byline > span { display: block; margin-left: 0; margin-top: 4px; }
  .article-facts { gap: 5px 18px; font-size: 11px; }
  .prose h2, .article-body h2, .about-page .prose h2 { font-size: 23px; }
  .prose p { font-size: 14px; }
  .prose section + section { margin-top: 26px; }
  .funding-figure dl { gap: 5px 22px; }
  .funding-figure p { font-size: 11px; }
  .article-sources li { font-size: 11px; }
  .footer-credit { font-size: 11px; }
  .disclaimer { font-size: 10px; }
}

@media print {
  .site-header, .site-footer, .article-contents, #tracker-form, .pagination-bar, .page-size { display: none; }
  body { background: #fff; color: #000; }
  .container { width: 100%; max-width: none; }
  .page-intro { padding-top: 0; }
  a { color: inherit; }
  h2 { break-after: avoid; }
  tr { break-inside: avoid; }
}
