:root {
      --bg-primary: #061712;
      --bg-header: #04100D;
      --bg-secondary: #0A241C;
      --bg-card: #103329;
      --bg-card-hover: #16483A;
      --gold: #D8AC47;
      --gold-hover: #F1CE72;
      --text-primary: #F5F3EA;
      --text-secondary: #AEBDB5;
      --border: #285044;
      --success: #27C281;
      --warning: #E6A93D;
      --error: #E86060;
      --navy: var(--text-primary);
      --navy-dark: var(--bg-header);
      --blue: var(--gold);
      --blue-light: var(--bg-card);
      --gold-light: var(--bg-secondary);
      --ink: var(--text-primary);
      --body: var(--text-primary);
      --muted: var(--text-secondary);
      --line: var(--border);
      --soft: var(--bg-secondary);
      --white: var(--bg-card);
      --max: 1160px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; background: var(--white); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    .container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

    .utility-bar { background: var(--navy-dark); color: var(--text-secondary); font-size: 12px; }
    .utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .utility-inner span:last-child { color: var(--gold); }
    .site-header { background: var(--white); border-bottom: 1px solid var(--line); }
    .header-main { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
    .brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; background: var(--navy); color: var(--white); font-size: 21px; font-weight: 800; }
    .brand-text { display: grid; line-height: 1.1; }
    .brand-text strong { color: var(--navy); font-size: 19px; letter-spacing: -0.04em; }
    .brand-text small { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; margin-top: 4px; text-transform: uppercase; }
    .primary-nav { display: flex; align-items: center; gap: 22px; color: var(--text-primary); font-size: 13px; font-weight: 600; }
    .primary-nav a:hover, .primary-nav a:focus-visible { color: var(--blue); }
    .nav-dropdown { position: relative; }
    .nav-dropdown > summary { list-style: none; cursor: pointer; }
    .nav-dropdown > summary::-webkit-details-marker { display: none; }
    .nav-dropdown > summary::after { content: "⌄"; display: inline-block; margin-left: 5px; color: var(--muted); font-size: 12px; }
    .nav-dropdown[open] > summary, .nav-dropdown:hover > summary { color: var(--blue); }
    .dropdown-menu { display: none; position: absolute; top: calc(100% + 18px); left: 50%; z-index: 8; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; min-width: 600px; transform: translateX(-50%); padding: 18px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 30px rgba(13,44,92,.14); }
    .dropdown-menu::before { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg); border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--white); }
    .nav-dropdown[open] > .dropdown-menu { display: grid; }
    .dropdown-column { display: grid; align-content: start; gap: 2px; }
    .dropdown-heading { padding: 0 8px 8px; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .dropdown-column a { display: block; padding: 7px 8px; color: var(--body); font-size: 12px; font-weight: 500; }
    .dropdown-column a:hover { background: var(--blue-light); color: var(--blue); }
    .header-action { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--blue); border-radius: 4px; padding: 9px 13px; color: var(--blue) !important; }
    .menu-button { display: none; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--navy); padding: 8px 10px; }
    .topic-bar { border-bottom: 1px solid var(--line); background: var(--soft); }
    .topic-inner { min-height: 39px; display: flex; align-items: center; gap: 23px; overflow-x: auto; white-space: nowrap; }
    .topic-inner a { color: var(--body); font-size: 12px; }
    .topic-inner a:hover { color: var(--blue); }
    .topic-label { color: var(--navy) !important; font-weight: 700; }
    .breadcrumb { padding: 22px 0 0; color: var(--muted); font-size: 12px; }
    .breadcrumb a { color: var(--blue); }
    .breadcrumb span { padding: 0 8px; color: var(--text-secondary); }

    .hero { padding: 25px 0 48px; border-bottom: 1px solid var(--line); }
    .hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 62px; align-items: center; }
    .kicker { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
    h1, h2, h3, p { margin-top: 0; }
    h1 { max-width: 650px; color: var(--navy); font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.045em; margin: 12px 0 18px; }
    .hero-copy { max-width: 615px; color: var(--body); font-size: 17px; }
    .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin: 25px 0 20px; }
    .button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; border-radius: 4px; padding: 0 17px; font-size: 13px; font-weight: 700; }
    .button-primary { background: var(--blue); color: var(--white); }
    .button-primary:hover { background: var(--gold-hover); }
    .button-outline { border: 1px solid var(--gold); color: var(--navy); background: var(--white); }
    .button-outline:hover { border-color: var(--blue); color: var(--blue); }
    .hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
    .hero-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
    .feature-panel { border: 1px solid var(--line); background: var(--soft); }
    .feature-top { min-height: 178px; display: flex; align-items: flex-end; padding: 22px; background: var(--bg-secondary); border-bottom: 4px solid var(--gold); }
    .feature-mark { color: var(--navy); font-size: 74px; line-height: 0.8; font-weight: 800; letter-spacing: -0.12em; }
    .feature-mark span { color: var(--blue); }
    .feature-body { padding: 20px 22px 21px; background: var(--white); }
    .feature-body .kicker { font-size: 10px; }
    .feature-body h2 { color: var(--navy); font-size: 24px; line-height: 1.16; letter-spacing: -0.035em; margin: 9px 0 10px; }
    .feature-body p { color: var(--body); font-size: 13px; margin-bottom: 16px; }
    .feature-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; }
    .feature-meta strong { color: var(--blue); }
    .search-box { margin: 28px 0 0; border: 1px solid var(--line); background: var(--white); display: flex; max-width: 700px; }
    .search-box input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); padding: 13px 14px; font-size: 14px; }
    .search-box input::placeholder { color: var(--text-secondary); }
    .search-box button { border: 0; background: var(--navy); color: var(--white); padding: 0 18px; font-size: 13px; font-weight: 700; }
    .search-result { display: none; color: var(--blue); font-size: 12px; margin: 9px 0 0; }
    .search-result.visible { display: block; }

    .content-section { padding: 55px 0; }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 21px; }
    .section-head h2 { color: var(--navy); font-size: 32px; line-height: 1.1; letter-spacing: -0.04em; margin: 7px 0 0; }
    .section-head p { max-width: 450px; color: var(--body); font-size: 14px; margin: 0; }
    .section-link { color: var(--blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
    .section-link:hover { text-decoration: underline; }
    .explainer { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); padding: 35px 0; }
    .explainer-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
    .explainer h2 { color: var(--navy); font-size: 31px; line-height: 1.08; letter-spacing: -0.04em; margin: 8px 0 12px; }
    .explainer p { color: var(--body); font-size: 14px; margin-bottom: 0; }
    .explainer-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .fact { border-left: 3px solid var(--blue); padding: 14px 14px 12px; background: var(--white); }
    .fact strong { display: block; color: var(--navy); font-size: 13px; margin-bottom: 5px; }
    .fact p { color: var(--body); font-size: 12px; line-height: 1.45; }
    .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
    .article-card { border: 1px solid var(--line); background: var(--white); }
    .article-card:hover { border-color: var(--gold); }
    .article-image { min-height: 122px; display: flex; align-items: flex-end; padding: 15px; background: var(--blue-light); border-bottom: 1px solid var(--line); }
    .article-image.gold { background: var(--gold-light); }
    .article-image.gray { background: var(--bg-secondary); }
    .article-image span { color: var(--navy); font-size: 30px; font-weight: 800; letter-spacing: -0.08em; }
    .article-body { padding: 17px; }
    .label { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
    .article-body h3 { color: var(--navy); font-size: 18px; line-height: 1.2; letter-spacing: -0.025em; margin: 8px 0; }
    .article-body p { color: var(--body); font-size: 13px; margin-bottom: 17px; }
    .card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
    .card-meta strong { color: var(--blue); }
    .category-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
    .category { min-height: 82px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 14px; background: var(--white); }
    .category:hover { background: var(--blue-light); }
    .category-index { color: var(--gold); font-size: 12px; font-weight: 700; }
    .category strong { color: var(--navy); font-size: 13px; }
    .directory { border: 1px solid var(--border); background: var(--bg-secondary); padding: 26px; }
    .directory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
    .directory h2 { color: var(--navy); font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; margin: 8px 0 11px; }
    .directory p { color: var(--body); font-size: 14px; margin: 0; }
    .standards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
    .standard { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .standard:nth-child(even) { border-right: 0; }
    .standard:nth-last-child(-n+2) { border-bottom: 0; }
    .standard b { display: block; color: var(--navy); font-size: 12px; margin-bottom: 3px; }
    .standard span { color: var(--body); font-size: 11px; }
    .latest-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 25px; }
    .latest-list { border-top: 1px solid var(--line); }
    .latest-item { display: grid; grid-template-columns: 105px 1fr 20px; gap: 17px; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 0; }
    .latest-date { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
    .latest-item h3 { color: var(--navy); font-size: 15px; line-height: 1.25; margin: 0 0 4px; }
    .latest-item p { color: var(--body); font-size: 12px; margin: 0; }
    .latest-arrow { color: var(--blue); font-size: 19px; }
    .editor-box { border-top: 4px solid var(--gold); background: var(--soft); padding: 22px; }
    .editor-box h3 { color: var(--navy); font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; margin: 8px 0 10px; }
    .editor-box p { color: var(--body); font-size: 13px; margin-bottom: 14px; }
    .editor-box ul { padding-left: 17px; margin: 0; color: var(--body); font-size: 12px; }
    .editor-box li { margin: 6px 0; }
    .responsible { padding-top: 6px; }
    .responsible-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--gold); background: var(--gold-light); padding: 25px 27px; }
    .responsible-box h2 { color: var(--navy); font-size: 27px; line-height: 1.1; letter-spacing: -0.035em; margin: 7px 0 9px; }
    .responsible-box p { color: var(--body); font-size: 13px; margin: 0; max-width: 710px; }
    footer { margin-top: 55px; background: var(--navy-dark); color: var(--text-secondary); padding: 39px 0 24px; }
    .footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr; gap: 35px; }
    .footer-brand .brand-text strong { color: var(--white); }
    .footer-brand .brand-text small { color: var(--text-secondary); }
    .footer-copy { color: var(--text-secondary); font-size: 12px; max-width: 340px; margin: 15px 0 0; }
    .footer-column { display: grid; align-content: start; gap: 8px; font-size: 12px; }
    .footer-column strong { color: var(--white); font-size: 13px; margin-bottom: 4px; }
    .footer-column a:hover { color: var(--white); }
    .footer-bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(255,255,255,0.16); margin-top: 29px; padding-top: 17px; color: var(--text-secondary); font-size: 11px; }

    @media (max-width: 980px) {
      .primary-nav { gap: 12px; font-size: 12px; }
      .hero-grid { gap: 34px; }
      .category-grid { grid-template-columns: repeat(3, 1fr); }
      .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
      .footer-grid > :first-child { grid-column: 1 / -1; }
    }
    @media (max-width: 720px) {
      .container { width: min(100% - 28px, 570px); }
      .utility-inner { min-height: 30px; font-size: 10px; }
      .utility-inner span:last-child { display: none; }
      .header-main { min-height: 68px; }
      .menu-button { display: inline-flex; }
      .primary-nav { display: none; position: absolute; top: 98px; left: 14px; right: 14px; z-index: 5; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 30px rgba(13,44,92,0.14); padding: 7px; }
      .primary-nav.open { display: flex; }
      .primary-nav a { padding: 10px; }
      .nav-dropdown > summary { padding: 10px; }
      .dropdown-menu { position: static; display: none; grid-template-columns: 1fr; min-width: 0; transform: none; gap: 10px; padding: 8px 8px 5px; border: 0; box-shadow: none; }
      .dropdown-menu::before { display: none; }
      .dropdown-column { border-top: 1px solid var(--line); padding-top: 8px; }
      .dropdown-column:first-child { border-top: 0; padding-top: 0; }
      .dropdown-heading { padding-left: 0; }
      .dropdown-column a { padding: 7px 0; }
      .header-action { text-align: center; }
      .topic-inner { gap: 17px; }
      .breadcrumb { padding-top: 16px; }
      .hero { padding: 19px 0 35px; }
      .hero-grid, .explainer-grid, .directory-grid, .latest-grid { grid-template-columns: 1fr; }
      h1 { font-size: clamp(38px, 11vw, 54px); }
      .hero-copy { font-size: 15px; }
      .feature-panel { margin-top: 5px; }
      .search-box { margin-top: 24px; }
      .section-head { display: block; }
      .section-head p { margin-top: 10px; }
      .section-link { display: inline-block; margin-top: 12px; }
      .explainer-facts, .article-grid { grid-template-columns: 1fr; }
      .category-grid { grid-template-columns: repeat(2, 1fr); }
      .directory, .responsible-box { padding: 20px; }
      .standards { grid-template-columns: 1fr; }
      .standard, .standard:nth-child(even), .standard:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
      .standard:last-child { border-bottom: 0; }
      .latest-item { grid-template-columns: 1fr 20px; gap: 7px; }
      .latest-date { grid-column: 1 / -1; }
      .responsible-box { display: block; }
      .responsible-box .button { margin-top: 17px; }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
      .footer-grid > :first-child { grid-column: 1 / -1; }
      .footer-bottom { display: block; }
      .footer-bottom span + span { display: block; margin-top: 7px; }
    }

    /* Emerald and gold theme, shared across every existing section. */
    body { background: var(--bg-primary); }
    .site-header { position: relative; z-index: 20; background: var(--bg-header); }
    .brand-mark { background: var(--gold); color: var(--bg-primary); border: 1px solid var(--gold); }
    .brand-text small, .utility-inner, .footer-copy, .footer-column, .footer-bottom { color: var(--text-secondary); }
    .primary-nav { color: var(--text-primary); }
    .primary-nav > a, .nav-dropdown > summary { min-height: 44px; display: flex; align-items: center; }
    .nav-dropdown > summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-left: 8px; }
    .dropdown-menu { border-radius: 6px; box-shadow: 0 14px 32px rgba(0, 0, 0, .22); top: calc(100% + 8px); }
    .dropdown-column a { min-height: 44px; display: flex; align-items: center; border-radius: 3px; }
    .dropdown-column a:hover, .dropdown-column a:focus-visible { background: rgba(216, 172, 71, .09); color: var(--gold-hover); }
    .dropdown-heading { color: var(--gold); }
    .header-action { border-color: var(--gold); }
    .menu-button { background: transparent; color: var(--text-primary); min-width: 44px; min-height: 44px; }
    .topic-inner { flex-wrap: wrap; white-space: normal; overflow: visible; gap: 4px 23px; padding-block: 7px; }
    .topic-inner a { display: inline-flex; align-items: center; min-height: 32px; }
    .hero { background: linear-gradient(115deg, var(--bg-primary), #0d2b21); }
    h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; }
    .hero-copy { font-size: 16px; line-height: 1.7; }
    .hero-note { align-items: baseline; }
    .hero-note::before { flex-shrink: 0; }
    .feature-panel, .article-card, .directory, .editor-box, .responsible-box { border-radius: 7px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
    .feature-panel { border-color: var(--border); }
    .feature-top { background: linear-gradient(135deg, #164334, var(--bg-secondary)); border-bottom-width: 2px; }
    .feature-mark { color: var(--text-primary); }
    .feature-body { background: var(--bg-card); }
    .feature-meta, .card-meta { flex-wrap: wrap; }
    .article-image { background: linear-gradient(135deg, #174434, var(--bg-secondary)); }
    .article-image.gold { background: linear-gradient(135deg, #383521, var(--bg-secondary)); }
    .article-image.gray { background: linear-gradient(135deg, #193b30, var(--bg-secondary)); }
    .article-image span { color: var(--gold); }
    .article-card, .category { transition: background-color .18s, transform .18s, border-color .18s; }
    .article-card:hover, .category:hover { background: var(--bg-card-hover); border-color: var(--border); transform: translateY(-2px); }
    .category strong { line-height: 1.4; }
    .fact { border-left-color: var(--gold); border-radius: 0 4px 4px 0; }
    .button { min-height: 44px; line-height: 1.4; padding: 11px 17px; text-align: center; }
    .button-primary, .search-box button { background: var(--gold); color: var(--bg-primary); }
    .button-primary:hover, .search-box button:hover { background: var(--gold-hover); }
    .button-outline { background: transparent; color: var(--text-primary); border-color: var(--gold); }
    .button-outline:hover { background: rgba(216, 172, 71, .08); color: var(--gold-hover); border-color: var(--gold-hover); }
    .search-box { border-radius: 5px; overflow: hidden; }
    .search-box input { background: var(--bg-card); min-height: 48px; }
    .search-box:focus-within { outline: 2px solid var(--gold-hover); outline-offset: 3px; }
    .search-result { color: var(--text-primary); }
    .section-head p, .feature-meta, .card-meta, .latest-date, .standard span { color: var(--text-secondary); }
    .responsible-box { border-color: #756538; background: linear-gradient(110deg, var(--bg-secondary), #172c20); }
    .responsible-box .button { flex-shrink: 0; }
    footer { background: var(--bg-header); }
    .footer-column a { min-height: 32px; padding-block: 5px; }
    .footer-column a:hover { color: var(--gold-hover); }
    .footer-bottom { border-color: var(--border); }
    :focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 4px; border-radius: 3px; }
    :target { scroll-margin-top: 20px; }
    .hero-grid > *, .explainer-grid > *, .directory-grid > *, .latest-grid > *, .footer-grid > * { min-width: 0; }
    img { max-width: 100%; height: auto; }
    table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
    th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
    th { color: var(--gold); }
    @media (max-width: 1100px) {
      .header-main { position: relative; min-height: 68px; }
      .menu-button { display: inline-flex; align-items: center; justify-content: center; }
      .primary-nav { display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0; z-index: 25; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--border); border-radius: 0 0 6px 6px; background: var(--bg-card); padding: 8px; max-height: 75vh; max-height: 75dvh; overflow-y: auto; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
      .primary-nav.open { display: flex; }
      .primary-nav a, .nav-dropdown > summary { padding: 10px; min-height: 44px; }
      .dropdown-menu { position: static; display: none; grid-template-columns: 1fr; min-width: 0; transform: none; gap: 10px; padding: 8px; border: 1px solid var(--border); box-shadow: none; }
      .nav-dropdown[open] > .dropdown-menu { display: grid; }
      .dropdown-menu::before { display: none; }
    }
    @media (max-width: 720px) {
      h1 { font-size: clamp(32px, 8.5vw, 42px); }
      .topic-inner { gap: 2px 16px; }
      .topic-inner a, .footer-column a { min-height: 44px; }
      .hero-grid, .explainer-grid { gap: 24px; }
      .content-section { padding-block: 36px; }
      .section-head h2, .explainer h2 { font-size: 28px; }
      .utility-inner { padding-block: 5px; }
      .button-row { align-items: stretch; }
      .button-row .button { flex: 1 1 220px; }
      .footer-bottom { line-height: 1.7; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; animation: none !important; }
    }

    /* Ivory-and-gold artwork remains transparent against the emerald background. */
    .official-brand { display: inline-flex; flex: 0 0 auto; min-width: 0; gap: 0; border-radius: 5px; }
    .brand-horizontal { display: block; width: 220px; padding: 5px 8px; background: transparent; border-radius: 5px; }
    .brand-horizontal img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
    .brand-compact { display: none; width: 46px; height: 46px; object-fit: contain; }
    .footer-brand { margin-bottom: 4px; max-width: 220px; }
    .footer-brand .brand-horizontal { width: 220px; max-width: 100%; }
    @media (min-width: 1101px) { .primary-nav { gap: 16px; } }
    @media (max-width: 374px) {
      .header-brand .brand-horizontal { display: none; }
      .header-brand .brand-compact { display: block; }
    }

    /* Header and footer navigation structure. Unpublished pages have no href. */
    .primary-nav { gap: 14px; font-size: 12px; }
    .primary-nav > .unavailable-link { min-height: 44px; display: flex; align-items: center; }
    .unavailable-link { cursor: default; color: var(--text-secondary); }
    .availability-label { display: block; font-size: 10px; line-height: 1.3; font-weight: 400; color: var(--text-secondary); }
    .primary-nav > .unavailable-link { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
    .dropdown-column .unavailable-link { display: block; min-height: 48px; padding: 8px; font-size: 12px; font-weight: 500; line-height: 1.4; }
    .nav-dropdown > summary { white-space: nowrap; }
    .nav-dropdown > summary::after { color: var(--gold); transition: transform .15s; }
    .nav-dropdown[open] > summary::after { transform: rotate(225deg); }
    .dropdown-menu { min-width: 0; width: 258px; max-width: calc(100vw - 40px); grid-template-columns: 1fr; left: 0; top: 100%; transform: none; padding: 10px; background: var(--bg-card); border: 1px solid var(--border); }
    .dropdown-menu::before { display: none; }
    .primary-nav a[aria-current="page"], .nav-dropdown.active-parent > summary { color: var(--gold); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
    .primary-nav > a[aria-current="page"] { font-weight: 700; }
    .nav-dropdown > summary:hover, .nav-dropdown > summary:focus-visible { color: var(--gold); }
    body.navigation-open { overflow: hidden; }
    footer { border-top: 1px solid var(--border); }
    .footer-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
    .footer-intro > div { max-width: 560px; }
    .footer-copy { max-width: 560px; line-height: 1.7; }
    .footer-availability { max-width: 285px; color: var(--text-secondary); font-size: 12px; margin-bottom: 0; }
    .footer-availability span { font-weight: 700; }
    .footer-grid { grid-template-columns: 1.15fr 1fr .9fr 1fr 1.05fr; gap: 24px; }
    .footer-grid > :first-child { grid-column: auto; }
    .footer-column h2 { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: var(--text-primary); letter-spacing: 0; }
    .footer-column { gap: 4px; }
    .footer-column a, .footer-column .unavailable-link { display: block; padding: 8px 0; min-height: 44px; line-height: 1.5; }
    .footer-column a:hover, .footer-column a:focus-visible, .footer-quick-links a:hover, .footer-quick-links a:focus-visible { color: var(--gold); }
    .footer-quick-links { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 28px; font-size: 12px; color: var(--text-secondary); }
    .footer-quick-links a { display: inline-flex; align-items: center; min-height: 44px; }
    .footer-notice { color: var(--text-primary); max-width: 900px; font-size: 12px; line-height: 1.8; margin: 20px 0 0; padding-left: 16px; border-left: 2px solid var(--gold); }
    @media (min-width: 1101px) { .primary-nav { gap: 14px; } .header-main { gap: 20px; } }
    @media (max-width: 1100px) {
      .primary-nav { gap: 0; overscroll-behavior: contain; }
      .primary-nav > .unavailable-link { padding: 10px; min-height: 52px; }
      .dropdown-menu { width: 100%; max-width: 100%; padding: 8px; }
      .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
    }
    @media (max-width: 720px) {
      .footer-intro { display: block; }
      .footer-availability { margin-top: 20px; max-width: 100%; }
      .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
      .footer-grid > :first-child { grid-column: auto; }
    }
    @media (max-width: 425px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .nav-dropdown > summary::after { transition: none; } }

/* One shared rewards action: desktop header or the responsive menu. */
.header-rewards { position: relative; flex: 0 0 auto; }
.primary-nav .rewards-button { background: var(--gold); color: var(--bg-primary); min-height: 44px; padding: 11px 17px; white-space: nowrap; transition: background-color .15s; }
.primary-nav .rewards-button:hover { background: var(--gold-hover); color: var(--bg-primary); }
.primary-nav .rewards-button:focus-visible { color: var(--bg-primary); outline: 2px solid var(--gold-hover); outline-offset: 3px; }
.rewards-disclosure { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 260px; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-card); color: var(--text-secondary); font-size: 11px; line-height: 1.6; visibility: hidden; }
.header-rewards:hover .rewards-disclosure, .header-rewards:focus-within .rewards-disclosure { visibility: visible; }
@media (min-width: 1280px) {
  .header-main { width: min(1320px, calc(100% - 40px)); gap: 12px; }
  .header-brand .brand-horizontal { width: 190px; }
  .primary-nav { gap: 10px; }
}
@media (max-width: 1279px) {
  .header-main { position: relative; min-height: 68px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0; z-index: 25; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--border); border-radius: 0 0 6px 6px; background: var(--bg-card); padding: 8px; max-height: 75vh; max-height: 75dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
  .primary-nav.open { display: flex; }
  .primary-nav a, .nav-dropdown > summary { padding: 10px; min-height: 44px; }
  .dropdown-menu { position: static; width: 100%; max-width: 100%; display: none; grid-template-columns: 1fr; min-width: 0; transform: none; gap: 10px; padding: 8px; border: 1px solid var(--border); box-shadow: none; }
  .nav-dropdown[open] > .dropdown-menu { display: grid; }
  .primary-nav > .unavailable-link { padding: 10px; min-height: 52px; }
  .header-rewards { margin: 12px 4px 4px; }
  .primary-nav .rewards-button { display: flex; width: 100%; }
  .rewards-disclosure { position: static; width: auto; padding: 10px 0 0; border: 0; background: transparent; visibility: visible; }
}

/* Reading layout shared by imported articles. */
.skip-link { position: absolute; top: 8px; left: 12px; z-index: 40; transform: translateY(-160%); padding: 12px 16px; border-radius: 4px; background: var(--gold); color: var(--bg-primary); font-weight: 700; }
.skip-link:focus { transform: none; }
.article-breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding-block: 22px; font-size: 12px; color: var(--text-secondary); }
.article-breadcrumb a { color: var(--gold); }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb > span { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb-separator { color: var(--text-secondary); }
.article-hero { padding: 30px 0; background: linear-gradient(115deg, var(--bg-primary), #0d2b21); border-block: 1px solid var(--border); }
.article-hero h1 { max-width: 860px; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.18; margin: 12px 0 18px; }
.article-import-date { color: var(--text-secondary); font-size: 12px; margin-bottom: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 56px; align-items: start; padding-block: 40px; }
.article-content { min-width: 0; color: var(--text-primary); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.article-content h2 { color: var(--text-primary); font-size: 25px; line-height: 1.3; letter-spacing: -.02em; margin: 34px 0 14px; }
.article-content > h2:first-child { margin-top: 0; }
.article-content h3 { color: var(--text-primary); font-size: 19px; line-height: 1.4; margin: 26px 0 10px; }
.article-content p { margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover, .article-content a:focus-visible { color: var(--gold-hover); }
.article-content blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: var(--bg-secondary); border-radius: 0 5px 5px 0; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.contextual-note { color: var(--text-secondary); font-size: 14px; }
.article-toc { padding: 20px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); }
.article-toc h2 { font-size: 14px; margin: 0 0 12px; line-height: 1.5; color: var(--text-primary); }
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc a { display: block; padding-block: 10px; min-height: 44px; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--gold); }
.article-resources { border-top: 1px solid var(--border); margin-top: 34px; }
.source-note { color: var(--text-secondary); font-size: 12px; }
.article-responsible { margin-top: 26px; padding: 20px 22px; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 5px; }
.article-responsible p { margin-bottom: 8px; font-size: 14px; }
.article-responsible a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.article-related a { display: inline-flex; align-items: center; min-height: 44px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 22px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg-card); }
.table-scroll table { display: table; width: 100%; min-width: 460px; overflow: visible; }
.table-scroll th, .table-scroll td { padding: 12px 16px; font-size: 14px; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.article-content code { background: var(--bg-card); padding: 2px 5px; border-radius: 3px; font-size: .9em; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; }
}
@media (max-width: 720px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px; }
  .article-hero { padding-block: 24px; }
  .article-breadcrumb { padding-block: 16px; }
  .article-content { font-size: 15px; line-height: 1.75; }
  .article-content h2 { font-size: 23px; }
  .article-content h3 { font-size: 18px; }
  .article-content ol, .article-content ul { padding-left: 22px; }
  .article-toc { grid-row: 1; }
  .article-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
@media (max-width: 374px) { .article-toc ul { grid-template-columns: minmax(0, 1fr); } }
