:root {
            --primary-color: #0056b3;
            --secondary-color: #00a8ff;
            --danger-color: #e74c3c;
            --bg-color: #f4f7f6;
            --text-color: #333;
            --card-bg: #ffffff;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            margin: 0;
            padding: 0;
        }

        header {
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(ellipse at 20% 15%, rgba(0, 168, 255, 0.45), transparent 55%),
                radial-gradient(ellipse at 85% 80%, rgba(231, 76, 60, 0.28), transparent 50%),
                linear-gradient(135deg, #062a4f 0%, #0056b3 55%, #00a8ff 100%);
            color: white;
            padding: 3.5rem 0 3rem;
            text-align: center;
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
        }

        .hero-pattern {
            position: absolute;
            inset: 0;
            opacity: 0.22;
            pointer-events: none;
        }

        .hero-inner {
            position: relative;
            z-index: 1;
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .hero-eyebrow {
            display: inline-block;
            padding: 6px 16px;
            border: 1px solid rgba(255, 255, 255, 0.45);
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            background: rgba(255, 255, 255, 0.08);
        }

        header h1 {
            margin: 18px 0 0 0;
            font-size: 2.9rem;
            line-height: 1.15;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
        }

        header p {
            margin: 14px auto 0;
            max-width: 640px;
            font-size: 1.1rem;
            opacity: 0.92;
        }

        .hero-stats {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
            margin-top: 30px;
        }

        .hero-stat {
            flex: 1 1 150px;
            max-width: 190px;
            padding: 14px 12px;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 10px;
            background: rgba(4, 28, 52, 0.42);
            backdrop-filter: blur(2px);
        }

        .hero-stat strong {
            display: block;
            font-size: 1.5rem;
            line-height: 1.2;
        }

        .hero-stat span {
            display: block;
            margin-top: 4px;
            font-size: 0.72rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            opacity: 0.85;
        }

        .hero-cta {
            margin-top: 28px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
        }

        .hero-cta a {
            padding: 11px 22px;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.92rem;
            text-decoration: none;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .hero-cta a.primary {
            background: #ffffff;
            color: #0056b3;
        }

        .hero-cta a.ghost {
            border: 1px solid rgba(255, 255, 255, 0.6);
            color: #ffffff;
        }

        .hero-cta a:hover,
        .hero-cta a:focus {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
        }

        @media (prefers-reduced-motion: reduce) {
            .hero-cta a {
                transition: none;
            }

            .hero-cta a:hover,
            .hero-cta a:focus {
                transform: none;
            }
        }

        .container {
            max-width: 1000px;
            margin: 30px auto;
            padding: 0 20px;
        }

        .warning-banner {
            background-color: #fff3cd;
            color: #856404;
            border-left: 5px solid #ffeeba;
            padding: 15px;
            margin-bottom: 30px;
            border-radius: 4px;
            font-weight: bold;
        }

        .card {
            background: var(--card-bg);
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border-top: 4px solid var(--primary-color);
        }

        .card.danger {
            border-top: 4px solid var(--danger-color);
        }

        h2 {
            color: var(--primary-color);
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
            margin-top: 0;
        }

        .card.danger h2 {
            color: var(--danger-color);
        }

        h3 {
            color: #444;
            margin-top: 20px;
        }

        ul {
            padding-left: 20px;
        }

        li {
            margin-bottom: 10px;
        }

        .highlight {
            font-weight: bold;
            color: var(--primary-color);
        }

        .badge {
            display: inline-block;
            padding: 4px 8px;
            background-color: #eee;
            border-radius: 4px;
            font-size: 0.85rem;
            font-family: monospace;
            color: #555;
        }

        .card.info {
            border-top-color: var(--secondary-color);
        }

        .toc ol {
            margin: 0;
            padding-left: 20px;
        }

        .toc a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .toc a:hover,
        .toc a:focus {
            text-decoration: underline;
        }

        .key {
            background: #eef7ff;
            border-left: 4px solid var(--secondary-color);
            padding: 12px 15px;
            border-radius: 4px;
            margin: 20px 0;
        }

        .table-wrap {
            overflow-x: auto;
            margin: 20px 0 8px;
        }

        .table-wrap table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95rem;
        }

        .table-wrap th,
        .table-wrap td {
            border: 1px solid #e3e8ee;
            padding: 10px 12px;
            text-align: left;
            vertical-align: top;
        }

        .table-wrap thead th {
            background-color: #eef4fb;
            color: var(--primary-color);
        }

        .table-wrap tbody tr:nth-child(even) {
            background-color: #fafbfc;
        }

        .table-wrap.t-meca thead th {
            background-color: #e3f0fb;
            color: #00427a;
        }

        .table-wrap.t-tox thead th {
            background-color: #fdecea;
            color: #b03a2e;
        }

        .table-wrap.t-legal thead th {
            background-color: #f2e9fa;
            color: #5b2c86;
        }

        .key.pro {
            background: #eefaf1;
            border-left-color: #1e8449;
        }

        .key.public {
            background: #fdf3e7;
            border-left-color: #ca6f1e;
        }

        .caption {
            font-size: 0.85rem;
            color: #666;
            margin: 0;
        }

        .tiles {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 14px;
            margin: 20px 0 10px;
        }

        .tile {
            display: block;
            padding: 16px 16px 18px;
            border-radius: 10px;
            border: 1px solid #e3e8ee;
            border-top: 4px solid var(--tile, #999);
            background: #fff;
            color: inherit;
            text-decoration: none;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .pub {
            display: inline-block;
            margin-left: 6px;
            padding: 2px 7px;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            vertical-align: middle;
        }

        .pub.pro {
            background: #e8f5e9;
            color: #1b5e20;
            border: 1px solid #c8e6c9;
        }

        .pub.legal {
            background: #f3e5f5;
            color: #4a148c;
            border: 1px solid #e1bee7;
        }

        .pub.public {
            background: #fff3e0;
            color: #e65100;
            border: 1px solid #ffe0b2;
        }

        .pub.all {
            background: #e3f2fd;
            color: #0d47a1;
            border: 1px solid #bbdefb;
        }

        .tile:hover,
        .tile:focus {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
        }

        .tile h4 {
            margin: 0 0 8px 0;
            font-size: 0.98rem;
            color: var(--tile, #333);
        }

        .tile p {
            margin: 0;
            font-size: 0.88rem;
            line-height: 1.5;
            color: #4a5560;
        }

        @media (prefers-reduced-motion: reduce) {
            .tile {
                transition: none;
            }

            .tile:hover,
            .tile:focus {
                transform: none;
            }
        }

        .figure {
            margin: 22px 0 8px;
            padding: 18px;
            border: 1px solid #e3e8ee;
            border-radius: 8px;
            background: #fbfdff;
            overflow-x: auto;
        }

        .alert {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            margin: 20px 0;
            padding: 12px 16px;
            border-left: 5px solid var(--danger-color);
            border-radius: 4px;
            background: #fdecea;
            color: #7b241c;
            font-size: 0.94rem;
        }

        .alert::before {
            content: "⚠️";
            flex: 0 0 auto;
            font-size: 1.1rem;
            line-height: 1.5;
        }

        .balance {
            margin: 22px 0 8px;
        }

        .balance-legend {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .balance-legend .left {
            color: #1c63a8;
        }

        .balance-legend .right {
            color: #b03a2e;
        }

        .balance-row {
            display: grid;
            grid-template-columns: 1fr 168px 1fr;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .balance-row .dim {
            text-align: center;
            font-size: 0.82rem;
            font-weight: 700;
            color: #33475b;
            line-height: 1.3;
        }

        .balance-track {
            display: flex;
            height: 26px;
            border-radius: 4px;
            overflow: hidden;
            background: #f0f3f6;
        }

        .balance-track.l {
            justify-content: flex-end;
        }

        .balance-bar {
            display: flex;
            align-items: center;
            padding: 0 8px;
            font-size: 0.74rem;
            font-weight: 700;
            color: #fff;
            white-space: nowrap;
        }

        .balance-bar.l {
            background: #1c63a8;
            justify-content: flex-end;
        }

        .balance-bar.r {
            background: #c0392b;
        }

        @media (max-width: 680px) {
            .balance-row {
                grid-template-columns: 1fr;
                gap: 4px;
                margin-bottom: 16px;
            }

            .balance-row .dim {
                order: -1;
                text-align: left;
            }

            .balance-track.l {
                justify-content: flex-start;
            }

            .balance-bar.l {
                justify-content: flex-start;
            }

            .balance-legend {
                display: none;
            }
        }

        .figure svg {
            display: block;
            width: 100%;
            height: auto;
            min-width: 520px;
        }

        @media print {
            body {
                background: #fff;
                font-size: 10.5pt;
            }

            header {
                background: #fff !important;
                color: #000;
                padding: 0 0 12pt;
                box-shadow: none;
            }

            .hero-pattern,
            .hero-cta,
            .hero-stats,
            .hero-eyebrow {
                display: none;
            }

            header h1 {
                color: #000;
                text-shadow: none;
                font-size: 20pt;
            }

            header p {
                color: #000;
            }

            .card {
                box-shadow: none;
                border: 1px solid #ccc;
                page-break-inside: avoid;
            }

            .toc,
            .tiles {
                page-break-after: always;
            }

            a {
                color: #000;
                text-decoration: none;
            }

            .table-wrap {
                overflow: visible;
            }

            @page {
                margin: 16mm;
            }
        }

        .refs li {
            font-size: 0.92rem;
        }

        abbr[title] {
            border-bottom: 1px dotted #999;
            text-decoration: none;
            cursor: help;
        }

        footer {
            text-align: center;
            padding: 20px;
            color: #777;
            font-size: 0.9rem;
            margin-top: 40px;
            border-top: 1px solid #ddd;
        }

        @media (max-width: 680px) {
            header {
                padding: 2.4rem 0 2.2rem;
            }

            header h1 {
                font-size: 1.8rem;
            }

            .hero-stat {
                flex: 1 1 132px;
            }

            .hero-stat strong {
                font-size: 1.25rem;
            }

            .card {
                padding: 18px;
            }

            .table-wrap thead {
                display: none;
            }

            .table-wrap tr {
                display: block;
                border-bottom: 2px solid #e3e8ee;
                padding: 10px 0;
            }

            .table-wrap td {
                display: block;
                border: none;
                padding: 6px 0;
            }

            .table-wrap td[data-label]::before {
                content: attr(data-label);
                display: block;
                font-weight: 700;
                font-size: 0.78rem;
                text-transform: uppercase;
                letter-spacing: 0.03em;
                color: var(--primary-color);
            }
        }
