/* Shared styles for operation8647.com: editorial, restrained */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5b616e;
  --line: #e4e0d8;
  --rule: #16181d;
  --accent: #1f3a5f;      /* deep navy */
  --accent-2: #8c2f2f;    /* muted oxblood, used sparingly */
  --link: #1f4e8c;
  --display: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px;
  --paper-rgb: 250, 248, 244;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1a1d22;
    --ink: #ecebe8;
    --muted: #a3a7b0;
    --line: #2b2f36;
    --rule: #ecebe8;
    --accent: #9db6d9;
    --accent-2: #e08a8a;
    --link: #9db6d9;
    --paper-rgb: 18, 20, 23;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(var(--paper-rgb), .96);
  -webkit-backdrop-filter: saturate(1.2) blur(6px); backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
nav.top .brand {
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
nav.top .brand span:last-child { color: var(--accent); }
nav.top ul { list-style: none; display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; overflow-x: auto; scrollbar-width: none; }
nav.top ul::-webkit-scrollbar { display: none; }
nav.top ul a {
  display: block; padding: 18px 0 16px; color: var(--muted); text-decoration: none;
  font-size: 15px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent;
}
nav.top ul a:hover { color: var(--ink); }
nav.top ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 600px) {
  nav.top .brand .long { display: none; }
  nav.top .wrap { gap: 14px; }
  nav.top ul { gap: 16px; }
  nav.top ul a { font-size: 14px; }
}

/* ---------- Shared header backdrop: faint Capitol on paper ---------- */
header.masthead, .page-head {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(var(--paper-rgb), 1) 0%, rgba(var(--paper-rgb), .96) 34%, rgba(var(--paper-rgb), .62) 62%, rgba(var(--paper-rgb), .35) 100%),
    url(/capitol.jpg) right 35% / cover no-repeat,
    var(--bg);
}
@media (max-width: 820px) {
  header.masthead, .page-head {
    background:
      linear-gradient(rgba(var(--paper-rgb), .86), rgba(var(--paper-rgb), .86)),
      url(/capitol.jpg) 60% 35% / cover no-repeat,
      var(--bg);
  }
}

/* ---------- Home masthead ---------- */
header.masthead { padding: 56px 0 52px; }
.masthead .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mh-kicker, section .kicker {
  margin: 0 0 12px; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.masthead h1 { font-size: clamp(44px, 6.6vw, 78px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -.02em; }
.masthead h1 em { font-style: italic; font-weight: 700; color: var(--accent); }
.masthead .lede { margin: 0; max-width: 520px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.mh-vote {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.days { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.days b { font-family: var(--display); font-weight: 700; font-size: 72px; line-height: .9; color: var(--ink); font-variant-numeric: lining-nums; }
.days span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.days strong { color: var(--ink); font-size: 17px; font-weight: 600; }
.mh-more { color: var(--link); font-size: 14px; font-weight: 500; text-align: center; margin-top: 4px; }
@media (max-width: 820px) {
  header.masthead { padding: 36px 0; }
  .masthead .wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 15.5px; text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #172d4a; }
.btn-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--bg); }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #121417; }
  .btn-primary:hover { background: #b8cbe6; }
}

/* ---------- Sub-page header ---------- */
.page-head { padding: 52px 0 40px; }
.page-head h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.02em; }
.page-head p { color: var(--muted); max-width: 660px; margin: 0 0 24px; font-size: 18.5px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.chips span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.chips a { color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.chips a:hover { border-bottom-color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.12; margin: 0 0 10px; }
section .intro { color: var(--muted); max-width: 700px; margin: 0 0 34px; font-size: 17.5px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.card .links { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.card .links a { font-weight: 500; font-size: 15px; }
.vote .hotline { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 12px; }

.figure {
  font-family: var(--display); font-size: clamp(36px, 4.4vw, 46px); font-weight: 700; line-height: 1.05;
  color: var(--ink); margin: 0 0 12px; letter-spacing: -.02em; font-variant-numeric: lining-nums;
}
.figure small {
  display: block; margin-top: 8px; font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: var(--muted);
}

.sources { font-size: 13.5px; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sources a { font-weight: 500; }

/* ---------- Clips ---------- */
a.clip { text-decoration: none; color: inherit; transition: border-color .15s; }
a.clip:hover { border-color: var(--ink); }
a.clip:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.clip .play {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.clip .dot { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.clip .meta { font-size: 13.5px; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Appointee profiles ---------- */
.people { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.person header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.person h3 { margin: 0; font-size: 23px; line-height: 1.2; }
.person .role { color: var(--muted); font-size: 14px; margin-top: 4px; }
.badge {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px; white-space: nowrap; border: 1px solid currentColor;
}
.badge.in { color: var(--accent-2); }
.badge.out { color: var(--muted); }
.person ul { margin: 0; padding-left: 18px; }
.person li { font-size: 15.5px; margin-bottom: 12px; }
.person li:last-child { margin-bottom: 0; }
.person li .src { font-size: 13px; color: var(--muted); white-space: nowrap; }
.person li .src a { font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 26px; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Home: explore tiles ---------- */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
a.tile {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .15s;
}
a.tile:hover { border-color: var(--ink); }
a.tile .big { font-family: var(--display); font-size: 38px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
a.tile .cap { font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; }
a.tile h3 { margin: 0 0 6px; font-size: 21px; }
a.tile p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
a.tile .go { margin-top: auto; font-weight: 600; color: var(--link); font-size: 15px; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
a.stat { display: block; color: var(--ink); text-decoration: none; padding: 30px 20px; border-left: 1px solid var(--line); }
a.stat:first-child { border-left: 0; padding-left: 0; }
a.stat:hover span { color: var(--ink); }
.stat b { display: block; font-family: var(--display); font-size: clamp(34px, 4vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.stat i { display: block; margin-top: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--link); }
@media (max-width: 760px) {
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); }
  a.stat { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  a.stat:nth-child(-n+2) { border-top: 0; }
  a.stat:nth-child(odd) { padding-left: 0; }
  a.stat:nth-child(even) { border-left: 1px solid var(--line); }
}

/* ---------- Pager ---------- */
.pager { padding: 40px 0; border-bottom: 1px solid var(--line); }
.pager .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pager a {
  flex: 1 1 240px; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; transition: border-color .15s;
}
.pager a:hover { border-color: var(--ink); }
.pager a.next { text-align: right; }
.pager small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.pager strong { font-family: var(--display); font-size: 21px; color: var(--ink); }

/* ---------- Note + footer ---------- */
.note {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px;
  font-size: 15px; color: var(--muted); margin-top: 28px;
}
footer { padding: 44px 0 60px; color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 8px; max-width: 760px; }

/* ---------- Front page: news ---------- */
section.news { padding-top: 48px; }
.news-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--rule);
}
.news-head h2 { margin: 0; }
.live { font-size: 13px; color: var(--muted); }
.live i { display: none; }
.news-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
.news-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
a.lead, a.feature { display: block; text-decoration: none; color: var(--ink); }
a.lead:hover .t, a.feature:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); border-radius: 2px; }
.ph.noimg { background: linear-gradient(rgba(var(--paper-rgb), .55), rgba(var(--paper-rgb), .55)), url(/capitol.jpg) center / cover; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news .body { padding: 14px 0 0; }
.news .m { font-size: 12.5px; color: var(--muted); }
.news .m b { color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; }
a.lead .t { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 6px 0 10px; letter-spacing: -.015em; }
a.lead .s { margin: 0; color: var(--muted); font-size: 17px; }
a.feature .t { font-family: var(--display); margin: 6px 0 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-side { border-left: 1px solid var(--line); padding-left: 28px; }
.news-side h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.headlines { list-style: none; margin: 0; padding: 0; }
.headlines li { border-bottom: 1px solid var(--line); }
.headlines li:last-child { border-bottom: 0; }
.headlines a { display: block; padding: 14px 0; text-decoration: none; color: var(--ink); }
.headlines a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.headlines .t { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.35; }
.headlines .m { display: block; margin-top: 4px; }
.headlines li.loading { padding: 14px 0; color: var(--muted); }
.news-note { margin: 24px 0 0; font-size: 13.5px; color: var(--muted); }
.skeleton { background: var(--line); border-radius: 2px; }
.lead.skeleton { height: 420px; }
.feature.skeleton { height: 220px; }
@media (max-width: 880px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-side { border-left: 0; padding-left: 0; border-top: 2px solid var(--rule); padding-top: 18px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .lead.skeleton { height: 300px; }
}

/* ---------- Prose pages (standards) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Trust signals ---------- */
.trust { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.trust a { color: var(--ink); font-weight: 500; }
.sourced { background: var(--bg); border-bottom: 1px solid var(--line); }
.sourced .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding-top: 22px; padding-bottom: 22px; }
.sourced span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sourced ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.sourced li { font-family: var(--display); font-size: 16.5px; font-weight: 600; color: var(--ink); }
.sourced a { font-size: 14px; margin-left: auto; }

/* ---------- Thanksgiving guide ---------- */
.talks { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.talk {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.talk.dealt { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,58,95,.15); }
.talk span, .reply span {
  display: block; margin-bottom: 6px; font-family: var(--sans); font-style: normal;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.heard { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.reply { margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--accent); }
.reply span { color: var(--accent); }
.reply p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.talk-foot { margin-top: auto; display: flex; align-items: flex-end; gap: 12px; }
.talk-foot .sources { flex: 1; margin: 0; }
.copy {
  flex: none; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius); background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.copy:hover { border-color: var(--ink); }
.deal-row { margin: -14px 0 24px; }
.tip h3 { font-size: 20px; }
.tip.share .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Home: Thanksgiving promo ---------- */
.promo { background: var(--surface); border-bottom: 1px solid var(--line); }
.promo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; }
.promo h2 { margin: 4px 0 4px; font-size: clamp(24px, 3vw, 30px); }
.promo p { margin: 0; color: var(--muted); }
.promo .mh-kicker { margin: 0; }
