/* methodology.css: standalone newsroom style for methodology.html (does not depend on app.css). */
:root {
  --navy: #0f1f36;
  --cream: #f6efe0;
  --graham: #c8a165;
  --ink: #1d232b;
  --muted: #5b6470;
  --rule: #e2d6bd;
  --paper: #fffdf8;
  --dem: #2a5fa8;
  --rep: #c4363b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.6;
}
a { color: var(--dem); }
a:hover { color: var(--navy); }

/* Masthead */
.masthead { background: var(--navy); color: #fff; border-bottom: 6px solid var(--graham); }
.masthead-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: last baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: flex-end; gap: 12px; color: #fff; text-decoration: none;
  font-family: Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: .02em; font-size: 16px; }
.brand { min-width: 0; max-width: 100%; }
.brand img { height: 26px; width: auto; max-width: 100%; display: block; }
.brand img.brand-secondary { height: 16.9px; } /* 35% smaller than the Roll Call mark */
.brand span { border-left: 1px solid rgba(255,255,255,.35); padding-left: 12px; white-space: nowrap; }
.back-link { color: var(--graham); font-family: Helvetica, Arial, sans-serif; font-size: 15px; text-decoration: none; }
.back-link:hover { color: #fff; text-decoration: underline; }
.title-block { max-width: 1040px; margin: 0 auto; padding: 28px 24px 36px; }
.kicker { margin: 0 0 6px; color: var(--graham); font-family: Helvetica, Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; }
.title-block h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; font-weight: 700; }
.dek { margin: 0; max-width: 46em; color: #d9dee6; font-size: 19px; }

/* Page body */
.page { max-width: 1040px; margin: 0 auto; padding: 8px 24px 40px; }
.doc-section { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--navy);
  padding: 24px 28px; margin: 28px 0; }
.doc-section h2 { margin: 0 0 12px; font-size: 30px; color: var(--navy); }
.doc-section h3 { margin: 22px 0 8px; font-size: 20px; color: var(--navy); }
.section-dek { margin-top: -6px; color: var(--muted); font-style: italic; }
.as-of { background: var(--cream); border-left: 4px solid var(--graham); padding: 10px 14px; margin: 16px 0 0; }
.fine { color: var(--muted); font-size: 15px; }
.notes-list li, .steps li { margin-bottom: 10px; }
.notes-list, .steps { padding-left: 1.3em; }

/* Stat tiles */
.tiles-head { font-family: Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em;
  font-size: 13px !important; color: var(--muted) !important; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tile { background: var(--cream); border: 1px solid var(--rule); border-bottom: 3px solid var(--graham);
  padding: 12px 10px; display: flex; flex-direction: column; min-width: 0; }
.tile-value { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.1;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-label { font-family: Helvetica, Arial, sans-serif; font-size: 13px; color: var(--ink); margin-top: 4px; line-height: 1.3; }
.tile-note { font-family: Helvetica, Arial, sans-serif; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.3; }

/* Tables */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-family: Helvetica, Arial, sans-serif; font-size: 14px; }
.data-table th { text-align: left; background: var(--navy); color: #fff; padding: 7px 10px; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 6px 10px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.data-table tbody tr:nth-child(even) td { background: #fbf6ea; }
details.more summary { cursor: pointer; color: var(--dem); font-family: Helvetica, Arial, sans-serif; font-size: 15px; margin: 4px 0 8px; }
details.more[open] summary { margin-bottom: 8px; }
details.more .table-wrap { max-height: 420px; overflow-y: auto; border: 1px solid var(--rule); }

/* Callouts */
.callout { padding: 16px 20px; margin: 20px 0; border: 1px solid var(--rule); }
.callout h3 { margin-top: 0; }
.callout-empty { background: #f4f3f0; border-left: 6px solid #8a8f96; }
.callout-key { background: #fdf7e8; border-left: 6px solid var(--graham); }

/* Party swatches */
.swatches { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 3px; }

/* Disclaimer / credit */
.disclaimer { border-top-color: var(--graham); }
.credit-line { font-size: 20px; font-style: italic; border-left: 4px solid var(--navy); padding-left: 16px; margin: 0; }

/* Laziness Disclosure */
.laziness { background: var(--navy); color: #e8ecf2; border-color: var(--navy); border-top-color: var(--graham); }
.laziness h2 { color: var(--graham); }
.lazy-meter { max-width: 560px; margin: 8px 0 18px; font-family: Helvetica, Arial, sans-serif; }
.lazy-meter-label { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .1em; }
.lazy-meter-track { height: 18px; background: #26364f; border-radius: 9px; overflow: hidden; margin: 6px 0; }
.lazy-meter-fill { height: 100%; background: linear-gradient(90deg, var(--graham), #e6c98f); }
.lazy-meter-scale { display: flex; justify-content: space-between; font-size: 12px; color: #9fb0c6; }
.lazy-list { padding-left: 1.2em; margin: 0; }
.lazy-list li { margin-bottom: 6px; }
.lazy-footnote-mark { color: var(--graham); text-decoration: none; margin-left: 1px; }
.lazy-footnote { margin: 14px 0 0; font-size: 13px; font-style: italic; color: #9fb0c6; }

.page-foot { text-align: center; color: var(--muted); font-family: Helvetica, Arial, sans-serif; font-size: 14px; padding: 0 24px 32px; }

/* Responsive */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .doc-section { padding: 18px 16px; margin: 18px 0; }
  .page { padding: 4px 12px 28px; }
  .doc-section h2 { font-size: 25px; }
  .masthead-inner, .title-block { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile-value { font-size: 24px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* Keep the logos at fixed heights (like the main page) so they never stretch to full width. */
  .brand img { height: 22px; width: auto; }
  .brand img.brand-secondary { height: 14.3px; }
  .masthead-inner { flex-wrap: wrap; gap: 6px 16px; }
}

.small-note { font-size: 13px; margin: -6px 0 8px; }
/* Click-to-sort table headers (assets/js/sortable-tables.js) */
.data-table th[data-sort-key] { padding: 0; }
.sort-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; padding: inherit;
  padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.sort-btn:hover { text-decoration: underline; }
.sort-btn:focus-visible { outline: 2px solid var(--graham); outline-offset: -2px; }
.sort-arrow::after { content: '\2195'; opacity: .35; font-size: .85em; }
th[aria-sort="ascending"] .sort-arrow::after { content: '\25B2'; opacity: .9; }
th[aria-sort="descending"] .sort-arrow::after { content: '\25BC'; opacity: .9; }

/* Scroll hints (assets/js/scroll-hints.js): bottom fade + chevron while there's more below; right-edge fade for
   tables that scroll sideways. Zero-height sticky element, so it never changes layout. */
.scroll-hint { position: sticky; bottom: 0; height: 0; pointer-events: none; display: none; z-index: 3; }
.has-more-below > .scroll-hint { display: block; }
.scroll-hint::before { content: ''; position: absolute; left: var(--hint-inset, 0px); right: var(--hint-inset, 0px);
  bottom: var(--hint-bottom, 0px); height: 44px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--hint-bg, #fff) 85%); }
.scroll-hint-btn { position: absolute; left: 50%; bottom: calc(var(--hint-bottom, 0px) + 6px); transform: translateX(-50%);
  pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #dcdad5; background: #fff;
  color: #4a525c; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  box-shadow: 0 2px 6px rgba(15, 31, 54, .18); animation: scroll-hint-bob 1.8s ease-in-out infinite; }
.scroll-hint-btn:hover { color: #0f1f36; border-color: #c8a165; }
@keyframes scroll-hint-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 3px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint-btn { animation: none; } }
.has-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }

/* iOS Safari: same masthead baseline issue as the main page; plain centering once the header wraps. */
@media (max-width: 900px) { .masthead-inner { align-items: center; } }
.small-note.table-note { margin-top: 10px; }  /* under a table, not a heading: no pull-up */
