/* Professional international-news theme — visual overrides only. */
:root {
  --bg: #0b1220;
  --bg-primary: #0b1220;
  --bg-secondary: #0b1220;
  --surface: #111827;
  --surface-2: #111827;
  --surface-3: #172033;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: #243244;
  --red: #d7263d;
  --red-soft: #e04a5d;
  --cyan: #d7263d;
  --blue: #64748b;
  --gold: #d7263d;
  --green: #94a3b8;
  --radius: 14px;
  --shadow: none;
}

html,
body,
.newsroom-site {
  color: var(--text);
  background: var(--bg);
}

body {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

:focus-visible {
  outline-color: var(--red);
}

/* Replace the promotional ticker with a restrained brand rule. */
.breaking-strip {
  display: block;
  min-height: 4px;
  height: 4px;
  overflow: hidden;
  border: 0;
  background: var(--red);
}

.breaking-label,
.breaking-viewport {
  display: none;
}

.newsroom-header,
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.97);
  backdrop-filter: blur(14px);
}

.newsroom-header .nav {
  min-height: 82px;
}

.brand-logo,
.newsroom-header .brand-logo,
.newsroom-footer .brand-logo {
  box-shadow: none;
}

.brand-copy,
.brand-copy small {
  color: var(--text);
}

.brand-copy small {
  color: var(--muted);
}

.newsroom-header .nav-links a,
.nav-links a {
  position: relative;
  color: #cbd5e1;
  background: transparent;
}

.newsroom-header .nav-links a:hover,
.newsroom-header .nav-links a:focus-visible,
.newsroom-header .nav-links a[aria-current="page"] {
  color: var(--text);
}

.newsroom-header .nav-links a:not(.nav-channel)::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.newsroom-header .nav-links a:hover::after,
.newsroom-header .nav-links a:focus-visible::after,
.newsroom-header .nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.newsroom-header .nav-links .nav-channel,
.nav-links .nav-channel {
  border: 1px solid #334155;
  color: var(--text);
  background: transparent;
}

.newsroom-header .nav-links .nav-channel:hover {
  border-color: #64748b;
  color: #fff;
  background: #182235;
}

/* Editorial hero. */
.brand-hero {
  padding: clamp(72px, 8vw, 118px) 0 clamp(64px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand-hero-grid {
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.brand-hero h1,
.cloud-brand-title {
  margin-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #334155;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-shadow: none;
}

.cloud-brand-title span,
.brand-title-main {
  color: var(--text);
}

.cloud-brand-title b,
.brand-title-accent {
  color: var(--red);
}

.brand-title-accent::after {
  display: none;
}

.brand-hero .eyebrow,
.section-head .eyebrow,
.section-kicker span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-shadow: none;
}

.brand-subtitle {
  margin-top: 28px;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  letter-spacing: 0.2em;
}

.brand-lede {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.button {
  border-radius: 7px;
  font-weight: 750;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button-primary {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
  box-shadow: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #e14a5d;
  color: #fff;
  background: #b91f34;
  box-shadow: none;
}

.button-secondary {
  border: 1px solid #334155;
  color: #e2e8f0;
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #64748b;
  color: #fff;
  background: #182235;
}

.coverage-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.coverage-heading {
  color: #cbd5e1;
  letter-spacing: 0.12em;
}

.coverage-heading strong {
  color: var(--red);
}

.coverage-panel > p,
.coverage-panel dt {
  color: var(--muted);
}

/* Regional newsroom map. */
.coverage-map-card {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.coverage-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.coverage-card-head > div {
  min-width: 0;
}

.coverage-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.coverage-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.coverage-card-head strong {
  flex: 0 0 auto;
  color: var(--red);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.coverage-map-wrap {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
  overflow: visible;
}

.coverage-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 285px;
  opacity: 0;
  overflow: visible;
  transition: opacity 180ms ease;
}

.coverage-map.is-ready {
  opacity: 1;
}

.coverage-map-countries {
  pointer-events: none;
}

.coverage-map-country {
  fill: #151e2e;
  fill-rule: evenodd;
  stroke: #526176;
  stroke-width: 0.72;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.coverage-map-link {
  fill: none;
  stroke: #7b8798;
  stroke-width: 0.7;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  opacity: 0.18;
  vector-effect: non-scaling-stroke;
}

.coverage-map-error {
  display: none;
  margin: auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.coverage-map-wrap.has-map-error .coverage-map {
  display: none;
}

.coverage-map-wrap.has-map-error .coverage-map-error {
  display: block;
}

.map-node {
  cursor: pointer;
  outline: none;
}

.node-pulse {
  fill: rgba(215, 38, 61, 0.16);
  stroke: rgba(215, 38, 61, 0.46);
  stroke-width: 0.8;
  animation: coverage-node-pulse 2.8s ease-in-out infinite;
  animation-delay: var(--node-delay, 0s);
}

.node-core {
  fill: #d7263d;
  stroke: var(--text);
  stroke-width: 0.65;
}

.node-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.map-node:hover .node-tooltip,
.map-node:focus .node-tooltip,
.map-node:focus-visible .node-tooltip {
  opacity: 1;
}

.node-tooltip rect {
  fill: var(--bg);
  stroke: #334155;
  stroke-width: 0.8;
}

.node-tooltip .tooltip-title {
  fill: var(--text);
  font-size: 7.5px;
  font-weight: 700;
}

.node-tooltip .tooltip-city {
  fill: #7b8798;
  font-size: 6px;
}

@keyframes coverage-node-pulse {
  0%, 100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.72;
  }
}

/* Country/category rail. */
.desk-navigation,
.status-line {
  border-color: var(--line);
  background: #0d1626;
}

.desk-navigation .container {
  padding-block: 18px;
}

.rail-title {
  color: #64748b;
}

.scroll-rail {
  gap: 12px;
}

.scroll-rail a {
  position: relative;
  padding: 7px 3px 9px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.scroll-rail a::after {
  position: absolute;
  right: 3px;
  bottom: 1px;
  left: 3px;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
}

.scroll-rail a:hover,
.scroll-rail a:focus-visible,
.scroll-rail a[aria-current="page"] {
  border: 0;
  color: var(--text);
  background: transparent;
}

.scroll-rail a:hover::after,
.scroll-rail a:focus-visible::after,
.scroll-rail a[aria-current="page"]::after {
  opacity: 1;
}

/* Cards and editorial sections. */
.newsroom-site .section-alt,
.telegram-inline,
.safety-section,
.newsroom-join,
.cloud-channel-cta {
  border-color: var(--line);
  background: #0d1626;
}

.lead-story,
.latest-card,
.overview-item,
.safety-card,
.topic-card,
.weekly-card,
.coverage-panel,
.cloud-country-grid a,
.cloud-list-item,
.cloud-article-cover,
.cloud-source,
.cloud-related,
.cloud-admin-panel,
.sync-stat,
.sync-card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.cloud-country-grid a,
.topic-card,
.newsroom-join,
.cloud-channel-cta {
  background-image: none;
}

.latest-card:hover,
.cloud-country-grid a:hover,
.cloud-list-item:hover {
  border-color: #334155;
  transform: none;
  box-shadow: none;
}

.lead-cover::after {
  display: none;
}

.card-cover,
.lead-cover,
.cloud-list-cover,
.overview-cover {
  background: #0b1220;
}

.card-cover img,
.lead-cover img,
.cloud-list-cover img,
.overview-cover img {
  background: #0b1220;
}

.latest-card:hover .card-cover img,
.overview-item:hover .overview-cover img {
  transform: none;
}

.meta-row,
.meta-row a,
.meta-row time,
.cloud-breadcrumb,
.cloud-breadcrumb a,
.overview-foot,
.overview-foot a,
.latest-card p,
.cloud-list-item p,
.cloud-summary,
.cloud-article-body,
.cloud-source dt,
.cloud-related span,
.footer-copy p {
  color: var(--muted);
}

.pill,
.meta-row .pill {
  border-color: #334155;
  color: #cbd5e1;
  background: #182235;
}

.text-link,
.cloud-country-grid span,
.cloud-related a,
.cloud-source a,
.footer-links a,
.weekly-card a,
.safety-card > a {
  color: #cbd5e1;
}

.text-link:hover,
.cloud-related a:hover,
.cloud-source a:hover,
.footer-links a:hover {
  color: var(--text);
}

.section-kicker::after {
  background: var(--red);
}

.telegram-inline {
  border-block: 1px solid var(--line);
}

.topic-card,
.safety-card {
  border: 1px solid var(--line);
}

.safety-card {
  border-left: 3px solid var(--red);
}

.topic-index,
.risk-line strong,
.eyebrow-gold,
.status-review,
.status-draft {
  color: var(--red);
}

.status-review,
.status-draft {
  background: rgba(215, 38, 61, 0.12);
}

.newsroom-footer,
.site-footer {
  border-top: 1px solid var(--line);
  background: #090f1b;
}

.newsroom-empty {
  border-color: var(--line);
  background: var(--surface);
}

.newsroom-empty > span {
  color: var(--red);
}

@media (max-width: 1024px) {
  .brand-hero-grid {
    gap: 44px;
  }

  .coverage-panel {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .newsroom-header .nav {
    min-height: 72px;
  }

  .brand-hero {
    padding-block: 58px 52px;
  }

  .brand-hero h1,
  .cloud-brand-title {
    gap: 0.06em;
    font-size: clamp(3rem, 14vw, 4.25rem);
  }

  .brand-subtitle {
    font-size: 1rem;
  }

  .coverage-panel {
    padding: 24px;
  }

  .coverage-map-card {
    min-height: 0;
  }

  .coverage-map {
    min-height: 185px;
  }

  .coverage-card-head strong {
    font-size: 2.25rem;
  }

  .desk-navigation .container {
    padding-block: 14px;
  }

  .rail-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .node-pulse {
    animation: none;
  }

  .flight-dot {
    display: none;
  }
}
