:root {
  --bg: #071015;
  --bg-soft: #0b151b;
  --panel: #101b22;
  --panel-2: #14222b;
  --control-bg: #0c171e;
  --ink: #f4f7f7;
  --muted: #9eabb2;
  --line: #263740;
  --line-strong: #38505b;
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --gold: #f4b942;
  --amber: var(--gold);
  --orange: #e97b45;
  --blue: #7bb4ff;
  --red: #ef6a62;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--teal) 34%, transparent);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --body-bg:
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(244, 185, 66, 0.11), transparent 28%),
    var(--bg);
  --topbar-bg: rgba(7, 16, 21, 0.9);
  --overlay-bg: rgba(4, 10, 13, 0.74);
  --account-menu-bg: #111b22;
  --account-menu-ink: #f4f7f7;
  --account-menu-muted: #a4b0b7;
  --account-menu-line: #2a3b46;
  --account-menu-soft: #0c171e;
  --account-menu-hover: #14242d;
  --account-avatar-bg: #2b2142;
  --account-avatar-ink: #9b6dff;
  --account-menu-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

:root[data-theme="light"] {
  --bg: #f4f0e8;
  --bg-soft: #ebe5da;
  --panel: #fffdf8;
  --panel-2: #f5efe5;
  --control-bg: #ffffff;
  --ink: #172026;
  --muted: #5f6970;
  --line: #d8d0c4;
  --line-strong: #b9aa9b;
  --teal: #0f766e;
  --teal-deep: #0b5f59;
  --gold: #b66f1f;
  --orange: #c8592d;
  --blue: #315f8c;
  --red: #a43d35;
  --shadow: 0 18px 60px rgba(58, 43, 25, 0.12);
  --body-bg:
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.13), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(182, 111, 31, 0.13), transparent 28%),
    var(--bg);
  --topbar-bg: rgba(244, 240, 232, 0.92);
  --overlay-bg: rgba(244, 240, 232, 0.78);
  --account-menu-bg: #ffffff;
  --account-menu-ink: #222b36;
  --account-menu-muted: #697582;
  --account-menu-line: #dfe3ea;
  --account-menu-soft: #fbfcfe;
  --account-menu-hover: #f6f8fb;
  --account-avatar-bg: #eee1ff;
  --account-avatar-ink: #7838ef;
  --account-menu-shadow: 0 24px 70px rgba(19, 27, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--body-bg);
  background-color: var(--bg);
  color: var(--ink);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  transition: background-color 0.15s ease, color 0.15s ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
.article-card,
.issue-card,
.person-card,
.watch-row,
.headline-item,
.filter-chip,
.related-link,
.timeline-link {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

button:active,
a:active,
.article-card:active,
.issue-card:active,
.person-card:active,
.watch-row:active {
  transform: translateY(1px);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 360px) auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(14px, 3vw, 30px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-weight: 900;
}

.brand-text {
  font-size: 18px;
  font-weight: 900;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab,
.filter-chip,
.watch-row,
.article-card,
.person-card,
.panel-toggle {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav-tab:hover,
.nav-tab.is-active {
  background: var(--ink);
  color: var(--bg);
}

.search-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  background: var(--control-bg);
  border: 1px solid var(--line);
}

.search-field svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-field input::placeholder {
  color: #6f7f87;
}

.auth-controls {
  position: relative;
  display: flex;
  gap: 8px;
  justify-content: end;
  min-width: max-content;
}

.utility-button,
.account-button,
.auth-submit,
.auth-secondary,
.auth-ghost {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: var(--control-bg);
  color: var(--ink);
  font-weight: 900;
}

.utility-button,
.account-button {
  padding: 8px 12px;
}

.account-button {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-button:hover,
.account-button:hover,
.auth-submit:hover,
.auth-secondary:hover,
.auth-ghost:hover {
  border-color: var(--teal);
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 18px;
  width: min(390px, calc(100vw - 28px));
  padding: 26px;
  background: var(--account-menu-bg);
  color: var(--account-menu-ink);
  border: 1px solid var(--account-menu-line);
  border-radius: 18px;
  box-shadow: var(--account-menu-shadow);
}

.account-menu[hidden] {
  display: none;
}

.account-menu small {
  color: var(--muted);
}

.account-menu strong {
  overflow-wrap: anywhere;
}

.account-menu-profile {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  align-items: center;
}

.account-avatar {
  display: grid;
  width: 90px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: var(--account-avatar-bg);
  color: var(--account-avatar-ink);
}

.account-avatar svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.account-identity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-identity strong {
  color: var(--account-menu-ink);
  font-size: 20px;
  line-height: 1.25;
}

.account-identity span {
  color: var(--account-menu-muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.account-primary-action {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--account-menu-line);
  border-radius: 999px;
  background: var(--account-menu-bg);
  color: var(--account-menu-ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.account-primary-action:hover {
  background: var(--account-menu-hover);
}

.account-menu-list {
  display: grid;
  gap: 0;
  padding-top: 4px;
  border-top: 1px solid var(--account-menu-line);
}

.account-menu-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--account-menu-ink);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.account-menu-row + .account-menu-row {
  border-top: 1px solid var(--account-menu-line);
}

.account-menu-row:hover {
  color: #0f766e;
}

.account-menu-row svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu-notice {
  min-height: 20px;
  margin: -6px 0 0;
  color: var(--account-menu-muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-settings-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--account-menu-soft);
  border: 1px solid var(--account-menu-line);
}

.account-settings-panel[hidden] {
  display: none;
}

.account-settings-panel div {
  display: grid;
  gap: 3px;
}

.account-settings-panel strong {
  color: var(--account-menu-ink);
  font-size: 15px;
}

.account-settings-panel span {
  color: var(--account-menu-muted);
  font-size: 13px;
}

.account-setting-button {
  min-height: 42px;
  border: 1px solid var(--account-menu-line);
  background: var(--account-menu-bg);
  color: var(--account-menu-ink);
  font-weight: 900;
}

.account-setting-button:hover {
  background: var(--account-menu-hover);
}

.account-setting-link,
.account-setting-note {
  display: grid;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--account-menu-line);
  color: var(--account-menu-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.account-setting-link:hover {
  background: var(--account-menu-hover);
}

.account-setting-note {
  color: var(--account-menu-muted);
}

.admin-denied-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-denied-actions .article-back {
  border: 0;
}

.admin-denied-actions .secondary {
  background: var(--control-bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.auth-lock {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--overlay-bg);
  backdrop-filter: blur(18px);
}

.auth-card {
  display: grid;
  gap: 18px;
  width: min(430px, 100%);
  padding: clamp(22px, 5vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card-game {
  width: min(760px, calc(100vw - 28px));
  padding: clamp(26px, 5vw, 48px);
  background: #fffefb;
  color: #171b21;
  border: 0;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(17, 20, 26, 0.18);
}

.auth-page-shell {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 76px);
  padding: clamp(22px, 5vw, 58px) 14px;
}

.auth-page-panel {
  width: min(820px, 100%);
}

.auth-page-copy {
  display: grid;
  gap: 8px;
  color: #171b21;
}

.auth-page-copy h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

.auth-page-copy p {
  color: #6a7280;
  font-size: 16px;
  line-height: 1.7;
}

.auth-page-form {
  gap: 18px;
}

.auth-site-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #171b21;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.auth-site-mark {
  display: grid;
  width: clamp(38px, 6vw, 52px);
  aspect-ratio: 1;
  place-items: center;
  background: #171b21;
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
}

.auth-card h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-card-game .auth-form {
  gap: 24px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  outline: 0;
  background: var(--control-bg);
  color: var(--ink);
}

.auth-field input:focus {
  border-color: var(--teal);
}

.auth-field-plain input {
  min-height: 88px;
  padding: 18px 24px;
  border: 2px solid #e4e7ee;
  border-radius: 14px;
  background: #ffffff;
  color: #171b21;
  font-size: 28px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(210, 215, 224, 0.3);
}

.auth-field-plain input::placeholder {
  color: #c1c4cc;
}

.auth-field-plain input:focus {
  border-color: #e4bc55;
  box-shadow: 0 0 0 3px rgba(228, 188, 85, 0.14);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-submit {
  background: var(--teal);
  color: var(--bg);
}

.auth-submit-wide {
  min-height: 88px;
  border: 0;
  border-radius: 12px;
  background: #3b3f45;
  color: #e4bc55;
  font-size: 32px;
  letter-spacing: 0;
}

.auth-submit-wide:hover {
  border: 0;
  background: #2f3339;
}

.auth-secondary,
.auth-ghost {
  background: var(--control-bg);
}

.auth-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -4px;
}

.auth-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d9af49;
  font-size: 27px;
  font-weight: 900;
  text-decoration: none;
}

.auth-link-button:hover {
  color: #b78824;
}

.account-link {
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}

.auth-ghost {
  width: 100%;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--bg);
  font-weight: 900;
}

.social-login-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 30px);
}

.social-login-button {
  display: grid;
  width: clamp(58px, 8vw, 74px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #dde0e7;
  border-radius: 999px;
  background: #ffffff;
  color: #171b21;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 3px 12px rgba(17, 20, 26, 0.07);
}

.social-login-button:hover {
  transform: translateY(-1px);
  border-color: #e4bc55;
}

.social-login-button .google-mark {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: #4285f4;
  font-size: inherit;
}

.facebook-button {
  background: #1877f2;
  color: #ffffff;
}

.apple-button {
  background: #000000;
  color: #ffffff;
}

.google-mark svg {
  width: 34px;
  height: 34px;
}

.apple-button span {
  font-size: 13px;
  letter-spacing: 0;
}

.auth-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: -8px;
}

.auth-check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #6a7280;
  font-weight: 800;
}

.auth-check-row input {
  width: 18px;
  height: 18px;
  accent-color: #d9af49;
}

.auth-message[data-kind="success"] {
  color: #087f5b;
}

.auth-message[data-kind="error"] {
  color: #a16207;
}

.account-page-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-page-summary span {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e4e7ee;
  color: #6a7280;
  font-size: 13px;
  font-weight: 900;
}

.account-page-summary strong {
  color: #171b21;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.account-watchlist {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e1e5ec;
  background: #fbfcfe;
}

.account-watchlist > p {
  margin: 0;
  color: #6a7280;
  line-height: 1.65;
}

.account-watchlist-list,
.account-watchlist-empty,
.account-watchlist-item {
  display: grid;
  gap: 10px;
}

.account-watchlist-empty {
  padding: 14px;
  border: 1px dashed #cbd3df;
  color: #6a7280;
}

.account-watchlist-empty strong {
  color: #171b21;
}

.account-watchlist-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px;
  border: 1px solid #dfe4ec;
  background: #ffffff;
}

.account-watchlist-item span,
.account-watchlist-item small {
  display: block;
  color: #6a7280;
}

.account-watchlist-item span {
  font-size: 12px;
  font-weight: 900;
}

.account-watchlist-item strong {
  display: block;
  margin-top: 4px;
  color: #171b21;
  font-size: 18px;
  line-height: 1.35;
}

.account-watchlist-item small {
  margin-top: 5px;
  line-height: 1.55;
}

.account-watchlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-watchlist-actions a,
.account-watchlist-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfd6e1;
  background: #ffffff;
  color: #171b21;
  font-weight: 900;
  text-decoration: none;
}

.account-watchlist-actions a {
  border-color: #e4bc55;
  background: #3b3f45;
  color: #e4bc55;
}

.account-watchlist-actions button:hover,
.account-watchlist-actions a:hover {
  transform: translateY(-1px);
}

.account-watchlist-item-muted {
  opacity: 0.78;
  border-left: 3px solid var(--line-strong);
}

.account-watchlist-item-muted span {
  color: var(--red);
}

.auth-bottom-row .auth-ghost {
  width: auto;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #8a8f99;
  font-size: 13px;
}

.auth-bottom-row .auth-ghost:hover {
  color: #3b3f45;
}

.auth-message {
  min-height: 22px;
  color: var(--gold);
  font-size: 13px;
}

.auth-card-game .auth-message {
  text-align: center;
  color: #9a671f;
  font-size: 14px;
  font-weight: 800;
}

body.auth-locked > .topbar,
body.auth-locked > main,
body.auth-locked > .site-footer {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.page-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 300px;
  gap: 16px;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 18px clamp(12px, 2.4vw, 28px) 38px;
}

.side-panel,
.detail-panel,
.main-panel {
  min-width: 0;
}

.side-panel,
.detail-sticky {
  position: sticky;
  top: 82px;
  align-self: start;
}

.side-panel {
  display: grid;
  gap: 14px;
}

.panel-section,
.detail-sticky,
.issue-card,
.source-card,
.timeline-item,
.person-card,
.article-card,
.news-board,
.promo-slot,
.ad-slot {
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-section,
.detail-sticky {
  padding: 14px;
}

.panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  text-align: left;
}

.panel-toggle small {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-toggle strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.toggle-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}

.topic-panel.is-open .toggle-icon {
  color: var(--gold);
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.2;
}

.section-heading h1 {
  font-size: 38px;
}

.section-heading h2 {
  font-size: 18px;
}

.section-heading.wide {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

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

.filter-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.filter-list[hidden] {
  display: none;
}

.filter-chip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  background: var(--control-bg);
  border-color: var(--line);
  color: var(--ink);
  text-align: left;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
  transform: translateY(-1px);
}

.filter-chip span:last-child {
  color: var(--muted);
}

.watch-list {
  display: grid;
  gap: 8px;
}

.watch-row {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 12px;
  background: var(--control-bg);
  border-color: var(--line);
  text-align: left;
}

.watch-row:hover {
  border-color: var(--gold);
  background: rgba(244, 185, 66, 0.1);
  transform: translateY(-1px);
}

.watch-row span {
  color: var(--muted);
  font-size: 12px;
}

.watch-row strong {
  color: var(--ink);
  font-size: 14px;
}

.watch-empty {
  display: grid;
  gap: 3px;
  padding: 12px;
  color: var(--muted);
  background: var(--control-bg);
  border: 1px dashed var(--line);
}

.watch-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.watch-empty span {
  font-size: 12px;
  line-height: 1.45;
}

.promo-slot,
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 14px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%) 0 0 /
      18px 18px,
    color-mix(in srgb, var(--control-bg) 82%, transparent);
  text-align: center;
}

.promo-slot span,
.ad-slot span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-slot strong,
.ad-slot strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.promo-slot-side,
.ad-slot-side {
  min-height: 250px;
}

.promo-slot-top,
.ad-slot-top {
  min-height: 90px;
  margin-bottom: 14px;
}

.promo-slot-feed,
.ad-slot-feed {
  min-height: 160px;
  margin-top: 16px;
}

.promo-slot-grid,
.ad-slot-grid {
  min-height: 280px;
  border: 1px solid var(--line);
}

.promo-guard-active .promo-slot,
.promo-guard-active .ad-slot {
  pointer-events: none;
}

.ad-safety-shield {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  min-height: inherit;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
}

.ad-safety-shield strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.ad-safety-shield span {
  max-width: 34rem;
  font-size: 0.82rem;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.news-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  padding: 14px;
}

.featured-story {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: var(--control-bg);
  cursor: pointer;
}

.featured-story img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.featured-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  color: #f7fbfb;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.featured-overlay h1 {
  margin: 8px 0 8px;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.featured-overlay p {
  margin: 0;
  color: #dce8eb;
}

.featured-overlay .topic-badge {
  background: rgba(9, 18, 23, 0.7);
  color: var(--teal);
  text-shadow: none;
}

.headline-stack {
  min-width: 0;
}

#headlineList {
  display: grid;
}

.headline-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.headline-item:hover,
.headline-item.is-selected {
  color: var(--gold);
  transform: translateX(2px);
}

.headline-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.headline-item span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.list-heading {
  margin-top: 22px;
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  background: rgba(45, 212, 191, 0.13);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.article-card,
.person-card {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 10px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.article-card:hover,
.article-card.is-selected,
.person-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

.article-card {
  cursor: pointer;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--control-bg);
  object-fit: cover;
}

.card-content {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.article-card h3,
.person-card h3,
.issue-card h3,
.source-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.article-card p,
.person-card p,
.issue-card p,
.source-card p,
.timeline-item p,
.detail-block p {
  margin: 0;
  color: var(--muted);
}

.article-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  padding: 4px 7px;
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
  font-size: 12px;
}

.article-pagination {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pagination-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination-button,
.pagination-page {
  min-height: 38px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.pagination-button {
  padding: 0 14px;
}

.pagination-page {
  width: 38px;
  padding: 0;
}

.pagination-page.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #061014;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-gap {
  color: var(--muted);
  font-weight: 900;
}

.issue-map,
.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.issue-card,
.source-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.issue-card {
  cursor: pointer;
}

.issue-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.issue-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.issue-count {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  background: rgba(244, 185, 66, 0.12);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.person-card {
  padding: 16px;
  cursor: pointer;
}

.person-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.person-meta span {
  display: grid;
  gap: 2px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.person-meta strong {
  color: var(--ink);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.related-dialog {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.related-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
  border-bottom: 1px solid var(--line);
}

.related-head h2 {
  margin: 0 0 6px;
  font-size: 34px;
}

.related-head p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--control-bg);
  color: var(--ink);
  font-size: 24px;
}

.modal-close:hover {
  border-color: var(--teal);
}

.related-list {
  display: grid;
}

.related-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 28px);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.related-row:hover {
  background: color-mix(in srgb, var(--panel-2) 50%, transparent);
}

.related-row:last-child {
  border-bottom: 0;
}

.related-row time {
  color: var(--teal);
  font-weight: 900;
}

.related-row span {
  display: grid;
  gap: 4px;
}

.related-row small,
.related-row em {
  color: var(--muted);
}

.related-row strong {
  font-size: 18px;
  line-height: 1.35;
}

.related-row em {
  display: block;
  font-style: normal;
  line-height: 1.6;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.timeline-item time {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.timeline-link {
  cursor: pointer;
}

.timeline-link:hover {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--panel-2) 58%, transparent);
}

.detail-body {
  display: grid;
  gap: 16px;
}

.detail-summary {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}

.detail-block {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.detail-block h3 {
  margin: 0;
  font-size: 15px;
}

.detail-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-block li {
  color: var(--muted);
}

.source-pill {
  display: inline-flex;
  margin: 4px 5px 0 0;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
  font-size: 12px;
}

.source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.empty-state {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 22px 16px 38px;
  border-top: 1px solid var(--line);
}

.site-footer a,
.text-link {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.site-footer a:hover,
.text-link:hover {
  text-decoration: underline;
}

.doc-page {
  min-height: 100vh;
}

.doc-page .topbar {
  grid-template-columns: auto 1fr auto;
}

.doc-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.admin-page .doc-shell {
  width: min(1180px, calc(100% - 32px));
}

.doc-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.doc-panel h1 {
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 1.15;
}

.doc-panel h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.doc-panel p,
.doc-panel li {
  color: var(--muted);
}

.doc-panel ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.article-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 22px clamp(12px, 2.4vw, 28px) 44px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 980px) 300px;
  justify-content: center;
  align-items: start;
  gap: 26px;
}

.article-news-card {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding: clamp(20px, 4vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-news-head {
  display: grid;
  gap: 12px;
}

.article-kicker-line,
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.article-kicker-line > span:not(.topic-badge),
.news-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.news-title {
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.article-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 4px;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid color-mix(in srgb, var(--teal) 44%, var(--line));
  background: color-mix(in srgb, var(--teal) 12%, var(--control-bg));
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.follow-btn:hover {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 20%, var(--control-bg));
  transform: translateY(-1px);
}

.follow-btn.is-following {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 88%, var(--teal));
  color: #071114;
}

.follow-btn.is-following:hover {
  background: var(--gold);
}

.article-media {
  display: grid;
  gap: 8px;
  margin: 0;
}

.article-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--control-bg);
  object-fit: cover;
}

.article-media figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.article-lead {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 20px;
  line-height: 1.8;
}

.article-quick-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--control-bg);
  border: 1px solid var(--line);
}

.article-quick-box h2,
.article-related h2 {
  margin: 0;
  font-size: 20px;
}

.article-quick-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-quick-box li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.article-quick-box li:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-quick-box strong {
  color: var(--teal);
  font-size: 13px;
}

.article-quick-box span {
  color: var(--ink);
  line-height: 1.6;
}

.article-news-body,
.article-news-section,
.article-footer-meta,
.article-disclaimer,
.article-related {
  display: grid;
  gap: 14px;
}

.article-news-section + .article-news-section {
  padding-top: 10px;
}

.body-subhead {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.35;
}

.article-news-body p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 18px;
  line-height: 1.95;
}

.article-related {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-disclaimer {
  padding: 16px;
  background: color-mix(in srgb, var(--panel-2) 64%, transparent);
  border: 1px solid var(--line);
}

.article-disclaimer h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.article-disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.article-comments {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.comment-head {
  display: grid;
  gap: 4px;
}

.comment-head h2 {
  margin: 0;
  font-size: 24px;
}

.comment-panel,
.comment-form,
.comment-list,
.comment-card,
.comment-content,
.comment-replies,
.comment-reply-form {
  display: grid;
  gap: 12px;
}

.comment-form {
  padding: 16px;
  background: var(--control-bg);
  border: 1px solid var(--line);
}

.comment-form label {
  display: grid;
  gap: 8px;
}

.comment-form label span,
.comment-status,
.comment-empty,
.comment-meta time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comment-form textarea,
.comment-reply-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
}

.comment-reply-form textarea {
  min-height: 84px;
}

.comment-form textarea:focus,
.comment-reply-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--teal) 45%, transparent);
  outline-offset: 2px;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-status {
  margin: 0;
}

.comment-status.is-error {
  color: var(--amber);
}

.comment-card {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.comment-card.is-reply {
  padding-top: 12px;
}

.comment-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 22%, var(--control-bg));
  color: var(--ink);
  font-weight: 900;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.comment-local-note {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.comment-card p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  line-height: 1.75;
}

.comment-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.comment-tool,
.comment-reaction,
.comment-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.comment-tool:hover,
.comment-reaction:hover,
.comment-reply-toggle:hover,
.comment-reaction.is-active,
.comment-report.is-active {
  color: var(--red);
}

.comment-reaction:disabled,
.comment-tool:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.reaction-symbol {
  display: inline-block;
  width: 18px;
  color: currentColor;
  font-family: Arial, "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.comment-reply-toggle {
  width: max-content;
  color: var(--teal);
}

.comment-replies {
  margin-top: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.comment-report-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: color-mix(in srgb, var(--ink) 8%, var(--control-bg));
  border: 1px solid var(--line);
}

.comment-report-head {
  display: grid;
  gap: 4px;
}

.comment-report-head strong {
  color: var(--ink);
  font-size: 16px;
}

.comment-report-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.comment-report-options {
  display: grid;
  border-top: 1px solid var(--line);
}

.comment-report-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.comment-report-option:hover {
  color: var(--teal);
}

.comment-report-option span:last-child {
  color: var(--muted);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.comment-reply-form {
  padding: 12px;
  background: color-mix(in srgb, var(--control-bg) 78%, transparent);
  border: 1px solid var(--line);
}

.related-link {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.related-link span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.related-link strong {
  font-size: 17px;
  line-height: 1.4;
}

.related-link:hover strong {
  color: var(--gold);
}

.article-hero,
.article-main,
.article-aside,
.article-side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.article-hero-text {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 56px);
}

.article-hero-text h1 {
  margin: 0;
  font-size: 58px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.article-hero-text p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-main {
  display: grid;
  gap: 28px;
  padding: clamp(22px, 4vw, 46px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-meta span {
  padding: 5px 9px;
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.article-section {
  display: grid;
  gap: 12px;
}

.article-prose {
  gap: 24px;
}

.article-subsection {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.article-subsection + .article-subsection {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-inline-ad {
  min-height: 110px;
  margin: 2px 0 6px;
  border: 1px solid var(--line);
}

.article-section h2 {
  margin: 0;
  font-size: 24px;
}

.article-section p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  font-size: 18px;
  line-height: 1.85;
}

.article-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.article-facts div {
  min-height: 108px;
  padding: 14px;
  background: var(--control-bg);
  border: 1px solid var(--line);
}

.article-facts span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.article-facts strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}

.article-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-compare > div {
  padding: 18px;
  background: var(--control-bg);
  border: 1px solid var(--line);
}

.article-aside {
  position: sticky;
  top: 82px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.article-side-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.article-side-card h2 {
  margin: 0;
  font-size: 19px;
}

.article-side-card p {
  margin: 0;
  color: var(--muted);
}

.article-back {
  display: inline-flex;
  width: max-content;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  background: var(--teal);
  color: var(--bg);
  font-weight: 900;
  text-decoration: none;
}

.article-back.secondary {
  background: var(--control-bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.admin-card,
.admin-table {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-card {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 16px;
}

.admin-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-card strong {
  font-size: 34px;
  line-height: 1;
}

.admin-table {
  overflow: hidden;
  margin-top: 18px;
}

.admin-table h2 {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-table-head h2 {
  padding: 0;
  border-bottom: 0;
}

.admin-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.keyword-draft-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(110px, 0.4fr);
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.keyword-draft-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.keyword-draft-form label.wide {
  grid-column: 1 / -1;
}

.keyword-draft-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.keyword-draft-form input,
.keyword-draft-form select,
.keyword-draft-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: var(--control-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
}

.keyword-draft-form textarea {
  resize: vertical;
  min-height: 86px;
}

.keyword-blacklist-body {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.keyword-blacklist-body label {
  display: grid;
  gap: 8px;
}

.keyword-blacklist-body span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.keyword-blacklist-body textarea {
  width: 100%;
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  background: var(--control-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-actions.compact {
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}

.admin-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: var(--control-bg);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.admin-button:hover {
  border-color: var(--teal);
}

.admin-button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--bg);
}

.admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.draft-status {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  white-space: pre-line;
}

.draft-status.is-error {
  color: var(--amber);
}

.draft-review-list {
  display: grid;
}

.draft-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 150px;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.draft-card:last-child {
  border-bottom: 0;
}

.draft-card.is-error {
  background: color-mix(in srgb, var(--amber) 10%, transparent);
}

.draft-select {
  display: flex;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.draft-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.draft-main {
  display: grid;
  gap: 10px;
}

.draft-main h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.draft-main p {
  margin: 0;
  color: var(--muted);
}

.draft-meta,
.draft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.draft-meta span,
.draft-tags span {
  padding: 5px 8px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.draft-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.draft-facts span,
.draft-empty {
  padding: 12px;
  background: var(--control-bg);
  border: 1px solid var(--line);
}

.draft-facts small,
.draft-empty span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.draft-facts strong,
.draft-empty strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.draft-quality {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: color-mix(in srgb, var(--amber) 10%, var(--control-bg));
  border: 1px solid color-mix(in srgb, var(--amber) 28%, var(--line));
}

.draft-quality strong {
  color: var(--amber);
  font-size: 12px;
  text-transform: uppercase;
}

.draft-quality span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.draft-actions {
  display: grid;
  align-content: start;
  gap: 8px;
}

.draft-empty {
  margin: 16px;
}

.comment-moderation-list {
  display: grid;
}

.comment-admin-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 140px;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.comment-admin-row:last-child {
  border-bottom: 0;
}

.comment-admin-row.is-hidden {
  opacity: 0.62;
}

.comment-admin-row.is-reported {
  border-left: 4px solid var(--amber);
}

.review-warning {
  color: var(--amber) !important;
}

.comment-admin-meta,
.comment-admin-side {
  display: grid;
  align-content: start;
  gap: 6px;
}

.comment-admin-meta span,
.comment-admin-side span,
.comment-admin-side time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.comment-admin-row p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  line-height: 1.7;
}

.data-map-panel {
  display: grid;
  gap: 18px;
}

.data-map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.data-map-hero h1 {
  margin-bottom: 12px;
}

.data-map-hero p {
  max-width: 780px;
  margin: 0;
  font-size: 17px;
}

.data-map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.data-flow-steps,
.schema-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.data-flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.data-flow-steps article,
.schema-card,
.data-record-row {
  background: var(--control-bg);
  border: 1px solid var(--line);
}

.data-flow-steps article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 14px;
}

.data-flow-steps span,
.schema-card-head span,
.data-record-row span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-flow-steps strong {
  font-size: 18px;
}

.data-flow-steps p {
  margin: 0;
  color: var(--muted);
}

.data-record-note {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.data-record-list {
  display: grid;
}

.data-record-row {
  display: grid;
  grid-template-columns: 120px minmax(170px, 0.7fr) minmax(0, 1.2fr) 170px;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-width: 0 0 1px;
}

.data-record-row:last-child {
  border-bottom: 0;
}

.data-record-row strong,
.data-record-row p,
.data-record-row time {
  overflow-wrap: anywhere;
}

.data-record-row p,
.data-record-row time {
  margin: 0;
  color: var(--muted);
}

.schema-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schema-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.schema-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schema-card h3 {
  margin: 0;
  font-size: 22px;
}

.schema-card p {
  margin: 0;
  color: var(--muted);
}

.schema-card dl {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.schema-card dl div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.schema-card dt,
.schema-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.schema-card dt {
  color: var(--ink);
  font-weight: 900;
}

.schema-card dd {
  color: var(--muted);
}

@media (max-width: 1240px) {
  .page-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .detail-panel {
    grid-column: 1 / -1;
  }

  .detail-sticky {
    position: static;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .main-panel {
    order: 1;
  }

  .side-panel {
    order: 2;
    position: static;
  }

  .detail-panel {
    order: 3;
  }

  .news-board,
  .issue-map,
  .people-list,
  .admin-grid,
  .data-map-hero,
  .data-flow-steps,
  .schema-grid,
  .account-page-summary,
  .draft-card,
  .draft-facts,
  .comment-admin-row,
  .keyword-draft-form,
  .article-layout,
  .article-hero,
  .article-compare,
  .article-facts {
    grid-template-columns: 1fr;
  }

  .admin-table-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-actions.compact {
    justify-content: flex-start;
  }

  .data-map-actions {
    justify-content: flex-start;
  }

  .data-record-row {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .featured-overlay h1,
  .news-title,
  .article-hero-text h1,
  .doc-panel h1 {
    font-size: 44px;
  }

  .promo-slot-top,
  .ad-slot-top {
    min-height: 72px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-inline: 10px;
  }

  .topbar {
    padding-inline: 10px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .featured-story,
  .featured-story img {
    min-height: 330px;
  }

  .featured-overlay {
    padding: 18px;
  }

  .auth-page-copy h1,
  .auth-card h1,
  .auth-site-title,
  .featured-overlay h1,
  .section-heading h1,
  .news-title,
  .article-hero-text h1,
  .doc-panel h1 {
    font-size: 34px;
  }

  .auth-site-mark {
    font-size: 20px;
  }

  .auth-field-plain input,
  .auth-link-button {
    font-size: 22px;
  }

  .auth-submit-wide,
  .related-head h2 {
    font-size: 26px;
  }

  .social-login-button {
    font-size: 28px;
  }

  .section-heading.wide {
    align-items: start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .account-watchlist-item {
    grid-template-columns: 1fr;
  }

  .account-watchlist-actions {
    justify-content: flex-start;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
