:root {
      --bg: #0a0b0d;
      --bg-elevated: #0f1319;
      --bg-card: rgba(255,255,255,0.05);
      --text: #f4f7fb;
      --muted: #b2b9c5;
      --muted-2: #8790a0;
      --line: rgba(255,255,255,0.10);
      --blue: #428FD2;
      --blue-soft: rgba(66,143,210,0.12);
      --max: 720px;
    }



    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }
    a { color: var(--blue); text-decoration: none; }
    a:hover { text-decoration: underline; }

    .top-bar { border-bottom: 1px solid var(--line); padding: 18px 0; }
    .top-bar-inner {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
    .brand:hover { text-decoration: none; }
    .brand img { width: 42px; height: 42px; }

    article {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      padding: 44px 0 72px;
    }

    .breadcrumb { font-size: 0.88rem; color: var(--muted-2); margin-bottom: 22px; }
    .breadcrumb a { color: var(--muted); }

    .title-flag {
      display: inline-block;
      width: 56px;
      height: 42px;
      border-radius: 8px;
      object-fit: cover;
      border: 1px solid var(--line);
      box-shadow: 0 6px 16px rgba(0,0,0,0.14);
      margin: 0 0 14px;
    }

    h1 {
      font-size: clamp(1.8rem, 4vw, 2.55rem);
      line-height: 1.12;
      letter-spacing: -0.03em;
      margin: 0 0 10px;
    }
    .subtitle { color: var(--muted); font-size: 1.06rem; margin: 0 0 12px; }
    .verified {
      display: inline-block;
      padding: 5px 12px;
      background: var(--blue-soft);
      border: 1px solid rgba(66,143,210,0.18);
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.82rem;
      margin: 0 0 28px;
    }

    h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 34px 0 12px; }
    h3 { font-size: 1.05rem; margin: 24px 0 6px; }

    p, li { color: var(--muted); font-size: 1rem; }
    p { margin: 0 0 16px; }
    ul, ol { padding-left: 20px; margin: 0 0 16px; }
    li { margin: 6px 0; }
    strong { color: var(--text); }

    .tldr {
      padding: 20px 24px;
      background: var(--blue-soft);
      border: 1px solid rgba(66,143,210,0.18);
      border-radius: 16px;
      margin: 0 0 28px;
    }
    .tldr p { margin: 0; }
    .tldr strong { color: var(--text); }

    /* Encyclopedia-style key-facts infobox */
    .factbox {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--bg-card);
      padding: 6px 22px;
      margin: 24px 0 8px;
    }
    .factbox dl { margin: 0; }
    .factbox div {
      display: flex;
      gap: 16px;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
    }
    .factbox div:last-child { border-bottom: 0; }
    .factbox dt { color: var(--muted-2); font-size: 0.9rem; flex: 0 0 auto; }
    .factbox dd { color: var(--text); font-size: 0.95rem; font-weight: 600; margin: 0; text-align: right; }

    .steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0; }
    .steps li { position: relative; padding: 0 0 0 42px; margin: 0 0 14px; min-height: 30px; }
    .steps li::before {
      counter-increment: step;
      content: counter(step);
      position: absolute; left: 0; top: 0;
      width: 30px; height: 30px;
      border-radius: 999px;
      background: var(--blue-soft);
      border: 1px solid rgba(66,143,210,0.28);
      color: var(--text); font-size: 0.9rem; font-weight: 650;
      display: grid; place-items: center;
    }

    .example {
      padding: 18px 22px;
      background: var(--bg-card);
      border: 1px solid var(--line);
      border-radius: 14px;
      margin: 20px 0;
    }
    .example p { margin: 0 0 10px; }
    .example p:last-child { margin-bottom: 0; }
    .example strong { color: var(--text); }

    .source-line { font-size: 0.95rem; color: var(--muted); }

    /* CTA */
    .cta-box {
      padding: 30px 28px;
      background: var(--bg-card);
      border: 1px solid var(--line);
      border-radius: 20px;
      margin: 40px 0 0;
      text-align: center;
    }
    .cta-logo img { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 12px; }
    .cta-box h2 { margin: 0 0 10px; }
    .cta-box p { margin: 0 0 20px; }
    .cta-btn svg { flex: 0 0 auto; }
    .cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 13px 26px;
      background: var(--blue);
      color: white;
      border-radius: 14px;
      font-weight: 650;
      text-decoration: none;
    }
    .cta-btn:hover { text-decoration: none; opacity: 0.92; }

    .related { margin: 40px 0 0; }
    .related h2 { margin: 0 0 10px; }
    .related ul { list-style: none; padding: 0; margin: 0; }
    .related li { margin: 6px 0; }
    .related a { color: var(--blue); font-size: 0.95rem; }

    @media (max-width: 620px) {
      article { padding: 30px 0 56px; }
      .factbox dd { font-size: 0.9rem; }
    }

    html[data-theme="dark"] {
      --bg: #0a0b0d; --bg-elevated: #0f1319; --bg-card: rgba(255,255,255,0.05);
      --text: #f4f7fb; --muted: #b2b9c5; --muted-2: #8790a0; --line: rgba(255,255,255,0.10);
      --blue: #428FD2; --blue-soft: rgba(66,143,210,0.12);
    }
    html[data-theme="light"] {
      --bg: #f6f8fc; --bg-elevated: #ffffff; --bg-card: rgba(255,255,255,0.88);
      --text: #0d1422; --muted: #526075; --muted-2: #6c788b; --line: rgba(12,22,40,0.09);
      --blue-soft: rgba(66,143,210,0.08);
    }

    .theme-toggle {
      background: none; border: 1px solid var(--line); border-radius: 10px;
      color: var(--muted); cursor: pointer; width: 36px; height: 36px;
      display: inline-grid; place-items: center;
      transition: border-color 160ms ease, color 160ms ease; padding: 0;
    }
    .theme-toggle:hover { border-color: var(--blue); color: var(--text); }
    .icon-moon, .logo-light { display: none; }
    .logo-dark { display: block; }

    html[data-theme="dark"] .icon-sun, html[data-theme="dark"] .logo-dark { display: block; }
    html[data-theme="dark"] .icon-moon, html[data-theme="dark"] .logo-light { display: none; }
    html[data-theme="light"] .icon-sun, html[data-theme="light"] .logo-dark { display: none; }
    html[data-theme="light"] .icon-moon, html[data-theme="light"] .logo-light { display: block; }
