:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #5f666d;
  --line: #d7d7d2;
  --soft: #f1f1ee;
  --accent: #b80000;
  --link: #174f8a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  gap: 2px;
  align-items: stretch;
  justify-content: flex-end;
  overflow-x: auto;
}

.tab {
  min-width: 108px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px 13px;
  font-size: 14px;
  font-weight: 800;
}

.tab span {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.tab:hover,
.tab:focus-visible {
  color: var(--ink);
  outline: 0;
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 26px 0 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.brief-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.brief-meta span {
  white-space: nowrap;
}

.brief-meta #briefStatus {
  max-width: min(100%, 920px);
  white-space: normal;
}

.app-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0 44px;
}

.story-column,
.reader {
  background: var(--paper);
  border: 1px solid var(--line);
}

.story-column {
  align-self: start;
  position: sticky;
  top: 14px;
}

.section-summary {
  border-bottom: 1px solid var(--line);
  padding: 16px 16px 14px;
}

.section-summary p {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-summary strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.15;
}

.section-summary span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.story-list {
  display: grid;
  max-height: calc(100vh - 226px);
  overflow: auto;
}

.story-button {
  min-height: 104px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
  padding: 14px 16px;
  text-align: left;
}

.story-button:hover,
.story-button:focus-visible {
  background: var(--soft);
  outline: 0;
}

.story-button.active {
  background: #fbfbfa;
  box-shadow: inset 3px 0 0 var(--section-accent, var(--accent));
}

.story-button.category-jump {
  min-height: 72px;
}

.story-button.category-jump h2 {
  margin-bottom: 0;
}

.story-button h2 {
  margin: 5px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
}

.story-kicker {
  margin: 0;
  color: var(--section-accent, var(--accent));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reader {
  max-width: 100%;
  min-height: 640px;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.reader-content {
  background: var(--paper);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.reader.is-sliding {
  overflow: hidden;
}

.reader.is-sliding .reader-content {
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.reader-slide {
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reader-slide {
    transition: none;
  }
}

.reader-hero {
  border-bottom: 1px solid var(--line);
  padding: 26px 30px 22px;
}

.reader-label {
  margin: 0;
  color: var(--section-accent, var(--accent));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reader-hero h2 {
  margin: 8px 0 12px;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.04;
  letter-spacing: 0;
}

.reader-dek {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  color: var(--section-accent, var(--accent));
  font-size: 13px;
  font-weight: 700;
}

.reader-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: min(100%, 430px);
  border: 1px solid var(--line);
  background: #f8f7f4;
  padding: 8px 10px;
}

.reader-audio span {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reader-audio audio {
  width: 100%;
  min-width: 0;
  height: 32px;
}

.share-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.share-action,
.share-link {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.share-link {
  color: var(--link);
}

.share-action:hover,
.share-action:focus-visible,
.share-link:hover,
.share-link:focus-visible {
  background: var(--soft);
  outline: 0;
  text-decoration: none;
}

.source-panel {
  border-bottom: 1px solid var(--line);
  background: #fbfbfa;
  padding: 16px 30px;
}

.source-panel h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
}

.source-link,
.source-note {
  display: block;
  border-left: 2px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 2px 0 3px 10px;
}

.source-link small,
.source-note small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-link span,
.source-note span {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.reader-body {
  padding: 28px 30px 34px;
}

.story-copy {
  max-width: 760px;
  min-width: 0;
}

.story-copy p {
  margin: 0 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.58;
}

.story-copy p a {
  color: var(--ink);
  display: inline;
  font-weight: inherit;
  text-decoration: none;
}

.story-copy p a:hover,
.story-copy p a:focus-visible {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.story-copy .story-copy-heading {
  margin: 26px 0 8px;
  color: var(--section-accent, var(--accent));
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.empty {
  padding: 24px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .topbar,
  .masthead,
  .app-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 0;
    padding-top: 10px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .brief-meta {
    justify-content: flex-start;
  }

  .story-column {
    position: static;
  }

  .story-list {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  h1 {
    font-size: 35px;
  }

  .reader-hero h2 {
    font-size: 30px;
  }

  .reader-hero,
  .source-panel,
  .reader-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .story-copy p {
    font-size: 17px;
  }

  .share-panel {
    align-items: stretch;
  }

  .share-action,
  .share-link {
    flex: 1 1 96px;
  }
}
