/* ==========================================================================
   Shared Briefing Editorial Base Styles
   Loaded by /briefing/, /weekly/, and /bookmarks/
   ========================================================================== */

/* ---------- Masthead ---------- */

.masthead {
  background: var(--surface);
}

.masthead-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.masthead-crumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.back-home {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 0;
  transition: color 0.15s ease;
}

.crumb-sep {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border-strong);
  user-select: none;
}

.back-home:hover {
  color: var(--accent);
}

.crumb-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  margin-left: 3px;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.masthead h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.edition-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.masthead-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.masthead-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.masthead-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.masthead-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.masthead-btn[aria-expanded="true"] .collapse-chevron {
  transform: rotate(180deg);
}

.masthead-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.masthead-icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.masthead-icon-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

.masthead-icon-btn.is-spinning svg {
  animation: spin-once 0.75s linear infinite;
}

@keyframes spin-once {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.archive-nav {
  display: inline-flex;
  align-items: stretch;
  height: 32px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  padding: 0 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.icon-btn:hover:not(:disabled) {
  background: var(--border);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-select {
  appearance: none;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  height: 100%;
  padding: 0 12px;
  cursor: pointer;
  outline: none;
}

/* ---------- Section Nav ---------- */

.section-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.section-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  overflow-x: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-links a.active {
  font-weight: 600;
}

.health-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.health-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pos);
}

.health-dot.partial {
  background: var(--warn);
}

.health-dot.failed {
  background: var(--neg);
}

/* ---------- Main Layout ---------- */

.main-content {
  padding-top: 26px;
  padding-bottom: 64px;
}

.status-banner {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13.5px;
}

.section {
  margin-bottom: 44px;
  scroll-margin-top: calc(var(--nav-height, 43px) + 8px);
}

.section-header {
  position: sticky;
  top: var(--nav-height, 43px);
  z-index: 25;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-narrative {
  margin: 0 0 20px;
  max-width: 90%;
  font-size: 15.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.executive-list li strong,
.section-narrative strong,
.news-summary strong,
.conflict-summary strong,
.policy-summary strong,
.topic-note strong {
  font-weight: 600;
  color: var(--ink);
}

.ticker-tag {
  position: relative;
  display: inline-block;
  padding: 0 5px;
  margin: 0 1px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: baseline;
  white-space: nowrap;
  cursor: help;
}

.icon-glue {
  white-space: nowrap;
}

.ticker-tag.pos {
  border-color: rgba(21, 115, 71, 0.35);
  background: var(--pos-soft);
}

.ticker-tag.neg {
  border-color: rgba(185, 56, 44, 0.35);
  background: var(--neg-soft);
}

.ticker-tag.is-private {
  border-color: var(--border-strong);
  background: var(--neutral-badge);
}

.company-mention {
  cursor: help;
}

.country-mention {
  display: inline;
  border-bottom: 1px dashed var(--border-strong);
  border-bottom-color: color-mix(in srgb, var(--ink-muted) 65%, transparent);
  padding-bottom: 1px;
  cursor: help;
}

.country-map-tip {
  position: fixed;
  z-index: 70;
  width: 240px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

[data-theme="dark"] .country-map-tip {
  background: #0f141c;
  border-color: var(--border-strong);
}

.cmap-stage {
  width: 100%;
  height: 124px;
  border-radius: 5px;
  background: var(--surface-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .cmap-stage {
  background: #161d29;
}

.cmap-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cmap-land {
  fill: var(--border);
  stroke: var(--surface);
  stroke-width: 0.6;
  stroke-linejoin: round;
}

[data-theme="dark"] .cmap-land {
  fill: #2a3447;
  stroke: #161d29;
}

.cmap-target {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 0.75;
  stroke-linejoin: round;
}

.cmap-dot-ring {
  fill: var(--accent);
  fill-opacity: 0.25;
}

.cmap-dot {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 1;
}

.cmap-loading {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.cmap-footer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cmap-title {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.cmap-title.is-city {
  justify-content: space-between;
  gap: 8px;
}

.cmap-title-left {
  display: inline-flex;
  align-items: center;
}

.cmap-title.is-city .cmap-cont {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-muted);
}

.cmap-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.cmap-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.cmap-cont {
  opacity: 0.8;
  white-space: nowrap;
}

.cmap-leader {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.35;
}

.cmap-leader-k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.cmap-leader-v {
  color: var(--ink);
  font-weight: 500;
}

.party-mention {
  display: inline;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
}

.party-mention.dem {
  border-bottom-color: color-mix(in srgb, #2563eb 65%, transparent);
}

.party-mention.gop {
  border-bottom-color: color-mix(in srgb, #dc2626 65%, transparent);
}

.inline-party-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  margin-right: 4px;
  margin-top: -2px;
  vertical-align: middle;
  border-radius: 3px;
}

.inline-flag-icon {
  display: inline-block;
  width: 16px;
  height: 12px;
  min-width: 16px;
  min-height: 12px;
  margin-right: 4px;
  margin-top: -2px;
  border-radius: 2.5px;
  vertical-align: middle;
  object-fit: fill;
  box-shadow: 0 0 0 0.75px var(--border-strong);
}

.inline-logo {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  margin-right: 4px;
  margin-top: -2px;
  border-radius: 3px;
  vertical-align: middle;
  object-fit: contain;
  background: #ffffff;
  padding: 1px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14);
}

.ticker-tag .inline-logo {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  margin-right: 3px;
  margin-top: -2px;
  vertical-align: middle;
}

.floating-tip {
  position: fixed;
  z-index: 65;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  max-width: calc(100vw - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.floating-tip.is-subtle {
  background: var(--surface);
  color: var(--ink-secondary);
  border: 1px solid var(--border-strong);
}

.floating-tip.is-company {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 11px;
  font-family: var(--font-sans);
  font-size: 12px;
  white-space: normal;
  overflow: visible;
  min-width: 215px;
  max-width: min(290px, calc(100vw - 24px));
}

[data-theme="dark"] .floating-tip.is-company {
  background: #0f141c;
  color: var(--ink);
  border-color: var(--border-strong);
}

.ctip-head {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.ctip-quote {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-secondary);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.ctip-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  font-size: 11.5px;
  line-height: 1.4;
}

.ctip-k {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding-top: 1px;
}

.ctip-v {
  color: var(--ink);
  font-weight: 500;
}

.country-map-tip.is-touch,
.floating-tip.is-touch {
  pointer-events: auto;
}

.person-mention[data-wiki-title],
.party-mention[data-wiki-title] {
  cursor: help;
}

.tip-wiki-row {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.tip-wiki-link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.tip-wiki-link.inline {
  margin-left: 6px;
  color: #93c5fd;
}

.tip-wiki-link:hover {
  text-decoration: underline;
}

.ctip-bias {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ctip-bias .half-ring-svg {
  width: 20px;
  height: 13px;
  flex-shrink: 0;
}

.cmap-target.is-region {
  fill-opacity: 0.35;
}


[data-theme="dark"] .floating-tip {
  background: #0f141c;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.brief-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mode-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.executive-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.executive-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}

.exec-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.exec-text {
  flex: 1;
  min-width: 0;
}

.sentiment-gauge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 14px;
  flex-shrink: 0;
  cursor: help;
}

.half-ring-svg {
  width: 22px;
  height: 13px;
  display: block;
  overflow: visible;
}

.half-ring-track {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.7;
}


.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.news-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.news-card.is-collapsed {
  padding: 14px 18px;
  gap: 8px;
  background: var(--surface-subtle);
}

.news-card.is-collapsed .news-summary,
.news-card.is-collapsed .why-box,
.news-card.is-collapsed .source-links {
  display: none;
}

.news-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.continued-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--neutral-badge);
  padding: 2px 6px;
  border-radius: 4px;
}

.afternoon-pill,
.morning-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}

.afternoon-pill {
  color: var(--warn);
  background: var(--warn-soft);
}

.morning-pill {
  color: var(--accent);
  background: var(--accent-soft);
}

.card-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.card-toggle-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.news-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ---------- Top-Edge Bookmark Ribbon & Auth Masthead ---------- */

.bookmark-btn {
  position: absolute;
  top: 0;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink-muted);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease;
}

.bookmark-btn::after {
  content: "";
  position: absolute;
  inset: -4px -8px -10px -8px;
}

.bookmark-btn svg {
  width: 19px;
  height: 25px;
  display: block;
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.news-card:hover > .bookmark-btn:not(.is-saved),
.news-card:focus-within > .bookmark-btn:not(.is-saved),
.news-card.bm-card-revealed > .bookmark-btn:not(.is-saved),
.positive-card:hover > .bookmark-btn:not(.is-saved),
.positive-card:focus-within > .bookmark-btn:not(.is-saved),
.positive-card.bm-card-revealed > .bookmark-btn:not(.is-saved),
.geo-fact-popover:hover > .bookmark-btn:not(.is-saved),
.geo-fact-popover:focus-within > .bookmark-btn:not(.is-saved),
.geo-fact-popover.bm-card-revealed > .bookmark-btn:not(.is-saved),
.geo-mobile-card:hover > .bookmark-btn:not(.is-saved),
.geo-mobile-card:focus-within > .bookmark-btn:not(.is-saved),
.geo-mobile-card.bm-card-revealed > .bookmark-btn:not(.is-saved) {
  opacity: 0.78;
  pointer-events: auto;
  transform: translateY(-10px);
}

.bookmark-btn.is-saved {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-10px);
  color: var(--accent);
}

.bookmark-btn.is-saved svg,
.bookmark-btn.is-saved svg path {
  fill: currentColor;
}

.bookmark-btn:hover,
.bookmark-btn:focus-visible {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-4px);
}

.news-card:hover > .bookmark-btn:hover,
.news-card:focus-within > .bookmark-btn:focus-visible,
.news-card.bm-card-revealed > .bookmark-btn:hover,
.positive-card:hover > .bookmark-btn:hover,
.positive-card:focus-within > .bookmark-btn:focus-visible,
.positive-card.bm-card-revealed > .bookmark-btn:hover,
.geo-fact-popover:hover > .bookmark-btn:hover,
.geo-fact-popover:focus-within > .bookmark-btn:focus-visible,
.geo-fact-popover.bm-card-revealed > .bookmark-btn:hover,
.geo-mobile-card:hover > .bookmark-btn:hover,
.geo-mobile-card:focus-within > .bookmark-btn:focus-visible,
.geo-mobile-card.bm-card-revealed > .bookmark-btn:hover,
.bookmark-btn.is-saved:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-4px);
}

.bookmark-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-radius: 3px;
}

.cat-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
}

/* Deterministic hashed category tag colors (48 perceptually uniform OKLCH hues) */
.cat-pill.tag-hashed {
  --tag-fg: hsl(var(--tag-h, 200) 56% 34%);
  border: 1px solid color-mix(in srgb, var(--tag-fg) 25%, transparent);
  background: color-mix(in srgb, var(--tag-fg) 10%, transparent);
  color: var(--tag-fg);
}

[data-theme="dark"] .cat-pill.tag-hashed {
  --tag-fg: hsl(var(--tag-h, 200) 74% 72%);
  border-color: color-mix(in srgb, var(--tag-fg) 30%, transparent);
  background: color-mix(in srgb, var(--tag-fg) 15%, transparent);
}

@supports (color: oklch(0.5 0.1 0)) {
  .cat-pill.tag-hashed {
    --tag-fg: oklch(0.45 0.135 var(--tag-h, 200));
  }

  [data-theme="dark"] .cat-pill.tag-hashed {
    --tag-fg: oklch(0.78 0.13 var(--tag-h, 200));
  }
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.news-summary {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.why-box {
  margin-top: auto;
  padding: 9px 11px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-secondary);
}

.why-box strong {
  color: var(--ink);
  font-weight: 600;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.source-chip {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.source-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.source-popover {
  position: fixed;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-size: 10.5px;
  max-width: calc(100vw - 24px);
}

.source-popover.is-hover {
  pointer-events: none;
  opacity: 0.94;
}

.source-popover-bias {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-weight: 500;
}

.source-popover-bias[data-bias-tone="center"] { color: var(--bias-center); }
.source-popover-bias[data-bias-tone="left"] { color: var(--bias-left); }
.source-popover-bias[data-bias-tone="right"] { color: var(--bias-right); }
.source-popover-bias[data-bias-tone="state"] { color: var(--bias-state); }

.source-popover-link {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  padding-left: 6px;
  border-left: 1px solid var(--border);
}


.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-block {
  margin-top: 8px;
}

.sub-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sub-note {
  font-size: 12px;
  color: var(--ink-muted);
}


.positive-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--pos);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.positive-card .cat-pill:not(.tag-hashed) {
  background: var(--pos-soft);
  color: var(--pos);
}

.positive-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}


.positive-card .source-links {
  margin-top: auto;
}

.collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.collapse-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.collapsible-title {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.collapsible-title:hover {
  color: var(--accent);
}

.collapse-chevron {
  display: inline-block;
  font-size: 11px;
  transition: transform 0.18s ease;
}

.collapse-btn[aria-expanded="true"] .collapse-chevron {
  transform: rotate(180deg);
}

/* Shared Weekly Takeaway & Around-the-World Location Metadata */
.weekly-takeaway {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--surface-subtle);
  border-left: 2px solid var(--weekly-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.weekly-takeaway-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--weekly-accent);
  margin-right: 6px;
}

.geo-fact-loc-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.geo-fact-place {
  font-weight: 600;
  color: var(--ink-secondary);
}

.geo-fact-coords {
  font-size: 10.5px;
  color: var(--ink-muted);
  opacity: 0.85;
}

.geo-fact-wiki {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--weekly-accent);
}

.geo-fact-wiki:hover {
  text-decoration: underline;
}

/* ---------- Footer & Skeletons ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--ink-muted);
  font-size: 13.5px;
}

.skeleton-line {
  height: 16px;
  background: var(--surface-subtle);
  border-radius: 4px;
  list-style: none;
}

@media (max-width: 860px) {
  .section-narrative {
    max-width: 100%;
  }

  .masthead h1 {
    font-size: 24px;
  }

  .brief-panel {
    padding: 18px;
  }
}
