        :root {
            --primary: #0f172a;
            --primary-light: #1e293b;
            --accent: #2563eb;
            --accent-light: #eff6ff;
            --text: #334155;
            --text-dark: #0f172a;
            --bg: #f8fafc;
            --card-bg: #ffffff;
            --border: #e2e8f0;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Noto Sans TC', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.75;
            padding-bottom: 80px;
        }

        /* Banner & Header */
        header {
            background-color: var(--card-bg);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .banner-container {
            max-width: 1140px;
            margin: 0 auto;
            padding: 15px 20px;
            display: flex;
            align-items: center;
        }

        .logo-link {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .logo-link:hover {
            opacity: 0.8;
        }

        .logo-img {
            height: 38px;
            margin-right: 12px;
        }

        .logo-text {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary-dark);
            letter-spacing: 0.5px;
        }

        /* Main Layout */
        .main-container {
            max-width: 1140px;
            margin: 40px auto;
            padding: 0 20px;
        }

        .doc-title {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 35px;
            line-height: 1.3;
            border-left: 6px solid var(--accent);
            padding-left: 18px;
        }

        section {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 35px;
            margin-bottom: 35px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01), 0 2px 4px -1px rgba(0,0,0,0.01);
        }

        h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 22px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border);
        }

        h3 {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary-light);
            margin: 28px 0 14px 0;
        }

        p {
            margin-bottom: 16px;
            text-align: justify;
            color: var(--text);
            font-size: 1.05rem;
        }

        /* Images and figures */
        .figure-box {
            text-align: center;
            margin: 30px 0;
            background: #fafafa;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 20px;
        }

        .figure-box img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .figure-box a:hover img {
            transform: scale(1.01);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
        }

        .figure-caption {
            font-family: 'Microsoft JhengHei', sans-serif !important;
            font-weight: bold !important;
            color: rgb(102, 115, 137) !important;
            font-size: 1.05rem !important;
            line-height: 1.2 !important;
            margin-top: 15px !important;
            text-align: center !important;
        }

        /* Map & Chart Containers */
        .map-container {
            height: 500px;
            width: 100%;
            border-radius: 8px;
            border: 1px solid var(--border);
            margin: 22px 0;
            background: #cbd5e1;
            position: relative;
            z-index: 1;
        }

        .chart-container {
            position: relative;
            margin: 25px 0;
            padding: 20px;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 8px;
            height: 650px;
        }

        /* Tables styling */
        .table-responsive {
            width: 100%;
            overflow-x: auto;
            margin: 25px 0;
            border: 1px solid var(--border);
            border-radius: 8px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95rem;
            text-align: left;
            background: #ffffff;
        }

        table th, table td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
            border-right: 1px solid var(--border);
        }

        table th:last-child, table td:last-child {
            border-right: none;
        }

        table thead {
            background-color: #f8fafc;
        }

        table th {
            color: var(--primary);
            font-weight: 600;
            background-color: #f1f5f9;
        }

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

        table tbody tr:hover {
            background-color: #f1f5f9;
        }

        /* Table wrap settings */
        #table-t1 td, #table-t2 td, #table-t4 td {
            white-space: normal;
            min-width: 150px;
        }
        
        #table-t2 td:nth-child(5), #table-t2 td:nth-child(6), #table-t2 td:nth-child(12), #table-t2 td:nth-child(13) {
            min-width: 240px;
        }

        /* Footer References */
        footer {
            background-color: #ffffff;
            border-top: 1px solid var(--border);
            padding: 40px 0;
            margin-top: 60px;
        }

        .footer-container {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .ref-list {
            margin-left: 20px;
            margin-top: 15px;
            list-style-type: none;
        }

        .ref-list li {
            margin-bottom: 8px;
            padding-left: 10px;
            text-indent: -25px;
            margin-left: 15px;
            font-size: 0.95rem;
            color: #64748b;
        }

        /* Map Legend Styling */
        .map-legend {
            background: white !important;
            padding: 12px 16px !important;
            line-height: 22px !important;
            color: #334155 !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 6px !important;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
            font-size: 0.85rem !important;
            font-weight: 500 !important;
        }
        .map-legend i {
            width: 12px !important;
            height: 12px !important;
            float: left !important;
            margin-right: 8px !important;
            margin-top: 5px !important;
            border-radius: 50% !important;
        }

        /* Top Navigation Tabs Bar */
        .tabs-navbar {
            background-color: #ffffff;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 69px; /* Sticks right below the main header banner */
            z-index: 999;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
            overflow-x: auto;
            white-space: nowrap;
        }

        .tabs-container {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            gap: 10px;
        }

        .tab-btn {
            display: inline-block;
            padding: 14px 18px;
            color: #475569;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .tab-btn:hover {
            color: var(--accent);
            background-color: #f8fafc;
        }

        /* Smooth scrolling adjustment for section anchor targets */
        html {
            scroll-behavior: smooth;
            scroll-padding-top: 130px; /* Accounts for both header banner and sticky tab navbar */
        }

/* CSP-safe utility classes converted from former inline styles */
.caption-table {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.caption-map {
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
}

.caption-hint {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
}

.map-container--spaced {
    margin-top: 30px;
}

.section-subheading-spaced {
    margin-top: 25px;
}

.map-legend-title {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.map-legend-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.map-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.15);
    flex: 0 0 12px;
}

.legend-color--volcanic { background-color: #ef4444; }
.legend-color--landslide { background-color: #f59e0b; }
.legend-color--glacial { background-color: #06b6d4; }
.legend-color--fluvial { background-color: #3b82f6; }
.legend-color--eolian { background-color: #8b5cf6; }
.legend-color--coastal { background-color: #ec4899; }
.legend-color--organic { background-color: #10b981; }
.legend-color--taiwan { background-color: #ef4444; }
.legend-color--japan { background-color: #3b82f6; }
.legend-color--china { background-color: #f59e0b; }
.legend-color--indonesia { background-color: #10b981; }
.legend-color--nepal { background-color: #8b5cf6; }
.legend-color--new-zealand { background-color: #ec4899; }
.legend-color--switzerland { background-color: #06b6d4; }

