/*
  ERaNS NextGen   Topics & Scope
  Drop this file into /repository/css/topics.css (or update the link in the HTML).
*/

:root {
    --ink: #09212b;
    --ink-deep: #04151d;
    --ink-muted: #476069;
    --paper: #f5f6ef;
    --paper-strong: #ffffff;
    --line: rgba(9, 33, 43, 0.14);
    --lime: #d8ff52;
    --lime-deep: #9acb12;
    --aqua: #6ee0d2;
    --sky: #9edff5;
    --coral: #ff9274;
    --lavender: #c9b6ff;
    --shadow: 0 24px 60px rgba(4, 21, 29, 0.12);
    --shadow-soft: 0 12px 30px rgba(4, 21, 29, 0.08);
    --sans: Inter, Avenir, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
    --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: clip;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 2% 14%, rgba(110, 224, 210, 0.13), transparent 21rem),
        radial-gradient(circle at 98% 41%, rgba(216, 255, 82, 0.16), transparent 25rem), linear-gradient(rgba(9, 33, 43, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 33, 43, 0.026) 1px, transparent 1px);
    background-size:
        auto,
        auto,
        28px 28px,
        28px 28px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 450;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    color: var(--ink-deep);
    background: var(--lime);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

[hidden],
.is-hidden {
    display: none !important;
}

.container {
    width: min(calc(100% - 3rem), 82.5rem);
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.skip {
    position: fixed;
    z-index: 999;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    color: var(--ink);
    background: var(--lime);
    border-radius: 0.45rem;
    transform: translateY(-180%);
    transition: transform 180ms ease;
}

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

:focus-visible {
    outline: 3px solid var(--lime-deep);
    outline-offset: 4px;
}

.reading-progress {
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aqua), var(--lime));
    box-shadow: 0 1px 12px rgba(216, 255, 82, 0.8);
}

/* Header ------------------------------------------------------------------ */

.header-inner {
    display: grid;
    grid-template-columns: minmax(15rem, 1fr) auto auto;
    align-items: center;
    min-height: 5.6rem;
    gap: clamp(1.2rem, 3vw, 4.5rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-width: 0;
    gap: 0.72rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 760;
    letter-spacing: 0em;
    line-height: 1;
}

.brand:hover .brand-mark {
    color: var(--ink-deep);
    background: var(--lime);
    border-color: var(--ink);
    transform: rotate(-8deg) scale(1.05);
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 50% 50% 45% 55% / 54% 42% 58% 46%;
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0em;
    transition: 220ms ease;
}

.brand-mark span {
    color: var(--lime);
    font-family: var(--sans);
    font-size: 0.72em;
    vertical-align: top;
}

.brand > span:last-child {
    display: grid;
    gap: 0.25rem;
}

.brand em {
    color: #177e80;
    font-family: var(--serif);
    font-size: 1.08em;
    font-style: italic;
    font-weight: 500;
}

.brand small {
    color: var(--ink-muted);
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1.15;
}

.header-inner > nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2.35rem);
}

.header-inner > nav a,
.portal {
    position: relative;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.005em;
    white-space: nowrap;
}

.header-inner > nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 2px;
    content: "";
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 180ms ease;
}

.header-inner > nav a:hover::after,
.header-inner > nav a.active-link::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.portal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1rem;
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background 180ms ease;
}

.portal span {
    color: var(--lime);
    font-size: 1.05rem;
    line-height: 0.7;
}

.portal:hover {
    color: var(--ink);
    background: var(--lime);
    transform: translateY(-2px);
}

.portal:hover span {
    color: inherit;
}

.menu-toggle {
    display: none;
    padding: 0.65rem 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.menu-toggle span {
    display: inline-block;
    margin-left: 0.4rem;
    color: #0e777b;
    font-size: 1.35rem;
    line-height: 0.5;
    transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
}

.mobile-nav {
    display: grid;
    gap: 0.15rem;
    width: min(calc(100% - 3rem), 82.5rem);
    margin: 0 auto;
    padding: 0 0 1.2rem;
}

.mobile-nav a {
    padding: 0.78rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
    font-weight: 700;
}

/* Type, small components and hero ---------------------------------------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.15rem;
    color: #177e80;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    line-height: 1.35;
}

.dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--lime-deep);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(154, 203, 18, 0.14);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
}

h1 {
    max-width: 100%;
    margin-bottom: 1.7rem;
    font-size: clamp(1.75rem, 6.7vw, 3.1rem);
    font-weight: 790;
    letter-spacing: 0em;
    line-height: 0.86;
}

h1 span {
    display: inline-block;
    color: #177e80;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.15rem, 4.2vw, 2.6rem);
    font-weight: 760;
    letter-spacing: 0em;
    line-height: 0.96;
}

h2 span {
    color: #0d9793;
}

.lead-copy {
    max-width: 36rem;
    margin-bottom: 2.1rem;
    color: #36535d;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.6;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(25rem, 0.96fr);
    align-items: center;
    min-height: 42rem;
    gap: clamp(2rem, 5vw, 6rem);
    padding-top: clamp(2.25rem, 4vw, 3.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 12%;
    left: -11%;
    width: 30rem;
    height: 30rem;
    content: "";
    border: 1px solid rgba(23, 126, 128, 0.11);
    border-radius: 50%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 3.35rem;
    padding: 0.82rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    font-size: 0.78rem;
    font-weight: 820;
    letter-spacing: 0.005em;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease,
        background 180ms ease;
}

.button.dark {
    color: var(--paper);
    background: var(--ink);
    box-shadow: 0 9px 0 rgba(9, 33, 43, 0.12);
}

.button.dark span {
    color: var(--lime);
    font-size: 1.1rem;
    line-height: 1;
}

.button.dark:hover {
    color: var(--ink);
    background: var(--lime);
    box-shadow: 0 12px 0 rgba(9, 33, 43, 0.12);
    transform: translateY(-3px);
}

.button.dark:hover span {
    color: inherit;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.47rem;
    width: fit-content;
    padding-bottom: 0.13rem;
    border-bottom: 1px solid currentColor;
    font-size: 0.82rem;
    font-weight: 800;
    transition:
        color 180ms ease,
        gap 180ms ease;
}

.text-link span {
    color: #0e777b;
    font-size: 1.05rem;
    line-height: 1;
}

.text-link:hover {
    color: #0e777b;
    gap: 0.72rem;
}

.hero-note {
    margin: 4.6rem 0 0;
    color: #5d7379;
    font-size: 0.62rem;
    font-weight: 820;
    letter-spacing: 0.13em;
}

.hero-note span {
    margin: 0 0.55rem;
    color: #0e777b;
}

/* Hero illustration */

.scope-art {
    position: relative;
    isolation: isolate;
    width: min(100%, 33rem);
    aspect-ratio: 1;
    justify-self: end;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(216, 255, 82, 0.28) 0 2%, transparent 2.2%),
        radial-gradient(circle at 50% 50%, rgba(110, 224, 210, 0.22) 0 23%, transparent 23.5%),
        linear-gradient(140deg, #0b2d38 0%, #0b5960 52%, #166e70 100%);
    border: 1px solid rgba(9, 33, 43, 0.18);
    border-radius: 49% 51% 43% 57% / 48% 46% 54% 52%;
    box-shadow: var(--shadow);
}

.scope-art::before,
.scope-art::after {
    position: absolute;
    z-index: 0;
    width: 75%;
    height: 75%;
    content: "";
    border: 1px solid rgba(216, 255, 82, 0.38);
    border-radius: 50%;
    pointer-events: none;
}

.scope-art::before {
    top: -31%;
    right: -25%;
}

.scope-art::after {
    bottom: -36%;
    left: -33%;
}

.art-caption,
.art-bottom {
    position: absolute;
    z-index: 5;
    color: rgba(245, 246, 239, 0.88);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.35;
}

.art-caption {
    top: 10%;
    left: 10%;
}

.art-bottom {
    right: 10%;
    bottom: 8%;
    max-width: 14rem;
    text-align: right;
}

.art-ring {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(245, 246, 239, 0.56);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ring-one {
    width: 38%;
    height: 38%;
    border-color: rgba(216, 255, 82, 0.92);
    animation: breathe 6s ease-in-out infinite;
}

.ring-two {
    width: 60%;
    height: 60%;
    border-style: dashed;
    border-color: rgba(110, 224, 210, 0.9);
    animation: spin 18s linear infinite;
}

.ring-three {
    width: 84%;
    height: 84%;
    border-color: rgba(245, 246, 239, 0.3);
    animation: spin-reverse 28s linear infinite;
}

.science-core {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: 7.5rem;
    height: 7.5rem;
    place-content: center;
    color: var(--ink);
    background: var(--lime);
    border: 4px solid rgba(245, 246, 239, 0.9);
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
    box-shadow:
        0 0 0 0.8rem rgba(216, 255, 82, 0.12),
        0 0 38px rgba(216, 255, 82, 0.5);
    text-align: center;
    transform: translate(-50%, -50%) rotate(-8deg);
}

.science-core span {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0em;
    line-height: 0.8;
}

.science-core small {
    padding-top: 0.28rem;
    font-size: 0.55rem;
    font-weight: 880;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.field-label {
    position: absolute;
    z-index: 4;
    padding: 0.65rem 0.8rem;
    color: var(--ink);
    border-radius: 0.22rem;
    box-shadow: 0 8px 18px rgba(4, 21, 29, 0.16);
    font-size: clamp(0.57rem, 1vw, 0.72rem);
    font-weight: 830;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.field-environment {
    top: 28%;
    left: 7%;
    background: var(--aqua);
    transform: rotate(-8deg);
}

.field-nuclear {
    right: 6%;
    bottom: 28%;
    background: var(--coral);
    transform: rotate(6deg);
}

.art-node {
    position: absolute;
    z-index: 3;
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 0 0.28rem rgba(245, 246, 239, 0.18);
}

.node-one {
    top: 29%;
    right: 24%;
    animation: node-pulse 3.2s ease-in-out infinite;
}

.node-two {
    bottom: 22%;
    left: 30%;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--lime);
    animation: node-pulse 3.2s 0.8s ease-in-out infinite;
}

.node-three {
    top: 65%;
    right: 18%;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--coral);
    animation: node-pulse 3.2s 1.6s ease-in-out infinite;
}

.art-star {
    position: absolute;
    z-index: 4;
    top: 19%;
    right: 12%;
    color: var(--lime);
    font-size: 2.4rem;
    line-height: 1;
    animation: spin 12s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes breathe {
    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes node-pulse {
    50% {
        box-shadow: 0 0 0 0.6rem transparent;
        transform: scale(1.25);
    }
}

/* Introduction ------------------------------------------------------------ */

.quick-facts {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    margin-bottom: clamp(5rem, 10vw, 9.5rem);
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.quick-facts::before {
    position: absolute;
    top: -9rem;
    right: -5rem;
    width: 21rem;
    height: 21rem;
    content: "";
    border: 1px solid rgba(216, 255, 82, 0.25);
    border-radius: 50%;
}

.quick-facts > div {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 10.5rem;
    padding: 1.8rem clamp(1.15rem, 2.5vw, 2.5rem);
    transition: background 180ms ease;
}

.quick-facts > div + div {
    border-left: 1px solid rgba(245, 246, 239, 0.18);
}

.quick-facts > div:hover {
    background: rgba(216, 255, 82, 0.1);
}

.fact-number {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--lime);
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0em;
    line-height: 0.85;
}

.quick-facts > div > span:last-child {
    color: rgba(245, 246, 239, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
}

.welcome-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr);
    gap: clamp(2rem, 8vw, 10rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.welcome-section > div:last-child {
    align-self: end;
    padding-bottom: 0.25rem;
    color: #3c5962;
    font-size: 1rem;
}

.welcome-section p:last-child {
    margin-bottom: 0;
}

/* Shared section styling -------------------------------------------------- */

.section {
    position: relative;
    padding-top: clamp(2.5rem, 4vw, 3.75rem);
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.53fr);
    align-items: end;
    gap: 2rem 4rem;
    margin-bottom: clamp(2.2rem, 4vw, 3.8rem);
}

.section-heading > p {
    max-width: 25rem;
    margin-bottom: 0.3rem;
    color: #44616a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Topics board ------------------------------------------------------------ */

.topics-section {
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.topics-tools {
    padding: clamp(1rem, 2vw, 1.35rem);
    margin-bottom: 1.35rem;
    color: var(--paper);
    background: linear-gradient(125deg, #09212b, #124451);
    border: 1px solid rgba(9, 33, 43, 0.95);
    border-radius: 1.1rem;
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.6rem;
    padding: 0 0.95rem;
    color: var(--ink);
    background: var(--paper-strong);
    border: 1px solid rgba(245, 246, 239, 0.45);
    border-radius: 0.72rem;
}

.search-symbol {
    color: #157a7d;
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 0.6rem 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: none;
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: #75868b;
    opacity: 1;
}

.clear-search {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    place-items: center;
    color: var(--ink);
    background: #e9efea;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.clear-search:hover {
    color: var(--paper);
    background: #157a7d;
}

.search-hint {
    padding-left: 0.7rem;
    color: #557078;
    border-left: 1px solid #d9e1dc;
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.filter-row {
    margin-top: 1rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.filter {
    padding: 0.5rem 0.78rem;
    color: rgba(245, 246, 239, 0.82);
    background: rgba(245, 246, 239, 0.08);
    border: 1px solid rgba(245, 246, 239, 0.2);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 720;
    transition:
        color 180ms ease,
        background 180ms ease,
        border 180ms ease,
        transform 180ms ease;
}

.filter:hover {
    color: var(--ink);
    background: rgba(110, 224, 210, 0.9);
    border-color: var(--aqua);
    transform: translateY(-1px);
}

.filter.active,
.filter[aria-pressed="true"] {
    color: var(--ink);
    background: var(--lime);
    border-color: var(--lime);
}

.results-row,
.open-tracks-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

#resultCount,
#openTracksCount {
    color: #4b666d;
    font-size: 0.71rem;
    font-weight: 820;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.view-controls button,
.open-tracks-row button {
    padding: 0.35rem 0.1rem;
    color: #1b6165;
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    cursor: pointer;
    font-size: 0.71rem;
    font-weight: 800;
}

.view-controls button + button {
    margin-left: 0.55rem;
}

.view-controls button:hover,
.open-tracks-row button:hover {
    color: var(--ink);
}

.notice {
    padding: 0.8rem 1rem;
    color: #405d64;
    background: rgba(110, 224, 210, 0.14);
    border-left: 3px solid #197e7f;
    font-size: 0.88rem;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.track-card {
    --track-accent: var(--aqua);
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(9, 33, 43, 0.16);
    border-radius: 1.05rem;
    box-shadow: 0 5px 0 rgba(9, 33, 43, 0.04);
    transition:
        grid-column 260ms ease,
        background 260ms ease,
        border 260ms ease,
        box-shadow 260ms ease,
        transform 260ms ease;
}

.track-card:nth-child(4n + 2) {
    --track-accent: var(--lime);
}
.track-card:nth-child(4n + 3) {
    --track-accent: var(--coral);
}
.track-card:nth-child(4n) {
    --track-accent: var(--lavender);
}

.track-card::before {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.32rem;
    content: "";
    background: var(--track-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 250ms ease;
}

.track-card:hover {
    border-color: rgba(9, 33, 43, 0.36);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.track-card:hover::before,
.track-card[open]::before {
    transform: scaleX(1);
}

.track-card[open] {
    grid-column: span 2;
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: var(--shadow);
    transform: none;
}

.track-card summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(0.8rem, 1.7vw, 1.35rem);
    padding: clamp(1.35rem, 2vw, 1.75rem);
    cursor: pointer;
    list-style: none;
}

.track-card summary::-webkit-details-marker {
    display: none;
}

.track-number {
    min-width: 2.2rem;
    color: #1a7275;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0em;
    line-height: 1;
}

.track-card[open] .track-number {
    color: var(--track-accent);
}

.track-heading {
    display: block;
    min-width: 0;
}

.track-label {
    display: block;
    margin-bottom: 0.47rem;
    color: #557078;
    font-size: 0.61rem;
    font-weight: 840;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-transform: uppercase;
}

.track-card[open] .track-label {
    color: var(--track-accent);
}

.track-card h3 {
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 1.15vw, 1.5rem);
    font-weight: 555;
    letter-spacing: 0em;
    line-height: 1.04;
}

.track-card[open] h3 {
    color: var(--paper);
}

.track-meta {
    display: block;
    color: #698087;
    font-size: 0.72rem;
    font-weight: 650;
}

.track-card[open] .track-meta {
    color: rgba(245, 246, 239, 0.65);
}

.track-toggle {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    margin-top: 0.08rem;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #197a7c;
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 250ms ease;
}

.track-toggle::before,
.track-toggle::after {
    position: absolute;
    width: 0.55rem;
    height: 1px;
    content: "";
    background: currentColor;
}

.track-toggle::after {
    transform: rotate(90deg);
    transition: transform 180ms ease;
}

.track-card:hover .track-toggle {
    color: var(--ink);
    background: var(--track-accent);
    border-color: var(--track-accent);
}

.track-card[open] .track-toggle {
    color: var(--ink);
    background: var(--track-accent);
    border-color: var(--track-accent);
    transform: rotate(180deg);
}

.track-card[open] .track-toggle::after {
    transform: rotate(0deg);
}

.track-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.5rem 2.5rem;
    padding: 0 clamp(1.35rem, 2vw, 1.75rem) clamp(1.45rem, 2.5vw, 2.2rem) clamp(4.35rem, 6vw, 5.35rem);
    animation: reveal-content 280ms ease both;
}

.track-body ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.track-body li {
    position: relative;
    padding-left: 1.05rem;
    color: rgba(245, 246, 239, 0.82);
    font-size: 0.89rem;
    line-height: 1.43;
}

.track-body li::before {
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 0.4rem;
    height: 0.4rem;
    content: "";
    background: var(--track-accent);
    border-radius: 50%;
}

.open-track-note {
    grid-column: 1 / -1;
    margin: 0 0 -0.15rem;
    color: rgba(245, 246, 239, 0.82);
    font-size: 0.9rem;
}

.track-top {
    align-self: end;
    padding-bottom: 0.1rem;
    color: var(--track-accent);
    border-bottom: 1px solid currentColor;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.track-top:hover {
    color: var(--paper);
}

@keyframes reveal-content {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

mark {
    padding: 0 0.08em;
    color: var(--ink);
    background: var(--lime);
    border-radius: 0.12em;
}

.open-tracks-row {
    padding: 1.1rem 0 0;
    margin-top: 0.3rem;
    margin-bottom: 0;
    border-top: 1px solid var(--line);
}

.empty-state {
    padding: clamp(2.4rem, 6vw, 5rem) 1.5rem;
    margin-top: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(9, 33, 43, 0.32);
    border-radius: 1rem;
}

.empty-state > span {
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    margin: 0 auto 1rem;
    place-items: center;
    color: var(--ink);
    background: var(--lime);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 2rem;
    font-style: italic;
}

.empty-state h3 {
    margin-bottom: 0.35rem;
    font-size: 1.55rem;
    letter-spacing: 0em;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: #526b72;
}

.board-note {
    display: flex;
    max-width: 54rem;
    gap: 0.68rem;
    margin-top: 2rem;
    padding: 1rem 1.15rem;
    color: #536d73;
    background: rgba(158, 223, 245, 0.18);
    border-left: 3px solid #5eafcb;
    font-size: 0.8rem;
}

.board-note > span {
    display: grid;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    color: #1a6d89;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 700;
}

.board-note p {
    margin: 0;
}

/* Themes ------------------------------------------------------------------ */

.themes-section {
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

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

.theme-card {
    --theme-color: var(--aqua);
    display: flex;
    flex-direction: column;
    min-height: 15.5rem;
    justify-content: space-between;
    padding: 1.45rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(9, 33, 43, 0.12);
    border-radius: 0.85rem;
    box-shadow: 0 4px 0 rgba(9, 33, 43, 0.035);
    transition:
        color 210ms ease,
        background 210ms ease,
        border 210ms ease,
        box-shadow 210ms ease,
        transform 210ms ease;
}

.theme-card:nth-child(4n + 2) {
    --theme-color: var(--lime);
}
.theme-card:nth-child(4n + 3) {
    --theme-color: var(--coral);
}
.theme-card:nth-child(4n) {
    --theme-color: var(--lavender);
}

.theme-card:hover {
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: var(--shadow-soft);
    transform: translateY(-0.35rem);
}

.theme-index {
    display: grid;
    width: 2.05rem;
    height: 2.05rem;
    margin-bottom: 2.6rem;
    place-items: center;
    color: var(--ink);
    background: var(--theme-color);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 700;
}

.theme-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.06rem;
    font-weight: 760;
    letter-spacing: 0em;
    line-height: 1.08;
}

.theme-card p {
    margin-bottom: 0;
    color: #5a7178;
    font-size: 0.79rem;
    line-height: 1.45;
}

.theme-card:hover h3 {
    color: var(--paper);
}

.theme-card:hover p {
    color: rgba(245, 246, 239, 0.73);
}

/* Community and outcomes ------------------------------------------------- */

.community-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 0.75fr);
    overflow: hidden;
    gap: clamp(2rem, 8vw, 9rem);
    margin-bottom: clamp(5rem, 9vw, 8rem);
    padding: clamp(3.5rem, 7vw, 6.5rem);
    color: var(--paper);
    background: linear-gradient(120deg, #062029, #0d4852);
    border-radius: 1.6rem;
    box-shadow: var(--shadow);
}

.community-section::before {
    position: absolute;
    top: -20rem;
    right: -11rem;
    width: 39rem;
    height: 39rem;
    content: "";
    border: 1px solid rgba(216, 255, 82, 0.25);
    border-radius: 50%;
}

.community-copy {
    position: relative;
    z-index: 1;
}

.community-copy .eyebrow {
    color: var(--lime);
}

.community-copy h2 {
    max-width: 11ch;
    margin-bottom: 1.6rem;
    color: var(--paper);
}

.community-copy > p:not(.eyebrow) {
    max-width: 37rem;
    margin-bottom: 1rem;
    color: rgba(245, 246, 239, 0.78);
    font-size: 0.96rem;
}

.people-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.65rem;
}

.people-tags span {
    padding: 0.38rem 0.65rem;
    color: rgba(245, 246, 239, 0.86);
    border: 1px solid rgba(245, 246, 239, 0.33);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.community-art {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 20rem;
    place-items: center;
}

.community-art::before,
.community-art::after {
    position: absolute;
    width: min(25rem, 95%);
    aspect-ratio: 1;
    content: "";
    border-radius: 50%;
}

.community-art::before {
    border: 1px solid rgba(110, 224, 210, 0.48);
    animation: breathe 6s ease-in-out infinite;
}

.community-art::after {
    width: min(17rem, 67%);
    border: 1px dashed rgba(216, 255, 82, 0.55);
    animation: spin 20s linear infinite;
}

.community-symbol {
    position: relative;
    z-index: 2;
    color: var(--lime);
    font-size: clamp(3rem, 16vw, 6rem);
    line-height: 0.7;
    text-shadow: 0 0 35px rgba(216, 255, 82, 0.35);
    transform: rotate(8deg);
}

.community-caption {
    position: absolute;
    z-index: 3;
    right: 3%;
    bottom: 8%;
    color: rgba(245, 246, 239, 0.88);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.45;
    text-align: right;
}

.community-line {
    position: absolute;
    z-index: 2;
    bottom: 15%;
    left: 2%;
    width: 54%;
    height: 1px;
    background: var(--coral);
    transform: rotate(-18deg);
    transform-origin: left center;
}

.outcomes-section {
    padding-top: clamp(2.5rem, 4vw, 3.75rem);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.outcomes-grid article {
    min-height: 16rem;
    padding: 1.35rem 1.25rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition:
        color 200ms ease,
        background 200ms ease;
}

.outcomes-grid article:hover {
    color: var(--paper);
    background: var(--ink);
}

.outcomes-grid article > span {
    display: block;
    margin-bottom: 3.8rem;
    color: #147b7d;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0em;
    line-height: 1;
}

.outcomes-grid article:hover > span {
    color: var(--lime);
}

.outcomes-grid h3 {
    margin-bottom: 0.62rem;
    font-size: 1.16rem;
    font-weight: 770;
    letter-spacing: 0em;
}

.outcomes-grid article:hover h3 {
    color: var(--paper);
}

.outcomes-grid p {
    margin-bottom: 0;
    color: #5d747a;
    font-size: 0.78rem;
    line-height: 1.45;
}

.outcomes-grid article:hover p {
    color: rgba(245, 246, 239, 0.73);
}

/* Closing call to action and footer -------------------------------------- */

.contribution-banner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.5rem);
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 2rem;
    background: var(--lime);
    border: 1px solid #b5df28;
    border-radius: 1.35rem;
    box-shadow: 0 11px 0 rgba(9, 33, 43, 0.12);
}

.contribution-banner::after {
    position: absolute;
    top: -10rem;
    right: -6rem;
    width: 21rem;
    height: 21rem;
    content: "";
    border: 1px solid rgba(9, 33, 43, 0.18);
    border-radius: 50%;
}

.banner-star {
    position: relative;
    z-index: 1;
    color: #0e777b;
    font-size: clamp(1.1rem, 6vw, 2.3rem);
    line-height: 1;
    transform: rotate(13deg);
}

.contribution-banner > div,
.contribution-banner .button {
    position: relative;
    z-index: 1;
}

.contribution-banner .eyebrow {
    margin-bottom: 0.58rem;
    color: #166c70;
}

.contribution-banner h2 {
    font-size: clamp(1.4rem, 3.2vw, 2.3rem);
}

.contribution-banner p:not(.eyebrow) {
    margin: 0.65rem 0 0;
    color: #315054;
    font-size: 0.91rem;
}

.contribution-banner .button {
    white-space: nowrap;
}

.closing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.65rem 0 clamp(3rem, 6vw, 5.5rem);
}

footer {
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: 2.5rem;
    border-top: 1px solid var(--line);
}

.footer-top,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.footer-top {
    padding-bottom: 3rem;
}

.footer-top > p {
    margin: 0;
    color: #527078;
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.3vw, 1.8rem);
    font-style: italic;
    letter-spacing: 0em;
}

.footer-bottom {
    padding-top: 1.35rem;
    color: #5e747a;
    border-top: 1px solid var(--line);
    font-size: 0.69rem;
    font-weight: 700;
}

.footer-bottom span {
    margin-right: auto;
}

.footer-bottom a {
    padding-bottom: 0.08rem;
    border-bottom: 1px solid transparent;
}

.footer-bottom a:hover {
    color: var(--ink);
    border-color: currentColor;
}

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

@media (max-width: 71rem) {
    .header-inner {
        gap: 1.4rem;
    }

    .header-inner > nav {
        gap: 1.15rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.84fr);
        gap: 2.5rem;
    }

    .scope-art {
        width: min(100%, 29rem);
    }

    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-card {
        min-height: 13.5rem;
    }

    .outcomes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .outcomes-grid article {
        min-height: 14rem;
    }
}

@media (max-width: 58rem) {
    .header-inner {
        grid-template-columns: 1fr auto;
        min-height: 5rem;
    }

    .header-inner > nav,
    .header-inner > .portal {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.77fr);
        min-height: 0;
        gap: 1.75rem;
    }

    h1 {
        font-size: clamp(1.5rem, 8.3vw, 2.5rem);
    }

    .scope-art {
        min-width: 0;
    }

    .quick-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-facts > div {
        min-height: 8.2rem;
    }

    .quick-facts > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(245, 246, 239, 0.18);
    }

    .quick-facts > div:nth-child(4) {
        border-top: 1px solid rgba(245, 246, 239, 0.18);
    }

    .welcome-section,
    .section-heading,
    .community-section {
        grid-template-columns: 1fr;
    }

    .section-heading {
        gap: 1.3rem;
    }

    .section-heading > p {
        max-width: 34rem;
    }

    .community-section {
        gap: 1rem;
    }

    .community-art {
        min-height: 15rem;
    }

    .contribution-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .contribution-banner .button {
        grid-column: 2;
        width: fit-content;
    }
}

@media (max-width: 42rem) {
    .container,
    .mobile-nav {
        width: min(calc(100% - 2rem), 82.5rem);
    }

    .brand {
        font-size: 0.92rem;
    }

    .brand-mark {
        width: 2.28rem;
        height: 2.28rem;
    }

    .brand small {
        max-width: 13rem;
        font-size: 0.39rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 3.7rem;
        padding-bottom: 4.5rem;
    }

    h1 {
        font-size: clamp(1.8rem, 15vw, 2.5rem);
    }

    h2 {
        font-size: clamp(2.08rem, 10.7vw, 3.2rem);
    }

    .lead-copy {
        font-size: 0.96rem;
    }

    .hero-note {
        margin-top: 3.2rem;
    }

    .scope-art {
        width: min(100%, 26rem);
        justify-self: center;
    }

    .quick-facts {
        margin-bottom: 5rem;
        border-radius: 1.1rem;
    }

    .quick-facts > div {
        padding: 1.25rem;
    }

    .fact-number {
        font-size: 2.8rem;
    }

    .search-box {
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 3.35rem;
    }

    .search-hint {
        display: none;
    }

    .filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter {
        min-height: 2.55rem;
        padding: 0.45rem 0.55rem;
        font-size: 0.65rem;
    }

    .results-row {
        align-items: flex-start;
    }

    .view-controls {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

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

    .track-card[open] {
        grid-column: auto;
    }

    .track-card summary {
        grid-template-columns: 1.9rem minmax(0, 1fr) auto;
        gap: 0.75rem;
        padding: 1.22rem;
    }

    .track-card h3 {
        font-size: 1.16rem;
    }

    .track-body {
        grid-template-columns: 1fr;
        gap: 1.1rem;
        padding: 0 1.22rem 1.5rem;
    }

    .track-body ul {
        grid-template-columns: 1fr;
    }

    .track-top {
        justify-self: start;
    }

    .theme-grid,
    .outcomes-grid {
        grid-template-columns: 1fr;
    }

    .theme-card {
        min-height: 0;
    }

    .theme-index,
    .outcomes-grid article > span {
        margin-bottom: 1.7rem;
    }

    .outcomes-grid article {
        min-height: 0;
    }

    .community-section {
        padding: 2.2rem 1.35rem;
        margin-bottom: 4.5rem;
        border-radius: 1.15rem;
    }

    .community-art {
        min-height: 13rem;
    }

    .contribution-banner {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.65rem;
    }

    .banner-star {
        display: none;
    }

    .contribution-banner .button {
        grid-column: auto;
        width: 100%;
    }

    .closing-links,
    .footer-top,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom {
        gap: 0.9rem;
    }

    .footer-bottom span {
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
#topicSearch::-webkit-search-decoration,
#topicSearch::-webkit-search-cancel-button,
#topicSearch::-webkit-search-results-button,
#topicSearch::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Keep mobile content within the available page width. */
@media (max-width: 42rem) {
    #main .hero,
    #main .welcome-section,
    #main .section-heading,
    #main .track-grid,
    #main .track-body,
    #main .track-body ul,
    #main .theme-grid,
    #main .outcomes-grid,
    #main .community-section,
    #main .contribution-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    #main .hero > *,
    #main .welcome-section > *,
    #main .section-heading > *,
    #main .community-section > *,
    #main .contribution-banner > *,
    #main .results-row > *,
    #main .open-tracks-row > * {
        min-width: 0;
    }

    #main .hero::before {
        width: min(30rem, 90vw);
        height: auto;
        aspect-ratio: 1;
    }

    #main .contribution-banner .button {
        max-width: 100%;
        white-space: normal;
    }

    #main .results-row,
    #main .open-tracks-row {
        flex-wrap: wrap;
    }

    #main .filter,
    #main .text-link,
    #main .track-card h3,
    #main .track-body li {
        overflow-wrap: anywhere;
    }
}
