:root {
  color-scheme: dark;
  --bg: #10100f;
  --panel: #181816;
  --panel-soft: #20201d;
  --ink: #f4f1e8;
  --muted: #b9b5aa;
  --line: rgba(244, 241, 232, 0.14);
  --accent: #fdcc08;
  --cyan: #18c7a7;
  --red: #ff5c77;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(253, 204, 8, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 199, 167, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

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

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

a:hover,
a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

.main-header,
.main-footer {
  background: #0a0a09;
  border-color: var(--line);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}

.main-footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

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

.main-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.logo img {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.header-language {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.language-select__button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.language-select__button:hover,
.language-select__button:focus-visible,
.language-select.is-open .language-select__button {
  border-color: rgba(253, 204, 8, 0.35);
  background: #181816;
  color: #ffffff;
  outline: 0;
}

.language-select__icon {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.language-select__label {
  min-width: 68px;
  text-align: left;
}

.language-select__chevron {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.language-select.is-open .language-select__chevron {
  transform: rotate(180deg);
}

.language-select__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  min-width: 164px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f2df;
  box-shadow: var(--shadow);
}

.language-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
  background: #10100f;
  color: var(--accent);
  outline: 0;
}

.language-option.is-active::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--cyan);
}

.page-shell {
  padding: 34px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 28px;
  align-items: stretch;
}

.article-header,
.lead-media,
.brief-card,
.story,
.analysis-panel,
.timeline-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 24, 22, 0.92);
  box-shadow: var(--shadow);
}

.article-header {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.source-line,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.source-line {
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.source-line span + span,
.meta-row span + span {
  position: relative;
}

.source-line span + span::before,
.meta-row span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 16px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: middle;
}

.hero-copy {
  width: 100%;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: 18px;
  font-weight: 900;
}

.deck {
  margin: 16px 0 16px;
  color: #dfd9c8;
  font-size: 14px;
}

.lead-media {
  margin: 0;
  overflow: hidden;
}

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

figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.brief-card {
  min-height: 152px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(32, 32, 29, 0.98), rgba(24, 24, 22, 0.98));
}

.brief-card span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.brief-card strong {
  color: #ffffff;
  font-size: 14px;
}

.brief-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

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

.content-grid.is-bilingual .analysis-panel {
  grid-column: 1 / -1;
}

.story {
  padding: 28px;
}

.story h2 {
  margin: 28px 0 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.story h2:first-of-type {
  margin-top: 0;
}

.story p {
  margin: 0 0 14px;
  color: #ddd7c7;
  font-size: 14px;
  line-height: 1.7;
}

.story .section-label,
.panel-label,
.section-heading p {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story .section-label {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 3px solid var(--accent);
}

.inline-media {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.inline-media img {
  width: 100%;
}

.analysis-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(16, 16, 15, 0.96);
}

.panel-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
}

.panel-block strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
}

.panel-block span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.timeline-section {
  margin: 28px 0 0;
  padding: 22px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-heading h2 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.step {
  min-height: 92px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11110f;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.step span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(24, 199, 167, 0.45);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.step strong {
  align-self: end;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
}

.step:hover,
.step:focus-visible {
  border-color: var(--cyan);
  outline: 2px solid rgba(24, 199, 167, 0.2);
  outline-offset: 2px;
}

.step.is-selected {
  border-color: var(--accent);
  background: #27220c;
}

.step.is-selected span {
  border-color: var(--accent);
  color: var(--accent);
}

.step-detail {
  margin-top: 12px;
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: #11110f;
}

.step-detail p {
  margin: 0;
  color: #ddd7c7;
  font-size: 14px;
}

.footer-top {
  padding: 18px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.main-footer .logo img {
  width: 260px;
}

.footer-copy-col {
  color: var(--muted);
  font-size: 13px;
}

.source-link {
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .content-grid.is-bilingual {
    grid-template-columns: 1fr;
  }

  .analysis-panel {
    position: static;
  }

  .brief-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container,
  .main-nav,
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .main-nav {
    min-height: 64px;
    gap: 8px;
  }

  .main-nav .logo img {
    width: min(248px, 44vw);
  }

  .language-select__button {
    height: 34px;
    gap: 6px;
    padding: 7px;
    font-size: 12px;
  }

  .language-select__label {
    min-width: 0;
  }

  .language-select__icon {
    width: 18px;
    height: 18px;
  }

  .language-select__chevron {
    width: 14px;
    height: 14px;
  }

  .language-select__menu {
    min-width: 150px;
  }

  .page-shell {
    padding-top: 22px;
  }

  .article-header,
  .story,
  .timeline-section {
    padding: 20px;
  }

  .lead-media img {
    min-height: 220px;
  }

  .source-line,
  .meta-row {
    display: grid;
    gap: 5px;
  }

  .source-line span + span::before,
  .meta-row span + span::before {
    content: none;
  }

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

  .footer-row {
    display: grid;
    justify-items: start;
  }

  .main-footer .logo img {
    width: min(260px, 78vw);
  }
}
