/* Base: variables, reset, page shell, header, nav, layout, footer */
  :root {
    --bg: #f0f4f5;
    --surface: #ffffff;
    --ink: #0d1108;
    --ink-muted: #2a3540;
    --ink-faint: #7a8f96;
    --accent-light: #e0fafa;
    --rule: #c8dde0;
    --tag-bg: #d8f5f5;
    --tag-text: #003a3a;
    --warning: #d4740a;
    --warning-bg: #fef3e2;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.7; }
  .banner { background: #0d1108; color: #00ffff; text-align: center; padding: 10px 20px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
  header { background: var(--surface); border-bottom: 3px solid #00ffff; padding: 28px 40px 0; }
  .header-inner { max-width: 1080px; margin: 0 auto; }
  .wiki-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #00aaaa; font-weight: 600; margin-bottom: 6px; }
  header h1 { font-family: 'DM Serif Display', serif; font-size: 42px; color: #0d1108; line-height: 1.1; margin-bottom: 4px; }
  .header-subtitle { font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; }
  .nav-tabs-wrap { position: relative; }
  .nav-tabs { display: flex; gap: 3px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; align-items: flex-end; padding: 0 2px; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { padding: 9px 18px 10px; font-size: 13px; font-weight: 500; color: var(--ink-muted); cursor: pointer; border: 1px solid #c8dde0; border-bottom: 3px solid transparent; border-radius: 5px 5px 0 0; background: #e4eef0; white-space: nowrap; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
  .nav-tab:hover { background: #eef6f7; color: #0d1108; }
  .nav-tab.active { color: #0d1108; font-weight: 600; background: #ffffff; border-color: #c8dde0; border-bottom-color: #00ffff; }
  .nav-scroll-hint { display: none; position: absolute; right: 0; top: 0; bottom: 3px; width: 48px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.97)); align-items: center; justify-content: flex-end; padding-right: 10px; pointer-events: none; color: #007a7a; font-size: 22px; line-height: 1; }
  @media (max-width: 768px) { .nav-scroll-hint { display: flex; } .nav-scroll-hint.gone { display: none; } }
  .layout { max-width: 1080px; margin: 0 auto; padding: 32px 40px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
  .section { display: none; }
  .section.active { display: block; }
  footer { text-align: center; padding: 28px 20px; font-size: 12px; color: var(--ink-faint); border-top: 1px solid var(--rule); background: var(--surface); margin-top: 20px; }
  footer a { color: #007a7a; text-decoration: none; }
  a.nav-tab { text-decoration: none; display: inline-block; }
  /* Wider screens: show every tab (wrap rather than clip the last ones) */
  @media (min-width: 769px) { .nav-tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 4px; } .nav-tab { padding: 9px 11px 10px; } }
