:root {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  color: #f1efe8;
  background: #171917;
  color-scheme: dark;
  font-synthesis: none;
  --muted: #b6b4a9;
  --line: #3b3e36;
  --accent: #9ab8cd;
  --accent-fill: #3d6078;
  --accent-surface: #283946;
  --negative: #e6a69b;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { color: var(--accent); }
.shell { max-width: 1080px; margin-inline: auto; padding-inline: clamp(18px, 3vw, 34px); }
.toolbar, .controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.toolbar { min-height: 66px; }
.primary, .headright, .topicrow, .vote-actions, .inline-reasons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.primary { gap: 22px; align-self: stretch; }
.primary button, .headright button, .topicrow button, .vote-actions button, .inline-reasons button, .plain {
  border: 0; background: none; padding: 8px 10px;
}
.primary button { padding-inline: 0; font-weight: 700; align-self: stretch; border-bottom: 2px solid transparent; }
.primary button.active { color: var(--accent); border-bottom-color: var(--accent); }
#breakingCount, #count, #status { color: var(--muted); font-size: .8rem; }
#count { white-space: nowrap; }
.headright button, .topicrow button { font-size: .875rem; }
.controls { padding-block: 12px; }
.topicrow button { color: var(--muted); }
.topicrow button.active { color: var(--accent); font-weight: 700; background: var(--accent-surface); }
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
  padding-block: clamp(24px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}
.story.has-image { grid-template-columns: minmax(140px, 26%) minmax(0, 1fr); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 13px; align-items: baseline; color: var(--muted); font-size: .8rem; }
.category { color: var(--accent); font-weight: 700; }
.breaking .category { color: var(--negative); }
.story h2 { margin: 10px 0 9px; font-size: clamp(1.35rem, 2.35vw, 2rem); letter-spacing: -.035em; line-height: 1.09; }
.storytitle { color: inherit; text-decoration: none; border: 0; padding: 0; background: none; font: inherit; font-weight: 700; text-align: left; }
.storytitle:hover { color: var(--accent); }
.summary { color: var(--muted); margin: 0 0 13px; max-width: 80ch; line-height: 1.55; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-image { margin: 0; }
.story-image a { display: block; border: 0; background: none; padding: 0; width: 100%; }
.story-image img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.story-image figcaption { color: var(--muted); font-size: .69rem; margin-top: 6px; }
.vote-actions { gap: 7px; }
.vote-actions button {
  min-height: 33px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 0;
  color: #f1efe8;
  background: #292d30;
  font-size: .82rem;
  font-weight: 700;
}
.vote-actions button:hover { border-color: var(--accent); }
.vote-actions button[data-vote="3"], .vote-actions button[aria-pressed=true] { background: var(--accent-fill); color: #fff; }
.vote-actions button[aria-pressed=true] { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.inline-reasons { margin-top: 8px; gap: 6px; }
.inline-reasons button { background: #312e2a; padding: 7px 9px; font-size: .8rem; }
.inline-reasons button:hover, .headright button:hover, .plain:hover { background: #312e2a; }
.vote-error { color: var(--negative); }
.vote-error:empty { display: none; }
.empty { padding: 32px 0; color: var(--muted); }
dialog { background: #171917; color: inherit; border: 1px solid var(--line); width: min(92vw, 650px); max-height: 86vh; overflow: auto; padding: clamp(20px, 4vw, 35px); box-shadow: 0 20px 75px #16171044; }
dialog::backdrop { background: #211e17a8; }
.modalhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modalhead h2 { margin: 0; }
dialog p { color: var(--muted); line-height: 1.6; }
label { display: block; margin-block: 13px; font-size: .875rem; }
input:not([type=checkbox]) { display: block; width: 100%; padding: 11px; margin-top: 6px; color: inherit; background: #232622; border: 1px solid #676b60; }
.action { display: block; width: 100%; margin: 16px 0 8px; color: #fff; background: var(--accent-fill); border: 0; padding: 11px; font-weight: 700; }
.error { color: var(--negative); }
.settingrow { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.whyoptions { display: grid; gap: 4px; }
.whyoptions button { background: #312e2a; border: 0; padding: 12px; text-align: left; }
.reading-page { max-width: 790px; margin-inline: auto; padding: 0 clamp(18px, 5vw, 45px) 60px; }
.reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.reader-back { padding-block: 8px; }
.reader-byline { margin: 30px 0 8px; font-size: .9rem; }
#readerTitle { margin: 0 0 23px; line-height: 1.05; font-size: clamp(1.9rem, 5vw, 3.3rem); letter-spacing: -.035em; }
#readerImage { display: block; width: 100%; max-height: min(65vh, 480px); object-fit: contain; object-position: left center; }
.reader-image { margin: 0 0 24px; }
.reader-image figcaption { margin-top: 6px; color: var(--muted); font-size: .75rem; }
#readerBody p { color: inherit; font-size: 1.125rem; line-height: 1.7; overflow-wrap: anywhere; }
#readerNote { font-size: .9rem; }
#readerNote:empty { display: none; }
@media (max-width: 700px) {
  .toolbar { min-height: 52px; gap: 8px; }
  .primary { gap: 10px; }
  .primary button, .headright button { font-size: .8rem; }
  .headright { gap: 0; }
  .headright button { padding-inline: 5px; }
  #status { display: none; }
  .controls { align-items: flex-start; }
  .topicrow { gap: 4px; }
  .topicrow button { padding: 6px; font-size: .78rem; }
  .story { display: flex; flex-direction: column; gap: 13px; }
  .story-image { width: 100%; }
}

#breakingSlider { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.breaking-toolbar, #breakingNavigation { display: flex; align-items: center; gap: 10px; }
.breaking-toolbar { justify-content: space-between; margin-bottom: 10px; }
.breaking-toolbar h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: .85rem; font-weight: 750; }
.breaking-toolbar h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
#breakingNavigation { gap: 8px; font-size: .75rem; color: var(--muted); }
#breakingPosition { min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
#breakingNavigation button { border: 1px solid #41484d; border-radius: 4px; background: #24292c; color: #e1e7eb; width: 34px; height: 30px; padding: 0; }
#breakingNavigation button:hover { background: #35424b; }
.breaking-slide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 82px; padding: 12px 14px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--slide-ink) 24%, transparent); background: var(--slide-bg); color: var(--slide-ink); }
.breaking-copy { min-width: 0; }
.breaking-copy p { margin: 0 0 5px; font-size: .72rem; }
.breaking-copy p span { margin-inline: 2px; }
.breaking-copy h3 { margin: 0; font-size: clamp(.96rem, 2vw, 1.16rem); line-height: 1.2; }
.breaking-copy h3 a { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; text-align: start; font-weight: 750; }
.breaking-copy h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breaking-slide button:focus-visible { outline-color: var(--slide-ink); }
.acknowledge { background: var(--accent-fill); color: #fff; border: 1px solid var(--accent-fill); border-radius: 4px; padding: 8px 10px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.acknowledge span { margin-inline-end: 3px; }
.acknowledge:hover { background: #345468; }
#breakingError { margin: 5px 0 0; font-size: .8rem; color: var(--negative); }
#breakingError:empty { display: none; }
.article-inline-image { display: block; width: auto; max-width: 100%; height: auto; margin: 24px 0 6px; }
#readerBody .body-figcaption { margin-top: 0; color: var(--muted); font-size: .82rem; }
#readerBody pre { overflow-x: auto; }
#readerBody .body-li { padding-inline-start: 1.2em; }
#readerBody .body-li::before { content: "• "; }
#readerFeedback { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 16px; }
@media (max-width: 500px) {
  .breaking-slide { grid-template-columns: minmax(0, 1fr); gap: 8px 11px; padding: 10px; }
  .acknowledge { grid-column: 1; justify-self: start; padding: 5px 8px; }
}

#readerBody h2, #readerBody h3, #readerBody h4, #readerBody h5, #readerBody h6 { line-height: 1.25; margin: 1.4em 0 .45em; }
#readerBody strong { font-weight: 750; }
.article-gallery { margin: 22px 0; display: grid; gap: 16px; }
.article-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-gallery figure { margin: 0; min-width: 0; }
.article-gallery img { display: block; width: 100%; height: auto; }
.article-gallery figcaption { margin-top: 6px; color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .article-gallery-grid { grid-template-columns: 1fr; } }
