/* Shared styles for operation8647.com */
:root {
    --bg: #f7f5f0;
    --surface: #ffffff;
    --ink: #14182b;
    --muted: #555b70;
    --line: #dedbd2;
    --navy: #14213d;
    --red: #b3202a;
    --red-soft: #fbeaea;
    --blue: #1d4ed8;
    --radius: 12px;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0e1220;
      --surface: #161b2e;
      --ink: #eceef5;
      --muted: #a3a9bd;
      --line: #2a3150;
      --navy: #0a0e1a;
      --red: #e0474f;
      --red-soft: #2a1519;
      --blue: #7aa2ff;
    }
  }
  * { 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 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  a { color: var(--blue); }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

  /* Nav */
  nav.top {
    position: sticky; top: 0; z-index: 10;
    background: var(--navy); color: #fff;
    border-bottom: 3px solid var(--red);
  }
  nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 56px; }
  nav.top .brand { font-weight: 900; letter-spacing: .04em; color: #fff; text-decoration: none; white-space: nowrap; }
  nav.top .brand span { color: #ff6b72; }
  nav.top ul { list-style: none; display: flex; gap: 4px; 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; color: #d6dbea; text-decoration: none; font-size: 15px; font-weight: 600;
    padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  }
  nav.top ul a:hover { color: #fff; background: rgba(255,255,255,.08); }
  nav.top ul a[aria-current="page"] { color: #fff; background: var(--red); }
  @media (max-width: 560px) {
    nav.top .brand .long { display: none; }
    nav.top .wrap { gap: 10px; }
    nav.top ul a { font-size: 14px; padding: 6px 8px; }
  }

  /* Sub-page header */
  .page-head { background: var(--navy); color: #fff; padding: 40px 0 36px; }
  .page-head h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; margin: 0 0 10px; font-weight: 900; }
  .page-head p { color: #cfd5e6; max-width: 680px; margin: 0 0 22px; font-size: 18px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips span { color: #9aa5c4; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; align-self: center; margin-right: 4px; }
  .chips a {
    color: #fff; text-decoration: none; font-size: 15px; font-weight: 700;
    padding: 7px 14px; border-radius: 999px; border: 1.5px solid #4a587c;
  }
  .chips a:hover { border-color: #ff6b72; color: #ff6b72; }

  /* Home: explore tiles */
  .tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  a.tile {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red);
    border-radius: var(--radius); padding: 22px; transition: transform .15s, border-color .15s;
  }
  section:nth-of-type(even) a.tile { background: var(--bg); }
  a.tile:hover { transform: translateY(-2px); border-color: var(--red); }
  a.tile .big { font-size: 30px; font-weight: 900; color: var(--red); line-height: 1.1; }
  a.tile .cap { font-size: 14px; color: var(--muted); font-weight: 600; margin: 4px 0 14px; }
  a.tile h3 { margin: 0 0 6px; font-size: 21px; }
  a.tile p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }
  a.tile .go { margin-top: auto; font-weight: 800; color: var(--blue); font-size: 15px; }

  /* Pager at the bottom of each page */
  .pager { padding: 40px 0; border-bottom: 1px solid var(--line); }
  .pager .wrap { display: flex; justify-content: space-between; gap: 16px; 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;
  }
  .pager a:hover { border-color: var(--red); }
  .pager a.next { text-align: right; }
  .pager small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
  .pager strong { font-size: 19px; color: var(--blue); }

  /* Hero */
  header.hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
  .hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; margin: 0 0 16px; font-weight: 900; }
  .hero h1 em { font-style: normal; color: #ff6b72; }
  .hero p.lede { font-size: clamp(18px, 2.4vw, 21px); color: #cfd5e6; max-width: 640px; margin: 0 0 28px; }
  .countdown {
    display: inline-flex; align-items: baseline; gap: 10px;
    background: var(--red); color: #fff; padding: 10px 18px; border-radius: 999px;
    font-weight: 700; margin-bottom: 28px;
  }
  .countdown strong { font-size: 22px; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn {
    display: inline-block; padding: 14px 22px; border-radius: 10px; font-weight: 700;
    text-decoration: none; font-size: 16px;
  }
  .btn-primary { background: #fff; color: var(--navy); }
  .btn-ghost { border: 2px solid #4a587c; color: #fff; }
  .btn:hover { filter: brightness(.95); }

  /* Sections */
  section { padding: 64px 0; border-bottom: 1px solid var(--line); }
  section:nth-of-type(even) { background: var(--surface); }
  section:nth-of-type(even) .card { background: var(--bg); }
  section h2 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 8px; line-height: 1.15; }
  section .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: var(--red); margin: 0 0 6px; }
  section .intro { color: var(--muted); max-width: 720px; margin: 0 0 32px; }

  .grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; display: flex; flex-direction: column;
  }
  .card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
  .card p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
  .card .links { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
  .card .links a { font-weight: 600; font-size: 15px; }

  .vote .card { border-top: 4px solid var(--blue); }
  .vote .hotline { font-size: 26px; font-weight: 900; color: var(--ink); text-decoration: none; }

  .figure { font-size: 34px; font-weight: 900; color: var(--red); line-height: 1.1; margin: 0 0 6px; }
  .figure small { font-size: 15px; font-weight: 600; color: var(--muted); display: block; margin-top: 4px; }

  .sources { font-size: 14px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
  .sources a { font-weight: 600; }

  /* Clips */
  a.clip {
    text-decoration: none; color: inherit; transition: transform .15s, border-color .15s;
  }
  a.clip:hover { transform: translateY(-2px); border-color: var(--red); }
  .clip .play {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
  }
  .clip .dot { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--red); flex: none; }
  .clip .dot::after {
    content: ""; position: absolute; left: 13px; top: 10px;
    border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  }
  .clip .meta { font-size: 14px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }

  /* Hall of shame profiles */
  .people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  section:nth-of-type(even) .person { background: var(--bg); }
  .person header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
  .person h3 { margin: 0; font-size: 21px; line-height: 1.2; }
  .person .role { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 3px; }
  .badge {
    flex: none; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  }
  .badge.in { background: var(--red); color: #fff; }
  .badge.out { background: var(--line); color: var(--ink); }
  .person ul { margin: 0; padding-left: 18px; }
  .person li { font-size: 15.5px; color: var(--ink); margin-bottom: 10px; }
  .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: 600; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 24px; }
  .filters button {
    font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--ink); border: 1.5px solid var(--line);
  }
  .filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

  .note {
    background: var(--red-soft); border-left: 4px solid var(--red);
    padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px; color: var(--ink); margin-top: 28px;
  }

  footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
  footer p { margin: 0 0 8px; max-width: 760px; }

  @media (max-width: 640px) {
    header.hero { padding: 40px 0 48px; }
    section { padding: 48px 0; }
  }

/* Header photo: U.S. Capitol (Architect of the Capitol, public domain) under a navy overlay */
header.hero, .page-head {
  background:
    linear-gradient(90deg, rgba(20,33,61,.96) 0%, rgba(20,33,61,.88) 45%, rgba(20,33,61,.72) 100%),
    url(/capitol.jpg) center 35% / cover no-repeat,
    #14213d;
}
@media (max-width: 640px) {
  header.hero, .page-head {
    background:
      linear-gradient(rgba(20,33,61,.9), rgba(20,33,61,.9)),
      url(/capitol.jpg) 60% 35% / cover no-repeat,
      #14213d;
  }
}

/* Live headlines */
.headlines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.headlines li { border-bottom: 1px solid var(--line); }
.headlines a { display: block; padding: 14px 4px; text-decoration: none; color: var(--ink); }
.headlines a:hover .t { color: var(--blue); text-decoration: underline; }
.headlines .t { font-weight: 700; font-size: 17px; line-height: 1.35; }
.headlines .m { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.headlines .m b { color: var(--red); font-weight: 800; }
.headlines li.loading { padding: 14px 4px; color: var(--muted); }

/* ===== Pop: display type, depth, motion ===== */
:root {
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(20,24,43,.06), 0 6px 18px rgba(20,24,43,.07);
  --shadow-hover: 0 2px 4px rgba(20,24,43,.08), 0 14px 32px rgba(20,24,43,.13);
}
@media (prefers-color-scheme: dark) {
  :root {
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
    --shadow-hover: 0 2px 4px rgba(0,0,0,.5), 0 14px 32px rgba(0,0,0,.5);
  }
}

/* Display headlines */
.hero h1, .page-head h1, section h2, .figure, a.tile .big, .stat b, .countdown strong, nav.top .brand {
  font-family: var(--display);
}
.hero h1 {
  font-size: clamp(52px, 10vw, 104px); font-weight: 800; text-transform: uppercase;
  line-height: .92; letter-spacing: -.005em; margin-bottom: 22px;
}
.page-head h1 { font-size: clamp(44px, 8vw, 80px); font-weight: 800; text-transform: uppercase; line-height: .95; }
section h2 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; text-transform: uppercase; line-height: .98; margin-bottom: 12px; }
nav.top .brand { font-size: 21px; font-weight: 800; letter-spacing: .06em; }
.countdown strong { font-size: 26px; font-weight: 800; letter-spacing: .02em; }

/* Kicker with a red rule */
section .kicker { display: flex; align-items: center; gap: 10px; }
section .kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }

/* Big numbers */
.figure { font-size: clamp(42px, 5.5vw, 56px); font-weight: 800; line-height: .95; letter-spacing: -.01em; }
.figure small { font-family: var(--body); letter-spacing: 0; margin-top: 8px; }
a.tile .big { font-size: 46px; font-weight: 800; line-height: .95; }
.card h3, .person h3, a.tile h3 { letter-spacing: -.01em; }

/* Header bands get a red base stripe */
header.hero, .page-head { border-bottom: 6px solid var(--red); }

/* Cards: depth, red edge on stat cards, lift on hover */
.card, .person, a.tile, .pager a { box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:has(.figure) { border-top: 4px solid var(--red); }
.card:hover, .person:hover, a.tile:hover, .pager a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.person { border-left: 4px solid var(--red); }
.person:has(.badge.out) { border-left-color: var(--line); }

/* Stat band on the home page */
.stat-band { background: var(--red); color: #fff; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
a.stat {
  display: block; color: #fff; text-decoration: none; padding: 26px 18px;
  border-left: 1px solid rgba(255,255,255,.25); transition: background .18s ease;
}
a.stat:first-child { border-left: 0; }
a.stat:hover { background: rgba(0,0,0,.12); }
.stat b { display: block; font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: .95; }
.stat span { display: block; font-size: 15px; font-weight: 600; opacity: .92; margin-top: 6px; }
.stat i { font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .8; display: block; margin-top: 10px; }
@media (max-width: 760px) {
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); padding: 0; }
  a.stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding: 20px 16px; }
  a.stat:nth-child(-n+2) { border-top: 0; }
  a.stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.25); }
}

/* Primary call to action in red */
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }

/* Scroll reveal (only when JS is running, see site.js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .person, a.tile, .pager a, a.stat { transition: none; }
  .card:hover, .person:hover, a.tile:hover, .pager a:hover { transform: none; }
}

/* ===== Front page: masthead ===== */
header.masthead {
  color: #fff; padding: 40px 0; border-bottom: 6px solid var(--red);
  background:
    linear-gradient(90deg, rgba(20,33,61,.96) 0%, rgba(20,33,61,.86) 55%, rgba(20,33,61,.7) 100%),
    url(/capitol.jpg) center 35% / cover no-repeat,
    #14213d;
}
.masthead .wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.mh-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ff9aa0; }
.masthead h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(50px, 7.6vw, 96px); line-height: .9; margin: 0 0 18px; letter-spacing: -.005em;
}
.masthead h1 em {
  display: inline-block; font-style: normal; color: #fff; background: var(--red);
  padding: .04em .16em .07em; margin-top: .1em; transform: rotate(-1.5deg);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.masthead .lede { margin: 0; max-width: 520px; color: #cfd5e6; font-size: 19px; }
.mh-vote {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: rgba(10,14,26,.6); border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.days { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.days b { font-family: var(--display); font-weight: 800; font-size: 88px; line-height: .82; color: #ff6b72; }
.days span { font-size: 16px; line-height: 1.3; color: #e6e9f2; }
.days strong { color: #fff; font-size: 19px; }
.mh-vote .btn { text-align: center; }
.btn-light { background: #fff; color: #14213d; }
.btn-light:hover { filter: brightness(.94); }
.mh-more { color: #cfd5e6; font-size: 14px; font-weight: 600; text-align: center; margin-top: 2px; }
.mh-more:hover { color: #fff; }
@media (max-width: 820px) {
  header.masthead {
    padding: 28px 0 24px;
    background: linear-gradient(rgba(20,33,61,.9), rgba(20,33,61,.9)), url(/capitol.jpg) 60% 35% / cover no-repeat, #14213d;
  }
  .masthead .wrap { grid-template-columns: 1fr; gap: 22px; }
  .days b { font-size: 72px; }
}

/* ===== Front page: news ===== */
section.news { padding-top: 40px; }
.news-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--ink);
}
.news-head h2 { margin: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(179,32,42,.55); }
  70% { box-shadow: 0 0 0 9px rgba(179,32,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(179,32,42,0); }
}
.news-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.news-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
a.lead, a.feature {
  display: block; text-decoration: none; color: var(--ink); background: var(--surface);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.lead:hover, a.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
a.lead:hover .t, a.feature:hover .t { color: var(--blue); }
.ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.ph.noimg { background: linear-gradient(rgba(20,33,61,.82), rgba(20,33,61,.82)), url(/capitol.jpg) center / cover; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.lead:hover img, a.feature:hover img { transform: scale(1.03); }
.news .body { padding: 14px 18px 18px; }
a.lead .body { padding: 18px 22px 24px; }
.news .m { font-size: 13px; color: var(--muted); }
.news .m b { color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
a.lead .t { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.02; margin: 6px 0 10px; }
a.lead .s { margin: 0; color: var(--muted); font-size: 16.5px; }
a.feature .t { margin: 6px 0 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-side h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.news-side .headlines .t { font-size: 16px; }
.news-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--line) 25%, var(--surface) 50%, var(--line) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.lead.skeleton { height: 440px; }
.feature.skeleton { height: 230px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 880px) {
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .lead.skeleton { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .live i, .skeleton { animation: none; }
  a.lead, a.feature, .ph img { transition: none; }
  a.lead:hover, a.feature:hover { transform: none; }
  a.lead:hover img, a.feature:hover img { transform: none; }
}
