:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --article-bg: #f7f8fb;
  --article-surface: #ffffff;
  --article-text: #18202b;
  --article-muted: #5f6977;
  --article-border: #dfe4eb;
  --article-accent: #243a5a;
  --article-soft: #eef2f7;
  --article-max: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--article-bg);
  color: var(--article-text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: #245c9c; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.article-site-header {
  min-height: 64px;
  padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--article-border);
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.article-brand {
  color: var(--article-text);
  font-weight: 750;
  text-decoration: none;
}
.article-language-switch { display: flex; gap: 6px; }
.article-language-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--article-border);
  border-radius: 12px;
  background: var(--article-surface);
  color: var(--article-text);
  font-weight: 700;
  text-decoration: none;
}
.article-language-link[aria-current="page"] { background: var(--article-accent); color: #fff; border-color: var(--article-accent); }

.article-shell {
  width: min(calc(100% - 32px), var(--article-max));
  margin: 0 auto;
  padding: 24px 0 52px;
}
.article-breadcrumbs { margin-bottom: 20px; color: var(--article-muted); font-size: 0.9rem; }
.article-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.article-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #9aa3af; }

.article {
  background: var(--article-surface);
  border: 1px solid var(--article-border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(31, 42, 55, 0.07);
  overflow: hidden;
}
.article-hero { padding: clamp(26px, 5vw, 48px); border-bottom: 1px solid var(--article-border); }
.article-eyebrow { margin: 0 0 8px; color: #52647a; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.article h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.035em; }
.article-lead { margin: 20px 0 0; max-width: 68ch; color: #465364; font-size: clamp(1rem, 2.5vw, 1.14rem); }
.article-updated { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; color: var(--article-muted); font-size: 0.88rem; }

.article-summary { margin: 0; padding: 24px clamp(22px, 5vw, 48px); background: var(--article-soft); border-bottom: 1px solid var(--article-border); }
.article-summary h2 { margin: 0 0 10px; font-size: 1.15rem; }
.article-summary ul { margin: 0; padding-left: 1.25rem; }
.article-summary li + li { margin-top: 5px; }
.article-content { padding: clamp(24px, 5vw, 48px); }
.article-section { scroll-margin-top: 24px; }
.article-section + .article-section { margin-top: 34px; }
.article-section h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 3.6vw, 1.75rem); line-height: 1.25; }
.article-section p { margin: 0; color: #354154; }
.article-section p + p { margin-top: 12px; }
.article-section ul, .article-section ol { margin: 14px 0 0; padding-left: 1.35rem; }
.article-section li + li { margin-top: 7px; }

.article-table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--article-border); border-radius: 14px; }
.article-table { width: 100%; min-width: 580px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.article-table th, .article-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--article-border); }
.article-table th { background: #f3f5f8; font-size: 0.9rem; }
.article-table tr:last-child td { border-bottom: 0; }

.article-notice, .article-cta {
  margin-top: 34px;
  padding: 22px;
  border-radius: 18px;
}
.article-notice { border: 1px solid #d8e0ea; background: #f8fafc; }
.article-notice h2, .article-cta h2 { margin: 0 0 8px; font-size: 1.25rem; }
.article-notice p, .article-cta p { margin: 0; }
.article-cta { background: var(--article-accent); color: #fff; }
.article-cta p { color: rgba(255,255,255,.86); }
.article-cta__button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 11px 18px;
  border-radius: 13px;
  background: #fff;
  color: #18202b;
  font-weight: 800;
  text-decoration: none;
}

.article-sources, .article-related { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--article-border); }
.article-sources h2, .article-related h2 { margin: 0 0 12px; font-size: 1.25rem; }
.article-sources ul { margin: 0; padding-left: 1.2rem; }
.article-sources li + li { margin-top: 8px; }
.article-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.article-related__card {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--article-border);
  border-radius: 15px;
  color: var(--article-text);
  text-decoration: none;
  background: #fff;
}
.article-related__card strong { line-height: 1.3; }
.article-related__card span { margin-top: 5px; color: var(--article-muted); font-size: 0.9rem; }

.article-footer {
  width: min(calc(100% - 32px), var(--article-max));
  margin: 0 auto;
  padding: 0 0 40px;
  color: var(--article-muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.article-footer p { margin: 0; max-width: 60ch; }

@media (max-width: 620px) {
  .article-site-header { align-items: flex-start; }
  .article-brand { padding-top: 10px; }
  .article-shell { width: min(calc(100% - 20px), var(--article-max)); padding-top: 16px; }
  .article { border-radius: 18px; }
  .article-related__grid { grid-template-columns: 1fr; }
  .article-footer { width: min(calc(100% - 24px), var(--article-max)); flex-direction: column; }
}

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