:root {
    --text-font: "Avenir Next", "Trebuchet MS", "DejaVu Sans", sans-serif;
    --header-font: "Gill Sans", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
    --bg: rgba(248, 249, 250, 1);
    --bg-soft: #151b24;
    --surface: rgba(20, 28, 39, 0.84);
    --surface-strong: rgba(28, 38, 52, 0.96);
    --surface-border: rgba(167, 185, 203, 0.12);
    --nav-panel-overlay: rgba(7, 12, 19, 0.99);
    --text: #edf2f7;
    --text-muted: #9fb0c4;
    --text-soft: #cbd5e1;
    --accent: #ffd166;
    --accent-strong: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.18);
    --success: #67e8a5;
    --success-soft: rgba(16, 185, 129, 0.14);
    --danger: #ff8c8c;
    --danger-soft: rgba(239, 68, 68, 0.18);
    --info: #93c5fd;
    --info-soft: rgba(59, 130, 246, 0.16);
    --shadow-lg: 0 24px 60px rgba(3, 8, 15, 0.42);
    --shadow-md: 0 16px 32px rgba(3, 8, 15, 0.28);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--text-font);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.1), transparent 28rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 24rem),
        linear-gradient(180deg, #0d1117 0%, #111926 46%, #0f1722 50%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 28rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 24rem),
        url("/uploads/media/media-206a1470c9428cc10c1994691ef09f8c.webp") center / cover no-repeat;
    opacity: 0.34;
    filter: blur(10px) saturate(1.04);
    transform: scale(1.05);
    animation: body-bg-vhs 27s ease-in-out infinite, body-vhs-glitch 30s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 3px, 3px 100%;
    opacity: 0.22;
    animation: vhs-scanlines 4s linear infinite, vhs-glitch-flicker 30s steps(1, end) infinite;
}

a {
    color: var(--text);
    text-decoration: none;
}

@keyframes body-bg-vhs {
    0%, 100% {
        transform: scale(1.05) translate(0, 0);
        filter: blur(10px) saturate(1.04);
        background-position: center;
    }
    8% {
        transform: scale(1.049) translate(-0.5px, 0.5px);
        filter: blur(10px) saturate(1.05);
        background-position: calc(50% + 1px) calc(50% - 1px);
    }
    18% {
        transform: scale(1.051) translate(0.5px, -0.5px);
        filter: blur(10.05px) saturate(1.05);
        background-position: calc(50% - 1px) calc(50% + 1px);
    }
    22% {
        transform: scale(1.05) translate(0, 0);
        background-position: center;
    }
    55% {
        transform: scale(1.049) translate(-0.5px, 0.5px);
        filter: blur(10px) saturate(1.05);
        background-position: calc(50% + 1px) calc(50% - 1px);
    }
    62% {
        transform: scale(1.051) translate(0.5px, -0.5px);
        filter: blur(10.05px) saturate(1.05);
        background-position: calc(50% - 1px) calc(50% + 1px);
    }
    68% {
        transform: scale(1.05) translate(0, 0);
        background-position: center;
    }
}

@keyframes body-vhs-glitch {
    0%, 16%, 100% {
        transform: scale(1.05) translate(0, 0);
    }
    4% {
        transform: scale(1.05) translate(3px, -2px);
    }
    7% {
        transform: scale(1.05) translate(-2px, 2px);
    }
    10% {
        transform: scale(1.05) translate(2px, -1px);
    }
    13% {
        transform: scale(1.05) translate(-1px, 1px);
    }
    15% {
        transform: scale(1.05) translate(1px, -1px);
    }
}

@keyframes vhs-scanlines {
    0% { opacity: 0.17; background-position: 0 0, 0 0; }
    50% { opacity: 0.24; background-position: 0 1px, 1px 0; }
    100% { opacity: 0.17; background-position: 0 0, 0 0; }
}

@keyframes vhs-glitch-flicker {
    0% { opacity: 0.22; }
    4% { opacity: 0.32; }
    8% { opacity: 0.18; }
    12% { opacity: 0.28; }
    16% { opacity: 0.20; }
    17%, 100% { opacity: 0.22; }
}

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

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

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 1rem 0 5rem;
}

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

.container-fluid {
    width: min(100%, calc(100% - 2rem));
    margin: auto;
}

.narrow {
    width: min(840px, calc(100% - 2rem));
}

.grid,
.cols-2,
.cols-3,
.cols-4,
.form-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

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

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

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-11 { grid-column: span 11; }
.span-12 { grid-column: span 12; }

.surface {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    border-radius: 10px;
    background: rgba(10, 16, 24, 0.02);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
}

.brand {
    font-family: var(--header-font);
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    font-weight: bolder;
    color: var(--accent);
}

.brand-icon {
    width: 2.5rem;
    height: 2.5rem;
}

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

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0);
    color: var(--text);
    padding: 0.65rem 1rem;
    cursor: pointer;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.nav-links,
.nav-actions,
.button-row,
.meta-row,
.card-footer,
.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: var(--text-soft);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-chip-link {
    min-width: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.user-chip-link:hover,
.user-chip-link:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.user-chip-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.user-chip-avatar,
.avatar-preview,
.table-avatar {
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.user-chip-avatar {
    width: 2.5rem;
    height: 2.5rem;
}

.user-chip-avatar-fallback,
.avatar-fallback,
.table-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text);
    background: rgba(245, 158, 11, 0.16);
}

.user-chip-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.user-chip-role {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.taxonomy-block {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0 1.25rem;
}

.taxonomy-row {
    display: grid;
    gap: 0.6rem;
}

.taxonomy-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.taxonomy-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.88rem;
}

.taxonomy-chip.is-active {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent);
}

.taxonomy-chip-category {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.24);
    color: #fbbf24;
}

.taxonomy-chip-category.is-active {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--accent);
}

.taxonomy-chip-tag {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
}

.taxonomy-chip-tag.is-active {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: #dbeafe;
}

.button,
.button-secondary,
.button-ghost,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #1a1f28;
    font-weight: 800;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover,
.button-danger:hover {
    transform: translateY(-1px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-soft);
}

.button-danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(255, 140, 140, 0.22);
    color: #fee2e2;
}

.button-block {
    width: 100%;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
}

.hero,
.auth-shell {
    padding-top: 1rem;
}

.settings-shell {
    padding-top: 1rem;
}

.hero-card,
.stat-card,
.form-card,
.detail-card,
.admin-panel {
    padding: 2rem;
}

.stack-md {
    display: grid;
    gap: 0.9rem;
}

.hero-banner {
    position: relative;
    min-height: 80vh;
    padding: 4rem 3rem;
    background: url("/uploads/media/media-a817fd02c96876c2a9fd620499b8a04d.webp") center / cover no-repeat;
    overflow: hidden;
    border: 4px solid rgba(--accent, 0.24);
    box-shadow: var(--shadow-lg);
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.28), transparent 22rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), transparent 18rem),
        linear-gradient(180deg, rgba(8, 15, 25, 0.18), rgba(8, 15, 25, 0.78));
    pointer-events: none;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 23, 0.32);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding: 2.25rem;
    margin-top: 25rem;
}

.hero-banner h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    margin-top: 0.5rem;
    line-height: 1.02;
}

.hero-banner .lead {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.82);
}

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

@keyframes hero-banner-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

.lead,
.section-intro,
.muted-line,
.footer-text,
.content-card p,
.admin-item p,
.detail-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.eyebrow,
.card-type,
.metric-label,
.badge {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 800;
}

.eyebrow,
.text-link,
.card-type {
    color: var(--accent);
}

h1,
h2,
h3,
.footer-title {
    margin: 0;
    font-family: var(--header-font);
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.35rem, 4.5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.3rem);
}

h3 {
    font-size: 1.25rem;
}

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

.content-card,
.empty-card,
.metric-card {
    padding: 1.4rem;
}

.content-card,
.admin-item {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.content-card {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    isolation: isolate;
}

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

.content-card.has-feature-image {
    background: rgba(20, 28, 39, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
}

.content-card.has-feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(12, 18, 26, 0.1), rgba(12, 18, 26, 0.68));
}

.content-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2;
    filter: blur(10px);
    transform: scale(1.08);
}

.card-footer {
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.metric-card {
    text-align: center;
}

.metrics-grid {
    align-items: stretch;
}

.metric-value {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--header-font);
    color: var(--accent);
}

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

.admin-item {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
}

.admin-item-copy {
    display: grid;
    gap: 0.65rem;
}

.admin-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: end;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
}

.field,
.checkbox-field {
    display: grid;
    gap: 0.5rem;
}

.field span,
.checkbox-field span {
    font-weight: 700;
    color: var(--text-soft);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 13, 20, 0.82);
    color: var(--text);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

textarea {
    min-height: 10rem;
    resize: vertical;
}

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

.checkbox-field {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.8rem;
}

.checkbox-field input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.checkbox-card {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.settings-grid {
    align-items: start;
}

.admin-dashboard-layout {
    align-items: start;
}

.summary-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 1.5rem;
    display: grid;
    gap: 0.9rem;
}

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

.summary-card.has-avatar-background {
    background: rgba(20, 28, 39, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
}

.summary-card.has-avatar-background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(12, 18, 26, 0.16), rgba(12, 18, 26, 0.74));
}

.summary-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.8;
    filter: blur(10px);
    transform: scale(1.08);
}

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

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

.dashboard-summary-item {
    align-content: start;
}

.dashboard-summary-item .metric-value {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1;
    text-align: left;
}

.dashboard-summary-item .metric-label {
    color: var(--text-soft);
    text-align: left;
}

.dashboard-link-block {
    display: grid;
    gap: 0.8rem;
}

.dashboard-link-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-link-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard-link-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
}

.dashboard-link-title {
    color: var(--text);
    font-weight: 800;
}

.dashboard-link-copy {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.admin-main {
    display: grid;
    gap: 1rem;
}

.content-detail-main {
    display: grid;
    gap: 1rem;
}

.content-detail-panel {
    display: grid;
    gap: 1.35rem;
}

.content-detail-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-detail-author-copy {
    display: grid;
    gap: 0.25rem;
}

.content-detail-author-name {
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.25;
}

.roadmap-profile-sidebar-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.roadmap-profile-sidebar-copy {
    display: grid;
    gap: 0.25rem;
}

.roadmap-profile-sidebar-name {
    font-size: 1.35rem;
    line-height: 1.05;
    color: var(--text);
}

.roadmap-profile-sidebar-handle {
    color: var(--text-muted);
}

.roadmap-project-list {
    display: grid;
    gap: 1rem;
}

.roadmap-project-item {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.roadmap-project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.roadmap-project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.roadmap-project-summary {
    margin: 0.85rem 0;
    color: var(--text-soft);
}

.roadmap-project-focus-box {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.roadmap-project-location {
    margin: 0;
}

.roadmap-subject-details summary {
    margin-top: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--accent);
    list-style: none;
    outline: none;
}

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

.roadmap-subject-details summary::after {
    content: ' ▼';
    font-size: 0.95rem;
    color: var(--accent);
}

.roadmap-subject-details[open] summary::after {
    content: ' ▲';
}

.roadmap-subject-list-secondary {
    margin-top: 1rem;
}

.content-detail-author-recent {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
}

.content-detail-author-recent:hover {
    text-decoration: underline;
}

.content-detail-taxonomy {
    gap: 1rem;
}

.content-detail-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.content-detail-breadcrumb-link {
    color: var(--text-soft);
    font-weight: 700;
}

.content-detail-breadcrumb-link:hover,
.content-detail-breadcrumb-link:focus-visible {
    color: var(--accent);
}

.content-detail-breadcrumb-current {
    color: var(--text);
    font-weight: 700;
}

.content-detail-breadcrumb-separator {
    color: var(--text-muted);
}

.content-detail-header {
    display: grid;
    gap: 0.9rem;
}

.admin-secondary-grid {
    align-items: start;
}

.avatar-stack {
    display: grid;
    justify-items: start;
    gap: 1rem;
}

.avatar-preview {
    width: 4rem;
    height: 4rem;
}

.avatar-preview-lg {
    width: 7rem;
    height: 7rem;
    font-size: 2rem;
}

.summary-grid {
    display: grid;
    gap: 0.85rem;
}

.summary-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-value {
    color: var(--text);
    font-weight: 700;
    word-break: break-word;
}

.stack-lg {
    display: grid;
    gap: 1.2rem;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
    gap: 1rem;
    align-items: start;
}

.editor-main {
    display: grid;
    gap: 0.75rem;
}

.editor-shell {
    display: grid;
    gap: 0.9rem;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.editor-toolbar-field {
    display: grid;
    gap: 0.35rem;
    min-width: 10rem;
}

.editor-toolbar-field span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.editor-button {
    width: auto;
}

.editor-surface {
    min-height: 22rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 13, 20, 0.82);
    color: var(--text);
    overflow-wrap: break-word;
    line-height: 1.7;
}

.editor-shell.is-editor-ready [data-editor-source] {
    display: none;
}

.editor-help {
    margin: 0;
}

.editor-sidebar {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.editor-media-list {
    display: grid;
    gap: 0.9rem;
}

.editor-media-item {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.editor-media-thumb-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
}

.editor-media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-media-copy {
    display: grid;
    gap: 0.75rem;
}

.editor-media-meta {
    word-break: break-all;
}

.media-alt-list {
    display: grid;
    gap: 0.8rem;
}

.media-alt-row {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.inline-form {
    margin: 0;
}

.flash-stack {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.alert {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: var(--success-soft);
    border-color: rgba(103, 232, 165, 0.25);
    color: #d1fae5;
}

.alert-error {
    background: var(--danger-soft);
    border-color: rgba(255, 140, 140, 0.22);
    color: #fee2e2;
}

.alert-info {
    background: var(--info-soft);
    border-color: rgba(147, 197, 253, 0.25);
    color: #dbeafe;
}

.article-body {
    display: grid;
    gap: 1.15rem;
    color: var(--text-soft);
    line-height: 1.85;
    width: 100%;
    max-width: 72ch;
    margin: 0 auto;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 1.7rem 0 0.8rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body figure,
.article-body hr {
    margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.3rem;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(245, 158, 11, 0.35);
}

.article-body blockquote {
    padding: 1rem 1.1rem;
    border-left: 4px solid rgba(245, 158, 11, 0.45);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body figure.content-image {
    width: auto;
    max-width: 100%;
}

.article-body figure.content-image.align-left {
    float: left;
    margin: 0.35rem 1.2rem 1rem 0;
}

.article-body figure.content-image.align-right {
    float: right;
    margin: 0.35rem 0 1rem 1.2rem;
}

.article-body figure.content-image.align-center {
    margin: 1rem auto;
}

.article-body figure.content-image.size-small {
    width: 10%;
}

.article-body figure.content-image.size-medium {
    width: 50%;
}

.article-body figure.content-image.size-large {
    width: 75%;
}

.article-body figure.content-image.size-full {
    width: 100%;
    max-width: 100%;
}

.article-body figure.content-image img {
    display: block;
    float: right;
    width: 10rem;
    height: auto;
    box-shadow: var(--shadow-md);
}

.article-body figcaption {
    margin-top: 0.55rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.code-block {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(8, 13, 20, 0.78);
    overflow-x: auto;
}

.site-footer {
    padding: 0 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
}

.footer-copy {
    display: grid;
    gap: 0.75rem;
}

.footer-links {
    justify-content: end;
    align-content: start;
}

.footer-link {
    padding: 0.2rem 0;
    color: var(--text-soft);
}

.footer-button {
    appearance: none;
    padding: 0.2rem 0;
    background: transparent;
    border: 0;
    color: var(--text-soft);
    cursor: pointer;
    text-align: left;
}

.table-card {
    display: grid;
    gap: 1rem;
}

.table-note {
    margin: 1rem 0 0;
}

.plugin-doc-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    color: var(--text-soft);
    word-break: break-word;
}

.plugin-error-copy {
    margin-top: 0.45rem;
}

.plugin-toggle-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.plugin-enable-field {
    width: auto;
    min-width: 0;
    grid-template-columns: auto auto;
    gap: 0.55rem;
}

.plugin-enable-field span {
    white-space: nowrap;
}

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

.data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.data-table-wide {
    min-width: 1240px;
}

.data-table th,
.data-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--text-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.table-cell-wrap {
    min-width: 10rem;
    color: var(--text-soft);
    word-break: break-word;
}

.table-actions {
    white-space: nowrap;
}

.table-action {
    width: auto;
    min-width: 7rem;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 12rem;
}

.table-avatar {
    width: 2.5rem;
    height: 2.5rem;
}

.file-help {
    margin: 0;
}

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

.media-card {
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.media-thumb-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
}

.media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card-copy {
    display: grid;
    gap: 0.75rem;
}

.media-url {
    word-break: break-all;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 1rem;
}

.cookie-banner-panel {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 1.4rem;
}

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

.cookie-banner-copy {
    display: grid;
    gap: 0.75rem;
}

.cookie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-muted);
}

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

.cookie-option {
    position: relative;
    display: block;
    min-height: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.cookie-option input {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}

.cookie-option-copy {
    display: grid;
    gap: 0.4rem;
}

.cookie-option-copy strong {
    color: var(--text);
}

.cookie-option-copy small {
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-option-required {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.08);
}

.cookie-note,
.cookie-status {
    margin: 0;
    color: var(--text-muted);
}

.cookie-status.is-error {
    color: #fee2e2;
}

.cookie-status:empty {
    display: none;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.roadmap-card,
.roadmap-project-card,
.roadmap-compact-card,
.roadmap-project-item,
.roadmap-task-item {
    display: grid;
    gap: 0.9rem;
}

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

.roadmap-layout {
    align-items: start;
}

.roadmap-hero-card,
.roadmap-profile-card {
    display: grid;
    gap: 1rem;
}

.roadmap-progress-block {
    display: grid;
    gap: 0.55rem;
}

.roadmap-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-soft);
}

.roadmap-progress-track {
    position: relative;
    width: 100%;
    height: 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.roadmap-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(147, 197, 253, 0.95));
}

.roadmap-subject-footer {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
}

.roadmap-subject-task {
    font-size: 0.95rem;
    line-height: 1.5;
}

.roadmap-subject-task-complete {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
}

.roadmap-task-list,
.roadmap-subject-list,
.roadmap-project-list,
.roadmap-sidebar-list {
    display: grid;
    gap: 1rem;
}

.roadmap-task-item {
    grid-template-columns: minmax(0, 1.8fr) minmax(16rem, 0.9fr);
    align-items: start;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.roadmap-task-copy {
    display: grid;
    gap: 0.55rem;
}

.roadmap-task-form {
    display: grid;
    gap: 0.7rem;
}

.roadmap-task-form .field {
    margin: 0;
}

.roadmap-sidebar-card {
    gap: 0.9rem;
}

.roadmap-sidebar-link {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.roadmap-sidebar-link:hover,
.roadmap-sidebar-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.08);
}

.roadmap-sidebar-link strong {
    color: var(--text);
}

.roadmap-sidebar-link span {
    color: var(--text-muted);
    line-height: 1.5;
}

.roadmap-compact-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.roadmap-project-item,
.roadmap-compact-card {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

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

.roadmap-profile-about,
.roadmap-profile-inline-card {
    display: grid;
    gap: 1rem;
}

.roadmap-profile-bio {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.roadmap-profile-facts-grid {
    align-items: stretch;
}

.roadmap-profile-fact {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.roadmap-profile-fact-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.roadmap-profile-fact-value {
    color: var(--text);
    font-size: 1.05rem;
}

.roadmap-profile-social-list {
    display: grid;
    gap: 0.75rem;
}

.roadmap-profile-social-link {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.roadmap-profile-social-link:hover,
.roadmap-profile-social-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.08);
}

.roadmap-profile-social-link strong {
    color: var(--text);
}

.roadmap-profile-social-link span,
.roadmap-profile-inline-card .muted-line {
    color: var(--text-muted);
    word-break: break-word;
}

.roadmap-profile-empty {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
}

@media (max-width: 1080px) {
    .grid-12 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .span-7,
    .span-8,
    .span-9,
    .span-10,
    .span-11,
    .span-12 {
        grid-column: span 6;
    }

    .span-5,
    .span-6 {
        grid-column: span 6;
    }

    .span-3,
    .span-4 {
        grid-column: span 3;
    }

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

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

    .footer-links {
        justify-content: start;
    }

    .cookie-options {
        grid-template-columns: 1fr;
    }

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

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .roadmap-task-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .container,
    .container-fluid,
    .narrow {
        width: min(100%, calc(100% - 1.25rem));
    }

    .header-inner {
        border-radius: 28px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-panel {
        position: fixed;
        top: 5.35rem;
        left: 0;
        right: 0;
        margin: 0 0.75rem;
        padding: 1.1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        overflow: hidden;
        isolation: isolate;
        border-radius: 24px;
        background: rgba(9, 14, 22, 0.5);
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(0);
    }

    .nav-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    .nav-panel > * {
        position: relative;
        z-index: 1;
    }

    .site-nav.is-open .nav-panel {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: var(--nav-panel-overlay);
    }

    .nav-links,
    .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link,
    .nav-actions .button,
    .nav-actions .button-secondary,
    .nav-actions .button-ghost,
    .inline-form,
    .inline-form .button-secondary,
    .roadmap-task-form .button {
        width: 100%;
    }

    .user-chip {
        width: 100%;
        border-radius: 18px;
        justify-content: flex-start;
    }

    .admin-item {
        flex-direction: column;
    }

    .admin-item-actions {
        justify-content: start;
    }

    .cookie-banner {
        padding: 0.75rem;
    }

    .cookie-banner-header {
        flex-direction: column;
    }

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

    .article-body figure.content-image.align-left,
    .article-body figure.content-image.align-right {
        float: none;
        margin: 1rem auto;
    }
}

@media (max-width: 720px) {
    .grid-12,
    .cols-2,
    .cols-3,
    .cols-4,
    .form-grid {
        grid-template-columns: 1fr;
    }

    [class^="span-"],
    [class*=" span-"] {
        grid-column: span 1;
    }

    .hero-card,
    .stat-card,
    .form-card,
    .detail-card,
    .admin-panel {
        padding: 1.35rem;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .button-row,
    .card-footer,
    .footer-links {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .button-secondary,
    .button-ghost,
    .button-danger {
        width: 100%;
    }

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

    .cookie-actions {
        flex-direction: column;
    }

    .editor-toolbar {
        flex-direction: column;
    }

    .editor-button {
        width: 100%;
    }

    .roadmap-compact-head,
    .roadmap-progress-header {
        flex-direction: column;
        align-items: start;
    }

    .content {
        padding-bottom: 3rem;
    }
}
