:root {
    --th-navy: #12215a;
    --th-navy-deep: #0b1640;
    --th-cyan: #38c3e4;
    --th-cyan-hot: #3bc1e6;
    --th-ink: #12215a;
    --th-paper: #ffffff;
    --th-mist: #f3fafc;
    --th-muted: #4a5678;
    --th-line: #d4deea;
    --th-max: 72rem;
    --th-font: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --th-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --th-shadow: 0 18px 50px rgb(18 33 90 / 0.08);
    --header-h: 5.15rem;
    --th-forest: var(--th-navy);
    --th-forest-deep: var(--th-navy-deep);
    --th-gold: var(--th-cyan);
    --th-cream: var(--th-mist);
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font: 1rem/1.65 var(--th-font);
    color: var(--th-ink);
    background:
        radial-gradient(1100px 520px at 8% -8%, rgb(56 195 228 / 0.12), transparent 58%),
        radial-gradient(800px 420px at 100% 0%, rgb(18 33 90 / 0.07), transparent 52%),
        linear-gradient(180deg, #f7fbfd 0%, var(--th-mist) 100%);
}

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

a {
    color: var(--th-navy);
}

a:hover,
a:focus-visible {
    color: var(--th-cyan-hot);
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3.5rem;
    z-index: 80;
    background: var(--th-cyan);
    color: var(--th-navy-deep);
    padding: 0.55rem 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
}

.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;
}

.wrap {
    width: min(100% - 2.5rem, var(--th-max));
    margin-inline: auto;
}

.wrap--narrow {
    width: min(100% - 2.5rem, 46rem);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition:
        background 0.35s var(--th-ease),
        backdrop-filter 0.35s var(--th-ease),
        box-shadow 0.35s var(--th-ease);
}

.public-home .site-header:not(.is-scrolled):not(.nav-open) {
    background: transparent;
}

.site-header.is-scrolled,
.site-header.nav-open,
.public-inner .site-header {
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgb(18 33 90 / 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding: 0.55rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand__logo {
    display: block;
    width: auto;
    height: 4.4rem;
    object-fit: contain;
    background: var(--th-paper);
    border-radius: 0.35rem;
}

.brand__logo--footer {
    height: 6.25rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.site-nav a {
    color: rgb(255 255 255 / 0.9);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.25s var(--th-ease);
}

.site-header.is-scrolled .site-nav a,
.site-header.nav-open .site-nav a,
.public-inner .site-nav a {
    color: var(--th-navy);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--th-cyan);
}

.access-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.access-cta__staff,
.access-cta__student {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgb(8 14 40 / 0.22);
}

.access-cta__staff {
    border: 2px solid #fff;
    background: #fff;
    color: var(--th-navy) !important;
}

.access-cta__student {
    border: 2px solid var(--th-cyan);
    background: var(--th-cyan);
    color: var(--th-navy-deep) !important;
    box-shadow: 0 10px 28px rgb(56 195 228 / 0.45);
}

.site-header.is-scrolled .access-cta__staff,
.public-inner .access-cta__staff {
    border-color: var(--th-navy);
    background: var(--th-navy);
    color: #fff !important;
}

.access-cta__staff:hover,
.access-cta__staff:focus-visible {
    transform: translateY(-1px);
    color: var(--th-navy) !important;
}

.site-header.is-scrolled .access-cta__staff:hover,
.public-inner .access-cta__staff:hover {
    background: var(--th-navy-deep);
    color: #fff !important;
}

.access-cta__student:hover,
.access-cta__student:focus-visible {
    background: var(--th-cyan-hot);
    border-color: var(--th-cyan-hot);
    color: var(--th-navy-deep) !important;
    transform: translateY(-1px);
}

.site-nav__cta {
    min-height: 2.55rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
}

.site-header.is-scrolled .site-nav__cta,
.site-header.nav-open .site-nav__cta,
.public-inner .site-nav__cta {
    background: var(--th-cyan);
    border-color: var(--th-cyan);
    color: var(--th-navy-deep) !important;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    background: transparent;
    color: var(--th-paper);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
}

.site-header.is-scrolled .nav-toggle,
.site-header.nav-open .nav-toggle,
.public-inner .nav-toggle {
    color: var(--th-navy);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: currentColor;
    content: "";
}

.nav-toggle__bars {
    position: relative;
}

.nav-toggle__bars::before {
    position: absolute;
    top: -6px;
}

.nav-toggle__bars::after {
    position: absolute;
    top: 6px;
}

.site-header.nav-open .nav-toggle__bars {
    background: transparent;
}

.site-header.nav-open .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 63.99rem) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        inset: var(--header-h) 0 auto;
        padding: 1rem 1.25rem 1.35rem;
        background: var(--th-paper);
        box-shadow: var(--th-shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .site-nav a,
    .site-header:not(.is-scrolled) .site-nav a {
        color: var(--th-navy);
    }

    .site-header .access-cta {
        display: none;
    }
}

.site-main {
    flex: 1;
    width: min(100% - 2.5rem, var(--th-max));
    margin: 0 auto;
    padding: calc(var(--header-h) + 2.25rem) 0 3.5rem;
}

.site-main--flush {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--th-cyan-hot);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow--on-navy {
    color: var(--th-cyan);
}

.lede {
    max-width: 40rem;
    font-size: 1.08rem;
    color: var(--th-muted);
}

.lede--on-navy {
    color: #d7e6f2;
}

.hero h1,
.hero-band h1,
.band h2,
.cta-band h2,
.convert__aside h2 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    max-width: 18ch;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    color: var(--th-paper);
    overflow: hidden;
}

.hero--narrow {
    min-height: 0;
    color: inherit;
    overflow: visible;
}

.hero--narrow h1 {
    max-width: none;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__scene {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(11 22 64 / 0.88) 0%, rgb(11 22 64 / 0.55) 52%, rgb(11 22 64 / 0.22) 100%),
        linear-gradient(0deg, rgb(11 22 64 / 0.72) 0%, transparent 48%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: calc(var(--header-h) + 3.25rem) 0 4.75rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.hero__rise {
    animation: rise 0.9s var(--th-ease) both;
}

.hero__rise--2 {
    animation-delay: 0.1s;
}

.hero__rise--3 {
    animation-delay: 0.2s;
}

.hero__rise--4 {
    animation-delay: 0.3s;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-drift {
    from {
        transform: scale(1.04) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.1) translate3d(-1.4%, -1.2%, 0);
    }
}

.trust-bar {
    background: var(--th-mist);
    border-bottom: 1px solid var(--th-line);
}

.trust-bar__grid {
    display: grid;
    gap: 0.85rem;
    padding: 1.5rem 0;
}

.trust-card {
    margin: 0;
    padding: 1.15rem 1.15rem 1.25rem;
    border-radius: 0.7rem;
    min-height: 7.25rem;
}

.trust-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
}

.trust-card strong {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.trust-card--learn {
    background: var(--th-cyan);
    color: var(--th-navy-deep);
}

.trust-card--learn strong {
    color: var(--th-navy);
}

.trust-card--innovate {
    background: var(--th-navy);
    color: #d7e6f2;
}

.trust-card--innovate strong {
    color: var(--th-cyan);
}

.trust-card--grow {
    background: var(--th-paper);
    color: var(--th-muted);
    border: 1px solid var(--th-line);
}

.trust-card--grow strong {
    color: var(--th-navy);
}

.trust-card--hub {
    background: var(--th-navy-deep);
    color: #c5d4e4;
}

.trust-card--hub strong {
    color: var(--th-cyan);
}

@media (min-width: 48rem) {
    .trust-bar__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.band {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.band--mist {
    background: var(--th-mist);
}

.band--navy {
    background: var(--th-navy);
    color: var(--th-paper);
}

.band--navy h2,
.band--navy h3 {
    color: var(--th-paper);
}

.belief h2 {
    max-width: 20ch;
}

.card-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.panel {
    background: var(--th-paper);
    border: 1px solid var(--th-line);
    padding: 1.4rem 1.35rem 1.5rem;
    border-radius: 0.75rem;
}

.finance-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.25rem 0 0;
    border-bottom: 1px solid var(--th-line);
}

.finance-nav a {
    margin-bottom: -1px;
    padding: 0.35rem 0 0.55rem;
    color: var(--th-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.finance-nav a[aria-current="page"] {
    color: var(--th-ink);
    border-bottom-color: var(--th-cyan);
}

.finance-nav a:focus-visible {
    outline: 2px solid var(--th-cyan);
    outline-offset: 3px;
}

.money-exception {
    color: #8d1d2c;
    font-weight: 600;
}

.panel h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.panel p {
    margin: 0;
    color: var(--th-muted);
}

.panel--on-navy {
    background: var(--th-navy-deep);
    border-color: #24356f;
}

.panel--on-navy p {
    color: #c5d4e4;
}

.panel--on-navy .button {
    margin-top: 1rem;
}

.pillar-card__kicker {
    margin: 0 0 0.4rem;
    color: var(--th-cyan-hot);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-list {
    margin-top: 2.25rem;
    border-top: 1px solid var(--th-line);
}

.service-row {
    display: grid;
    gap: 1.15rem;
    padding: 1.85rem 0;
    border-bottom: 1px solid var(--th-line);
}

.service-row h3 {
    margin: 0 0 0.55rem;
    font-size: 1.25rem;
}

.service-row p {
    margin: 0 0 0.85rem;
    color: var(--th-muted);
}

.service-row ul {
    margin: 0;
    padding-left: 1.1rem;
}

.service-row .button {
    align-self: center;
    justify-self: start;
}

@media (min-width: 48rem) {
    .card-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-row {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.slogan-path {
    list-style: none;
    counter-reset: slogan;
    margin: 2.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

.slogan-card {
    counter-increment: slogan;
    background: var(--th-paper);
    border: 1px solid var(--th-line);
    border-top: 4px solid var(--th-navy);
    border-radius: 0.85rem;
    padding: 1.55rem 1.45rem 1.7rem;
    box-shadow: var(--th-shadow);
}

.slogan-card::before {
    content: "0" counter(slogan);
    display: block;
    margin-bottom: 0.55rem;
    color: var(--th-cyan-hot);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.slogan-card--learn {
    border-top-color: var(--th-cyan);
}

.slogan-card--innovate {
    border-top-color: #1a8fb3;
}

.slogan-card__word {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--th-navy);
}

.slogan-card__word .accent {
    color: var(--th-cyan-hot);
}

.slogan-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.15rem;
}

.slogan-card p {
    margin: 0 0 0.9rem;
    color: var(--th-muted);
}

.slogan-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.slogan-card li {
    padding-left: 1.15rem;
    position: relative;
}

.slogan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--th-cyan);
}

@media (min-width: 64rem) {
    .slogan-path {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.faq {
    margin: 2rem 0 0;
}

.faq details {
    border-top: 1px solid var(--th-line);
}

.faq details:last-child {
    border-bottom: 1px solid var(--th-line);
}

.faq summary {
    cursor: pointer;
    padding: 1.05rem 0;
    font-weight: 700;
    list-style: none;
}

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

.faq p {
    margin: 0 0 1.1rem;
    color: var(--th-muted);
}

.cta-band {
    background:
        radial-gradient(circle at 88% 12%, rgb(56 195 228 / 0.2), transparent 26rem),
        linear-gradient(160deg, var(--th-navy) 0%, var(--th-navy-deep) 100%);
    color: var(--th-paper);
    padding: clamp(4rem, 8vw, 6.5rem) 1.25rem;
}

.cta-band__inner {
    width: min(100%, 44rem);
    margin-inline: auto;
}

.cta-band .hero__actions {
    margin-top: 1.35rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    margin-top: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: var(--th-navy);
    color: var(--th-paper);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--th-navy);
    border-radius: 0.35rem;
    cursor: pointer;
    font: inherit;
    transition:
        background 0.25s var(--th-ease),
        color 0.25s var(--th-ease),
        border-color 0.25s var(--th-ease),
        transform 0.25s var(--th-ease);
}

.button:hover,
.button:focus-visible {
    background: var(--th-navy-deep);
    color: var(--th-paper);
    transform: translateY(-1px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid var(--th-cyan);
    outline-offset: 3px;
}

.button--cyan {
    background: var(--th-cyan);
    border-color: var(--th-cyan);
    color: var(--th-navy-deep);
    margin-top: 0;
}

.button--cyan:hover,
.button--cyan:focus-visible {
    background: var(--th-cyan-hot);
    color: var(--th-navy-deep);
}

.button--ghost {
    background: transparent;
    color: var(--th-navy);
    border: 1px solid var(--th-navy);
    margin-top: 0;
}

.button--on-navy {
    background: transparent;
    color: var(--th-paper);
    border: 1px solid var(--th-cyan);
    margin-top: 0;
}

.button--on-navy:hover,
.button--on-navy:focus-visible {
    background: var(--th-cyan);
    color: var(--th-navy-deep);
}

.convert {
    display: grid;
    gap: 2.5rem;
}

.convert__aside {
    background: var(--th-paper);
    border: 1px solid var(--th-line);
    border-radius: 0.85rem;
    padding: 1.6rem 1.45rem;
    box-shadow: var(--th-shadow);
    align-self: start;
}

.convert__aside h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    max-width: none;
}

.convert__doors {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

.convert__doors p {
    margin: 0.3rem 0 0;
    color: var(--th-muted);
}

.convert__doors a {
    display: inline-block;
    margin-top: 0.35rem;
    font-weight: 700;
}

@media (min-width: 64rem) {
    .convert {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

.public-form,
.auth-form {
    max-width: 32rem;
    display: grid;
    gap: 0.9rem;
}

.public-form--panel,
.empty-state--panel {
    background: var(--th-paper);
    border: 1px solid var(--th-line);
    border-radius: 0.85rem;
    padding: 1.5rem 1.4rem;
    box-shadow: var(--th-shadow);
}

.ia-page {
    padding: 2.25rem 0 4rem;
}

.ia-page .hero--narrow {
    margin-bottom: 1.5rem;
}

.ia-page .lede {
    max-width: 40rem;
}

.ia-stack {
    display: grid;
    gap: 1.15rem;
    max-width: 44rem;
}

.ia-card {
    background: var(--th-paper);
    border: 1px solid var(--th-line);
    border-radius: 0.85rem;
    padding: 1.25rem 1.4rem;
    box-shadow: var(--th-shadow);
}

.ia-card h2 {
    margin: 0.2rem 0 0.5rem;
}

.ia-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.ia-metric {
    margin: 0.35rem 0 0;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--th-navy);
}

.ia-metric--on-navy {
    color: var(--th-cyan);
}

.site-nav a[aria-current="page"] {
    color: var(--th-cyan-hot);
}

.public-form .button,
.auth-form .button {
    justify-self: start;
    margin-top: 0.35rem;
}

.public-form label,
.auth-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.public-form input,
.public-form select,
.public-form textarea,
.auth-form input,
.auth-form select,
.auth-form textarea {
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--th-line);
    border-radius: 0.4rem;
    font: inherit;
    width: 100%;
    background: #f8fbfd;
}

.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus,
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: 2px solid rgb(56 195 228 / 0.45);
    border-color: var(--th-cyan);
}

.form-error {
    color: #8a1f11;
    background: #f8e6e2;
    padding: 0.75rem 1rem;
    max-width: 36rem;
}

.muted {
    color: var(--th-muted);
    font-size: 0.85rem;
}

.mobile-cta {
    display: none;
}

@media (max-width: 63.99rem) {
    body.public-home,
    body.public-inner {
        padding-bottom: 5rem;
    }

    .mobile-cta {
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        gap: 0.55rem;
        position: fixed;
        inset: auto 0 0;
        z-index: 40;
        padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
        background: rgb(255 255 255 / 0.96);
        box-shadow: 0 -12px 32px rgb(18 33 90 / 0.16);
    }

    .mobile-cta .access-cta__staff,
    .mobile-cta .access-cta__student {
        width: 100%;
        min-height: 2.85rem;
        margin: 0;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--th-ease), transform 0.8s var(--th-ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.site-footer {
    background: var(--th-navy-deep);
    color: #c5d4e4;
    padding: 3.25rem 0 1.6rem;
    font-size: 0.92rem;
}

.site-footer__grid {
    display: grid;
    gap: 1.85rem;
}

.site-footer__heading {
    margin: 0 0 0.55rem;
    color: var(--th-paper);
    font-weight: 800;
}

.site-footer__tag {
    margin: 0.75rem 0 0.35rem;
    color: var(--th-cyan);
    font-weight: 700;
}

.site-footer p {
    margin: 0 0 0.4rem;
}

.site-footer nav {
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.site-footer nav a {
    color: #d7e6f2;
    text-decoration: none;
    font-weight: 600;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
    color: var(--th-cyan);
}

.site-footer__legal {
    margin: 1.85rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #24356f;
    color: #9eb0c6;
}

@media (min-width: 64rem) {
    .site-footer__grid {
        grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

.flash {
    background: #e4f6fb;
    border: 1px solid #9ad8e8;
    color: var(--th-navy);
    padding: 0.75rem 1rem;
    max-width: 40rem;
}

.empty-state {
    color: var(--th-muted);
}

.data-table {
    width: 100%;
    max-width: 52rem;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--th-paper);
}

.data-table caption {
    text-align: left;
    font-weight: 600;
    color: var(--th-navy);
    padding-bottom: 0.5rem;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--th-line);
    text-align: left;
    padding: 0.55rem 0.75rem;
    vertical-align: top;
}

.stack-form {
    max-width: 24rem;
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0;
}

.stack-form h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--th-navy);
}

.stack-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.stack-form input,
.stack-form select {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--th-line);
    font: inherit;
}

.check-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.brand--app {
    color: var(--th-paper);
}

.brand--app .brand__logo {
    height: 4.4rem;
    background: var(--th-paper);
    padding: 0.2rem 0.25rem;
    border-radius: 0.4rem;
    object-fit: contain;
}

.org-tree {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.org-tree__node {
    margin: 0.4rem 0;
}

.org-tree__position,
.org-tree__head {
    font-size: 0.9rem;
    color: var(--th-muted);
    margin-left: 1rem;
}

.org-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.org-advanced {
    margin: 0 0 1.25rem;
}

.org-advanced summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--th-navy);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.kpi-card {
    background: var(--th-paper);
    border: 1px solid var(--th-line);
    padding: 0.85rem 1rem;
}

.kpi-card h2 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--th-muted);
}

.kpi-card__value {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
    font-weight: 750;
    color: var(--th-navy);
}

.kpi-card h2 a {
    text-decoration: none;
    color: inherit;
}

.whereabouts {
    background: var(--th-paper);
    border: 1px solid var(--th-line);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.whereabouts h2,
.whereabouts h2 + p {
    margin-top: 0;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.85rem 1.25rem;
    margin: 0;
}

.facts dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--th-muted);
}

.facts dd {
    margin: 0.15rem 0 0;
    font-weight: 650;
}

.file-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 1.25rem 0;
}

.file-tabs a {
    font-weight: 650;
    text-decoration: none;
}

.th-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.85rem;
    color: var(--th-muted);
}

.th-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.6rem;
    color: var(--th-line);
}

.th-breadcrumb a {
    text-decoration: none;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: end;
    margin: 1rem 0;
}

.filter-bar label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.85rem;
}

.filter-bar input,
.filter-bar select {
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--th-line);
    font: inherit;
}

.data-table--wide {
    max-width: none;
}

.minute-sheet {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem;
}

.minute-sheet li {
    border-top: 1px solid var(--th-line);
    padding: 1rem 0;
}

.file-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--th-cyan);
}

.file-timeline li {
    padding: 0.45rem 0 0.45rem 1rem;
}

.file-timeline time {
    display: block;
    font-size: 0.8rem;
    color: var(--th-muted);
}

.bottleneck {
    font-weight: 650;
    color: var(--th-navy);
}

/* ==========================================================================
   App shell: sidebar, rail, mobile drawer, header, account menu
   ========================================================================== */

.app-body {
    --app-nav-w: 16.5rem;
    --app-rail-w: 4.5rem;
    --app-nav-bg: #1b2a4a;
    --app-nav-ink: #d7e6f2;
    --app-nav-muted: #9eb0c6;
    --app-nav-hover: rgb(255 255 255 / 0.07);
    --app-nav-active: rgb(255 255 255 / 0.12);
    --app-badge: #dc2626;
    --app-speed: 180ms;
    background: #eef2f6;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--app-nav-w) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: #eef2f6;
    transition: grid-template-columns var(--app-speed) ease;
}

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-content {
    flex: 1 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

/* Sidebar ---------------------------------------------------------------- */

.app-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    overflow: hidden;
    background: var(--app-nav-bg);
    color: var(--app-nav-ink);
}

.app-nav :focus-visible {
    outline: 2px solid var(--th-cyan);
    outline-offset: -2px;
}

.app-nav__top {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 1rem 1rem 0.75rem;
}

.app-nav__brand {
    display: inline-flex;
    align-items: center;
    border-radius: 0.45rem;
    text-decoration: none;
}

.app-nav__logo {
    display: block;
    width: auto;
    height: 4.4rem;
    padding: 0.2rem 0.25rem;
    border-radius: 0.4rem;
    background: var(--th-paper);
    object-fit: contain;
}

.app-nav__mark {
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.28);
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.25rem 0.65rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 0.22) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0.4rem;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgb(255 255 255 / 0.22);
}

.nav-group {
    margin: 0 0 0.2rem;
}

.nav-group__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.6rem 0.65rem 0.4rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--app-nav-muted);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--app-speed) ease;
}

.nav-group__toggle:hover,
.nav-group__toggle:focus-visible {
    color: var(--th-paper);
}

.nav-group__label {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-group__chevron {
    flex: 0 0 auto;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.15rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform var(--app-speed) ease;
}

.nav-group--open > .nav-group__toggle .nav-group__chevron {
    transform: rotate(45deg);
}

.nav-group__items {
    display: grid;
    gap: 0.1rem;
    margin: 0;
    padding: 0 0 0.4rem;
    list-style: none;
}

.nav-group:not(.nav-group--open) .nav-group__items {
    display: none;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.4rem;
    color: var(--app-nav-ink);
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color var(--app-speed) ease, color var(--app-speed) ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: var(--app-nav-hover);
    color: var(--th-paper);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
    background: var(--app-nav-active);
    color: var(--th-paper);
    font-weight: 650;
    box-shadow: inset 3px 0 0 var(--th-cyan);
}

.nav-link__icon {
    flex: 0 0 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
    max-width: none;
    fill: none;
    stroke: currentColor;
}

.nav-link__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link__badge {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--app-badge);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.app-nav__foot {
    flex: 0 0 auto;
    padding: 0.55rem 0.65rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
}

/* Sidebar toggles -------------------------------------------------------- */

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: background-color var(--app-speed) ease, color var(--app-speed) ease;
}

.sidebar-toggle__icon,
.sidebar-toggle__icon::before,
.sidebar-toggle__icon::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.sidebar-toggle__icon {
    position: relative;
    flex: 0 0 auto;
}

.sidebar-toggle__icon::before,
.sidebar-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.sidebar-toggle__icon::before {
    top: -6px;
}

.sidebar-toggle__icon::after {
    top: 6px;
}

.sidebar-toggle--rail {
    justify-content: flex-start;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
    color: var(--app-nav-ink);
    font-size: 0.82rem;
}

.sidebar-toggle--rail:hover,
.sidebar-toggle--rail:focus-visible {
    background: var(--app-nav-hover);
    color: var(--th-paper);
}

.sidebar-toggle--rail .sidebar-toggle__icon {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.35rem 0 0.4rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    background: none;
    transform: rotate(45deg);
    transition: transform var(--app-speed) ease;
}

.sidebar-toggle--rail .sidebar-toggle__icon::before,
.sidebar-toggle--rail .sidebar-toggle__icon::after {
    content: none;
}

.sidebar-toggle--header {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    color: var(--th-navy);
}

.sidebar-toggle--header:hover {
    background: #eef2f6;
}

.app-nav-backdrop {
    display: none;
}

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

.main-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.6rem;
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    background: var(--th-paper);
    border-bottom: 1px solid #d7dee8;
}

.main-header :focus-visible {
    outline: 2px solid var(--th-navy);
    outline-offset: 2px;
}

.main-header__start,
.main-header__end {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.main-header__end {
    flex: 0 0 auto;
    gap: 0.5rem;
}

.main-header__title {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    color: var(--th-navy);
    font-size: 0.95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header__section {
    color: var(--th-muted);
    font-weight: 600;
}

.main-header__section::before {
    content: "/";
    content: "/" / "";
    margin: 0 0.5rem;
    color: #9aa8bc;
    font-weight: 400;
}

.header-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: var(--th-navy);
    text-decoration: none;
    transition: background-color var(--app-speed) ease;
}

.header-icon:hover,
.header-icon:focus-visible {
    background: #eef2f6;
    color: var(--th-navy);
}

.header-icon__svg {
    width: 1.3rem;
    height: 1.3rem;
    max-width: none;
    fill: none;
    stroke: currentColor;
}

.header-icon__badge {
    position: absolute;
    top: 0.1rem;
    right: 0;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border: 2px solid var(--th-paper);
    border-radius: 999px;
    background: var(--app-badge);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: calc(1.15rem - 4px);
    text-align: center;
    box-sizing: border-box;
}

/* Account menu ----------------------------------------------------------- */

.account-menu {
    position: relative;
}

.account-menu__trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 999px;
    color: var(--th-navy);
    list-style: none;
    cursor: pointer;
    transition: background-color var(--app-speed) ease;
}

.account-menu__trigger::-webkit-details-marker {
    display: none;
}

.account-menu__trigger::marker {
    content: "";
}

.account-menu__trigger::after {
    content: "";
    flex: 0 0 auto;
    width: 0.4rem;
    height: 0.4rem;
    margin: -0.2rem 0.15rem 0 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.account-menu__trigger:hover,
.account-menu[open] > .account-menu__trigger {
    background: #eef2f6;
}

.avatar {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #1b2a4a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.account-menu__text {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.account-menu__name {
    font-size: 0.85rem;
    font-weight: 650;
    white-space: nowrap;
}

.account-menu__role {
    color: var(--th-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.account-menu__panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 50;
    width: max-content;
    min-width: 14rem;
    max-width: min(20rem, calc(100vw - 2rem));
    padding: 0.35rem 0;
    border: 1px solid #d7dee8;
    border-radius: 0.5rem;
    background: var(--th-paper);
    box-shadow: 0 12px 32px rgb(15 23 42 / 0.16);
}

.account-menu__identity {
    display: grid;
    gap: 0.1rem;
    padding: 0.6rem 1rem 0.7rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid #e6ebf2;
    font-size: 0.85rem;
    line-height: 1.35;
}

.account-menu__identity strong {
    color: var(--th-navy);
}

.account-menu__identity span {
    color: var(--th-muted);
    overflow-wrap: anywhere;
}

.account-menu__link,
.account-menu__signout {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: 0;
    background: transparent;
    color: var(--th-navy);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account-menu__link:hover,
.account-menu__link:focus-visible,
.account-menu__signout:hover,
.account-menu__signout:focus-visible {
    background: #eef2f6;
    color: var(--th-navy);
}

.account-menu .account-menu__link:focus-visible,
.account-menu .account-menu__signout:focus-visible {
    outline-offset: -2px;
}

.account-menu__form {
    margin: 0.3rem 0 0;
    padding-top: 0.3rem;
    border-top: 1px solid #e6ebf2;
}

.account-menu__signout {
    color: #b91c1c;
    font-weight: 600;
}

.account-menu__signout:hover,
.account-menu__signout:focus-visible {
    color: #991b1b;
}

.create-menu {
    position: relative;
}

.create-menu__trigger {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--th-navy);
    border-radius: 999px;
    background: var(--th-navy);
    color: var(--th-paper);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.create-menu__trigger::-webkit-details-marker,
.create-menu__trigger::marker {
    display: none;
    content: "";
}

.create-menu__trigger:hover,
.create-menu__trigger:focus-visible,
.create-menu[open] > .create-menu__trigger {
    background: #24365f;
}

.create-menu__panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.4rem);
    right: 0;
    width: min(18rem, 80vw);
    max-height: min(70vh, 28rem);
    overflow: auto;
    padding: 0.45rem 0.35rem 0.7rem;
    border: 1px solid #d7dee8;
    border-radius: 0.6rem;
    background: var(--th-paper);
    box-shadow: 0 0.7rem 1.6rem rgba(15, 23, 42, 0.14);
}

.create-menu__group {
    margin: 0.55rem 0.7rem 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.create-menu__panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.create-menu__panel a {
    display: block;
    padding: 0.4rem 0.7rem;
    border-radius: 0.35rem;
    color: var(--th-navy);
    text-decoration: none;
}

.create-menu__panel a:hover,
.create-menu__panel a:focus-visible {
    background: #eef2f6;
}

.related-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin: 0 0 1rem;
}

.related-nav__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.related-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.15rem 0.65rem;
    border: 1px solid #d7dee8;
    border-radius: 999px;
    background: #fff;
    color: var(--th-navy);
    font-size: 0.85rem;
    text-decoration: none;
}

.related-nav a:hover,
.related-nav a:focus-visible {
    border-color: var(--th-navy);
}

.app-content h2[id],
.app-content section[id] {
    scroll-margin-top: 4.75rem;
}

.action-list {
    list-style: none;
    margin: 0 0 0.8rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.action-list a {
    color: var(--th-navy);
    font-weight: 650;
}

.workflow-count {
    margin: 0 0 1rem;
}

.workflow-note {
    margin: 0.6rem 0 0;
    color: var(--th-muted, #64748b);
    font-size: 0.9rem;
}

.workflow-count__badge {
    display: inline-flex;
    margin-left: 0.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #b45309;
    color: #fff;
    font-size: 0.75rem;
}

.workspace {
    max-width: 64rem;
    color: var(--th-navy);
}

.workspace-hero h1 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(2.15rem, 4vw, 3.15rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.workspace-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin: 0.85rem 0 0;
    color: var(--th-muted);
    font-size: 0.95rem;
}

.workspace-hero__meta span::after {
    content: "·";
    margin-left: 0.85rem;
    color: #b7c3d4;
}

.workspace-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.35rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--th-line);
}

.workspace-rail a,
.workspace-list a,
.workspace-columns a {
    color: var(--th-navy);
    text-decoration: none;
}

.workspace-rail a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    font-weight: 650;
}

.workspace-rail a:hover,
.workspace-rail a:focus-visible,
.workspace-list a:hover,
.workspace-list a:focus-visible,
.workspace-columns a:hover,
.workspace-columns a:focus-visible {
    color: #0e7490;
}

.workspace-rail a:focus-visible,
.workspace-list a:focus-visible,
.workspace-columns a:focus-visible {
    outline: 2px solid var(--th-navy);
    outline-offset: 3px;
    border-radius: 0.2rem;
}

.workspace-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--th-navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.workspace-block {
    margin-top: 2.75rem;
}

.workspace-block h2 {
    margin: 0 0 0.85rem;
    color: var(--th-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.workspace-list,
.workspace-columns ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.workspace-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    column-gap: 2.5rem;
}

.workspace-list a,
.workspace-columns a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
    border-bottom: 1px solid #e6edf4;
    font-weight: 600;
}

.workspace-list a::after,
.workspace-columns a::after {
    content: "→";
    color: #9eb0c6;
    font-weight: 500;
    opacity: 0;
}

.workspace-list a:hover::after,
.workspace-list a:focus-visible::after,
.workspace-columns a:hover::after,
.workspace-columns a:focus-visible::after {
    opacity: 1;
}

.workspace-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
    gap: 1.75rem 2.25rem;
}

.workspace-columns h3 {
    margin: 0 0 0.15rem;
    color: var(--th-navy);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard {
    display: grid;
    gap: 1rem;
}

.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    padding: 1.35rem 1.45rem 1.3rem;
    border-radius: 1rem;
    background:
        radial-gradient(80% 140% at 100% 0%, rgb(56 195 228 / 0.32), transparent 46%),
        linear-gradient(145deg, #16306e 0%, var(--th-navy) 48%, var(--th-navy-deep) 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgb(11 22 64 / 0.16);
}

.dashboard-hero__date {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    margin: 0 0 0.35rem;
    color: #c9d7ea;
    font-size: 0.84rem;
}

.dashboard-hero__date span::before {
    content: "·";
    margin-right: 0.7rem;
    color: rgb(255 255 255 / 0.45);
}

.dashboard-hero h1 {
    margin: 0;
    max-width: 18ch;
    color: #fff;
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.dashboard-hero__lead {
    margin: 0.45rem 0 0;
    max-width: 36rem;
    color: #d7e4f4;
    font-size: 1rem;
}

.dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-hero__primary,
.dashboard-hero__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.6rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-hero__primary {
    background: var(--th-cyan);
    color: var(--th-navy-deep);
}

.dashboard-hero__primary:hover,
.dashboard-hero__primary:focus-visible {
    background: #7ad8ee;
}

.dashboard-hero__ghost {
    border: 1px solid rgb(255 255 255 / 0.32);
    color: #fff;
}

.dashboard-hero__ghost:hover,
.dashboard-hero__ghost:focus-visible {
    background: rgb(255 255 255 / 0.1);
}

.dashboard-hero a:focus-visible,
.dashboard-queue a:focus-visible,
.dashboard-cluster a:focus-visible {
    outline: 2px solid var(--th-cyan);
    outline-offset: 3px;
}

.dashboard-hero__count {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #fff;
    color: var(--th-navy);
    font-size: 0.72rem;
}

.dashboard-attention h2,
.dashboard-panel h2,
.dashboard-figures h2 {
    margin: 0 0 0.7rem;
    color: var(--th-navy);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.dashboard-figures__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
}

.dashboard-figures__head h2 {
    margin: 0;
}

.dashboard-figures__head p {
    margin: 0;
    color: var(--th-muted);
    font-size: 0.88rem;
}

.dashboard-figures__body {
    display: grid;
    gap: 0.85rem;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid var(--th-line);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem 0.85rem;
    box-shadow: 0 8px 24px rgb(18 33 90 / 0.04);
}

.dashboard-work {
    display: grid;
    gap: 0.85rem;
    align-items: start;
}

.dashboard-quiet {
    margin: 0.2rem 0 0.4rem;
    color: var(--th-muted);
}

.dashboard-work__stack {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.dashboard-tasks li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #e7eef6;
}

.dashboard-tasks li:last-child {
    border-bottom: 0;
}

.dashboard-tasks p {
    margin: 0 0 0.25rem;
}

.dashboard-tasks a {
    display: inline;
    min-height: 0;
    border-bottom: 0;
    margin-left: 0.35rem;
}

.dashboard-tasks a::after {
    content: none;
}

.dashboard-task__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.35rem 0;
}

.dashboard-overdue {
    color: #b91c1c;
    font-size: 0.85rem;
}

.dashboard-queue {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-queue a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
    border-bottom: 1px solid #e7eef6;
    color: var(--th-navy);
    font-weight: 650;
    text-decoration: none;
}

.dashboard-queue li:last-child a {
    border-bottom: 0;
}

.dashboard-queue a::after {
    content: "›";
    color: #8ea3bd;
    font-size: 1.25rem;
    line-height: 1;
}

.dashboard-queue a:hover,
.dashboard-queue a:focus-visible {
    color: #0e7490;
}

.dashboard-cluster {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.45rem 0.85rem;
    align-items: start;
    padding: 0.55rem 0;
    border-top: 1px solid #e7eef6;
}

.dashboard-cluster:first-child {
    padding-top: 0;
    border-top: 0;
}

.dashboard-cluster h3 {
    margin: 0.35rem 0 0;
    color: var(--th-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-cluster__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dashboard-cluster a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    background: #f3f7fb;
    color: var(--th-navy);
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

.dashboard-cluster a:hover,
.dashboard-cluster a:focus-visible {
    background: #e5f6fb;
    color: var(--th-navy-deep);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 0.85rem;
}

.dashboard-panel--chart {
    padding: 1.05rem 1.15rem 1rem;
}

.dashboard-panel--chart .bi-chart figcaption strong {
    color: var(--th-navy);
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.dashboard-panel--chart .bi-chart figcaption span {
    color: var(--th-muted);
}

.dashboard .small-box-grid,
.dashboard .dashboard-charts {
    margin: 0;
}

.dashboard .small-box {
    border-radius: 0.85rem;
    box-shadow: 0 8px 24px rgb(18 33 90 / 0.04);
    transition: transform 0.2s var(--th-ease), border-color 0.2s var(--th-ease);
}

.dashboard .small-box:hover {
    transform: translateY(-2px);
}

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

    .dashboard .small-box:hover {
        transform: none;
    }
}

@media (max-width: 42rem) {
    .dashboard-cluster {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .dashboard-hero__actions,
    .dashboard-hero__primary,
    .dashboard-hero__ghost {
        width: 100%;
    }
}

@media (min-width: 68rem) {
    .dashboard-work {
        grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
    }
}

@media (max-width: 50rem) {
    .create-menu__panel {
        right: auto;
        left: 0;
    }
}

/* Desktop: rail mode ----------------------------------------------------- */

@media (min-width: 50.0625rem) {
    .app-shell--collapsed {
        grid-template-columns: var(--app-rail-w) minmax(0, 1fr);
    }

    .app-shell--collapsed .app-nav__top {
        justify-content: center;
        padding: 0.9rem 0 0.6rem;
    }

    .app-shell--collapsed .app-nav__logo {
        display: none;
    }

    .app-shell--collapsed .app-nav__mark {
        display: block;
    }

    .app-shell--collapsed .sidebar-nav {
        padding-inline: 0.5rem;
        scrollbar-width: none;
    }

    .app-shell--collapsed .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .app-shell--collapsed .nav-group__toggle {
        display: none;
    }

    .app-shell--collapsed .nav-group + .nav-group {
        margin-top: 0.3rem;
        padding-top: 0.4rem;
        border-top: 1px solid rgb(255 255 255 / 0.12);
    }

    .app-shell.app-shell--collapsed .nav-group .nav-group__items {
        display: grid;
        padding-bottom: 0.1rem;
    }

    .app-shell--collapsed .nav-link {
        justify-content: center;
        gap: 0;
        min-height: 2.5rem;
        padding: 0.6rem;
    }

    .app-shell--collapsed .nav-link__icon {
        flex-basis: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .app-shell--collapsed .nav-link__label,
    .app-shell--collapsed .sidebar-toggle__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .app-shell--collapsed .nav-link__badge {
        position: absolute;
        top: 0.15rem;
        right: 0.2rem;
        min-width: 1rem;
        height: 1rem;
        margin: 0;
        padding: 0 0.25rem;
        border: 2px solid var(--app-nav-bg);
        font-size: 0.58rem;
        line-height: calc(1rem - 4px);
        box-sizing: border-box;
    }

    /* Flyout label: position: fixed escapes the scrolling nav's overflow clip.
       site.js supplies --nav-flyout-y and adds app-shell--flyouts; without it the native title is used. */
    .app-shell--collapsed.app-shell--flyouts .nav-link:hover .nav-link__label,
    .app-shell--collapsed.app-shell--flyouts .nav-link:focus-visible .nav-link__label {
        position: fixed;
        top: var(--nav-flyout-y, 0);
        left: calc(var(--app-rail-w) + 0.35rem);
        z-index: 60;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0.35rem 0.65rem;
        overflow: visible;
        clip: auto;
        border-radius: 0.35rem;
        background: #0f1b33;
        color: #fff;
        font-size: 0.82rem;
        font-weight: 600;
        box-shadow: 0 6px 18px rgb(15 23 42 / 0.3);
        pointer-events: none;
        transform: translateY(-50%);
    }

    .app-shell--collapsed .app-nav__foot {
        padding-inline: 0.5rem;
    }

    .app-shell--collapsed .sidebar-toggle--rail {
        justify-content: center;
        padding-inline: 0;
    }

    .app-shell--collapsed .sidebar-toggle--rail .sidebar-toggle__icon {
        margin: 0 0.15rem 0 0;
        transform: rotate(-135deg);
    }
}

/* Mobile: off-canvas drawer ---------------------------------------------- */

@media (max-width: 50rem) {
    .app-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-nav {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 50;
        width: min(18rem, 86vw);
        visibility: hidden;
        transform: translateX(-100%);
        box-shadow: none;
        transition: transform var(--app-speed) ease, visibility 0s linear var(--app-speed);
    }

    .app-shell--nav-open .app-nav {
        visibility: visible;
        transform: translateX(0);
        box-shadow: 0.35rem 0 1.4rem rgb(15 23 42 / 0.28);
        transition: transform var(--app-speed) ease, visibility 0s;
    }

    .app-nav-backdrop:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 45;
        display: block;
        background: rgb(11 22 64 / 0.5);
    }

    body:has(.app-shell--nav-open) {
        overflow: hidden;
    }

    .main-header {
        gap: 0.5rem;
        padding: 0.45rem 0.75rem 0.45rem 0.5rem;
    }

    .account-menu__text {
        display: none;
    }

    .account-menu__trigger {
        padding-right: 0.4rem;
    }

    .app-content {
        padding: 1.25rem 1rem 2.5rem;
    }
}

@media (max-width: 36rem) {
    .main-header__section {
        display: none;
    }
}

@media print {
    .app-nav,
    .app-nav-backdrop,
    .main-header,
    .filter-bar .button,
    .mobile-cta,
    form {
        display: none !important;
    }

    .app-shell,
    .app-shell--collapsed {
        display: block;
    }

    .app-content {
        padding: 0;
    }
}


.content-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 0.75rem;
}

.content-header h1 {
    margin: 0.15rem 0 0;
}

.content-header__meta {
    margin: 0;
    color: var(--th-muted);
}

.small-box-grid,
.bi-grid {
    display: grid;
    gap: 0.85rem;
    margin: 1rem 0 1.25rem;
}

.small-box-grid {
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
}

.small-box {
    display: grid;
    align-content: space-between;
    gap: 0.35rem;
    min-height: 5.4rem;
    padding: 0.85rem 0.95rem 0.8rem;
    border: 1px solid var(--th-line);
    border-top: 3px solid var(--th-navy);
    border-radius: 0.6rem;
    background: #fff;
    color: var(--th-navy);
    text-decoration: none;
}

.small-box:hover,
.small-box:focus-visible {
    border-color: #9eb0c6;
}

.small-box:focus-visible {
    outline: 2px solid var(--th-navy);
    outline-offset: 2px;
}

.small-box__value {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.small-box__label {
    color: var(--th-muted);
    font-size: 0.82rem;
    line-height: 1.3;
}

.small-box--info { border-top-color: #0e7490; }
.small-box--primary { border-top-color: #1d4e89; }
.small-box--success { border-top-color: #0f766e; }
.small-box--warning { border-top-color: #b45309; }
.small-box--danger { border-top-color: #8d1d2c; }

.bi-grid {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.card {
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 0.35rem;
    box-shadow: 0 1px 1px rgba(27, 42, 74, 0.05);
    margin: 0 0 1rem;
}

.card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e6ebf2;
    font-weight: 700;
    color: #1b2a4a;
}

.card-body {
    padding: 1rem;
}

.bi-chart {
    margin: 0;
}

.bi-chart figcaption {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.85rem;
}

.bi-chart figcaption strong {
    color: var(--th-navy);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.bi-chart figcaption span,
.bi-chart__label {
    color: #5c6b80;
    font-size: 0.82rem;
}

.bi-chart__layout {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.85rem 1.1rem;
    align-items: center;
}

.bi-chart__ring svg {
    display: block;
    width: 100%;
    height: auto;
}

.bi-chart__ring-track {
    fill: none;
    stroke: #e6edf4;
    stroke-width: 14;
}

.bi-chart__total {
    fill: var(--th-navy);
    font-size: 22px;
    font-weight: 750;
}

.bi-chart__total-label {
    fill: #5c6b80;
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bi-chart__rows {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.bi-chart__row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 7.25rem) minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.bi-chart__name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--th-navy);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
}

.bi-chart__swatch {
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
}

.bi-chart__track {
    display: block;
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef6;
}

.bi-chart__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.bi-chart__count {
    display: grid;
    justify-items: end;
    min-width: 2.6rem;
    color: var(--th-muted);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.bi-chart__count strong {
    color: var(--th-navy);
    font-size: 0.92rem;
    font-weight: 750;
}

@media (max-width: 36rem) {
    .bi-chart__layout {
        grid-template-columns: 1fr;
    }

    .bi-chart__ring {
        width: 8.5rem;
        margin-inline: auto;
    }
}

.data-table {
    max-width: none;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.report-cards a {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid #d7dee8;
    border-radius: 0.35rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.report-cards a:hover,
.report-cards a:focus-visible {
    border-color: #007bff;
}

.portal-body {
    background: var(--th-mist);
}

.portal-bar {
    background: var(--th-navy);
    color: var(--th-paper);
    padding: 0.65rem 0;
}

.portal-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
}

.portal-bar__label {
    margin: 0;
    font-weight: 700;
    color: var(--th-cyan);
}

.portal-bar__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-bar__who {
    font-size: 0.9rem;
}

.portal-bar .button {
    background: transparent;
    color: var(--th-paper);
    border-color: rgb(255 255 255 / 0.35);
}

.portal-main {
    padding: 2rem 0 3.5rem;
}

.portal-intro h1 {
    margin: 0.2rem 0 0.6rem;
}

.portal-facts {
    display: grid;
    gap: 0.75rem;
    max-width: 32rem;
    margin: 1.25rem 0;
}

.portal-facts div {
    display: grid;
    gap: 0.15rem;
}

.portal-facts dt {
    color: var(--th-muted);
    font-size: 0.85rem;
}

.portal-facts dd {
    margin: 0;
    font-weight: 700;
}

.portal-list {
    padding-left: 1.2rem;
}

/* Programme media: cover image on public programme cards */
.programme-media {
    margin: -1.25rem -1.4rem 1rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.85rem 0.85rem 0 0;
    background: var(--th-mist);
}

.programme-media__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programme-media__thumb {
    display: block;
    width: 4rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.35rem;
    background: var(--th-mist);
}

.programme-media--placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--th-navy) 0%, var(--th-cyan) 100%);
    color: var(--th-paper);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
}

.desk {
    display: grid;
    gap: 1rem;
    max-width: 68rem;
}

.desk-crumb {
    margin: 0;
    color: var(--th-muted);
    font-size: 0.85rem;
}

.desk-crumb a {
    color: var(--th-navy);
    font-weight: 600;
}

.desk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.desk-head h1 {
    margin: 0;
    color: var(--th-navy-deep);
    font-size: clamp(1.7rem, 2vw, 2.1rem);
    letter-spacing: -0.03em;
}

.desk-head p {
    margin: 0.35rem 0 0;
    color: var(--th-muted);
}

.desk-new {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: 0.55rem;
    background: var(--th-navy);
    color: var(--th-paper);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.desk-new:hover,
.desk-new:focus-visible {
    background: var(--th-navy-deep);
    color: var(--th-paper);
}

.desk-new-menu {
    position: relative;
}

.desk-new-menu summary {
    list-style: none;
}

.desk-new-menu summary::-webkit-details-marker {
    display: none;
}

.desk-new-menu ul {
    position: absolute;
    z-index: 2;
    right: 0;
    min-width: 14rem;
    margin: 0.35rem 0 0;
    padding: 0.35rem;
    list-style: none;
    border: 1px solid var(--th-line);
    border-radius: 0.7rem;
    background: var(--th-paper);
    box-shadow: var(--th-shadow);
}

.desk-new-menu a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 0.45rem;
    color: var(--th-navy);
    font-weight: 600;
}

.desk-new-menu a:hover,
.desk-new-menu a:focus-visible {
    background: var(--th-mist);
}

.desk-switch {
    display: flex;
    gap: 0.4rem;
}

.desk-switch a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    color: var(--th-muted);
    font-weight: 700;
    text-decoration: none;
}

.desk-switch a[aria-current="page"] {
    background: #e7f7ea;
    color: #146c2e;
}

.desk-switch span,
.desk-kinds span {
    min-width: 1.3rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgb(20 108 46 / 0.12);
    font-size: 0.75rem;
    text-align: center;
}

.desk-panel {
    border: 1px solid var(--th-line);
    border-radius: 0.9rem;
    background: var(--th-paper);
    overflow: hidden;
}

.desk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--th-line);
}

.desk-kinds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.desk-kinds a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.1rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--th-line);
    border-radius: 999px;
    color: var(--th-navy);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.desk-kinds a[aria-current="page"] {
    border-color: #146c2e;
    background: #e7f7ea;
    color: #146c2e;
}

.desk-search input {
    width: min(16rem, 70vw);
    min-height: 2.4rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--th-line);
    border-radius: 0.6rem;
    background: var(--th-paper);
    color: var(--th-ink);
}

.desk-table {
    width: 100%;
    border-collapse: collapse;
}

.desk-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--th-line);
    color: var(--th-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

.desk-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--th-line);
    vertical-align: top;
}

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

.desk-table a {
    color: var(--th-navy-deep);
    font-weight: 700;
}

.desk-ref {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 0.4rem;
    background: #e7f7ea;
    color: #146c2e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.desk-meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--th-muted);
    font-size: 0.8rem;
}

.desk-empty {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 3.5rem 1rem;
    color: var(--th-navy-deep);
    text-align: center;
}

.desk-empty span {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 2px solid var(--th-line);
    border-radius: 999px;
    color: var(--th-muted);
    font-size: 1.2rem;
}

.desk-empty p {
    margin: 0;
    font-weight: 800;
}

.desk-table-wrap {
    overflow-x: auto;
}

@media (max-width: 40rem) {
    .desk-new-menu ul {
        right: auto;
        left: 0;
    }
}
.th-stage-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

/* Public site: technology-firm surface. Scoped so the staff app is unchanged. */
.firm-site {
    --firm-ink: #07101f;
    --firm-navy: #0b1736;
    --firm-line: rgb(56 195 228 / 0.22);
    --firm-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    background:
        radial-gradient(900px 420px at 100% -10%, rgb(56 195 228 / 0.08), transparent 60%),
        #f5f7fb;
    color: var(--firm-ink);
}

.firm-site .site-header,
.firm-site .site-header.is-scrolled,
.firm-site .site-header.nav-open,
.firm-site.public-inner .site-header,
.firm-site.public-home .site-header:not(.is-scrolled):not(.nav-open) {
    background: rgb(7 13 34 / 0.92);
    backdrop-filter: blur(16px);
    box-shadow: none;
    border-bottom: 1px solid var(--firm-line);
}

.firm-site .site-header__inner {
    min-height: 4.5rem;
}

.firm-site .brand {
    gap: 0.75rem;
}

.firm-site .brand__logo {
    height: 2.7rem;
    width: 2.7rem;
    padding: 0.15rem;
    border-radius: 2px;
    background: #fff;
}

.firm-site .brand__logo--footer {
    height: 3.4rem;
    width: 3.4rem;
}

.firm-site .brand__lockup {
    display: grid;
    gap: 0.05rem;
    line-height: 1.1;
}

.firm-site .brand__name {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.firm-site .brand__meta,
.firm-site .firm-console__bar,
.firm-site .firm-spec strong,
.firm-site .slogan-card::before {
    font-family: var(--firm-mono);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.firm-site .brand__meta {
    color: #7fe3f6;
    font-size: 0.62rem;
}

.firm-site .site-nav a,
.firm-site .site-header.is-scrolled .site-nav a,
.firm-site .site-header.nav-open .site-nav a,
.firm-site.public-inner .site-nav a,
.firm-site .nav-toggle,
.firm-site .site-header.is-scrolled .nav-toggle,
.firm-site .site-header.nav-open .nav-toggle,
.firm-site.public-inner .nav-toggle {
    color: rgb(255 255 255 / 0.88);
}

.firm-site .site-nav a {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.firm-site .site-nav__cta,
.firm-site .site-header.is-scrolled .site-nav__cta,
.firm-site .site-header.nav-open .site-nav__cta,
.firm-site.public-inner .site-nav__cta {
    border-radius: 2px;
    background: var(--th-cyan);
    border-color: var(--th-cyan);
    color: var(--th-navy-deep) !important;
}

.firm-site .firm-hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    background: #070d22;
}

.firm-site .firm-hero .hero__veil {
    background:
        linear-gradient(90deg, rgb(7 13 34 / 0.2) 0%, rgb(7 13 34 / 0.45) 100%),
        linear-gradient(180deg, rgb(7 13 34 / 0.2), transparent 30%);
}

.firm-site .firm-hero .hero__content {
    padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
}

.firm-site .firm-hero h1 {
    max-width: 12ch;
    font-size: clamp(3.1rem, 7vw, 5.6rem);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.firm-site .firm-hero .lede {
    max-width: 38rem;
    font-size: 1.12rem;
    color: #c5d4e6;
}

.firm-site .firm-hero__grid {
    display: grid;
    gap: 2.5rem;
    align-items: end;
}

.firm-site .firm-console {
    margin: 0;
    border: 1px solid var(--firm-line);
    background: rgb(8 16 40 / 0.72);
    backdrop-filter: blur(8px);
    border-radius: 2px;
}

.firm-site .firm-console__bar {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--firm-line);
    color: #7fe3f6;
    font-size: 0.68rem;
}

.firm-site .firm-console ol {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
}

.firm-site .firm-console li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
}

.firm-site .firm-console li + li {
    border-top: 1px solid rgb(255 255 255 / 0.06);
}

.firm-site .firm-console li > span {
    color: var(--th-cyan);
    font-family: var(--firm-mono);
    font-size: 0.75rem;
    padding-top: 0.2rem;
}

.firm-site .firm-console strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.firm-site .firm-console p {
    margin: 0.2rem 0 0;
    color: #b7c6d8;
    font-size: 0.92rem;
}

.firm-site .firm-spec {
    background: #070d22;
    border-top: 1px solid var(--firm-line);
    border-bottom: 1px solid var(--firm-line);
}

.firm-site .firm-spec .trust-bar__grid {
    gap: 0;
    padding: 0;
}

.firm-site .firm-spec .trust-card {
    min-height: 0;
    margin: 0;
    padding: 1.15rem 1.1rem;
    border-radius: 0;
    background: transparent;
    color: #d5e2ef;
}

.firm-site .firm-spec .trust-card + .trust-card {
    border-top: 1px solid rgb(255 255 255 / 0.08);
}

.firm-site .firm-spec strong {
    color: var(--th-cyan);
    font-size: 0.68rem;
}

.firm-site .firm-spec p {
    font-size: 0.95rem;
}

.firm-site .firm-statement {
    background: #fff;
}

.firm-site .firm-statement__grid {
    display: grid;
    gap: 1.5rem;
    align-items: end;
}

.firm-site .firm-statement h2,
.firm-site .firm-method h2,
.firm-site .firm-practice h2,
.firm-site .firm-faq h2 {
    max-width: 16ch;
    letter-spacing: -0.045em;
}

.firm-site .firm-method {
    background:
        linear-gradient(180deg, #f3f6fb 0%, #fff 100%);
}

.firm-site .slogan-card {
    border-radius: 2px;
    border: 1px solid #d7e0ec;
    border-top: 1px solid #d7e0ec;
    box-shadow: none;
    background:
        linear-gradient(#38c3e4, #38c3e4) 0 0 / 2.5rem 2px no-repeat,
        #fff;
}

.firm-site .slogan-card__word {
    letter-spacing: -0.05em;
}

.firm-site .firm-practice .service-row {
    align-items: start;
}

.firm-site .firm-practice .service-row h3 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    letter-spacing: -0.03em;
    max-width: 22ch;
}

.firm-site .pillar-card__kicker {
    font-family: var(--firm-mono);
    font-weight: 500;
    letter-spacing: 0.12em;
}

.firm-site .firm-impact {
    background:
        radial-gradient(700px 280px at 90% 0%, rgb(56 195 228 / 0.16), transparent 60%),
        #070d22;
}

.firm-site .panel,
.firm-site .panel--on-navy {
    border-radius: 2px;
    box-shadow: none;
}

.firm-site .firm-impact .panel--on-navy {
    background: rgb(255 255 255 / 0.03);
    border-color: var(--firm-line);
}

.firm-site .faq summary {
    letter-spacing: -0.02em;
}

.firm-site .firm-cta {
    border-top: 1px solid var(--firm-line);
    background:
        linear-gradient(180deg, transparent, rgb(56 195 228 / 0.05)),
        #070d22;
}

.firm-site .button {
    border-radius: 2px;
    letter-spacing: -0.01em;
}

.firm-site .site-footer {
    background: #050915;
    border-top: 1px solid var(--firm-line);
}

.firm-site .site-footer__heading {
    font-family: var(--firm-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7fe3f6;
}

.firm-site .site-footer__tag {
    font-family: var(--firm-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.firm-site.public-inner .ia-page .hero--narrow,
.firm-site.public-inner .convert .hero--narrow {
    margin-bottom: 1.75rem;
    padding: 1.75rem 1.5rem 1.6rem;
    background:
        linear-gradient(180deg, rgb(56 195 228 / 0.08), transparent 70%),
        #070d22;
    color: #fff;
    border-radius: 2px;
}

.firm-site.public-inner .hero--narrow h1,
.firm-site.public-inner .hero--narrow .lede {
    color: #fff;
}

.firm-site.public-inner .hero--narrow .lede {
    color: #c5d4e6;
}

.firm-site .ia-page .hero--narrow h1 {
    max-width: 18ch;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.firm-site .ia-card,
.firm-site .public-form--panel,
.firm-site .convert__aside {
    border-radius: 2px;
    box-shadow: none;
    border-color: #d7e0ec;
    background: #fff;
}

.firm-site .eyebrow {
    font-family: var(--firm-mono);
    font-weight: 500;
    letter-spacing: 0.14em;
}

@media (min-width: 64rem) {
    .firm-site .firm-hero__grid,
    .firm-site .firm-statement__grid {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
    }

    .firm-site .firm-spec .trust-bar__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .firm-site .firm-spec .trust-card + .trust-card {
        border-top: 0;
        border-left: 1px solid rgb(255 255 255 / 0.08);
    }
}

@media (max-width: 63.99rem) {
    .firm-site .site-nav,
    .firm-site .site-header.nav-open .site-nav {
        background: #070d22;
        border-bottom: 1px solid var(--firm-line);
    }

    .firm-site .site-nav a,
    .firm-site .site-header:not(.is-scrolled) .site-nav a {
        color: #fff;
    }

    .firm-site .brand__name {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .firm-site .hero__scene {
        animation: none;
    }
}

