:root {
  --red: #b3001b; --red-soft: rgba(179, 0, 27, .12); --ink: #141414; --text: #2b2b2b; --muted: #6b6b6b;
  --line: #e3e0da; --bg: #fff; --soft: #f6f4f0; --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif; --w: 1180px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }

/* Masthead */
.topbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; max-width: var(--w); margin: 0 auto;
          padding: 10px 20px; font: 12px var(--sans); color: var(--muted); }
.topbar .sub { background: var(--red); color: #fff; font-weight: 700; padding: 5px 12px; border-radius: 2px; }
.topbar .sub:hover { background: #8f0016; }
header { border-bottom: 1px solid var(--ink); text-align: center; padding: 4px 20px 14px; }
.masthead { display: inline-block; font-size: clamp(32px, 6.5vw, 62px); font-weight: 900; letter-spacing: -1px; line-height: 1.05; }
.tagline { font: italic 14px var(--serif); color: var(--muted); margin-top: 4px; }

nav { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 10px 20px;
      border-bottom: 3px double var(--ink); font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .6px; }
nav > a { padding: 4px 0; border-bottom: 2px solid transparent; }
nav > a:hover { color: var(--red); }
nav > a.on { color: var(--red); border-bottom-color: var(--red); }
.search input { font: 13px var(--sans); padding: 6px 10px; border: 1px solid var(--line); border-radius: 2px; width: 150px; background: var(--soft); }
.search input:focus { outline: 2px solid var(--red-soft); border-color: var(--red); background: #fff; }

.breaking { background: var(--ink); color: #fff; font: 600 13px var(--sans); padding: 9px 20px; white-space: nowrap; overflow: hidden; }
.breaking b { color: #fff; background: var(--red); padding: 2px 8px; margin-right: 12px; }
.ticker { display: inline-block; animation: scroll 60s linear infinite; padding-left: 100%; }
@keyframes scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; padding-left: 0; } }

/* Layout */
main { max-width: var(--w); margin: 0 auto; padding: 28px 20px 12px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
aside { align-self: start; }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }

.kicker { display: inline-block; color: var(--red); font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .8px; }
.meta, .small { font: 12px var(--sans); color: var(--muted); }
.small a { color: var(--red); }

/* Cards */
.card { display: block; color: var(--ink); }
.card .txt { display: flex; flex-direction: column; gap: 6px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 10px; }
.card h2 { font-size: 20px; line-height: 1.2; margin: 0; }
.card p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.card:hover h2 { color: var(--red); }

.card.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.card.lead img { aspect-ratio: 4 / 3; margin: 0; }
.card.lead h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.card.lead p { font-size: 17px; }
@media (max-width: 700px) { .card.lead { grid-template-columns: 1fr; } }

.card.row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.card.row img { margin: 0; }
.card.row:not(:has(img)) { grid-template-columns: 1fr; }
@media (max-width: 560px) { .card.row { grid-template-columns: 1fr; } }

.points { list-style: none; margin: 4px 0 2px; padding: 10px 12px; background: var(--soft); border-left: 3px solid var(--red);
          font: 600 13px/1.45 var(--sans); color: var(--ink); }
.points li { padding-left: 14px; position: relative; }
.points li + li { margin-top: 4px; }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--red); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; }
.grid .card { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.grid.small .card h2 { font-size: 16px; }
.grid.small .card p { display: none; }

/* Sidebar widgets */
.widget { margin-bottom: 30px; }
aside h3, h3.more, .poll h3 { font: 800 12px var(--sans); text-transform: uppercase; letter-spacing: .8px; border-top: 3px solid var(--ink); padding-top: 10px; margin: 0 0 10px; }
h3.more { margin-top: 40px; }
aside ol { padding-left: 0; margin: 0; list-style: none; counter-reset: n; }
aside ol li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; font-weight: 700; font-size: 15px; line-height: 1.3; padding: 10px 0; border-bottom: 1px solid var(--line); }
aside ol li::before { content: counter(n); color: var(--red); font: 800 18px var(--serif); }
aside ol li a:hover { color: var(--red); }

.results ul { list-style: none; padding: 0; margin: 0; }
.results li { position: relative; display: flex; justify-content: space-between; font: 600 14px var(--sans); padding: 10px 10px; background: var(--soft); margin-bottom: 6px; overflow: hidden; }
.results li span, .results li b { position: relative; z-index: 1; }
.results li i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red-soft); transition: width 1s; }
.results li:first-child i { background: rgba(179, 0, 27, .22); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; vertical-align: 1px; margin-right: 2px; }
@keyframes pulse { 50% { opacity: .25; } }

.platform ul { list-style: none; margin: 0; padding: 0; }
.platform li { padding: 10px 0; border-bottom: 1px solid var(--line); font: 14px/1.4 var(--sans); color: var(--text); }
.platform li b { display: block; font: 800 15px var(--serif); color: var(--ink); margin-bottom: 2px; }
.platform .small { margin-top: 8px; }

/* Article */
article { min-width: 0; }
article h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; margin: 8px 0 12px; }
.dek { font-size: 20px; line-height: 1.45; color: var(--text); margin: 0 0 16px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 13px var(--sans); color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.share { margin-left: auto; font: 700 12px var(--sans); border: 1px solid var(--line); background: #fff; padding: 6px 12px; cursor: pointer; border-radius: 2px; }
.share:hover { border-color: var(--ink); }
figure { margin: 22px 0; }
figcaption { font: 13px/1.45 var(--sans); color: var(--muted); margin-top: 8px; }
article p { font-size: 18px; line-height: 1.7; color: var(--text); max-width: 680px; }
.screens > div { display: inline-flex; flex-direction: column; gap: 2px; background: #000; padding: 10px 12px; border-radius: 6px; max-width: 100%; }
.screens img { width: 480px; max-width: 100%; height: auto; }
.poll { max-width: 680px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.tags { margin-top: 24px; }
.tag { display: inline-block; font: 12px var(--sans); background: var(--soft); padding: 5px 10px; margin: 0 6px 6px 0; }

.section-title { font-size: 34px; margin: 0 0 4px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.empty { color: var(--muted); }

/* Results page */
.race { margin: 28px 0; }
.race h2 { font-size: 22px; margin: 0; }
.status { font: 700 12px var(--sans); color: var(--red); text-transform: uppercase; letter-spacing: .6px; margin: 4px 0 10px; }
table { width: 100%; border-collapse: collapse; font: 14px var(--sans); }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
td small { color: var(--muted); }
td.bar { width: 35%; }
td.bar i { display: block; height: 10px; background: #c9c5be; }
tr.won td { font-weight: 700; }
tr.won td.bar i { background: var(--red); }
@media (max-width: 560px) { td.bar { display: none; } }

#search-results .card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.credits li { margin: 8px 0; font-size: 15px; line-height: 1.5; }
.credits a, .primary > p a { color: var(--red); text-decoration: underline; }

/* 404 */
.notfound { padding: 20px 0 10px; }
.notfound h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin: 8px 0 12px; }
.search.big { display: flex; gap: 8px; max-width: 520px; margin: 18px 0; }
.search.big input { flex: 1; width: auto; font-size: 16px; padding: 11px 12px; }
.search.big button, .btn { font: 700 14px var(--sans); padding: 11px 18px; background: var(--red); color: #fff; border: 0; border-radius: 2px; cursor: pointer; display: inline-block; }

/* Newsletter and footer */
.newsletter { background: var(--soft); text-align: center; padding: 34px 20px; margin-top: 30px; border-top: 1px solid var(--line); }
.newsletter h3 { font-size: 26px; margin: 0 0 6px; }
.newsletter p { margin: 0; color: var(--text); }
.newsletter form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.newsletter input { font: 15px var(--sans); padding: 11px 12px; border: 1px solid #cfcac2; border-radius: 2px; width: min(320px, 100%); }
.newsletter button { font: 700 15px var(--sans); padding: 11px 20px; background: var(--red); color: #fff; border: 0; border-radius: 2px; cursor: pointer; }
footer { text-align: center; font: 12px var(--sans); color: var(--muted); padding: 22px 20px 40px; background: var(--ink); color: #bdbdbd; }
footer a { color: #fff; }
footer p { margin: 10px 0 0; }
