
/*
==========================================================
Data Explorer Design System

Contents

01 Design Tokens
02 Global
03 Typography
04 Layout
05 Navigation
06 Dataset Hero
07 Summary Cards
08 Results Panels
09 Charts
10 Analytics Insights
11 Tables
12 Source Information
13 Utilities

==========================================================
*/



/* ==========================================================
   01. Design Tokens (:root)
========================================================== */


:root {
    /* -----------------------------------------------------
       Core colour palette
    ----------------------------------------------------- */

    --color-navy-950: #081c2b;
    --color-navy-900: #0d2638;
    --color-navy-800: #15364d;
    --color-navy-700: #214a63;

    --color-teal-700: #086f72;
    --color-teal-600: #0c8588;
    --color-teal-500: #159b9d;
    --color-teal-100: #dff5f4;

    --color-sky-100: #eaf4f8;

    --color-white: #ffffff;
    --color-cream: #f8faf9;

    --color-slate-900: #17232d;
    --color-slate-700: #425463;
    --color-slate-600: #5c6e7b;
    --color-slate-300: #c7d1d8;
    --color-slate-200: #dce3e8;
    --color-slate-100: #edf1f4;

    --color-success: #227447;
    --color-error: #a32929;
    --color-warning: #9b6700;



    /* -----------------------------------------------------
       Semantic application colours
    ----------------------------------------------------- */

    --color-navy: var(--color-navy-900);
    --color-teal: var(--color-teal-600);
    --color-teal-dark: var(--color-teal-700);

    --color-text-primary: var(--color-navy-900);
    --color-text-secondary: var(--color-slate-700);
    --color-text-muted: var(--color-slate-600);

    --color-surface: var(--color-white);
    --color-surface-soft: var(--color-slate-100);

    --color-border: rgba(13, 43, 65, 0.12);
    --color-border-soft: rgba(13, 43, 65, 0.08);
    --color-border-accent: rgba(7, 139, 143, 0.3);

    --color-accent-soft: rgba(7, 139, 143, 0.1);
    --color-accent-hover: rgba(7, 139, 143, 0.08);



    /* -----------------------------------------------------
    Typography tokens
    ----------------------------------------------------- */

    --font-sans: "IBM Plex Sans", Arial, sans-serif;
    --font-serif: "IBM Plex Serif", Georgia, serif;

    /* -----------------------------------------------------
       Shadows
    ----------------------------------------------------- */

    --shadow-small:
        0 2px 6px rgba(8, 28, 43, 0.08);

    --shadow-medium:
        0 12px 30px rgba(8, 28, 43, 0.10);

    --shadow-card:
        0 8px 24px rgba(13, 43, 65, 0.05);

    --shadow-card-hover:
        0 14px 32px rgba(13, 43, 65, 0.10);

    /* -----------------------------------------------------
       Border radii
    ----------------------------------------------------- */

    --radius-small: 0.4rem;
    --radius-medium: 0.75rem;
    --radius-large: 1.1rem;

    --radius-card: 0.85rem;
    --radius-inner: var(--radius-medium);

    /* -----------------------------------------------------
       Layout and spacing
    ----------------------------------------------------- */

    --container-width: 1180px;

    --space-section-desktop: 3.5rem;
    --space-section-mobile: 2.5rem;

    /* -----------------------------------------------------
       Animation
    ----------------------------------------------------- */

    --transition-card:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;

    color: var(--color-slate-900);
    background: var(--color-cream);

    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
}

main {
    flex: 1;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--color-teal-700);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--color-navy-800);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}






/* Accessibility */

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;

    padding: 0.7rem 1rem;
    border-radius: var(--radius-small);

    color: var(--color-white);
    background: var(--color-navy-950);

    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}

/* Layout */

.container {
    width: min(
        calc(100% - 2rem),
        var(--container-width)
    );

    margin-inline: auto;
}

/* Header */

.site-header {
    position: relative;
    z-index: 20;

    color: var(--color-white);
    background:
        linear-gradient(
            135deg,
            var(--color-navy-950),
            var(--color-navy-800)
        );

    box-shadow: var(--shadow-small);
}

.header-accent {
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--color-teal-500),
            #64c5c7,
            var(--color-teal-600)
        );
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}






.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;

    color: var(--color-white);
    text-decoration: none;
}

.brand:hover {
    color: var(--color-white);
}




.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: auto;
    height: auto;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    padding: 0;
}



.brand-logo {
    display: block;

    width: 52px;
    height: auto;
}


.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.brand-tagline {
    margin-top: 0.2rem;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.78rem;
    letter-spacing: 0.04em;
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


.primary-navigation > a {
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-small);

    color: #ffffff;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 700;
}

.primary-navigation > a:hover,
.primary-navigation > a:focus-visible,
.primary-navigation > a.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.11);
}



.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;

    color: rgba(255, 255, 255, 0.45);
}

.language-option {
    padding: 0.3rem;

    border: 0;

    color: rgba(255, 255, 255, 0.72);
    background: transparent;

    cursor: pointer;

    font-size: 0.85rem;
}

.language-option:hover,
.language-option.active {
    color: var(--color-white);
}

.language-option.active {
    font-weight: 600;
}



.app-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    color: var(--color-slate-500);

    font-size: 0.85rem;
}


.app-language-option {
    padding: 0.25rem 0.3rem;

    color: var(--color-slate-600);
    text-decoration: none;
}


.app-language-option:hover,
.app-language-option:focus-visible {
    color: var(--color-teal-700);
}


.app-language-option.active {
    color: var(--color-navy-900);
    font-weight: 700;
}

.app-language-switcher-row {
    display: flex;
    justify-content: flex-end;
    margin: -1.25rem 0 1rem;
}

.translation-availability {
    margin: 0.65rem 0 0;

    color: var(--color-slate-500);

    font-size: 0.84rem;
    font-style: italic;
}

@media (max-width: 620px) {
    .app-language-switcher-row {
        justify-content: flex-start;
        margin-top: -0.5rem;
    }
}








.mobile-menu-button {
    display: none;

    padding: 0.5rem 0.65rem;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-small);

    color: var(--color-white);
    background: transparent;

    cursor: pointer;
}


/* Mobile navigation */

@media (max-width: 760px) {

    .header-inner {
        position: relative;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions {
        margin-left: auto;
    }

    .primary-navigation {
        display: none;

        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;

        width: min(280px, calc(100vw - 2rem));
        padding: 0.6rem;

        background: var(--color-navy-950);

        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.75rem;

        box-shadow:
            0 14px 30px rgba(15, 23, 42, 0.24);

        z-index: 1000;
    }

    .primary-navigation.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .primary-navigation a,
    .primary-navigation button {
        width: 100%;
        padding: 0.75rem 0.9rem;
        text-align: left;
    }


    .nav-more {
        width: 100%;
    }

    .nav-more > summary {
        width: 100%;
        justify-content: space-between;
    }

    .nav-more-menu {
        position: static;

        min-width: 0;
        width: 100%;

        margin-top: 0.25rem;
        padding: 0.25rem 0 0.25rem 0.75rem;

        border: 0;
        border-left: 2px solid rgba(255, 255, 255, 0.12);
        border-radius: 0;

        background: transparent;
        box-shadow: none;
    }

    .nav-more-menu a {
        padding: 0.65rem 0.8rem;
    }


}

.nav-more {
    position: relative;
}

.nav-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.7rem 0.85rem;

    border-radius: var(--radius-small);

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;
    list-style: none;
}

.nav-more > summary::-webkit-details-marker {
    display: none;
}

.nav-more > summary::after {
    content: "▾";
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-more > summary:hover,
.nav-more > summary.active,
.nav-more[open] > summary {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.11);
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;

    min-width: 250px;
    padding: 0.5rem;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;

    background: var(--color-navy-950);

    box-shadow:
        0 14px 30px rgba(8, 28, 43, 0.28);

    z-index: 1200;
}

.nav-more-menu a {
    display: block;

    padding: 0.75rem 0.85rem;

    border-radius: 0.5rem;

    color: rgba(255, 255, 255, 0.82);
}

.nav-more-menu a:hover,
.nav-more-menu a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
}

/* Shared content elements */

.page-section {
    padding: 4.5rem 0;
}

.page-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.eyebrow {
    margin: 0 0 0.75rem;

    color: var(--color-teal-700);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
}

.page-introduction {
    max-width: 700px;
    margin: 1rem 0 0;

    color: var(--color-slate-700);

    font-size: 1.08rem;
}

.card {
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-large);

    background: var(--color-white);
    box-shadow: var(--shadow-small);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0.7rem 1.15rem;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    text-decoration: none;

    cursor: pointer;

    font-weight: 600;
}

.button-primary {
    color: var(--color-white);
    background: var(--color-teal-700);
}

.button-primary:hover {
    color: var(--color-white);
    background: var(--color-navy-800);

    transform: translateY(-1px);
}

.button-secondary {
    border-color: var(--color-slate-300);

    color: var(--color-navy-900);
    background: var(--color-white);
}

.button-secondary:hover {
    border-color: var(--color-teal-600);

    color: var(--color-teal-700);
}





/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: 5rem;

    color: rgba(255, 255, 255, 0.76);
    background: var(--color-navy-950);
}


.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 2.35fr);
    gap: 6rem;

    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.footer-brand {
    color: var(--color-white);

    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}


.footer-brand:hover {
    color: var(--color-white);
}


.footer-description {
    max-width: 430px;
    margin: 0.75rem 0 0;
}


.footer-meta {
    margin-top: 1rem;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.9rem;
}


.footer-meta p {
    margin: 0 0 0.35rem;
}


.footer-navigation-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 4rem;
    margin-left: 3rem;
}



.footer-navigation__secondary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;

    margin-top: 0.45rem;
    padding-top: 0.85rem;

    border-top: 1px solid rgba(255, 255, 255, 0.10);
}


.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}


.footer-navigation__heading {
    margin: 0 0 0.8rem;

    color: var(--color-white);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}


.footer-navigation a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}


.footer-navigation a:hover,
.footer-navigation a:focus-visible {
    color: var(--color-white);
}


.footer-navigation__coming-soon {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.95rem;
    line-height: 1.4;
}


.footer-navigation__coming-soon small {
    color: rgba(255, 255, 255, 0.42);

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


.footer-bottom p {
    margin: 0;
    padding: 1.1rem 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.84rem;
}


/* =========================================================
   Footer responsive
   ========================================================= */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-navigation-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
    }

}

@media (max-width: 620px) {

    .footer-grid {
        gap: 2rem;
    }

    .footer-navigation-groups {
        grid-template-columns: 1fr;
    }

}















.explorer-card {
    max-width: 760px;
}

.explorer-card-content {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.explorer-card h2 {
    margin: 0 0 0.75rem;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: 1.7rem;
}

.explorer-card p:not(.eyebrow) {
    max-width: 620px;
    margin: 0 0 1.5rem;

    color: var(--color-slate-700);
} 


.search-placeholder {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.search-placeholder h2 {
    margin: 0 0 0.7rem;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: 1.55rem;
}

.search-placeholder p:not(.eyebrow) {
    margin: 0;

    color: var(--color-slate-700);
} 




/* Weather search */

.weather-search-page {
    position: relative;
}

.weather-search-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;

    height: 300px;

    background:
        linear-gradient(
            180deg,
            var(--color-sky-100),
            rgba(234, 244, 248, 0)
        );
}

.weather-search-card {
    max-width: 880px;
    overflow: hidden;
}



.weather-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    margin-bottom: 1.25rem;
    padding: 0.3rem;

    border: 1px solid var(--color-slate-200);
    border-radius: 0.65rem;

    background: var(--color-white);
    box-shadow: var(--shadow-small);
}

.weather-mode-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0.55rem 1rem;

    border-radius: 0.45rem;

    color: var(--color-slate-700);

    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.weather-mode-link:hover {
    color: var(--color-teal-700);
    background: var(--color-sky-100);
}

.weather-mode-link--active {
    color: var(--color-white);
    background: var(--color-teal-700);
}

.weather-mode-link--active:hover {
    color: var(--color-white);
    background: var(--color-navy-700);
}

@media (max-width: 480px) {
    .weather-mode-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;

        width: 100%;
    }

    .weather-mode-link {
        padding-inline: 0.65rem;
        text-align: center;
    }
}




.search-card-header {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    min-height: 180px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    overflow: hidden;

    border-bottom: 1px solid var(--color-slate-200);

    background:
        linear-gradient(
            135deg,
            var(--color-white) 0%,
            var(--color-sky-100) 100%
        );
}

.search-card-header > * {
    position: relative;
    z-index: 1;
}

.search-card-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(
            circle at 82% 30%,
            rgba(245, 183, 61, 0.16) 0,
            rgba(245, 183, 61, 0) 22%
        ),
        radial-gradient(
            circle at 72% 70%,
            rgba(20, 140, 145, 0.13) 0,
            rgba(20, 140, 145, 0) 28%
        );
}

.search-card-header::after {
    content: "";
    position: absolute;
    top: 18%;
    right: -2%;
    bottom: 10%;
    z-index: -1;

    width: 48%;

    opacity: 0.42;

    background:
        radial-gradient(
            ellipse at 68% 35%,
            rgba(255, 255, 255, 0.95) 0 18%,
            rgba(255, 255, 255, 0) 19%
        ),
        radial-gradient(
            ellipse at 45% 47%,
            rgba(255, 255, 255, 0.78) 0 22%,
            rgba(255, 255, 255, 0) 23%
        ),
        radial-gradient(
            ellipse at 78% 58%,
            rgba(255, 255, 255, 0.7) 0 17%,
            rgba(255, 255, 255, 0) 18%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(13, 128, 128, 0.06) 0,
            rgba(13, 128, 128, 0.06) 1px,
            transparent 1px,
            transparent 24px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(13, 128, 128, 0.05) 0,
            rgba(13, 128, 128, 0.05) 1px,
            transparent 1px,
            transparent 24px
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            black 30%,
            black
        );
}

.search-card-header h2 {
    margin: 0 0 0.65rem;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: 1.75rem;
}

.search-card-header p:not(.eyebrow) {
    max-width: 600px;
    margin: 0;

    color: var(--color-slate-700);
}

.search-card-icon {
    flex: 0 0 auto;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border: 1px solid var(--color-slate-200);
    border-radius: 50%;

    color: var(--color-teal-700);
    background: var(--color-white);

    font-size: 1.8rem;
    box-shadow: var(--shadow-small);
}

.weather-search-form {
    display: grid;
    gap: 1.75rem;

    padding: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 720px) {
    .search-card-header {
        min-height: auto;
    }

    .search-card-header::after {
        right: -12%;

        width: 68%;

        opacity: 0.24;
    }
}


























.foreignworkers-search-page .weather-search-form {
    display: grid;
    gap: 1.5rem;
}

.foreignworkers-search-page .date-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.foreignworkers-search-page .form-field {
    min-width: 0;
}

.foreignworkers-search-page .form-field select {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.65rem 0.8rem;
}

.foreignworkers-search-page .form-help {
    margin-top: 0.45rem;
}

.foreignworkers-search-page .search-form-note {
    margin-top: 0;
}

@media (max-width: 48rem) {
    .foreignworkers-search-page .date-field-grid {
        grid-template-columns: 1fr;
    }
}






.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: inline-block;
    margin-bottom: 0.45rem;

    color: var(--color-navy-900);

    font-weight: 600;
}

.form-field label span {
    color: var(--color-error);
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;

    border: 1px solid var(--color-slate-300);
    border-radius: var(--radius-small);

    color: var(--color-slate-900);
    background: var(--color-white);

    outline: none;
}

.form-control:hover {
    border-color: var(--color-slate-600);
}

.form-control:focus {
    border-color: var(--color-teal-600);

    box-shadow:
        0 0 0 3px rgba(12, 133, 136, 0.16);
}

.form-control::placeholder {
    color: var(--color-slate-600);
}

.weather-search-page .date-field-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
}

.weather-search-fields {
    display: grid;
    gap: 1.75rem;
}

.form-field-location {
    width: 100%;
}

.form-field-location input {
    width: 100%;
    min-height: 54px;

    padding: 0.85rem 1rem;

    border: 1px solid var(--color-slate-300);
    border-radius: 0.45rem;

    color: var(--color-navy-950);
    background: var(--color-white);

    font-size: 1.05rem;
}

.form-field-location input::placeholder {
    color: var(--color-slate-500);
}

.form-field-location input:focus {
    border-color: var(--color-teal-700);
    outline: 3px solid rgba(13, 128, 128, 0.16);
    outline-offset: 1px;
}

.date-range-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;

    border: 0;
}

.date-range-fieldset legend {
    margin-bottom: 1rem;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.weather-search-page .date-field-grid .form-field {
    min-width: 0;
}

.weather-search-page .date-field-grid input[type="date"] {
    width: 100%;
    min-height: 48px;

    padding: 0.7rem 0.85rem;

    border: 1px solid var(--color-slate-300);
    border-radius: 0.4rem;

    color: var(--color-navy-950);
    background: var(--color-white);
}

.date-range-separator {
    display: grid;
    place-items: center;

    min-height: 48px;
    padding-bottom: 0.05rem;

    color: var(--color-teal-700);

    font-size: 1.4rem;
    font-weight: 700;
}

.date-range-choice-divider {
    display: flex;
    align-items: center;
    gap: 1rem;

    color: var(--color-slate-500);
}

.date-range-choice-divider::before,
.date-range-choice-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--color-slate-200);
}

.date-range-choice-divider span {
    flex: 0 0 auto;

    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quick-date-ranges {
    display: grid;
    gap: 1rem;
}

.quick-date-range-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.quick-date-range-label {
    margin: 0;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.quick-date-range-heading > p:last-child {
    margin: 0;

    color: var(--color-slate-600);

    font-size: 0.95rem;
}

.quick-date-range-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.quick-date-range-button {
    min-height: 48px;
    padding-inline: 0.75rem;

    white-space: nowrap;
}

.quick-date-range-button--active,
.quick-date-range-button[aria-pressed="true"] {
    border-color: var(--color-teal-700);

    color: var(--color-white);
    background: var(--color-teal-700);
}

.quick-date-range-button--active:hover,
.quick-date-range-button[aria-pressed="true"]:hover {
    color: var(--color-white);
    background: var(--color-navy-700);
}


.form-help {
    margin: 0.45rem 0 0;

    color: var(--color-slate-600);

    font-size: 0.88rem;
}

.field-errors ul,
.form-alert ul {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
}

.field-errors {
    margin-top: 0.45rem;

    color: var(--color-error);

    font-size: 0.9rem;
    font-weight: 500;
}

.form-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;

    border-radius: var(--radius-small);
}

.form-alert-error {
    border: 1px solid rgba(163, 41, 41, 0.28);

    color: var(--color-error);
    background: rgba(163, 41, 41, 0.06);
}

.search-form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;

    margin: 0.25rem 0 1.75rem;
    padding: 0.9rem 1rem;

    border-left: 4px solid var(--color-teal-600);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;

    color: var(--color-slate-700);
    background: var(--color-teal-100);
}

.search-form-note p {
    margin: 0;
}

.search-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.search-button {
    min-width: 230px;
}

.valid-search-preview {
    max-width: 880px;
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);

    border-left: 5px solid var(--color-success);
}

.valid-search-preview h2 {
    margin: 0 0 0.6rem;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
}

.valid-search-preview > p:not(.eyebrow) {
    color: var(--color-slate-700);
}

.search-summary-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;

    margin: 1.5rem 0 0;
}

.search-summary-list div {
    padding: 1rem;

    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-small);

    background: var(--color-cream);
}

.search-summary-list dt {
    color: var(--color-slate-600);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.search-summary-list dd {
    margin: 0.25rem 0 0;

    color: var(--color-navy-900);

    font-weight: 600;
}

@media (max-width: 680px) {
    .search-card-header {
        gap: 1rem;
    }

    .search-card-icon {
        width: 48px;
        height: 48px;

        font-size: 1.45rem;
    }

    .date-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .search-form-actions {
        flex-direction: column;
    }

    .search-form-actions .button {
        width: 100%;
    }

    .search-summary-list {
        grid-template-columns: 1fr;
    }
} 




/* Weather results */

.weather-results {
    max-width: 1100px;
    margin-top: 3rem;
}

.results-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 1.25rem;
}

.results-heading-row h2 {
    margin: 0;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.results-location-details {
    margin: 0.5rem 0 0;

    color: var(--color-slate-600);
}

.results-count {
    flex: 0 0 auto;

    min-width: 130px;
    padding: 0.9rem 1rem;

    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-medium);

    background: var(--color-white);
    box-shadow: var(--shadow-small);

    text-align: center;
}

.results-count strong {
    display: block;

    color: var(--color-teal-700);

    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1;
}

.results-count span {
    display: block;
    margin-top: 0.35rem;

    color: var(--color-slate-600);

    font-size: 0.8rem;
}

.results-table-card {
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.weather-results-table {
    width: 100%;
    min-width: 790px;

    border-collapse: collapse;

    background: var(--color-white);
}

.weather-results-table th,
.weather-results-table td {
    padding: 1rem 1.15rem;

    border-bottom: 1px solid var(--color-slate-200);

    text-align: right;
    vertical-align: middle;
}

.weather-results-table th:first-child,
.weather-results-table td:first-child {
    text-align: left;
}

.weather-results-table thead th {
    color: var(--color-white);
    background: var(--color-navy-900);

    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.weather-results-table thead th span {
    display: block;

    margin-top: 0.15rem;

    color: rgba(255, 255, 255, 0.66);

    font-size: 0.72rem;
    font-weight: 400;
}

.weather-results-table tbody th {
    color: var(--color-navy-900);

    font-weight: 600;
    white-space: nowrap;
}

.weather-results-table tbody td {
    color: var(--color-slate-700);

    font-variant-numeric: tabular-nums;
}

.weather-results-table tbody tr:nth-child(even) {
    background: var(--color-cream);
}

.weather-results-table tbody tr:hover {
    background: var(--color-teal-100);
}

.weather-results-table tbody tr:last-child th,
.weather-results-table tbody tr:last-child td {
    border-bottom: 0;
}

.missing-value {
    color: var(--color-slate-600);
}

.results-source-note {
    padding: 1rem 1.2rem;

    border-top: 1px solid var(--color-slate-200);

    color: var(--color-slate-600);
    background: var(--color-slate-100);

    font-size: 0.83rem;
}

.results-source-note p {
    margin: 0;
}

.results-message {
    max-width: 880px;
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.results-message h2 {
    margin: 0 0 0.65rem;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
}

.results-message p:last-child {
    margin-bottom: 0;
}

.results-message-error {
    border-left: 5px solid var(--color-error);
}

@media (max-width: 680px) {
    .results-heading-row {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .results-count {
        width: 100%;

        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 0.45rem;
    }

    .results-count strong,
    .results-count span {
        display: inline;
        margin: 0;
    }
} 




/* Dedicated weather report */

.weather-results-page {
    position: relative;
}

.weather-results-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;

    height: 260px;

    background:
        linear-gradient(
            180deg,
            var(--color-sky-100),
            rgba(234, 244, 248, 0)
        );
}

.report-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 2.5rem;
}

.report-actions {
    flex: 0 0 auto;
}

.results-error-title {
    margin: 0 0 0.75rem;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
}

@media (max-width: 680px) {
    .report-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1.25rem;
    }

    .report-actions .button {
        width: 100%;
    }
} 

@media (max-width: 720px) {
    .search-card-header {
        gap: 1.25rem;
    }

    .weather-search-page .date-field-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .date-range-separator {
        min-height: auto;
        padding: 0;

        transform: rotate(90deg);
    }

    .quick-date-range-heading {
        display: block;
    }

    .quick-date-range-heading > p:last-child {
        margin-top: 0.35rem;
    }

    .quick-date-range-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .search-card-header {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .search-card-icon {
        width: 54px;
        height: 54px;

        border-radius: 50%;

        font-size: 1.5rem;
    }

    .quick-date-range-buttons {
        grid-template-columns: 1fr;
    }

    .quick-date-range-button {
        width: 100%;
    }
}




/* Weather summary */

.weather-summary {
    margin-bottom: 3rem;
}

.summary-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 1.25rem;
}

.summary-section-heading h2 {
    margin: 0;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.summary-section-heading > p {
    max-width: 420px;
    margin: 0;

    color: var(--color-slate-600);
    text-align: right;
}

.summary-card-grid {
    display: grid;
    grid-template-columns: repeat(
        4,
        minmax(0, 1fr)
    );
    gap: 1rem;
}



.summary-value {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 1rem;
    line-height: 1;
}

.summary-value span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}


.summary-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 10.5rem;
    padding: 1.5rem;
}

.summary-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.75rem;
    height: 2.75rem;
    margin: 0;

    border-radius: 0.75rem;
}

.summary-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    stroke: currentColor;
}

.summary-label {
    max-width: calc(100% - 3.5rem);
    margin: 0 0 1.25rem;
}

.summary-value {
    margin: 0;
}

.summary-detail {
    margin-top: auto;
    padding-top: 0.5rem;
}

.summary-icon-temperature {
    color: #b45309;
    background-color: #fef3c7;
}

.summary-icon-rain {
    color: var(--color-teal-700);
    background-color: #ccfbf1;
}

.summary-icon-snow {
    color: #2563eb;
    background-color: #dbeafe;
}

.summary-icon-wind {
    color: #7e22ce;
    background-color: #f3e8ff;
}

.summary-icon-statistic {
    color: var(--color-slate-700);
    background-color: var(--color-slate-200);
}



.summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;

    width: 4px;

    background: var(--color-teal-600);
}

.summary-label {
    margin: 0;

    color: var(--color-slate-600);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.summary-value {
    margin: 1rem 0 0;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 600;
    line-height: 1;
}

.summary-value span {
    color: var(--color-slate-600);

    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-detail {
    margin: 0.65rem 0 0;

    color: var(--color-slate-600);

    font-size: 0.84rem;
}

@media (max-width: 960px) {
    .summary-card-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 680px) {
    .summary-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .summary-section-heading > p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .summary-card-grid {
        grid-template-columns: 1fr;
    }
} 



.foreignworkers-results-page .results-two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-block: 2rem;
}

.foreignworkers-results-page .results-two-column-grid > .results-panel {
    min-width: 0;
    padding: 1.75rem;
}

.foreignworkers-results-page .ranking-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    counter-reset: ranking;
}

.foreignworkers-results-page .ranking-list li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color, #d7e0e5);
    counter-increment: ranking;
}

.foreignworkers-results-page .ranking-list li:last-child {
    border-bottom: 0;
}

.foreignworkers-results-page .ranking-list li::before {
    content: counter(ranking);
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #e4f4f4;
    color: #087b7d;
    font-size: 0.78rem;
    font-weight: 700;
}

.foreignworkers-results-page .ranking-list li span {
    min-width: 0;
    line-height: 1.35;
}

.foreignworkers-results-page .ranking-list li strong {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 56rem) {
    .foreignworkers-results-page .results-two-column-grid {
        grid-template-columns: 1fr;
    }
}









/* ==========================================================
   09. Charts
========================================================== */

/* Temperature chart */

.weather-chart-section {
    margin-bottom: 3rem;
}

.chart-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 1.25rem;
}

.chart-section-heading h2 {
    margin: 0;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.chart-section-heading > p {
    max-width: 420px;
    margin: 0;

    color: var(--color-slate-600);
    text-align: right;
}

.weather-chart-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.chart-canvas-wrapper {
    position: relative;

    width: 100%;
    height: 390px;
}

.chart-fallback-note {
    margin: 1rem 0 0;

    color: var(--color-slate-600);

    font-size: 0.84rem;
    text-align: center;
}

@media (max-width: 680px) {
    .chart-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .chart-section-heading > p {
        text-align: left;
    }

    .chart-canvas-wrapper {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .chart-canvas-wrapper {
        height: 280px;
    }
}




.chart-canvas-wrapper--compact {
    height: 320px;
}

@media (max-width: 680px) {
    .chart-canvas-wrapper--compact {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .chart-canvas-wrapper--compact {
        height: 250px;
    }
} 



.weather-chart-empty {
    padding: 2rem;
    border: 1px dashed var(--color-border);
    border-radius: 0.75rem;
    text-align: center;
    background: var(--color-surface);
}

.weather-chart-empty strong {
    display: block;
    margin-bottom: 0.35rem;
}

.weather-chart-empty p {
    margin: 0;
    color: var(--color-text-muted);
} 




/* ==========================================================
   Population Empty State
========================================================== */

.results-empty-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 2rem;
}

.results-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-inner);
    color: var(--color-teal-dark);
    background: var(--color-accent-soft);
    font-size: 1.4rem;
}

.results-empty-content h2 {
    margin: 0.2rem 0 0.75rem;
}

.results-empty-content > p {
    max-width: 700px;
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.results-empty-suggestions {
    margin: 1.4rem 0 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-inner);
    background: var(--color-surface-soft);
}

.results-empty-suggestions h3 {
    margin: 0 0 0.65rem;
    color: var(--color-text-primary);
    font-size: 1rem;
}

.results-empty-suggestions ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-text-secondary);
}

@media (max-width: 640px) {
    .results-empty-card {
        grid-template-columns: 1fr;
        padding: 1.4rem;
    }

    .results-empty-icon {
        width: 3rem;
        height: 3rem;
    }

    .results-empty-content .button {
        width: 100%;
    }
}






.time-range-fieldset {
    margin: 0 0 1.75rem;
    padding: 0;
    border: 0;
}

.time-range-fieldset legend {
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.time-range-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.time-range-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-color, #d8dee6);
    border-radius: 0.75rem;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.time-range-option:hover {
    border-color: currentColor;
}

.time-range-option:has(.time-range-radio:checked) {
    border-color: currentColor;
    box-shadow: 0 0 0 2px currentColor;
}

.time-range-radio {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.time-range-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.time-range-option-content strong {
    line-height: 1.3;
}

.time-range-option-content span {
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.75;
}

@media (max-width: 700px) {
    .time-range-options {
        grid-template-columns: 1fr;
    }
} 



/* ==========================================================
   06. Dataset Hero
========================================================== */

.dataset-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid var(--border-color, #d8dee6);
    border-radius: 1.25rem;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(245, 247, 250, 0.96)
        );
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08);
}

.dataset-hero-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dataset-hero-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.dataset-hero-subtitle {
    max-width: 46rem;
    margin: 1rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
    line-height: 1.5;
}

.dataset-hero-introduction {
    max-width: 46rem;
    margin: 0.85rem 0 0;
    line-height: 1.7;
    opacity: 0.82;
}

.dataset-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.dataset-hero-metric {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--border-color, #d8dee6);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.76);
}

.dataset-hero-metric strong {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.dataset-hero-metric span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.72;
}

@media (max-width: 850px) {
    .dataset-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .dataset-hero-metrics {
        grid-template-columns: 1fr;
    }
} 


.dataset-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 1rem;

    border-radius: 50%;

    background: white;
    border: 1px solid #d8dee6;

    color: #15324a;

    font-size: 1.35rem;

    box-shadow:
        0 4px 10px rgba(15,23,42,.08);
}





.search-card-icon {
    flex: 0 0 auto;

    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;

    color: var(--color-teal-700);
    background: var(--color-white);

    font-size: 2rem;
    box-shadow: var(--shadow-small);
}


.results-chart-section {
    margin-top: 3rem;
}

.results-chart-section .results-panel {
    background: #ffffff;
    border: 1px solid rgba(13, 43, 65, 0.12);
    border-radius: 0.75rem;
    padding: 2rem;
}

.results-chart-section .section-heading {
    margin-bottom: 1.75rem;
}

.results-chart-section .section-heading p:last-child {
    max-width: 48rem;
    margin-bottom: 0;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 420px;
}

@media (max-width: 768px) {
    .results-chart-section .results-panel {
        padding: 1.25rem;
    }

    .chart-container {
        height: 320px;
    }
} 




.results-insights-section {
    margin-top: 3rem;
}

.results-insights-section .section-heading {
    margin-bottom: 1.5rem;
}

.results-insights-section .section-heading > p:last-child {
    max-width: 48rem;
    margin-bottom: 0;
}

.insights-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 185px;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(13, 43, 65, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(13, 43, 65, 0.06);
}

.insight-card-featured {
    border-top: 4px solid #078b8f;
}

.insight-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(7, 139, 143, 0.1);
    color: #087f83;
    font-size: 1.25rem;
}

.insight-card-content {
    min-width: 0;
}

.insight-card-label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.insight-card-value {
    margin: 0 0 0.5rem;
    color: #0d2b41;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.insight-card-detail {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1000px) {
    .insights-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .insights-card-grid {
        grid-template-columns: 1fr;
    }

    .insight-card {
        min-height: auto;
    }
} 





/* ---------------------------------------------------------
   Shared analytics section rhythm
--------------------------------------------------------- */

.results-summary-section,
.results-chart-section,
.results-insights-section,
.results-table-section,
.results-source-section {
    margin-top: 3.5rem;
}

.results-summary-section:first-child {
    margin-top: 0;
}

.results-summary-section .section-heading,
.results-chart-section .section-heading,
.results-insights-section .section-heading,
.results-table-section .section-heading,
.results-source-section .section-heading {
    margin-bottom: 1.5rem;
}

.section-eyebrow {
    margin-bottom: 0.4rem;
    color: #087f83;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* ==========================================================
   07. Summary Cards
========================================================== */

.summary-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 1.6rem;
    background: #ffffff;
    border: 1px solid rgba(13, 43, 65, 0.12);
    border-radius: 0.85rem;
    box-shadow: 0 8px 24px rgba(13, 43, 65, 0.05);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #078b8f;
}

.summary-card:hover {
    transform: translateY(-3px);
    border-color: rgba(7, 139, 143, 0.3);
    box-shadow: 0 14px 32px rgba(13, 43, 65, 0.1);
}

.summary-card-label {
    margin: 0 0 0.75rem;
    color: #526878;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.summary-card-value {
    margin: 0 0 0.4rem;
    color: #0d2b41;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 750;
    line-height: 1;
}

.summary-card-unit {
    margin: 0;
    color: #647886;
    font-size: 0.95rem;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   Insight cards
--------------------------------------------------------- */

.insight-card {
    position: relative;
    overflow: hidden;
    min-height: 185px;
    padding: 1.6rem;
    background: #ffffff;
    border: 1px solid rgba(13, 43, 65, 0.12);
    border-radius: 0.85rem;
    box-shadow: 0 8px 24px rgba(13, 43, 65, 0.05);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.insight-card:hover {
    transform: translateY(-3px);
    border-color: rgba(7, 139, 143, 0.3);
    box-shadow: 0 14px 32px rgba(13, 43, 65, 0.1);
}

.insight-card-featured {
    border-top: 4px solid #078b8f;
}

.insight-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(7, 139, 143, 0.1);
    color: #087f83;
    font-size: 1.3rem;
}

.insight-card-label {
    margin: 0 0 0.55rem;
    color: #526878;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.insight-card-value {
    margin: 0 0 0.55rem;
    color: #0d2b41;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 750;
    line-height: 1.15;
}

.insight-card-detail {
    margin: 0;
    color: #647886;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Shared panel treatment
--------------------------------------------------------- */

.results-chart-section .results-panel,
.results-table-section .results-panel,
.results-source-card {
    background: #ffffff;
    border: 1px solid rgba(13, 43, 65, 0.12);
    border-radius: 0.85rem;
    box-shadow: 0 8px 24px rgba(13, 43, 65, 0.05);
}

.results-chart-section .results-panel,
.results-table-section .results-panel {
    padding: 2rem;
}

.results-source-card {
    padding: 1.75rem 2rem;
    border-left: 4px solid #078b8f;
}




.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.results-toolbar .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .results-toolbar .button {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   Responsive spacing
--------------------------------------------------------- */

@media (max-width: 768px) {
    .results-summary-section,
    .results-chart-section,
    .results-insights-section,
    .results-table-section,
    .results-source-section {
        margin-top: 2.5rem;
    }

    .summary-card,
    .insight-card {
        min-height: auto;
        padding: 1.35rem;
    }

    .results-chart-section .results-panel,
    .results-table-section .results-panel,
    .results-source-card {
        padding: 1.35rem;
    }
}




.featured-insight {
    margin-bottom: 1.25rem;
}

.secondary-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.featured-insight .insight-card {
    min-height: 180px;
}

.featured-insight .insight-card-value {
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.featured-insight .insight-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    flex-basis: 3.25rem;
    font-size: 1.45rem;
}

.secondary-insights .insight-card {
    min-height: 180px;
}

@media (max-width: 900px) {
    .secondary-insights {
        grid-template-columns: 1fr;
    }
} 



/* ==========================================================
   Fuel Prices Results Table
========================================================== */

.fuelprices-results-header > div:first-child {
    max-width: 48rem;
}

.results-table-section .results-panel {
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(13, 43, 65, 0.1);
    border-radius: 0.75rem;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.results-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.9rem 1rem;
    background: #f2f7f8;
    border-bottom: 2px solid rgba(7, 139, 143, 0.2);
    color: #405867;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.results-table tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(13, 43, 65, 0.08);
    color: #203d50;
    font-size: 0.95rem;
    line-height: 1.45;
    vertical-align: middle;
}

.results-table tbody tr:nth-child(even) {
    background: rgba(242, 247, 248, 0.55);
}

.results-table tbody tr {
    transition: background-color 140ms ease;
}

.results-table tbody tr:hover {
    background: rgba(7, 139, 143, 0.08);
}

.results-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Price column */
.fuelprices-table th:nth-child(4),
.fuelprices-table td:nth-child(4) {
    text-align: right;
    white-space: nowrap;
}

.fuelprices-table td:nth-child(4) strong {
    color: #0d2b41;
    font-size: 1rem;
    font-weight: 700;
}

/* Month and unit columns */
.fuelprices-table th:nth-child(1),
.fuelprices-table td:nth-child(1),
.fuelprices-table th:nth-child(5),
.fuelprices-table td:nth-child(5) {
    white-space: nowrap;
}

/* Prevent very long fuel names from crowding other columns */
.fuelprices-table th:nth-child(3),
.fuelprices-table td:nth-child(3) {
    min-width: 20rem;
}

@media (max-width: 768px) {
    .results-table thead th,
    .results-table tbody td {
        padding: 0.8rem;
    }

    .results-table tbody td {
        font-size: 0.9rem;
    }
}






/* ---------------------------------------------------------
   Shared component design tokens
--------------------------------------------------------- */

/* Insight cards */
.insight-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition-card);
}

.insight-card:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow-card-hover);
}

.insight-card-label {
    color: var(--color-text-muted);
}

.insight-card-value {
    color: var(--color-text-primary);
}

.insight-card-detail {
    color: var(--color-text-secondary);
}

.insight-card-icon {
    color: var(--color-teal);
    background: var(--color-accent-soft);
}


/* General results panels */
.results-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}


/* Data table container */
.table-responsive {
    border-color: var(--color-border);
    border-radius: var(--radius-inner);
}


/* Data table */
.results-table {
    background: var(--color-surface);
}

.results-table thead th {
    color: var(--color-text-secondary);
    background: var(--color-surface-soft);
    border-bottom-color: var(--color-border-accent);
}

.results-table tbody td {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-border-soft);
}

.results-table tbody tr:nth-child(even) {
    background: var(--color-surface-soft);
}

.results-table tbody tr:hover {
    background: var(--color-accent-hover);
}

.fuelprices-table td:nth-child(4) strong {
    color: var(--color-text-primary);
}




/* ==========================================================
   12. Source Information
========================================================== */

.source-information-section {
    margin-top: var(--space-section-desktop);
}

.source-information-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.source-information-icon {
    display: inline-flex;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--color-teal);
    background: var(--color-accent-soft);
    border-radius: var(--radius-inner);
    font-size: 1.3rem;
}

.source-information-content {
    min-width: 0;
}

.source-information-label {
    margin: 0 0 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.source-information-name {
    margin: 0;
    color: var(--color-text-primary);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.source-information-description {
    max-width: 70ch;
    margin: 0.75rem 0 0;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.source-information-link {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    margin-top: 1rem;
    color: var(--color-teal-dark);
    font-weight: 600;
    text-decoration: none;
}

.source-information-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .source-information-section {
        margin-top: var(--space-section-mobile);
    }

    .source-information-card {
        padding: 1.25rem;
    }
} 




/* ==========================================================
   Data Explorer Landing Page
========================================================== */



/* =========================================================
   Data Explorer landing page
   ========================================================= */

.landing-page {
    position: relative;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.landing-hero {
    position: relative;
    overflow: hidden;

    padding-top: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(1.75rem, 4vw, 3rem);

    isolation: isolate;
}




.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;

    background:
        linear-gradient(
            180deg,
            var(--color-sky-100) 0%,
            rgba(234, 244, 248, 0.58) 55%,
            rgba(234, 244, 248, 0) 100%
        );
}

.landing-hero::after {
    content: "";
    position: absolute;
    top: -14rem;
    right: -10rem;
    z-index: -2;

    width: 42rem;
    height: 42rem;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(13, 148, 136, 0.13) 0%,
            rgba(56, 189, 248, 0.08) 38%,
            rgba(255, 255, 255, 0) 72%
        );

    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    max-width: 680px;
    margin-bottom: 0;
}

.landing-hero-content::after {
    content: "";
    position: absolute;
    top: -2rem;
    right: -24rem;

    width: 27rem;
    height: 19rem;

    opacity: 0.34;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(15, 118, 110, 0.08) 0,
            rgba(15, 118, 110, 0.08) 1px,
            transparent 1px,
            transparent 30px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(15, 118, 110, 0.07) 0,
            rgba(15, 118, 110, 0.07) 1px,
            transparent 1px,
            transparent 30px
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            black 35%,
            black 100%
        );

    pointer-events: none;
}

.landing-hero .page-title {
    max-width: 640px;
}

.landing-hero .page-introduction {
    max-width: 760px;
}


/* ---------------------------------------------------------
   Hero benefits
   --------------------------------------------------------- */

.landing-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;

    margin-top: 2rem;
}

.landing-benefit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    padding: 0.6rem 0.85rem;

    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;

    color: var(--color-slate-700);
    background: rgba(255, 255, 255, 0.72);

    font-size: 0.92rem;
    font-weight: 600;

    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.04);

    backdrop-filter: blur(8px);
}

.landing-benefit > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1.45rem;
    height: 1.45rem;

    border-radius: 50%;

    color: var(--color-teal-700);
    background: var(--color-teal-100);

    font-size: 0.78rem;
    font-weight: 700;
}



.landing-hero-layout {
    display: grid;
    grid-template-columns:
        minmax(520px, 1fr)
        minmax(420px, 560px);
    align-items: center;
    gap: 2rem;
}

.landing-hero-illustration {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: -2rem;
}

.landing-hero-image {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    margin-right: -20px;
    margin-top: -18px;
    animation:
        heroFloat
        9s
        ease-in-out
        infinite;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 1000px) {
    .landing-hero-layout {
        grid-template-columns: 1fr;
    }

    .landing-hero-illustration {
        justify-content: center;
        margin-top: 2rem;
        margin-right: 0;
    }

    .landing-hero-image {
        max-width: 420px;
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    .landing-hero-illustration {
        display: none;
    }
}


/* ---------------------------------------------------------
   Dataset section
   --------------------------------------------------------- */

.datasets-section {
    position: relative;

    padding-top: clamp(1rem, 2.5vw, 2rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.datasets-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            180deg,
            rgba(248, 250, 252, 0) 0%,
            rgba(248, 250, 252, 0.86) 22%,
            rgba(248, 250, 252, 0.98) 100%
        );
}


/* ---------------------------------------------------------
   Dataset grid
   --------------------------------------------------------- */

.dataset-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: clamp(1.5rem, 3vw, 2rem);

    margin-top: 2.25rem;
}


/* ---------------------------------------------------------
   Dataset cards
   --------------------------------------------------------- */

.dataset-card {
    --dataset-accent: var(--color-teal-700);
    --dataset-accent-soft: rgba(13, 148, 136, 0.10);
    --dataset-accent-medium: rgba(13, 148, 136, 0.20);

    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius-card) + 0.15rem);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 1)
        );

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.dataset-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;

    height: 7px;

    background: var(--dataset-accent);
}

.dataset-card::after {
    content: "";
    position: absolute;
    top: -6rem;
    right: -5rem;
    z-index: -1;

    width: 17rem;
    height: 17rem;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            var(--dataset-accent-medium) 0%,
            var(--dataset-accent-soft) 36%,
            transparent 72%
        );

    transition:
        transform 220ms ease,
        opacity 220ms ease;
}

.dataset-card:hover {
    transform: translateY(-7px);

    border-color:
        color-mix(
            in srgb,
            var(--dataset-accent) 34%,
            var(--color-border)
        );

    box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.11);
}

.dataset-card:hover::after {
    transform: scale(1.08);
}


/* ---------------------------------------------------------
   Explorer identity colours
   --------------------------------------------------------- */

.dataset-card--foreignworkers {
    --dataset-accent: #0f766e;
    --dataset-accent-soft: rgba(15, 118, 110, 0.11);
    --dataset-accent-medium: rgba(15, 118, 110, 0.20);
}

.dataset-card--weather {
    --dataset-accent: #0284c7;
    --dataset-accent-soft: rgba(2, 132, 199, 0.11);
    --dataset-accent-medium: rgba(14, 165, 233, 0.22);
}

.dataset-card--fuel {
    --dataset-accent: #d97706;
    --dataset-accent-soft: rgba(217, 119, 6, 0.10);
    --dataset-accent-medium: rgba(245, 158, 11, 0.22);
}

.dataset-card--population {
    --dataset-accent: #5b4bc4;
    --dataset-accent-soft: rgba(91, 75, 196, 0.10);
    --dataset-accent-medium: rgba(99, 102, 241, 0.20);
}

.dataset-card--studypermits {
    --dataset-accent: #c2185b;
    --dataset-accent-soft: rgba(194, 24, 91, 0.11);
    --dataset-accent-medium: rgba(194, 24, 91, 0.20);
}


.dataset-card--history {
    --dataset-accent: #a87932;
    --dataset-accent-soft: rgba(168, 121, 50, 0.11);
    --dataset-accent-medium: rgba(168, 121, 50, 0.22);
}


/* ---------------------------------------------------------
   Dataset card content
   --------------------------------------------------------- */

.dataset-card-content {
    flex: 1;

    padding:
        clamp(1.6rem, 3vw, 2.1rem)
        clamp(1.5rem, 3vw, 2rem)
        1.4rem;
}

.dataset-card-heading {
    display: flex;
    align-items: center;

    gap: 1.05rem;

    margin-bottom: 1.35rem;
}

.dataset-card-icon {
    display: inline-flex;
    flex: 0 0 4rem;

    align-items: center;
    justify-content: center;

    width: 4rem;
    height: 4rem;

    border: 1px solid
        color-mix(
            in srgb,
            var(--dataset-accent) 24%,
            transparent
        );

    border-radius: 1rem;

    color: var(--dataset-accent);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.95),
            var(--dataset-accent-soft)
        );

    font-size: 1.55rem;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.07);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.dataset-card:hover .dataset-card-icon {
    transform:
        translateY(-2px)
        scale(1.04);

    box-shadow:
        0 11px 24px rgba(15, 23, 42, 0.11);
}

.dataset-card-label {
    margin: 0 0 0.35rem;

    color: var(--dataset-accent);

    font-size: 0.74rem;
    font-weight: 750;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dataset-card-label-global,
.dataset-card-label-canada {
    color: var(--dataset-accent);
}

.dataset-card h3 {
    margin: 0;

    color: var(--color-navy-950);

    font-family: var(--font-serif);
    font-size:
        clamp(1.55rem, 3vw, 1.95rem);

    line-height: 1.15;
}

.dataset-card-content > p {
    margin: 0;

    max-width: 34rem;

    color: var(--color-slate-700);

    line-height: 1.65;
}

.dataset-card-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.25rem 0 0;
    padding-top: 0.8rem;
    border-top: 1px solid var(--dataset-accent-soft);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dataset-accent);
}

.dataset-card-note i {
    font-size: 0.95rem;
}

/* ---------------------------------------------------------
   Dataset feature list
   --------------------------------------------------------- */

.dataset-features {
    display: grid;

    gap: 0.7rem;

    margin: 1.5rem 0 0;
    padding: 0;

    list-style: none;
}

.dataset-features li {
    position: relative;

    padding-left: 1.6rem;

    color: var(--color-slate-700);

    font-size: 0.93rem;
    line-height: 1.45;
}

.dataset-features li::before {
    content: "✓";

    position: absolute;
    top: 0;
    left: 0;

    color: var(--dataset-accent);

    font-weight: 800;
}


/* ---------------------------------------------------------
   Card actions
   --------------------------------------------------------- */

.dataset-card-actions {
    padding:
        1.25rem
        clamp(1.5rem, 3vw, 2rem)
        clamp(1.5rem, 3vw, 2rem);

    border-top: 1px solid var(--color-border-soft);

    background:
        linear-gradient(
            180deg,
            rgba(248, 250, 252, 0.58),
            rgba(248, 250, 252, 0.94)
        );
}

.dataset-card-actions .button {
    width: 100%;
}

.dataset-card-actions .button-primary {
    border-color: var(--dataset-accent);

    background: var(--dataset-accent);

    transition:
        transform 150ms ease,
        filter 150ms ease,
        box-shadow 150ms ease;
}

.dataset-card-actions .button-primary:hover {
    transform: translateY(-1px);

    filter: brightness(0.94);

    box-shadow:
        0 7px 16px rgba(15, 23, 42, 0.12);
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1000px) {
    .landing-hero-content::after {
        right: -18rem;
        opacity: 0.22;
    }
}


@media (max-width: 800px) {
    .landing-hero {
        padding-bottom: 3rem;
    }

    .landing-hero-content::after {
        display: none;
    }

    .dataset-grid {
        grid-template-columns: 1fr;
    }

    .datasets-section {
        padding-top: 1.5rem;
    }
}


@media (max-width: 560px) {
    .landing-benefits {
        flex-direction: column;
        align-items: flex-start;

        gap: 0.65rem;
    }

    .landing-benefit {
        width: 100%;
    }

    .dataset-card-content {
        padding: 1.4rem 1.35rem 1.1rem;
    }

    .dataset-card-actions {
        padding: 1rem 1.35rem 1.4rem;
    }

    .dataset-card-heading {
        gap: 0.9rem;
    }

    .dataset-card-icon {
        width: 3.35rem;
        height: 3.35rem;
        flex-basis: 3.35rem;

        border-radius: 0.85rem;

        font-size: 1.35rem;
    }
}













/* ==========================================================
   Results Report Toolbar and Metadata
========================================================== */

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.report-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.report-source-section {
    margin-top: var(--space-section-desktop);
}


.report-source-section > .results-panel {
    padding: 2rem;
}

.report-metadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
    margin: 1.5rem 0 0;
}



.report-metadata > div {
    padding: 0.55rem 0 0;
}

.report-metadata dt {
    margin-bottom: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-metadata dd {
    margin: 0;
    color: var(--color-text-primary);
    font-weight: 600;
}

@media (max-width: 640px) {
    .results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .report-print-button {
        width: 100%;
    }

    .report-metadata {
        grid-template-columns: 1fr;
    }
} 


.report-source-section h2 {
    font-size: 1.7rem;
}


.program-chart-container {
    position: relative;

    width: 100%;
    height: 430px;
}

@media (max-width: 640px) {

    .chart-container {
        height: 300px;
    }

    .page-heading {
        margin-bottom: 1.75rem;
    }

    .summary-card-value {
        font-size: 2rem;
    }
}


.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.results-table {
    min-width: 760px;
}


/* ==========================================================
   Country Ranking
========================================================== */

.country-ranking-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.country-ranking-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color, #d7e0e5);
}

.country-ranking-item:last-child {
    border-bottom: 0;
}

.country-ranking-name {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
}

.country-ranking-name span:last-child {
    line-height: 1.35;
}

.country-ranking-name .fi {
    flex: 0 0 auto;
    width: 1.5rem;
    border-radius: 0.15rem;
    box-shadow: 0 0 0 1px rgba(23, 50, 74, 0.12);
}

.country-ranking-name .bi {
    flex: 0 0 auto;
    color: var(--muted-text-color, #71828c);
    font-size: 1.1rem;
}

.country-ranking-total {
    white-space: nowrap;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.country-ranking-panel {
    padding: 1.75rem;
    height: auto;
    min-height: 0;
}

.country-ranking-panel .section-heading {
    margin-bottom: 1.25rem;
}

.country-ranking-panel .country-ranking-list {
    margin-top: 0;
}

.country-ranking-panel .country-ranking-item {
    padding-inline: 0.25rem;
}

@media (max-width: 48rem) {
    .country-ranking-panel {
        padding: 1.25rem;
    }
}

.country-ranking-panel {
    margin-top: 2rem;
}


.single-geography-panel {
    margin-top: 2rem;
    padding: 1.75rem;
}

.single-geography-panel .section-heading {
    margin-bottom: 1rem;
}

.single-geography-panel .section-description {
    margin: 0;
}

@media (max-width: 48rem) {
    .single-geography-panel {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }
}



.foreignworker-explorer-switcher {
    margin: 0 0 2rem;
}

.foreignworker-explorer-switcher-label {
    margin: 0 0 0.75rem;
    color: var(--muted-text-color, #536b7a);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.foreignworker-explorer-switcher-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.foreignworker-explorer-switcher-link {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color, #cdd9df);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--text-color, #102b3d);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.foreignworker-explorer-switcher-link:hover {
    border-color: #087f83;
    background: #f2f9f9;
}

.foreignworker-explorer-switcher-link.active {
    border-color: #087f83;
    background: #e5f5f5;
    box-shadow: inset 0 -3px 0 #087f83;
}

.foreignworker-explorer-switcher-link i {
    flex: 0 0 auto;
    color: #087f83;
    font-size: 1.1rem;
}

@media (max-width: 48rem) {
    .foreignworker-explorer-switcher-links {
        grid-template-columns: 1fr;
    }
}

.foreignworker-explorer-switcher-heading {
    margin-bottom: 0.9rem;
}

.foreignworker-explorer-switcher-description {
    margin: 0.25rem 0 0;
    color: var(--muted-text-color, #536b7a);
    line-height: 1.5;
}

.foreignworker-help {
    margin: 0 0 2rem;
    border: 1px solid var(--border-color, #cdd9df);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.45rem 1.4rem rgba(16, 43, 61, 0.06);
}

.foreignworker-help-summary {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.2rem;
    color: var(--text-color, #102b3d);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.foreignworker-help-summary::-webkit-details-marker {
    display: none;
}

.foreignworker-help-summary::after {
    content: "+";
    margin-left: auto;
    color: #087f83;
    font-size: 1.25rem;
    line-height: 1;
}

.foreignworker-help[open] .foreignworker-help-summary::after {
    content: "−";
}

.foreignworker-help-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e5f5f5;
    color: #087f83;
}

.foreignworker-help-content {
    padding: 0 1.2rem 1.25rem;
    border-top: 1px solid var(--border-color, #d7e0e5);
}

.foreignworker-help-content > p {
    margin: 1.1rem 0;
    max-width: 52rem;
    line-height: 1.65;
}

.foreignworker-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.foreignworker-help-grid section {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--border-color, #d7e0e5);
    border-radius: 0.6rem;
    background: #f8fbfc;
}

.foreignworker-help-grid h3 {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.foreignworker-help-grid h3 i {
    color: #087f83;
}

.foreignworker-help-grid p {
    margin: 0;
    color: var(--muted-text-color, #536b7a);
    line-height: 1.55;
}

.foreignworker-help-status {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e7edf0;
    color: #536b7a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.foreignworker-help-note {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid #087f83;
    border-radius: 0.35rem;
    background: #e5f5f5;
}

.foreignworker-help-note i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: #087f83;
}

.foreignworker-help-note p {
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 48rem) {
    .foreignworker-help-grid {
        grid-template-columns: 1fr;
    }

    .foreignworker-help-summary {
        align-items: flex-start;
    }
}




/* Temporary Foreign Workers search form alignment */

.foreignworkers-search-page .date-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.foreignworkers-search-page .date-field-grid > .form-field {
    width: 100%;
    min-width: 0;
}

.foreignworkers-search-page .form-field select,
.foreignworkers-search-page .form-field input {
    width: 100%;
    max-width: none;
    min-height: 56px;
    box-sizing: border-box;
}

@media (max-width: 720px) {
    .foreignworkers-search-page .date-field-grid {
        grid-template-columns: 1fr;
    }
}


.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.page-hero-content {
    min-width: 0;
}

.page-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-features i {
    color: var(--primary-color);
}

@media (max-width: 900px) {

    .page-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero-image {
        order: -1;
    }

    .hero-illustration {
        max-width: 380px;
    }
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.page-hero-content {
    min-width: 0;
}

.page-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1.4rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-features i {
    color: var(--primary-color);
}

@media (max-width: 900px) {

    .page-hero {

        grid-template-columns: 1fr;

        gap: 2rem;

    }

    .page-hero-image {

        order: -1;

    }

    .hero-illustration {

        max-width: 420px;

    }

}

.page-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(20rem, 0.85fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.75rem;
}

.page-hero-content {
    min-width: 0;
}

.page-hero .page-title {
    max-width: 44rem;
}

.page-hero .page-introduction {
    max-width: 46rem;
    line-height: 1.7;
}

.page-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    display: block;
    width: 100%;
    max-width: 31rem;
    height: auto;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.35rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-features li {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--muted-text-color, #536b7a);
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.35;
}

.hero-features i {
    flex: 0 0 auto;
    color: #087f83;
    font-size: 1.05rem;
}

@media (max-width: 56rem) {
    .page-hero {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .page-hero-image {
        order: -1;
    }

    .hero-illustration {
        max-width: 27rem;
        margin-inline: auto;
    }
}

@media (max-width: 36rem) {
    .hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 25rem) {
    .hero-features {
        grid-template-columns: 1fr;
    }
}


.breadcrumb-region {
    padding-top: 1rem;
}

.site-breadcrumbs {
    font-size: 0.88rem;
}

.site-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-breadcrumbs-item {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    min-width: 0;
}

.site-breadcrumbs-item a {
    color: var(
        --muted-text-color,
        #536b7a
    );
    text-decoration: none;
}

.site-breadcrumbs-item a:hover {
    color: #087f83;
    text-decoration: underline;
}

.site-breadcrumbs-item span[aria-current="page"] {
    color: var(
        --text-color,
        #102b3d
    );
    font-weight: 600;
}

.site-breadcrumbs-item i {
    color: #8ba0ac;
    font-size: 0.7rem;
}

@media (max-width: 36rem) {
    .breadcrumb-region {
        padding-top: 0.75rem;
    }

    .site-breadcrumbs {
        font-size: 0.82rem;
    }
}



/* ==========================================================
   Accessibility Utilities
========================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



.term-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.35rem;
}

.term-tooltip-trigger {
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--color-teal-700);

    font: inherit;
    font-weight: 700;
    cursor: help;
}

.term-tooltip-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.6rem);
    z-index: 20;

    width: min(320px, 80vw);
    padding: 0.8rem 0.9rem;

    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;

    color: var(--color-slate-700);
    background: var(--color-white);

    font-size: 0.9rem;
    line-height: 1.45;

    box-shadow: var(--shadow-small);

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 0.25rem);

    transition:
        opacity 160ms ease,
        transform 160ms ease,
        visibility 160ms ease;
}

.term-tooltip:hover .term-tooltip-content,
.term-tooltip:focus-within .term-tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
