/* SLOP TV News. Paper and ink from sloptvedits.com; the accent is the owner's orange, #FF7B00.
   Orange fails contrast under small white text and as small text on paper, so: text ON orange is
   black, and orange text on the light theme uses --accent-ink, a darker cut of the same hue. */
:root {
  --paper: #f6f3ea;
  --surface: #fffdf7;
  --ink: #0a0a09;
  --ink-2: #3c3b37;
  --ink-3: #6f6d66;
  --line: rgba(10, 10, 9, 0.14);
  --accent: #ff7b00;
  --accent-ink: #b35300;
  --yellow: #ffd528;
  --blue: #1f62e5;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 1240px;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0d0c; --surface: #161614; --ink: #f6f3ea; --ink-2: #cfccc2; --ink-3: #9a978d;
    --line: rgba(246, 243, 234, 0.16); --accent-ink: #ff7b00;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.dot { margin: 0 6px; color: var(--ink-3); }

/* Masthead: always ink, in both themes, so the light logo always sits on black. */
.masthead { background: #0a0a09; color: #fffdf5; border-bottom: 4px solid var(--accent); position: sticky; top: 0; z-index: 5; }
.masthead-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: flex-end; gap: 6px; flex: none; padding: 4px 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-news { font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; background: var(--accent); color: #000; padding: 2px 6px 1px; margin-bottom: 7px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav-latest { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; padding: 20px 11px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -4px; }
.nav a:hover, .nav a.is-active { text-decoration: none; border-bottom-color: var(--yellow); color: var(--yellow); }
.nav-latest { flex: none; color: var(--yellow); padding: 8px 12px; border: 2px solid var(--yellow); border-radius: var(--radius); margin: 0; }
.nav-latest:hover { background: var(--yellow); color: #000; text-decoration: none; }

/* Story blocks */
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.kicker-business { color: var(--blue); }
@media (prefers-color-scheme: dark) { .kicker-business { color: #7da7ff; } }
.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); border-radius: var(--radius); }
.thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.story:hover .thumb-img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .thumb-img { transition: none; } .story:hover .thumb-img { transform: none; } }
.thumb-plate { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 7% 8%; color: #fff; }
.plate-mark { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 5cqw, 64px); line-height: 1; letter-spacing: -0.03em; opacity: 0.95; }
.thumb { container-type: inline-size; }
.plate-tv { font-family: var(--sans); font-style: italic; font-weight: 800; font-size: 0.34em; border: 2px solid currentColor; padding: 0 0.3em; margin-left: 0.15em; vertical-align: 0.2em; letter-spacing: 0; }
.plate-label { font-weight: 800; font-size: clamp(10px, 2.4cqw, 16px); letter-spacing: 0.18em; opacity: 0.85; }
.story-title { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.story-dek { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-meta { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

.story-card .thumb { margin-bottom: 10px; }
.story-card .story-title { font-size: 18px; }
.story-row { display: grid; grid-template-columns: 260px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.story-row .story-title { font-size: 22px; }
.story-mini .story-title { font-size: 16px; }
.story-mini .kicker { font-size: 11px; margin-bottom: 3px; }

/* Front page top block: one lead, four beside it */
.top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 8px; }
.story-lead .thumb { margin-bottom: 14px; }
.story-lead .story-title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -0.02em; }
.story-lead .story-dek { font-size: 18px; -webkit-line-clamp: 3; }
.top-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; align-content: start; }
.story-side .thumb { margin-bottom: 8px; }
.story-side .story-title { font-size: 17px; }

.ticker { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker::-webkit-scrollbar { display: none; }
.ticker-label { font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 4px 8px; flex: none; }
.ticker a { flex: none; font-size: 13px; font-weight: 700; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.ticker a:hover { background: var(--yellow); color: #000; border-color: var(--yellow); text-decoration: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 3px solid var(--ink); margin: 28px 0 4px; padding-bottom: 6px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.section-head h2::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--accent); margin-right: 8px; }
.section-head .more { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
.rail-block { margin-bottom: 8px; }
.rail-list { list-style: none; margin: 0; padding: 0; counter-reset: rail; }
.rail-list li { counter-increment: rail; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rail-list li::before { content: counter(rail); font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; color: var(--accent-ink); }
.rail-about { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--yellow); padding: 16px; margin-top: 28px; border-radius: var(--radius); }
.rail-about h2 { margin: 0 0 6px; font-size: 17px; }
.rail-about p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.rail-about a { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding-top: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.strip { padding-bottom: 8px; }
.button { display: inline-block; margin: 22px 0 8px; padding: 12px 22px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius); }
.button:hover { background: var(--accent); color: #000; text-decoration: none; }

/* Listing pages */
.listing-head { padding: 28px 0 18px; border-bottom: 3px solid var(--ink); margin-bottom: 22px; }
.listing-head h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.listing-head p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.listing-top { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.listing .feed { max-width: 860px; }
.pager { display: flex; justify-content: space-between; padding: 24px 0; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; max-width: 860px; }
.empty { padding: 80px 0; text-align: center; color: var(--ink-2); }
.empty-title { font-family: var(--serif); font-size: 40px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }

/* Article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 22px; }
.article { min-width: 0; max-width: 820px; }
.crumbs { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 14px; display: flex; gap: 8px; }
.article h1 { margin: 2px 0 12px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.dek { margin: 0 0 18px; font-size: 20px; line-height: 1.4; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.byline img { border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.byline p { margin: 0; }
.byline-name { font-weight: 800; font-size: 14px; }
.byline-name a { text-decoration: underline; text-underline-offset: 3px; }
.byline-meta { font-size: 13px; color: var(--ink-3); }
.hero { margin: 0 0 24px; }
.hero figcaption { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.prose { font-size: 18.5px; line-height: 1.68; color: var(--ink); overflow-wrap: break-word; }
.prose > p:first-child { font-size: 21px; line-height: 1.5; font-weight: 600; }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose h2 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; margin: 1.7em 0 0.6em; padding-top: 0.5em; border-top: 3px solid var(--ink); text-wrap: balance; }
.prose h3 { font-size: 22px; line-height: 1.2; font-weight: 800; margin: 1.5em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--yellow); font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-size: 0.88em; background: var(--line); padding: 1px 5px; border-radius: 3px; }
.prose > p:last-of-type em:only-child, .prose p > em:only-child { display: block; padding: 14px 16px; background: var(--surface); border-left: 5px solid var(--accent); font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.prose th { text-align: left; background: var(--ink); color: var(--paper); padding: 9px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; background: #000; border-radius: var(--radius); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* The database card both source sites end every article on, restyled. */
.info-card { margin: 1.8em 0; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--ink); border-radius: var(--radius); font-family: var(--sans); }
.info-card-title { margin: 0 !important; padding: 12px 16px !important; border: 0 !important; font-size: 13px !important; letter-spacing: 0.14em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.info-card dl { margin: 0; padding: 4px 16px 8px; }
.card-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.card-row:last-child { border-bottom: 0; }
.card-row dt { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding-top: 2px; }
.card-row dd { margin: 0; overflow-wrap: anywhere; }

.sources { margin: 2em 0 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sources h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.sources ol { margin: 0; padding-left: 1.2em; font-size: 14.5px; color: var(--ink-2); }
.sources li { margin-bottom: 5px; }
.sources a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.tags a { display: block; font-size: 13px; font-weight: 700; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.tags a:hover { background: var(--yellow); color: #000; border-color: var(--yellow); text-decoration: none; }
.article-grid .rail { padding-top: 34px; }
.prose-page { padding-top: 28px; }

/* Footer */
.footer { margin-top: 56px; background: #0a0a09; color: #cfccc2; border-top: 4px solid var(--accent); padding: 32px 0 26px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-brand img { height: 45px; width: auto; margin-bottom: 8px; }
.footer-brand p { margin: 0; }
.footer a { color: #fffdf5; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; font-weight: 700; max-width: 420px; }
.footer-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 253, 245, 0.16); font-size: 13px; color: #9a978d; }

@media (max-width: 1000px) {
  .top, .columns, .article-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .article-grid .rail { padding-top: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-side { margin-top: 18px; }
}
@media (max-width: 640px) {
  .masthead-inner { gap: 10px; flex-wrap: wrap; padding-top: 6px; }
  .brand img { height: 36px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 8px; }
  .nav a { padding: 10px 9px; font-size: 13px; }
  .nav-latest { margin-left: auto; }
  .story-row { grid-template-columns: 124px 1fr; gap: 12px; padding: 14px 0; }
  .story-row .story-title { font-size: 17px; }
  .story-row .story-dek { display: none; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17.5px; }
  .prose > p:first-child { font-size: 19px; }
  .card-row { grid-template-columns: 1fr; gap: 2px; }
  .dek { font-size: 18px; }
}
