:root {
    --bg: #eef3f8;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-tint: #f6f9fc;
    --ink: #12263a;
    --muted: #607487;
    --brand: #0f678d;
    --brand-deep: #0b2942;
    --brand-soft: #dfeaf4;
    --accent: #c7863d;
    --line: #dbe5ef;
    --line-strong: #c8d6e4;
    --shadow: 0 24px 70px rgba(11, 41, 66, 0.12);
    --shadow-soft: 0 16px 36px rgba(12, 45, 73, 0.08);
    --shadow-button: 0 14px 28px rgba(11, 41, 66, 0.18);
    --radius: 30px;
    --radius-sm: 20px;
    --radius-xs: 14px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Public Sans", "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #f5f8fc 0%, #eef3f8 42%, #f9fbfd 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 10%, rgba(199, 134, 61, 0.14), transparent 26%),
        radial-gradient(circle at 86% 14%, rgba(15, 103, 141, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 58%);
}

::selection {
    color: var(--brand-deep);
    background: rgba(15, 103, 141, 0.18);
}

img {
    max-width: 100%;
}

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

p,
li,
td,
th,
label,
input,
select,
textarea,
button {
    font-size: 1rem;
    line-height: 1.7;
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.8rem;
    font-family: "Libre Baskerville", Georgia, serif;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.page {
    min-height: 100vh;
}

.site-shell {
    min-height: 100vh;
}

.site-main {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.page--admin .top-strip,
.page--admin .site-footer,
.page--admin .nav-links,
.page--admin .nav-toggle {
    display: none;
}

.page--admin .nav-wrap {
    padding: 0.35rem 1rem;
}

.page--admin .nav-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.page--admin .brand {
    height: 56px;
}

.page--admin .brand__logo {
    width: 180px;
    margin: -8px 0 -8px -4px;
}

.page--admin .nav-actions > .button-row {
    gap: 0.55rem;
}

.page--admin .nav-actions .button {
    min-height: 38px;
    padding: 0.58rem 0.9rem;
    font-size: 0.86rem;
}

.page--admin .site-main {
    width: calc(100% - 2rem);
    max-width: none;
    padding-top: 0.35rem;
}

.top-strip {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.36rem max(1rem, calc((100vw - 1200px) / 2));
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(15, 103, 141, 0.1), rgba(255, 255, 255, 0.92));
    border-bottom: 1px solid rgba(15, 103, 141, 0.12);
}

.top-strip p,
.top-strip span {
    margin: 0;
}

.top-strip a {
    color: inherit;
}

.top-strip__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}

.top-strip__meta a {
    transition: color 0.2s ease;
}

.top-strip__meta a:hover {
    color: var(--brand-deep);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(180deg, rgba(245, 248, 252, 0.97), rgba(245, 248, 252, 0.88));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(18, 38, 58, 0.06);
    box-shadow: 0 10px 26px rgba(12, 45, 73, 0.05);
}

.nav-wrap {
    width: 100%;
    margin: 0;
    display: block;
    padding: 0.42rem max(1.35rem, calc((100vw - 1200px) / 2)) 0.36rem;
    background: rgba(255, 255, 255, 0.96);
}

.nav-wrap--authenticated {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    background: rgba(255, 255, 255, 0.98);
}

.site-header--authenticated {
    background: rgba(245, 248, 252, 0.96);
}

.nav-wrap--authenticated .nav-main {
    gap: clamp(0.7rem, 1.4vw, 1.35rem);
}

.nav-wrap--authenticated .brand {
    height: 64px;
}

.nav-wrap--authenticated .brand__logo {
    width: clamp(190px, 15vw, 238px);
    margin: -10px 0 -10px -4px;
}

.nav-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.9rem, 2vw, 2rem);
}

.nav-main__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    height: 72px;
    overflow: hidden;
    min-width: 0;
    line-height: 0;
}

.brand__text {
    min-width: 0;
}

.brand strong {
    display: block;
    margin-bottom: 0.2rem;
    font-family: "Public Sans", "Segoe UI", sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.brand__logo {
    display: block;
    width: clamp(210px, 18vw, 270px);
    height: auto;
    flex-shrink: 0;
    margin: -12px 0 -12px -6px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    min-width: 0;
    padding-left: clamp(0.4rem, 1vw, 1rem);
    padding-top: 0;
    border-top: 0;
    overflow: visible;
}

.nav-wrap--authenticated .nav-links {
    flex-wrap: nowrap;
    gap: 0.32rem;
    padding-left: 0.35rem;
}

.nav-wrap--authenticated .nav-link,
.nav-wrap--authenticated .nav-trigger {
    min-height: 42px;
    padding: 0.68rem 0.78rem;
    font-size: 0.86rem;
}

.nav-item {
    position: relative;
}

.nav-link,
.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0.72rem 0.96rem;
    border-radius: 16px;
    border: 1px solid transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.89rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    background: transparent;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-trigger {
    cursor: pointer;
}

.nav-link.is-active,
.nav-link:hover,
.nav-trigger.is-active,
.nav-trigger:hover,
.nav-item.is-open > .nav-trigger {
    background: linear-gradient(180deg, #f7fbfe 0%, #e9f2f9 100%);
    border-color: rgba(15, 103, 141, 0.12);
    color: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(12, 45, 73, 0.08);
}

.nav-trigger__icon {
    width: 0.58rem;
    height: 0.58rem;
    flex-shrink: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.nav-item.is-open .nav-trigger__icon {
    transform: rotate(225deg) translateY(-1px);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    z-index: 50;
    width: min(340px, 78vw);
    padding: 0.9rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.99);
    border: 1px solid rgba(200, 214, 228, 0.92);
    box-shadow: 0 26px 50px rgba(11, 41, 66, 0.16);
}

.nav-submenu__header {
    padding: 0.15rem 0.4rem 0.85rem;
    border-bottom: 1px solid var(--line);
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-submenu__list {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.75rem;
}

.nav-submenu__link {
    display: grid;
    gap: 0.2rem;
    padding: 0.78rem 0.85rem;
    border-radius: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-submenu__link strong {
    color: var(--brand-deep);
    font-size: 0.94rem;
    font-weight: 800;
}

.nav-submenu__link span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.nav-submenu__link:hover {
    background: #f5f9fc;
    transform: translateX(2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-actions > .button-row {
    justify-content: flex-end;
    gap: 0.7rem;
}

.nav-user {
    position: relative;
    display: grid;
}

.nav-user__card {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    width: 100%;
    padding: 0.42rem 0.85rem 0.42rem 0.42rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 103, 141, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
    box-shadow: 0 12px 28px rgba(12, 45, 73, 0.08);
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-user__card:hover,
.nav-user.is-open .nav-user__card,
.nav-user:focus-within .nav-user__card {
    transform: translateY(-1px);
    border-color: rgba(15, 103, 141, 0.24);
    box-shadow: 0 16px 32px rgba(12, 45, 73, 0.1);
}

.nav-user__card:focus-visible {
    outline: 3px solid rgba(15, 103, 141, 0.2);
    outline-offset: 2px;
}

.nav-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 18px rgba(11, 41, 66, 0.16);
}

.nav-user__meta {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.nav-user__meta small {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user__meta strong {
    color: var(--brand-deep);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user__chevron {
    width: 0.58rem;
    height: 0.58rem;
    margin-left: auto;
    flex-shrink: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: var(--muted);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-user.is-open .nav-user__chevron,
.nav-user:focus-within .nav-user__chevron {
    color: var(--brand-deep);
    transform: rotate(225deg) translateY(-1px);
}

.nav-user__menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    z-index: 55;
    display: grid;
    gap: 0.3rem;
    width: min(220px, 82vw);
    padding: 0.55rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.99);
    border: 1px solid rgba(200, 214, 228, 0.92);
    box-shadow: 0 24px 50px rgba(11, 41, 66, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.45rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-user.is-open .nav-user__menu,
.nav-user:focus-within .nav-user__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-user__menu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    width: 100%;
    padding: 0.78rem 0.9rem;
    border-radius: 14px;
    color: var(--brand-deep);
    font-size: 0.92rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-user__menu-link:hover {
    background: #f5f9fc;
    transform: translateX(2px);
}

.nav-user__menu-link--danger {
    color: #8f1f17;
}

.nav-user__menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-user__menu-icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    padding: 0.78rem 1rem;
    border-radius: 12px;
    color: var(--brand-deep);
    font-weight: 700;
    background: var(--surface-strong);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.82rem 1.2rem;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.button:focus-visible {
    outline: 3px solid rgba(15, 103, 141, 0.2);
    outline-offset: 2px;
}

.button--primary {
    color: white;
    background: linear-gradient(135deg, var(--brand) 0%, #1681b0 100%);
    box-shadow: var(--shadow-button);
}

.button--dark {
    color: white;
    background: linear-gradient(135deg, var(--brand-deep) 0%, #123f61 100%);
    box-shadow: var(--shadow-button);
}

.button--ghost {
    color: var(--brand-deep);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.92);
}

.button--ghost:hover {
    background: #f7fafc;
}

.nav-actions .button {
    min-height: 40px;
    padding: 0.68rem 0.96rem;
    font-size: 0.9rem;
}

.site-main {
    padding: 0 0 4.5rem;
}

.hero-carousel {
    position: relative;
    max-width: none;
    margin: 0 calc(50% - 50vw) 2rem;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

.hero-carousel::before {
    content: "";
    position: absolute;
    left: -90px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 134, 61, 0.16), transparent 72%);
    z-index: -1;
}

.hero-carousel::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -150px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 103, 141, 0.16), transparent 68%);
    z-index: -1;
}

.hero-carousel__viewport {
    position: relative;
    overflow: hidden;
}

.hero-carousel__track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.hero-carousel__slide {
    position: relative;
    width: 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    min-height: clamp(620px, calc(100vh - 112px), 920px);
    overflow: hidden;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(9, 42, 66, 0.84) 0%, rgba(23, 101, 149, 0.7) 32%, rgba(23, 101, 149, 0.38) 54%, rgba(12, 31, 45, 0.2) 100%),
        var(--hero-slide-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: none;
}

.hero-carousel__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.12), transparent 18%);
    pointer-events: none;
}

.hero-carousel__slide::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 234, 122, 0.24), rgba(183, 234, 122, 0));
    pointer-events: none;
}

.hero-carousel__content {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding:
        clamp(2.4rem, 4vw, 4.25rem)
        clamp(2rem, 4vw, 4rem)
        clamp(7rem, 10vw, 8.5rem)
        max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
    position: relative;
    z-index: 1;
}

.hero-carousel__content .eyebrow {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.hero-carousel__content .eyebrow::before {
    background: rgba(255, 255, 255, 0.74);
}

.hero-carousel__content h1 {
    max-width: 8ch;
    margin-bottom: 0;
    font-family: "Public Sans", "Segoe UI", sans-serif;
    font-size: clamp(3.1rem, 5.3vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.96;
    color: white;
}

.hero-title__nowrap {
    display: inline-block;
    white-space: nowrap;
}

.hero-carousel__subtitle {
    margin: 0;
    max-width: 28ch;
    font-size: 1.18rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
}

.hero-carousel__copy {
    margin: 0;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.86);
}

.hero-carousel__points {
    display: grid;
    gap: 0.7rem;
    max-width: 36ch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-carousel__points li {
    position: relative;
    padding-left: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.hero-carousel__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.hero-carousel__content .button-row {
    margin-top: 0.35rem;
}

.hero-carousel__content .button {
    min-width: 190px;
}

.hero-carousel__content .button--primary {
    background: linear-gradient(135deg, #c85f00 0%, #dc7100 100%);
    box-shadow: 0 18px 34px rgba(125, 58, 0, 0.3);
}

.hero-carousel__content .button--dark,
.hero-carousel__content .button--ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.hero-carousel__media {
    display: none;
}

.hero-carousel__image {
    display: none;
}

.hero-carousel__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: absolute;
    left: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
    right: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
    bottom: clamp(1.25rem, 3vw, 2rem);
    z-index: 4;
    margin-top: 0;
}

.hero-carousel__arrows {
    display: flex;
    gap: 0.7rem;
}

.hero-carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font: inherit;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.hero-carousel__arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(11, 41, 66, 0.18);
}

.hero-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-carousel__dot.is-active {
    background: white;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14);
    transform: scale(1.05);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: stretch;
    padding: clamp(2rem, 3vw, 3rem);
    margin-bottom: 2rem;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero::before {
    content: "";
    position: absolute;
    left: -90px;
    top: -110px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 134, 61, 0.18), transparent 70%);
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 103, 141, 0.16), transparent 68%);
    z-index: -1;
}

.hero--home {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
}

.hero--entry {
    max-width: none;
    min-height: clamp(620px, calc(100svh - 132px), 920px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding:
        clamp(2.25rem, 4vw, 4rem)
        max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem))
        clamp(2.25rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
}

.hero--entry .hero__content {
    justify-content: center;
    min-height: 100%;
}

.hero--entry .hero__subtitle {
    max-width: 28ch;
    font-size: clamp(1.1rem, 1.6vw, 1.34rem);
    line-height: 1.55;
}

.hero--entry .hero__panel {
    align-content: center;
}

.hero--entry .hero__panel-card {
    padding: 1.5rem 1.7rem;
}

.page--home .hero--home {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: max(1.5rem, calc((100vw - 1200px) / 2));
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero__content {
    display: flex;
    flex-direction: column;
}

.hero__content h1 {
    font-size: clamp(3rem, 6vw, 5.25rem);
    max-width: 10ch;
    color: #102536;
}

.hero--inner .hero__content h1 {
    font-size: clamp(2.35rem, 4.5vw, 4rem);
    max-width: 12ch;
}

.hero__subtitle {
    margin: 0 0 1rem;
    max-width: 60ch;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--brand-deep);
}

.hero__content > p:last-of-type {
    max-width: 62ch;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.hero .button-row {
    margin-top: 0.2rem;
}

.hero .button {
    min-width: 190px;
}

.hero__aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.hero__story {
    padding: 1.35rem 1.45rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.hero__story-label {
    margin: 0 0 0.9rem;
    color: var(--brand-deep);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__checklist {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero__checklist li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--muted);
}

.hero__checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #2a87b5);
    box-shadow: 0 0 0 5px rgba(15, 103, 141, 0.12);
}

.hero__panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.hero__panel-card {
    padding: 1.35rem 1.45rem;
    border-radius: 24px;
    color: white;
    background: linear-gradient(145deg, var(--brand-deep), #0f6288);
    box-shadow: 0 18px 40px rgba(11, 41, 66, 0.18);
}

.hero__panel-card:nth-child(2) {
    background: linear-gradient(145deg, #10324c, #175375);
}

.hero__panel-card span {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.hero__panel-card strong {
    display: block;
    font-size: 1.22rem;
    line-height: 1.42;
}

.hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
}

.section--metrics .hero__metrics {
    margin-top: 0;
}

.hero__metric {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(246, 249, 252, 0.92);
    border: 1px solid var(--line);
}

.hero__metric strong {
    display: block;
    font-family: "Public Sans", "Segoe UI", sans-serif;
    font-size: 1.34rem;
    font-weight: 800;
    color: var(--brand-deep);
}

.hero__metric span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: 0.8;
}

.flash {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 220;
    width: min(560px, calc(100vw - 2rem));
    padding: 1rem 1.35rem;
    border-radius: 24px;
    border: 1px solid transparent;
    box-shadow: 0 26px 60px rgba(11, 41, 66, 0.16);
    transform: translate(-50%, -50%);
    text-align: center;
    backdrop-filter: blur(16px);
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.22s ease;
    animation: flash-popup-enter 0.22s ease;
}

.flash.is-hiding {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px));
}

.flash--success {
    color: #0d5d39;
    background: rgba(239, 248, 242, 0.96);
    border-color: rgba(84, 175, 120, 0.28);
}

.flash--error {
    color: #8a2d2d;
    background: rgba(252, 243, 243, 0.97);
    border-color: rgba(194, 81, 81, 0.24);
}

@keyframes flash-popup-enter {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 12px));
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.section,
.surface-card,
.dashboard-shell {
    position: relative;
    margin-bottom: 1.7rem;
    padding: 2rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.section {
    overflow: hidden;
}

.auth-stage {
    min-height: calc(100vh - 11rem);
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 4rem) 0 4rem;
}

.auth-popup {
    width: min(460px, 100%);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(15, 103, 141, 0.15);
    box-shadow: 0 28px 64px rgba(11, 41, 66, 0.18);
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 29, 46, 0.52);
    backdrop-filter: blur(8px);
}

.auth-popup--modal {
    width: min(520px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.auth-popup__head {
    margin-bottom: 1.2rem;
}

.auth-popup__head .eyebrow {
    margin-bottom: 0.55rem;
}

.auth-popup__head h1 {
    margin-bottom: 0.55rem;
}

.auth-popup__head p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.auth-popup__flash {
    margin-bottom: 1rem;
}

.auth-popup__body form {
    display: grid;
    gap: 1rem;
}

.auth-popup__body .button-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    align-items: stretch;
}

.auth-popup__body .button-row > * {
    min-width: 0;
}

.auth-popup__body .button-row form {
    margin: 0;
}

.auth-popup__body .button-row .button {
    width: 100%;
    justify-content: center;
}

.auth-popup__actions .button {
    width: 100%;
    justify-content: center;
}

.auth-popup__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.auth-popup__links a {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.94rem;
}

.auth-popup__links a:hover {
    color: var(--brand-deep);
}

.admin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.admin-sidebar {
    position: sticky;
    top: 0.75rem;
}

.admin-sidebar__card {
    gap: 0.9rem;
    padding: 1.1rem;
}

.admin-sidebar__card h2 {
    margin-bottom: 0.15rem;
    font-size: 1.7rem;
}

.admin-sidebar__card p:last-of-type {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.admin-sidebar__nav {
    display: grid;
    gap: 0.7rem;
}

.admin-sidebar__group {
    display: grid;
    gap: 0.3rem;
    padding: 0.2rem;
    border-radius: 18px;
    background: rgba(247, 251, 254, 0.5);
    border: 1px solid transparent;
}

.admin-sidebar__group.is-open {
    background: linear-gradient(180deg, rgba(240, 247, 252, 0.92), rgba(255, 255, 255, 0.94));
    border-color: rgba(15, 103, 141, 0.12);
}

.admin-sidebar__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    width: 100%;
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff 0%, #f6fafe 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-sidebar__item:hover,
.admin-sidebar__item.is-active {
    border-color: rgba(15, 103, 141, 0.34);
    background: rgba(15, 103, 141, 0.08);
    box-shadow: 0 8px 18px rgba(12, 45, 73, 0.06);
}

.admin-sidebar__item-text {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.admin-sidebar__item-text strong {
    color: var(--brand-deep);
    font-size: 0.95rem;
}

.admin-sidebar__item-text small {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.admin-sidebar__item-arrow {
    display: inline-flex;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.92rem;
    transition: transform 0.2s ease;
}

.admin-sidebar__group.is-open .admin-sidebar__item-arrow {
    transform: rotate(90deg);
}

.admin-sidebar__subtopics {
    display: none;
    gap: 0.3rem;
    padding: 0.1rem 0.25rem 0.35rem 0.35rem;
}

.admin-sidebar__group.is-open .admin-sidebar__subtopics {
    display: grid;
}

.admin-sidebar__subtopic {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.65rem 0.75rem 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-sidebar__subtopic::before {
    content: "";
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 999px;
    background: #23a55a;
    flex-shrink: 0;
}

.admin-sidebar__subtopic-text {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.admin-sidebar__subtopic-text strong {
    color: var(--brand-deep);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
}

.admin-sidebar__subtopic-text small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.admin-sidebar__subtopic:hover,
.admin-sidebar__subtopic.is-active {
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 103, 141, 0.14);
}

.admin-sidebar__subtopic.is-active {
    font-weight: 700;
}

.admin-sidebar__subtopic.is-active::before {
    background: var(--brand);
}

.admin-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.admin-topic-card {
    display: grid;
    gap: 0.18rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff 0%, #f6fafe 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-topic-card strong {
    color: var(--brand-deep);
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-topic-card span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.admin-topic-card:hover {
    border-color: rgba(15, 103, 141, 0.22);
    box-shadow: 0 10px 20px rgba(12, 45, 73, 0.06);
    transform: translateY(-1px);
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.admin-toolbar__search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-left: auto;
}

.admin-toolbar__search-input {
    width: min(320px, 100%);
    min-width: 220px;
    padding: 0.78rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-toolbar__search-input:focus {
    outline: none;
    border-color: rgba(15, 103, 141, 0.72);
    box-shadow: 0 0 0 4px rgba(15, 103, 141, 0.12);
}

.admin-toolbar__search-button,
.admin-toolbar__export {
    min-width: 0;
}

.admin-toolbar__clear {
    color: var(--brand);
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-toolbar__clear:hover {
    color: var(--brand-deep);
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 0.9rem;
    padding-top: 0.35rem;
}

.admin-pagination__summary {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-left: auto;
}

.admin-pagination__link,
.admin-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fbfdff;
    color: var(--brand-deep);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-pagination__link:hover {
    border-color: rgba(15, 103, 141, 0.24);
    background: rgba(15, 103, 141, 0.06);
}

.admin-pagination__link.is-active {
    border-color: rgba(15, 103, 141, 0.34);
    background: rgba(15, 103, 141, 0.1);
    color: var(--brand);
}

.admin-pagination__link.is-disabled {
    color: #9aaaba;
    background: #f5f8fb;
    pointer-events: none;
}

.admin-pagination__ellipsis {
    min-width: auto;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    padding-inline: 0.25rem;
}

.admin-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.admin-panel__topbar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.admin-profile-chip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    max-width: min(100%, 360px);
    margin-left: auto;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(12, 45, 73, 0.06);
}

.admin-profile-chip__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b2942 0%, #0f678d 100%);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.admin-profile-chip__body {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.admin-profile-chip__body small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-profile-chip__body strong {
    color: var(--brand-deep);
    font-size: 1rem;
    line-height: 1.25;
}

.admin-profile-chip__body span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-panel__hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    gap: 0.85rem;
    padding: 1.2rem 1.3rem;
}

.admin-panel__hero h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.admin-panel__hero .eyebrow {
    margin-bottom: 0.65rem;
}

.admin-panel__hero p:last-child {
    margin-bottom: 0;
    font-size: 0.98rem;
}

.admin-panel__hero-meta {
    display: grid;
    gap: 0.2rem;
    min-width: 220px;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f6fafc;
}

.admin-panel__hero-meta span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-panel__hero-meta strong {
    color: var(--brand-deep);
    font-size: 0.96rem;
}

.admin-panel__section {
    gap: 0.9rem;
    padding: 1.2rem 1.3rem;
}

.admin-panel__section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.admin-panel__section-head h2 {
    margin-bottom: 0;
    font-size: clamp(1.55rem, 2.3vw, 2rem);
}

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

.admin-metric-card {
    display: grid;
    gap: 0.35rem;
    min-height: 118px;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    border-top-width: 4px;
    color: var(--brand-deep);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 8px 18px rgba(12, 45, 73, 0.05);
}

.admin-metric-card span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-metric-card strong {
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.admin-metric-card p {
    margin-top: auto;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-metric-card--violet {
    border-top-color: #7b4fe0;
}

.admin-metric-card--blue {
    border-top-color: #3677e6;
}

.admin-metric-card--cyan {
    border-top-color: #18a8c9;
}

.admin-metric-card--pink {
    border-top-color: #c63fde;
}

.page--admin .stats-grid {
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.page--admin .stat {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(12, 45, 73, 0.05);
}

.page--admin .stat span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.page--admin .stat strong {
    font-size: 1.8rem;
}

.page--admin .tag {
    padding: 0.62rem 0.85rem;
    border-radius: 14px;
    font-size: 0.84rem;
}

.page--admin .data-table {
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(12, 45, 73, 0.05);
}

.page--admin .data-table th,
.page--admin .data-table td {
    padding: 0.72rem 0.8rem;
}

.page--admin .data-table th {
    font-size: 0.74rem;
}

.page--admin .data-table td {
    font-size: 0.9rem;
    vertical-align: top;
}

.page--admin .mini-note {
    margin-top: 0.75rem;
    font-size: 0.86rem;
}

.admin-inline-link {
    color: var(--brand);
    font-weight: 700;
}

.admin-inline-link:hover {
    color: var(--brand-deep);
}

.admin-profile-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-deep);
    font: inherit;
    font-weight: 700;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
}

.admin-profile-trigger:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.admin-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.admin-profile-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 41, 66, 0.42);
    backdrop-filter: blur(6px);
}

.admin-profile-modal__panel {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.35rem;
    border-radius: 24px;
    border: 1px solid rgba(200, 214, 228, 0.92);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 60px rgba(11, 41, 66, 0.18);
}

.admin-profile-modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fbfdff;
    color: var(--brand-deep);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.admin-profile-modal__head {
    margin-bottom: 1rem;
    padding-right: 3rem;
}

.admin-profile-modal__head h2 {
    margin-bottom: 0;
}

.admin-profile-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-profile-modal__item {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f8fbfe;
}

.admin-profile-modal__item span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-profile-modal__item strong {
    color: var(--brand-deep);
    font-size: 0.98rem;
    line-height: 1.5;
}

.admin-wrap {
    min-width: 260px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.admin-detail-stack {
    display: grid;
    gap: 0.3rem;
}

.admin-detail-stack span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.admin-detail-stack strong {
    color: var(--brand-deep);
}

.admin-status-form {
    display: grid;
    gap: 0.45rem;
    min-width: 148px;
}

.admin-status-form select {
    width: 100%;
    min-height: 40px;
    padding: 0.64rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    font: inherit;
}

.admin-status-form .button {
    min-height: 40px;
    padding: 0.7rem 0.9rem;
    font-size: 0.84rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill--yet-to-take {
    color: #8a5c12;
    background: #fff4da;
    border-color: #f1ddb0;
}

.status-pill--on-progress {
    color: #9d1f1f;
    background: #fde8e8;
    border-color: #f0bdbd;
}

.status-pill--completed {
    color: #176341;
    background: #e1f6eb;
    border-color: #b8e3c9;
}

.admin-log-list {
    display: grid;
    gap: 0.55rem;
}

.admin-log-line {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: #f4f8fb;
    border: 1px solid var(--line);
    color: var(--brand-deep);
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

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

    .admin-sidebar {
        position: static;
    }

    .admin-sidebar__nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-metric-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar__nav {
        grid-template-columns: 1fr;
    }

    .admin-panel__hero {
        align-items: start;
    }

    .admin-toolbar,
    .admin-toolbar__search {
        width: 100%;
    }

    .admin-toolbar__search {
        justify-content: stretch;
        margin-left: 0;
    }

    .admin-toolbar__search-input {
        width: 100%;
        min-width: 0;
    }

    .admin-status-form {
        min-width: 0;
    }

    .profile-status-stack {
        justify-items: start;
    }

    .admin-pagination,
    .admin-pagination__controls {
        width: 100%;
    }

    .admin-pagination__controls {
        justify-content: flex-start;
        margin-left: 0;
    }
}

.section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, rgba(15, 103, 141, 0.95), rgba(199, 134, 61, 0.65));
}

.section-header {
    margin-bottom: 1.5rem;
    max-width: 820px;
}

.section-header h2 {
    max-width: 20ch;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-header p:last-child {
    color: var(--muted);
    margin-bottom: 0;
}

.content-grid,
.card-grid,
.dashboard-grid,
.stats-grid,
.split-grid,
.feature-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

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

.card,
.stat,
.dashboard-card,
.detail-card,
.surface-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card,
.stat,
.dashboard-card,
.detail-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.5rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(12, 45, 73, 0.05);
}

.card:hover,
.stat:hover,
.dashboard-card:hover,
.detail-card:hover,
.surface-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.card h3,
.dashboard-card h3,
.detail-card h3 {
    margin-bottom: 0;
    font-size: 1.38rem;
}

.card p,
.dashboard-card p,
.detail-card p,
.section p,
.section li,
.surface-card p,
.surface-card li,
.dashboard-shell p {
    color: var(--muted);
}

.card .button,
.detail-card .button,
.dashboard-card .button {
    margin-top: auto;
    width: fit-content;
}

.card--contact-details {
    align-content: start;
}

.contact-map {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #edf5fa;
    aspect-ratio: 4 / 3;
    min-height: 240px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.stat {
    border-top: 4px solid rgba(15, 103, 141, 0.8);
    background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
}

.stat span {
    display: inline-block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.45rem;
    line-height: 1.35;
    color: var(--brand-deep);
}

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

.list-clean li {
    position: relative;
    padding: 1rem 0 1rem 1.35rem;
    border-bottom: 1px solid var(--line);
}

.list-clean li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.55rem;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: var(--accent);
}

.list-clean li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.list-clean li:last-child::before {
    top: 1.45rem;
}

.tag-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.92rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f5f9fc;
    color: var(--brand-deep);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.form-card form,
.section form {
    display: grid;
    gap: 1rem;
}

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

.field {
    display: grid;
    gap: 0.38rem;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--brand-deep);
    font-size: 0.93rem;
    font-weight: 700;
}

.required-marker {
    color: #b42318;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(15, 103, 141, 0.72);
    box-shadow: 0 0 0 4px rgba(15, 103, 141, 0.12);
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field small {
    color: var(--muted);
}

.otp-group {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    width: min(100%, 24rem);
}

.field .otp-slot {
    min-height: 3.8rem;
    padding: 0;
    border-radius: 16px;
    text-align: center;
    font-family: "Plus Jakarta Sans", "Public Sans", sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1;
    color: var(--brand-deep);
    caret-color: var(--brand);
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.field .otp-slot:focus {
    transform: translateY(-1px);
}

.password-input {
    position: relative;
}

.password-input > input {
    padding-right: 3.2rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5f7690;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.password-toggle:hover {
    background: rgba(15, 103, 141, 0.08);
    color: var(--brand);
}

.password-toggle:focus-visible {
    outline: none;
    background: rgba(15, 103, 141, 0.12);
    color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 103, 141, 0.16);
}

.password-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle__icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
}

.password-toggle__icon--hide {
    display: none;
}

.password-toggle.is-visible .password-toggle__icon--show {
    display: none;
}

.password-toggle.is-visible .password-toggle__icon--hide {
    display: inline-flex;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

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

.data-table th {
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 103, 141, 0.08);
}

.data-table td {
    color: var(--muted);
}

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

.mini-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.cta-band {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    overflow: hidden;
    padding: 1.8rem 2rem;
    border-radius: 32px;
    color: white;
    background: linear-gradient(135deg, #071d2e 0%, var(--brand-deep) 52%, #0f678d 100%);
    box-shadow: var(--shadow);
}

.cta-band::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-band > * {
    position: relative;
    z-index: 1;
}

.cta-band h3 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 0.35rem;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.cta-band .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.cta-band .button--ghost {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.cta-band .button--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.dashboard-shell__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.dashboard-shell__header p {
    margin: 0;
    color: var(--muted);
}

.dashboard-shell--image {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: stretch;
    min-height: clamp(460px, 52vw, 620px);
    padding: 0;
    border-radius: 38px;
    overflow: hidden;
    isolation: isolate;
    border: 0;
    box-shadow: 0 28px 60px rgba(12, 45, 73, 0.16);
    background:
        radial-gradient(circle at 72% 92%, rgba(143, 217, 109, 0.8), transparent 21%),
        linear-gradient(135deg, #2f6fa7 0%, #4aa2d4 42%, #71c57f 100%);
}

.dashboard-shell--image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 58% 50%, rgba(255, 255, 255, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.dashboard-shell--image::after {
    content: "";
    position: absolute;
    left: 55%;
    bottom: -24%;
    width: 340px;
    height: 340px;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(197, 239, 140, 0.46), rgba(197, 239, 140, 0));
}

.dashboard-shell__content {
    display: grid;
    align-content: center;
    gap: 1.35rem;
    padding: clamp(2.2rem, 4vw, 4rem);
    max-width: min(700px, 100%);
}

.dashboard-shell--image .eyebrow {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-shell--image .eyebrow::before {
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-shell--image h1 {
    max-width: 10ch;
    margin-bottom: 0;
    font-family: "Public Sans", "Segoe UI", sans-serif;
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.98;
    color: #ffffff;
}

.dashboard-shell__lead {
    max-width: 27ch;
    margin-bottom: 0;
    font-size: clamp(1.05rem, 1.55vw, 1.22rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.dashboard-shell__actions {
    margin-top: 0.1rem;
}

.dashboard-shell--image .button--primary {
    min-width: 236px;
    color: white;
    background: linear-gradient(135deg, #c96000 0%, #db6c00 100%);
    box-shadow: 0 18px 34px rgba(133, 59, 0, 0.28);
}

.dashboard-shell--image .button--ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.dashboard-shell__stats {
    width: min(620px, 100%);
    margin-top: 0.3rem;
}

.dashboard-shell--image .stat {
    border-top-color: rgba(255, 255, 255, 0.88);
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px rgba(8, 39, 68, 0.14);
}

.dashboard-shell--image .stat span,
.dashboard-shell--image .stat strong,
.dashboard-shell--image .stat p {
    color: white;
}

.dashboard-shell__media {
    position: relative;
    min-height: 100%;
    background-image: var(--dashboard-shell-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    clip-path: ellipse(88% 112% at 100% 50%);
}

.dashboard-shell__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 24, 36, 0.14), rgba(11, 24, 36, 0.06)),
        radial-gradient(circle at 24% 50%, rgba(255, 255, 255, 0.18), transparent 34%);
}

.dashboard-shell__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-workspace {
    --profile-accent: #0f678d;
    --profile-accent-deep: #0b2942;
    --profile-soft: #f3f8fc;
    --profile-line: rgba(15, 103, 141, 0.14);
    --profile-glow: rgba(15, 103, 141, 0.08);
    display: grid;
    gap: 1.4rem;
    margin: 1rem 0 2.4rem;
    font-family: "Plus Jakarta Sans", "Public Sans", "Segoe UI", sans-serif;
}

.profile-workspace--candidate {
    --profile-accent: #11707e;
    --profile-accent-deep: #10364d;
    --profile-soft: #f1f8f7;
    --profile-line: rgba(17, 112, 126, 0.15);
    --profile-glow: rgba(17, 112, 126, 0.09);
}

.profile-workspace--employer {
    --profile-accent: #0b5d88;
    --profile-accent-deep: #102f48;
    --profile-soft: #f1f6fb;
    --profile-line: rgba(11, 93, 136, 0.15);
    --profile-glow: rgba(11, 93, 136, 0.08);
}

.profile-workspace h1,
.profile-workspace h2,
.profile-workspace h3 {
    margin-bottom: 0;
    font-family: "Fraunces", "Libre Baskerville", Georgia, serif;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
    gap: 1.4rem;
    padding: 1.6rem;
    border-radius: 34px;
    border: 1px solid var(--profile-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 28%);
    box-shadow: 0 22px 54px var(--profile-glow);
}

.profile-hero__identity {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.profile-hero__avatar {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 26px;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(145deg, var(--profile-accent) 0%, var(--profile-accent-deep) 100%);
    box-shadow: 0 18px 34px rgba(16, 47, 72, 0.18);
}

.profile-hero__copy {
    display: grid;
    gap: 0.75rem;
}

.profile-hero__copy h1 {
    font-size: clamp(2.35rem, 4vw, 3.4rem);
}

.profile-hero__copy .eyebrow {
    margin-bottom: 0;
    color: var(--accent);
}

.profile-hero__title {
    margin: 0;
    color: var(--profile-accent);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
}

.profile-hero__summary,
.profile-body-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.75;
}

.profile-hero__aside {
    display: grid;
    gap: 1rem;
    align-content: space-between;
    padding: 1.1rem;
    border-radius: 26px;
    border: 1px solid var(--profile-line);
    background: linear-gradient(180deg, var(--profile-soft), rgba(255, 255, 255, 0.9));
}

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

.profile-stat {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--profile-line);
    background: rgba(255, 255, 255, 0.95);
}

.profile-stat span,
.profile-detail span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-stat strong,
.profile-detail strong {
    color: var(--profile-accent-deep);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.profile-inline-link {
    color: var(--profile-accent);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.profile-inline-link:hover {
    color: var(--profile-accent-deep);
}

.profile-action-stack {
    display: grid;
    gap: 0.75rem;
}

.profile-action-stack .button {
    width: 100%;
}

.profile-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.profile-nav {
    position: sticky;
    top: 0.9rem;
    display: grid;
    gap: 0.7rem;
    padding: 1.15rem;
    border-radius: 28px;
    border: 1px solid var(--profile-line);
}

.profile-nav__label {
    margin: 0 0 0.25rem;
    color: var(--profile-accent-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-nav__link {
    display: block;
    padding: 0.8rem 0.92rem;
    border-radius: 16px;
    border: 1px solid transparent;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.profile-nav__link:hover {
    transform: translateX(3px);
    border-color: var(--profile-line);
    color: var(--profile-accent-deep);
    background: var(--profile-soft);
}

.profile-main {
    display: grid;
    gap: 1.2rem;
}

.profile-card {
    padding: 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--profile-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(11, 41, 66, 0.05);
}

.profile-card h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.profile-hero:hover,
.profile-nav:hover {
    transform: none;
}

.profile-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.profile-card__head .eyebrow {
    margin-bottom: 0.3rem;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--profile-line);
    color: var(--profile-accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--profile-soft);
}

.profile-status-stack {
    display: grid;
    gap: 0.45rem;
    justify-items: end;
}

.profile-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    border: 1px solid var(--profile-line);
    color: var(--profile-accent-deep);
    font-size: 0.84rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
}

.profile-detail-grid,
.profile-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.profile-tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-detail,
.profile-tool {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--profile-line);
    background: var(--profile-soft);
}

.profile-tool h3 {
    font-size: 1.05rem;
}

.profile-tool p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

.profile-empty {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px dashed rgba(15, 103, 141, 0.28);
    background: linear-gradient(180deg, #fbfdff 0%, var(--profile-soft) 100%);
}

.profile-empty--filled {
    border-style: solid;
}

.profile-empty strong {
    color: var(--profile-accent-deep);
    font-size: 1rem;
}

.profile-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.profile-entry-list {
    display: grid;
    gap: 1rem;
}

.profile-entry-card {
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--profile-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--profile-soft));
}

.profile-entry-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
}

.profile-entry-card__head h3 {
    margin-bottom: 0.2rem;
    font-size: 1.22rem;
    color: var(--profile-accent-deep);
}

.profile-entry-card__head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-timeline {
    display: grid;
    gap: 0.95rem;
}

.profile-timeline__item {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--profile-line);
    border-left: 5px solid var(--profile-accent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--profile-soft));
}

.profile-timeline__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: start;
}

.profile-timeline__head h3 {
    font-size: 1.08rem;
}

.profile-timeline__head p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer {
    width: 100%;
    margin-top: 1rem;
    padding: 0;
    color: white;
    background: #0d1822;
}

.site-footer__inner {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 1.5rem 3rem;
    align-items: start;
    padding: 0 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
    display: grid;
    align-content: start;
    gap: 0.1rem;
}

.footer-brand__body {
    display: grid;
    gap: 0.6rem;
    max-width: 25rem;
    padding-left: 0;
}

.footer-brand p,
.footer-links a,
.footer-contact li,
.footer-contact a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-brand__head {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: -0.55rem;
}

.footer-brand__head h3 {
    margin-bottom: 0;
}

.footer-brand__logo {
    display: block;
    width: clamp(235px, 16vw, 285px);
    height: auto;
    object-fit: contain;
    margin: -12px 0 -18px -6px;
}

.footer-contact,
.footer-links__list {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-contact a,
.footer-links__list a {
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-contact a:hover,
.footer-links__list a:hover {
    color: white;
}

.footer-links h4 {
    margin-bottom: 0.55rem;
}

.footer-links {
    display: grid;
    align-content: start;
    align-self: end;
    gap: 0.55rem;
    justify-self: end;
    width: min(100%, 620px);
}

.footer-social {
    display: grid;
    gap: 0.7rem;
    margin-top: 0;
}

.footer-social h4 {
    margin-bottom: 0;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-social__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    background: rgba(9, 31, 44, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.social-link:hover {
    transform: translateY(-1px);
}

.social-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.3);
    outline-offset: 3px;
}

.social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-link--instagram {
    border-color: #d62976;
}

.social-link--instagram:hover {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%);
    box-shadow: 0 0 0 4px rgba(214, 41, 118, 0.18);
}

.social-link--facebook {
    border-color: #1877f2;
}

.social-link--facebook:hover {
    background: #1877f2;
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.18);
}

.social-link--youtube {
    border-color: #ff0000;
}

.social-link--youtube:hover {
    background: #ff0000;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.18);
}

.social-link--linkedin {
    border-color: #0a66c2;
}

.social-link--linkedin:hover {
    background: #0a66c2;
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.18);
}

.footer-links__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 2.5rem;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    position: relative;
    isolation: isolate;
    padding: 0.85rem 0;
    color: #0d1822;
    font-size: 0.88rem;
}

.footer-meta::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #ffffff;
    border-top: 1px solid rgba(13, 24, 34, 0.08);
    z-index: -1;
}

.footer-meta p {
    margin: 0;
}

.footer-powered {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-powered__link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-powered__link:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.footer-powered__link:focus-visible {
    outline: 3px solid rgba(13, 24, 34, 0.2);
    outline-offset: 4px;
    border-radius: 10px;
}

.footer-powered__logo {
    display: block;
    width: clamp(112px, 9vw, 156px);
    height: auto;
    object-fit: contain;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1120px) {
    .nav-main {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .nav-main__controls {
        display: grid;
        justify-items: end;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .page--admin .nav-actions {
        display: flex;
    }

    .page--admin .nav-main__controls {
        display: flex;
    }

    .nav-links.is-open {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        margin-top: 0.9rem;
        padding-top: 1rem;
        padding-left: 0;
        border-top: 1px solid var(--line);
    }

    .nav-actions.is-open {
        display: block;
        width: 100%;
    }

    .nav-actions.is-open > .button-row {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-top: 0.4rem;
    }

    .nav-actions.is-open > .nav-user {
        display: grid;
        gap: 0.7rem;
        width: 100%;
        padding-top: 0.4rem;
    }

    .nav-actions.is-open .nav-user__card,
    .nav-actions.is-open .nav-user__menu {
        width: 100%;
    }

    .nav-actions.is-open .nav-user__menu {
        position: static;
        margin-top: 0.05rem;
        box-shadow: none;
    }

    .nav-item,
    .nav-link,
    .nav-trigger {
        width: 100%;
        white-space: normal;
    }

    .nav-submenu {
        position: static;
        width: 100%;
        margin-top: 0.55rem;
        box-shadow: none;
    }

    .nav-wrap--authenticated .nav-links {
        flex-wrap: wrap;
    }

    .hero,
    .hero--home,
    .hero--inner,
    .hero-carousel__slide,
    .content-grid--2,
    .split-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel__content {
        padding:
            1.8rem
            1.5rem
            1.4rem;
    }

    .hero--entry {
        min-height: clamp(620px, calc(100svh - 132px), 920px);
        padding:
            2rem
            1.5rem;
    }

    .hero-carousel__slide {
        min-height: auto;
        border-radius: 0;
    }

    .hero-carousel__media {
        display: none;
    }

    .hero-carousel__controls {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        flex-wrap: wrap;
        padding: 1rem 1.5rem 0;
    }

    .hero-carousel__dots {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .site-main,
    .site-footer__inner {
        width: min(1200px, calc(100% - 1.25rem));
    }

    .page--admin .site-main {
        width: calc(100% - 1rem);
    }

    .page--admin .nav-wrap {
        padding: 0.35rem 0.75rem;
    }

    .top-strip {
        flex-direction: column;
        align-items: flex-start;
        padding-inline: 1rem;
    }

    .top-strip__meta {
        justify-content: flex-start;
    }

    .nav-wrap {
        gap: 0.2rem;
        padding: 0.56rem 1rem 0.44rem;
    }

    .brand {
        align-items: flex-start;
        height: 64px;
    }

    .brand strong {
        font-size: 1.45rem;
    }

    .brand small {
        font-size: 0.9rem;
    }

    .brand__logo {
        width: clamp(185px, 25vw, 230px);
        margin: -10px 0 -10px -5px;
    }

    .hero__content h1,
    .hero--inner .hero__content h1 {
        max-width: none;
    }

    .hero__metrics,
    .card-grid--2,
    .card-grid--3,
    .dashboard-grid,
    .stats-grid,
    .form-grid,
    .footer-links__list {
        grid-template-columns: 1fr;
    }

    .section,
    .surface-card,
    .dashboard-shell,
    .hero {
        padding: 1.45rem;
        border-radius: 0;
    }

    .hero-carousel {
        padding: 0;
        margin-bottom: 1.6rem;
    }

    .hero-carousel__slide {
        border-radius: 0;
    }

    .hero--entry {
        min-height: clamp(620px, calc(100svh - 132px), 920px);
        padding:
            1.8rem
            1.25rem;
    }

    .hero-carousel__content {
        padding: 1.7rem 1.25rem 1.15rem;
    }

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

    .hero-carousel__media {
        display: none;
    }

    .hero-carousel__image {
        max-height: 300px;
    }

    .cta-band {
        padding: 1.45rem;
        border-radius: 24px;
    }

    .dashboard-shell--image {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0;
        border-radius: 30px;
    }

    .dashboard-shell--image::before {
        background:
            radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.12), transparent 18%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    }

    .dashboard-shell--image::after {
        left: auto;
        right: -80px;
        bottom: -120px;
        width: 240px;
        height: 240px;
    }

    .dashboard-shell__content {
        max-width: none;
        padding: 1.6rem 1.45rem 1.25rem;
    }

    .dashboard-shell--image h1 {
        max-width: none;
    }

    .dashboard-shell__media {
        min-height: 320px;
        clip-path: ellipse(96% 100% at 50% 0%);
    }

    .dashboard-shell__media::after {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .profile-hero,
    .profile-layout,
    .profile-detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-nav {
        position: static;
    }

    .button-row,
    .nav-actions.is-open > .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero .button {
        min-width: 0;
    }

    .hero-carousel__content .button {
        min-width: 0;
    }

    .hero-carousel__arrows {
        width: 100%;
    }

    .hero-carousel__arrow {
        flex: 1 1 0;
    }

    .cta-band .button-row {
        width: 100%;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .site-main,
    .site-footer__inner {
        width: min(1200px, calc(100% - 1rem));
    }

    .page--admin .site-main {
        width: calc(100% - 0.75rem);
    }

    .page--admin .brand__logo {
        width: 150px;
    }

    .top-strip,
    .nav-wrap {
        padding-inline: 1rem;
    }

    .brand__logo {
        width: 170px;
        margin: -8px 0 -8px -4px;
    }

    .hero-carousel {
        padding-inline: 0;
    }

    .hero-carousel__content h1 {
        font-size: clamp(2.5rem, 12vw, 3.7rem);
    }

    .hero-carousel__subtitle {
        font-size: 1rem;
    }

    .hero-carousel__points li {
        font-size: 0.95rem;
    }

    .hero-carousel__controls {
        padding-inline: 1rem;
    }

    .footer-brand__head {
        flex-wrap: wrap;
    }

    .footer-brand__logo {
        width: min(245px, 100%);
    }

    .footer-brand__body {
        padding-left: 0;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .hero__story,
    .hero__panel-card {
        padding: 1.2rem;
    }

    .dashboard-shell--image {
        border-radius: 24px;
    }

    .dashboard-shell__content {
        padding-inline: 1.2rem;
    }

    .dashboard-shell__media {
        min-height: 260px;
    }

    .profile-hero {
        padding: 1.2rem;
    }

    .profile-hero__identity {
        flex-direction: column;
    }

    .profile-stat-grid,
    .profile-detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-card,
    .profile-nav {
        padding: 1.1rem;
    }

    .profile-card__head,
    .profile-timeline__head {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .admin-profile-modal__grid {
        grid-template-columns: 1fr;
    }
}
