:root {
    --ink: #16201b;
    --muted: #5c6b63;
    --paper: #fbfaf6;
    --line: #dfe6dc;
    --mint: #39b980;
    --leaf: #0d7b68;
    --sun: #f2c14e;
    --rose: #e96d65;
    --white: #fff;
    --panel: #f6f8f3;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--leaf); text-decoration: none; font-weight: 700; }
input, textarea, select, button { font: inherit; }
h1, h2, h3, p, small, a, span, strong { overflow-wrap: anywhere; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 52px);
    background: rgba(251, 250, 246, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; }
.brand-logo { display: block; width: auto; height: 62px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--sun);
    font-weight: 900;
}
.brand-mark.large { width: 52px; height: 52px; font-size: 26px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; align-items: center; }
.main-nav a { color: var(--muted); font-size: 14px; }
.main-nav a:hover { color: var(--ink); }
.nav-cta { padding: 9px 14px; border-radius: 8px; background: var(--mint); color: var(--ink) !important; }
.page { min-height: 70vh; }

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    align-items: center;
    gap: 38px;
    padding: 66px clamp(20px, 5vw, 78px);
    background:
        linear-gradient(120deg, rgba(57,185,128,.22), rgba(242,193,78,.18)),
        radial-gradient(circle at 78% 28%, rgba(233,109,101,.2), transparent 28%);
}
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 7vw, 86px); line-height: .95; letter-spacing: 0; }
.hero p { max-width: 660px; color: var(--muted); font-size: 19px; }
.eyebrow { color: var(--leaf); font-size: 13px; text-transform: uppercase; font-weight: 900; letter-spacing: .08em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font-weight: 850;
}
.button.primary { background: var(--leaf); color: var(--white); border-color: var(--leaf); }
.button.ghost { background: transparent; }
.button.danger { background: #a9362d; color: #fff; border-color: #a9362d; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22,32,27,.1); }
.button.small { min-height: 34px; padding: 6px 10px; font-size: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-visual {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(22,32,27,.12);
    box-shadow: 0 26px 70px rgba(22,32,27,.16);
    background: var(--white);
}
.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.home-hero {
    min-height: 540px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
    padding-top: 48px;
    padding-bottom: 48px;
}
.home-hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 6.4vw, 78px);
}
.home-desk {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 28px;
    align-items: start;
    padding: 46px clamp(20px, 5vw, 78px);
    background: #f6f8f3;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.home-news-column {
    min-width: 0;
    display: grid;
    gap: 16px;
}
.compact-heading {
    margin-bottom: 0;
}
.featured-news-card {
    display: grid;
    grid-template-columns: minmax(220px, .48fr) minmax(0, .52fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(22,32,27,.08);
}
.featured-news-card > div:last-child {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: clamp(22px, 4vw, 36px);
}
.featured-news-card h3 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
}
.featured-news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}
.featured-news-visual {
    display: grid;
    place-items: center;
    min-height: 340px;
    background:
        linear-gradient(135deg, rgba(23,33,28,.94), rgba(13,123,104,.88)),
        linear-gradient(45deg, #39b980, #f2c14e);
}
.featured-news-visual span {
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.42);
    color: var(--sun);
    font-size: 62px;
    font-weight: 950;
}
.news-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.news-row {
    display: grid;
    gap: 12px;
    align-content: space-between;
    min-height: 190px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(22,32,27,.05);
}
.news-row h3 {
    margin: 4px 0 8px;
    font-size: 22px;
    line-height: 1.08;
}
.news-row p {
    margin: 0;
    color: var(--muted);
}
.home-events-panel {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(23,33,28,.2);
    border-radius: 8px;
    background: #17211c;
    color: #fff;
    box-shadow: 0 18px 44px rgba(22,32,27,.14);
}
.events-panel-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
}
.events-panel-head p:not(.eyebrow) {
    margin-bottom: 0;
    color: #c8d6cd;
}
.home-event-list {
    display: grid;
    gap: 10px;
}
.home-event-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}
.home-event-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.12;
    color: #fff;
}
.home-event-card p {
    margin: 0;
    color: #dce8df;
    font-size: 14px;
}
.home-event-card small {
    color: #b9c8bf;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.tile {
    min-height: 150px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--paper);
    color: var(--ink);
}
.tile span { font-size: 24px; font-weight: 900; }
.tile small { color: var(--muted); }
.tile:hover { background: #eef9f1; }

.home-focus {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 46px clamp(20px, 5vw, 78px);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.focus-card {
    display: grid;
    align-content: space-between;
    gap: 18px;
    min-height: 290px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(22,32,27,.07);
}
.focus-card h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.focus-card p { margin: 0; color: var(--muted); }
.focus-card.dark {
    background: #17211c;
    color: #fff;
    border-color: #17211c;
}
.focus-card.dark p { color: #c8d6cd; }
.focus-card.dark a { color: var(--sun); }

.content-band, .narrow, .auth-page, .app-shell { padding: 56px clamp(20px, 5vw, 78px); }
.content-band { display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; align-items: start; }
.content-band.alt { background: #f1f7ef; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.content-band h2, .narrow h1, .panel h1 { margin-top: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards.single { grid-template-columns: 1fr; }
.card, .login-card, .form.compact, .comment-admin {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(22,32,27,.06);
    min-width: 0;
}
.card h3 { margin-top: 0; }
.count-hint {
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 900;
}
.pagination a.active {
    background: var(--leaf);
    border-color: var(--leaf);
    color: #fff;
}
.pagination a.disabled {
    pointer-events: none;
    opacity: .45;
}

.narrow { max-width: 980px; margin: 0 auto; width: 100%; }
.lead { font-size: 22px; color: var(--muted); }
.prose { font-size: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.prose img, .editor-surface img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 18px 0; }
.prose blockquote, .editor-surface blockquote { border-left: 4px solid var(--mint); margin-left: 0; padding-left: 18px; color: var(--muted); }
.page-body { min-height: 62vh; }
.sub-hero {
    display: grid;
    align-items: end;
    min-height: 360px;
    padding: 72px clamp(20px, 5vw, 78px);
    border-bottom: 1px solid var(--line);
}
.sub-hero > div { max-width: 920px; }
.sub-hero h1 { margin: 0; font-size: clamp(46px, 8vw, 98px); line-height: .92; }
.sub-hero p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 21px; }
.sub-hero-green { background: linear-gradient(135deg, #e5f8ec, #fff8dc); }
.sub-hero-sun { background: linear-gradient(135deg, #fff0bf, #e9f7ee); }
.sub-hero-rose { background: linear-gradient(135deg, #ffe1de, #eef9f1); }
.sub-hero-dark { background: #17211c; color: #fff; }
.sub-hero-dark p:not(.eyebrow) { color: #c8d6cd; }
.sub-hero-mint { background: linear-gradient(135deg, #e8fff3, #edf4ea); }
.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 28px;
    padding: 46px clamp(20px, 5vw, 78px);
    align-items: start;
}
.feature-prose { min-height: 100%; }
.feature-note {
    display: grid;
    gap: 8px;
    padding: 26px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #17211c;
    color: #fff;
}
.feature-note strong { font-size: 20px; color: #fff; }
.metric-number { font-size: 58px; line-height: .9; font-weight: 950; color: var(--sun); }
.section-wrap { padding: 46px clamp(20px, 5vw, 78px); }
.section-wrap.compact-top { padding-top: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 5vw, 58px); line-height: 1; }
.project-grid, .people-grid, .supporter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.project-card, .person-card, .supporter-card, .schedule-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(22,32,27,.07);
}
.info-card {
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 34px rgba(22,32,27,.07);
}
.step-number {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--leaf);
    font-size: 14px;
    font-weight: 950;
}
.project-card > div:last-child, .person-card, .supporter-card { padding: 22px; }
.project-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.project-showcase-card {
    display: grid;
    grid-template-rows: 240px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 34px rgba(22,32,27,.08);
    min-width: 0;
}
.project-showcase-card img,
.project-showcase-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-showcase-fallback {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 22% 30%, rgba(255,255,255,.85) 0 9%, transparent 10%),
        linear-gradient(135deg, #0d7b68, #39b980 54%, #f2c14e);
    color: #17211c;
    font-size: 78px;
    font-weight: 950;
}
.project-showcase-card > div:last-child {
    display: grid;
    gap: 10px;
    padding: 22px;
}
.project-showcase-card h3 { margin: 0; font-size: 28px; line-height: 1; }
.project-showcase-card p { margin: 0; color: var(--muted); }
.card-visual { min-height: 164px; background: linear-gradient(135deg, #39b980, #f2c14e); }
.visual-project {
    background:
        radial-gradient(circle at 24% 34%, #fff 0 9%, transparent 10%),
        radial-gradient(circle at 72% 60%, rgba(255,255,255,.8) 0 12%, transparent 13%),
        linear-gradient(135deg, #0d7b68, #39b980 46%, #f2c14e);
}
.workshop-rail { display: grid; gap: 12px; }
.rail-item {
    display: grid;
    gap: 4px;
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--line);
}
.rail-item strong { font-size: 24px; }
.workshop-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.workshop-type-card {
    display: grid;
    grid-template-rows: 210px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 34px rgba(22,32,27,.08);
    min-width: 0;
}
.workshop-type-card img,
.workshop-type-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.workshop-type-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0d7b68, #39b980);
    color: #fff;
    font-size: 70px;
    font-weight: 950;
}
.workshop-type-card > div:last-child {
    display: grid;
    gap: 10px;
    padding: 22px;
}
.workshop-type-card h3 { margin: 0; font-size: 28px; line-height: 1; }
.workshop-type-card p { margin: 0; color: var(--muted); }
.workshop-type-card small { display: block; }
.accent-dark .workshop-type-fallback { background: linear-gradient(135deg, #17211c, #0d7b68); }
.accent-sun .workshop-type-fallback { background: linear-gradient(135deg, #f2c14e, #39b980); color: var(--ink); }
.accent-rose .workshop-type-fallback { background: linear-gradient(135deg, #e96d65, #f2c14e); }
.accent-green .workshop-type-fallback { background: linear-gradient(135deg, #0d7b68, #d8f5e6); color: var(--ink); }
.timeline, .schedule-list { display: grid; gap: 14px; }
.timeline-item, .schedule-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.schedule-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.schedule-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 310px;
    box-shadow: 0 14px 34px rgba(22,32,27,.07);
    min-width: 0;
}
.schedule-card h3 { margin: 0; font-size: 26px; line-height: 1.05; }
.schedule-card .button { margin-top: auto; width: fit-content; }
.timeline-item time {
    font-weight: 950;
    color: var(--leaf);
}
.avatar {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #17211c;
    color: var(--sun);
    font-size: 32px;
    font-weight: 950;
}
.avatar.small { width: 56px; height: 56px; margin: 0; font-size: 24px; }
.team-profile-card {
    display: grid;
    grid-template-rows: 300px minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f7fbf5);
    min-width: 0;
}
.team-profile-card > div:last-child { padding: 22px; }
.team-profile-card h3 { margin: 0 0 6px; font-size: 28px; line-height: 1; }
.team-profile-card p { margin: 0 0 10px; color: var(--leaf); font-weight: 900; }
.team-profile-card small { display: block; font-size: 15px; }
.person-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #edf4ea;
}
.replacement-photo {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(23,33,28,.96), rgba(13,123,104,.88)),
        linear-gradient(45deg, #39b980, #f2c14e);
    color: var(--sun);
    font-size: 78px;
    font-weight: 950;
}
.supporter-card { display: flex; gap: 16px; align-items: flex-start; }
.partner-card {
    min-height: 190px;
    align-items: center;
    min-width: 0;
}
.supporter-logo {
    display: block;
    width: 86px;
    height: 86px;
    object-fit: contain;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}
.partner-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.partner-strip article {
    display: grid;
    gap: 6px;
    min-height: 94px;
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--line);
}
.partner-strip strong {
    font-weight: 950;
    font-size: 22px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 46px clamp(20px, 5vw, 78px);
}
.gallery-item {
    position: relative;
    min-height: 260px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #d8f5e6;
    box-shadow: 0 14px 34px rgba(22,32,27,.07);
    min-width: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-height: calc(100% - 28px);
    overflow: auto;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(23,33,28,.78);
    color: #fff;
    font-weight: 900;
}
.gallery-item figcaption strong,
.gallery-item figcaption span {
    display: block;
}
.gallery-item figcaption span {
    margin-top: 4px;
    color: #dce8df;
    font-size: 14px;
    font-weight: 650;
}
.placeholder-shot {
    position: relative;
    display: grid;
    align-items: end;
    padding: 20px;
    color: #fff;
    font-weight: 950;
    font-size: 28px;
}
.shot-1 { background: linear-gradient(135deg, #0d7b68, #39b980); }
.shot-2 { background: linear-gradient(135deg, #17211c, #0d7b68); }
.shot-3 { background: linear-gradient(135deg, #e96d65, #f2c14e); }
.shot-4 { background: linear-gradient(135deg, #39b980, #fff0bf); color: var(--ink); }
.shot-5 { background: linear-gradient(135deg, #17211c, #e96d65); }
.shot-6 { background: linear-gradient(135deg, #f2c14e, #0d7b68); }
.date-chip {
    display: grid;
    place-items: center;
    align-self: start;
    width: 78px;
    height: 78px;
    border-radius: 8px;
    background: #17211c;
    color: #fff;
}
.date-chip.compact {
    width: 58px;
    height: 58px;
}
.date-chip.compact strong { font-size: 22px; }
.date-chip strong { font-size: 30px; line-height: 1; color: var(--sun); }
.stack-section { margin-top: 34px; }
.next-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px clamp(20px, 5vw, 78px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #17211c;
    color: #fff;
}
.next-event h2 { margin: 0; font-size: clamp(26px, 4vw, 44px); line-height: 1.05; }
.next-event p { color: #c8d6cd; margin-bottom: 0; }
.event-card { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.badge {
    display: inline-flex;
    width: fit-content;
    margin: 4px 0 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf4ea;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.badge-approved, .badge-read, .badge-active, .badge-teacher, .badge-published { background: #d8f5e6; color: #075442; }
.badge-pending, .badge-new { background: #fff0bf; color: #6b4a00; }
.badge-blocked, .badge-archived { background: #ffe1de; color: #8c2921; }
.badge-draft { background: #e5edf7; color: #26384f; }
.badge-admin { background: #17211c; color: #fff; }
.badge-student { background: #edf4ea; color: var(--ink); }

.auth-page { min-height: 70vh; display: grid; place-items: center; }
.login-card { width: min(440px, 100%); }
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    min-height: 78vh;
    background: var(--panel);
}
.auth-shell.compact-auth { min-height: 70vh; }
.auth-brand-panel {
    display: grid;
    align-content: center;
    gap: 24px;
    padding: clamp(36px, 7vw, 86px);
    background:
        linear-gradient(135deg, rgba(23,33,28,.92), rgba(13,123,104,.86)),
        url("mint-lab.svg") center/cover no-repeat;
    color: #fff;
}
.auth-brand-panel h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 7vw, 86px); line-height: .93; }
.auth-brand-panel .eyebrow { color: var(--sun); }
.auth-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 820px;
}
.auth-proof-grid span {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #eaf5ee;
}
.auth-proof-grid strong { color: #fff; }
.auth-card-panel {
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 64px);
}
.login-card.refined {
    width: min(460px, 100%);
    display: grid;
    gap: 16px;
    padding: 34px;
}
.auth-logo { display: block; width: 156px; max-width: 72%; height: auto; }
.login-card.refined h2 { margin: 0; font-size: 38px; line-height: 1; }
.auth-links { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.hint, small { color: var(--muted); }

.form { display: grid; gap: 16px; margin-top: 24px; }
.form.compact { margin-bottom: 20px; }
.page-editor-card { gap: 18px; }
.page-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}
.page-editor-head h3 { margin: 8px 0 0; font-size: 28px; line-height: 1; }
label { display: grid; gap: 7px; font-weight: 800; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--ink);
}
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
legend { font-weight: 900; }
.check { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; font-weight: 700; }
.check input { width: auto; }
.form-row { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: end; }
.form-row.wide { grid-template-columns: 1fr 1fr; }
.page-meta-editor { display: grid; gap: 12px; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-label { margin-top: 4px; }
.rich-editor {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px;
    border-bottom: 1px solid var(--line);
    background: #f4f8f2;
}
.editor-toolbar button {
    min-width: 34px;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-weight: 850;
}
.editor-toolbar button:hover { background: #e9f7ee; }
.editor-surface {
    min-height: 240px;
    padding: 18px;
    outline: none;
}
.editor-surface:focus { box-shadow: inset 0 0 0 2px rgba(13,123,104,.2); }
.editor-status {
    padding: 8px 12px;
    border-top: 1px solid var(--line);
    background: #fbfaf6;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    background: var(--panel);
    min-height: 78vh;
}
.side-nav {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 18px;
    background: #17211c;
    color: #fff;
    box-shadow: 0 18px 44px rgba(22,32,27,.12);
}
.side-nav h2 { margin: 0 0 8px; }
.side-nav a { padding: 11px 12px; border-radius: 8px; color: #c8d6cd; }
.side-nav a.active, .side-nav a:hover { background: var(--mint); color: var(--ink); }
.panel { min-width: 0; display: grid; gap: 22px; }
.panel h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1; }
.panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.panel-title-row h2 { margin-bottom: 6px; }
.plus-button { white-space: nowrap; }
.panel-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 20px;
    align-items: center;
    padding: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #e8f8ee);
    border: 1px solid var(--line);
    box-shadow: 0 16px 42px rgba(22,32,27,.08);
}
.panel-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: .98; }
.teacher-hero { background: linear-gradient(135deg, #fff8dc, #e8f8ee); }
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.kpi-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--line);
}
.kpi-grid strong { font-size: 26px; line-height: 1; color: var(--leaf); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f2f6ef; }
.user-grid { display: grid; gap: 10px; }
.user-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 140px 120px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.user-list {
    display: grid;
    gap: 12px;
}
.user-list-item {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(170px, .6fr) minmax(220px, .8fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22,32,27,.06);
    min-width: 0;
}
.user-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.user-initial {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #17211c;
    color: var(--sun);
    font-weight: 950;
    font-size: 22px;
}
.user-identity h3 { margin: 0 0 3px; font-size: 21px; line-height: 1.05; }
.user-identity p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.user-badges .badge { margin: 0; }
.user-meta {
    display: grid;
    gap: 3px;
}
.user-form-card {
    max-width: 940px;
}
.lesson-list {
    display: grid;
    gap: 10px;
}
.lesson-list-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(22,32,27,.05);
    min-width: 0;
}
.lesson-list-item h3 { margin: 0 0 3px; font-size: 20px; line-height: 1.05; }
.lesson-list-item p { margin: 0; color: var(--muted); }
.content-form-card {
    max-width: 980px;
}
.content-list {
    display: grid;
    gap: 12px;
}
.content-list-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22,32,27,.06);
    min-width: 0;
}
.content-list-item h3 { margin: 4px 0 6px; font-size: 23px; line-height: 1.05; }
.content-list-item p { margin: 0 0 8px; color: var(--muted); }
.content-list-item.category-list-item {
    grid-template-columns: 84px minmax(0, 1fr) auto;
}
.content-list-item.category-list-item .content-thumb {
    width: 84px;
    aspect-ratio: 1 / 1;
    font-size: 30px;
}
.content-thumb {
    display: block;
    width: 150px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #edf4ea;
}
.content-thumb.portrait { aspect-ratio: 1 / 1; border-radius: 50%; }
.content-thumb.logo { object-fit: contain; padding: 12px; background: #fff; }
.placeholder-thumb {
    display: grid;
    place-items: center;
    background: #17211c;
    color: var(--sun);
    font-size: 42px;
    font-weight: 950;
}
.form-preview {
    display: block;
    width: min(360px, 100%);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #edf4ea;
}
.form-preview.portrait {
    width: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}
.form-preview.logo-preview {
    object-fit: contain;
    padding: 14px;
    background: #fff;
}
.settings-form fieldset { background: #fff; }
.mail-template-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
    gap: 16px;
    align-items: stretch;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: #f8fbf7;
}

.mail-template-editor {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.mail-template-editor h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.05;
}

.mail-template-editor textarea {
    min-height: 230px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.55;
}

.mail-preview-panel {
    display: grid;
    grid-template-rows: auto minmax(260px, 1fr);
    gap: 10px;
    min-width: 0;
}

.mail-preview-head {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: #fff;
}

.mail-preview-head strong {
    font-size: 14px;
    line-height: 1.35;
}

.mail-preview-panel iframe {
    width: 100%;
    min-height: 360px;
    border: 1px solid rgba(16, 35, 29, .14);
    border-radius: 8px;
    background: #fff;
}
.comment-admin { margin-bottom: 14px; }
.comment-admin p:not(.hint) {
    max-height: 220px;
    overflow: auto;
}
.upload-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.post-list {
    display: grid;
    gap: 12px;
}
.post-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22,32,27,.06);
    min-width: 0;
}
.post-list-item h3 { margin: 4px 0 6px; font-size: 22px; }
.post-list-item p { margin: 0 0 8px; color: var(--muted); }
.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.post-meta-line .badge { margin: 0; }
.category-pill {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    max-width: 360px;
}
.list-actions form { margin: 0; }
.gallery-admin-grid {
    display: grid;
    gap: 12px;
}
.gallery-admin-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22,32,27,.06);
}
.gallery-admin-item.empty {
    grid-template-columns: 1fr;
}
.gallery-admin-item h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.1; }
.gallery-admin-item p { margin: 0 0 8px; color: var(--muted); }
.gallery-admin-thumb {
    display: block;
    width: 150px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #edf4ea;
}
.student-shell { min-height: 72vh; background: var(--panel); padding: 56px clamp(20px, 5vw, 78px); }
.student-app-shell .side-nav {
    background: #10231d;
}
.student-panel-hero {
    background: linear-gradient(135deg, #17211c, #0d7b68);
    color: #fff;
}
.student-hero {
    padding: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #17211c, #0d7b68);
    color: #fff;
    margin-bottom: 22px;
}
.student-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 70px); line-height: .96; }
.student-hero p:not(.eyebrow) { color: #c8d6cd; }
.student-lessons { max-width: 1080px; }
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr);
    gap: 24px;
    padding: 46px clamp(20px, 5vw, 78px);
    align-items: start;
}
.contact-main { display: grid; gap: 18px; }
.contact-layout .form {
    margin-top: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(22,32,27,.07);
}
.contact-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #17211c;
    color: #fff;
}
.contact-card h2 { margin: 0; }
.contact-card p { color: #c8d6cd; }
.contact-card strong { color: #fff; }

.comments { margin-top: 40px; }
.comment { border-top: 1px solid var(--line); padding: 16px 0; }
.flash {
    margin: 16px clamp(20px, 5vw, 78px) 0;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #b6e5c8;
    background: #e9f8ee;
}
.flash.bad { background: #ffe8e5; border-color: #f0b9b3; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 36px clamp(20px, 5vw, 78px);
    border-top: 1px solid var(--line);
    background: #17211c;
    color: #eef7ef;
}
.footer-logo { display: block; width: 92px; height: auto; margin-bottom: 12px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.22)); }
.site-footer p { color: #b9c8bf; }
.footer-links { display: flex; gap: 18px; align-items: center; }
.footer-links a { color: #fff; }
.cookie {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 18px 48px rgba(0,0,0,.2);
}
.cookie button { border: 0; border-radius: 8px; padding: 9px 15px; background: var(--sun); font-weight: 900; cursor: pointer; }
.cookie.show { display: flex; }

@media (max-width: 900px) {
    .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
    .hero, .home-desk, .featured-news-card, .content-band, .app-shell, .feature-layout, .panel-hero, .auth-shell, .contact-layout { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .section-grid, .home-focus, .cards, .project-grid, .project-showcase-grid, .people-grid, .supporter-grid, .gallery-grid, .workshop-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-events-panel { position: static; }
    .next-event, .event-card { align-items: flex-start; flex-direction: column; }
    .user-row, .user-list-item { grid-template-columns: 1fr 1fr; }
    .side-nav { position: static; }
    .timeline-item, .schedule-card { grid-template-columns: 1fr; }
    .auth-proof-grid { grid-template-columns: 1fr; }
    .post-list-item, .panel-title-row, .gallery-admin-item, .content-list-item, .lesson-list-item { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
    .gallery-admin-thumb, .content-thumb { width: 100%; }
    .content-thumb.portrait { width: 130px; justify-self: start; }
    .list-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .main-nav { justify-content: flex-start; }
    .section-grid, .home-focus, .cards, .news-list, .form-row, .form-row.wide, .user-row, .user-list-item, .project-grid, .project-showcase-grid, .people-grid, .supporter-grid, .gallery-grid, .workshop-type-grid, .partner-strip, .kpi-grid, .meta-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 42px; }
    .content-band, .narrow, .auth-page, .app-shell, .hero, .home-desk, .home-focus, .section-wrap, .feature-layout, .gallery-grid, .student-shell, .contact-layout { padding-left: 18px; padding-right: 18px; }
    .home-hero { padding-top: 34px; padding-bottom: 34px; }
    .featured-news-visual { min-height: 220px; }
    .home-event-card { grid-template-columns: 1fr; }
    .brand-logo { height: 54px; }
    .auth-brand-panel, .auth-card-panel { padding-left: 18px; padding-right: 18px; }
    .auth-brand-panel h1 { font-size: 42px; }
    .sub-hero { min-height: 300px; padding-left: 18px; padding-right: 18px; }
    .sub-hero h1 { font-size: 44px; }
    .panel-hero, .student-hero { padding: 22px; }
    .cookie { align-items: stretch; flex-direction: column; }
}

/* DODO-MINT 2026 redesign layer */
:root {
    --ink: #10231d;
    --muted: #607267;
    --paper: #f5f8f4;
    --line: #d7e3dc;
    --mint: #5dd6a3;
    --leaf: #087765;
    --sun: #f1bd48;
    --rose: #e8655c;
    --white: #fff;
    --panel: #eef5f1;
    --shadow-sm: 0 10px 28px rgba(16, 35, 29, .08);
    --shadow-md: 0 18px 46px rgba(16, 35, 29, .12);
    --shadow-lg: 0 28px 70px rgba(16, 35, 29, .18);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f8fbf7 0%, #eef6f2 48%, #fff 100%);
    color: var(--ink);
}

a {
    color: var(--leaf);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

.eyebrow {
    letter-spacing: 0;
    color: var(--leaf);
}

.site-header {
    padding: 12px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(16, 35, 29, .1);
    box-shadow: 0 10px 34px rgba(16, 35, 29, .06);
}

.brand-logo {
    height: 68px;
    filter: drop-shadow(0 10px 18px rgba(16, 35, 29, .12));
}

.main-nav {
    gap: 8px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 8px;
    color: #34463d;
    font-size: 14px;
    font-weight: 850;
}

.main-nav a:hover {
    background: #e9f5ef;
    color: var(--ink);
}

.main-nav .nav-cta {
    background: var(--ink);
    color: #fff !important;
    border: 1px solid var(--ink);
    box-shadow: 0 12px 24px rgba(16, 35, 29, .16);
}

.main-nav .nav-cta:hover {
    background: var(--leaf);
    border-color: var(--leaf);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: clamp(52px, 7vw, 86px) clamp(20px, 5vw, 82px);
    background:
        linear-gradient(105deg, rgba(16, 35, 29, .96) 0%, rgba(16, 35, 29, .9) 48%, rgba(8, 119, 101, .72) 100%),
        url("mint-lab.svg") right clamp(18px, 6vw, 90px) center / min(470px, 38vw) no-repeat,
        linear-gradient(135deg, #10231d, #087765);
    color: #fff;
    border-bottom: 1px solid rgba(16, 35, 29, .12);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--mint), var(--sun), var(--rose), var(--leaf));
}

.hero > div {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1,
.home-hero h1 {
    max-width: 940px;
    font-size: clamp(46px, 6.8vw, 88px);
    line-height: .94;
    letter-spacing: 0;
}

.hero p {
    color: #dce9e2;
}

.hero .eyebrow {
    color: var(--sun);
}

.home-hero {
    grid-template-columns: 1fr;
    min-height: 560px;
}

.home-hero .hero-visual {
    display: none;
}

.button {
    border-radius: 8px;
    border-color: rgba(16, 35, 29, .14);
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 35, 29, .05);
}

.button.primary {
    background: linear-gradient(135deg, var(--leaf), #0c9b79);
    border-color: var(--leaf);
    color: #fff;
}

.button.ghost {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(16, 35, 29, .16);
}

.hero .button.ghost,
.sub-hero-dark .button.ghost {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .22);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(16, 35, 29, .14);
}

.home-desk,
.home-focus,
.content-band,
.feature-layout,
.section-wrap,
.gallery-grid,
.contact-layout,
.app-shell,
.narrow {
    padding-left: clamp(20px, 5vw, 82px);
    padding-right: clamp(20px, 5vw, 82px);
}

.home-desk {
    gap: 32px;
    background:
        linear-gradient(180deg, #eef6f2, #f9fbf7);
    border-color: rgba(16, 35, 29, .1);
}

.featured-news-card,
.news-row,
.focus-card,
.card,
.login-card,
.form.compact,
.comment-admin,
.prose,
.feature-note,
.project-card,
.person-card,
.supporter-card,
.schedule-card,
.project-showcase-card,
.workshop-type-card,
.rail-item,
.info-card,
.timeline-item,
.contact-layout .form,
.contact-card,
.gallery-item,
.post-list-item,
.content-list-item,
.lesson-list-item,
.gallery-admin-item,
.user-list-item,
.panel-hero,
.side-nav,
.rich-editor,
.table-wrap {
    border-radius: 8px;
    border-color: rgba(16, 35, 29, .12);
    box-shadow: var(--shadow-sm);
}

.featured-news-card,
.focus-card,
.card,
.project-card,
.person-card,
.supporter-card,
.schedule-card,
.project-showcase-card,
.workshop-type-card,
.gallery-item {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.featured-news-card:hover,
.focus-card:hover,
.card:hover,
.project-card:hover,
.person-card:hover,
.supporter-card:hover,
.schedule-card:hover,
.project-showcase-card:hover,
.workshop-type-card:hover,
.gallery-item:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 119, 101, .28);
    box-shadow: var(--shadow-md);
}

.featured-news-card {
    grid-template-columns: minmax(240px, .42fr) minmax(0, .58fr);
    border: 1px solid rgba(16, 35, 29, .1);
}

.featured-news-visual,
.project-showcase-fallback,
.workshop-type-fallback,
.replacement-photo,
.visual-project,
.card-visual {
    background:
        linear-gradient(135deg, rgba(16, 35, 29, .96), rgba(8, 119, 101, .88) 54%, rgba(241, 189, 72, .92));
}

.featured-news-card h3,
.section-heading h2,
.focus-card h2,
.sub-hero h1,
.panel h2,
.panel-hero h1 {
    letter-spacing: 0;
}

.home-events-panel,
.feature-note,
.contact-card,
.focus-card.dark,
.next-event {
    background:
        linear-gradient(135deg, #10231d 0%, #17382f 52%, #087765 100%);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: var(--shadow-md);
}

.home-event-card {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .15);
}

.date-chip {
    background: #10231d;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 24px rgba(16, 35, 29, .18);
}

.sub-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    background:
        linear-gradient(110deg, #10231d 0%, #17382f 46%, #f6fbf8 46%, #eef6f2 100%);
    color: #fff;
}

.sub-hero::after {
    content: "";
    position: absolute;
    left: clamp(20px, 5vw, 82px);
    right: clamp(20px, 5vw, 82px);
    bottom: 0;
    height: 7px;
    background: linear-gradient(90deg, var(--mint), var(--sun), var(--rose));
}

.sub-hero > div {
    position: relative;
    z-index: 1;
}

.sub-hero p:not(.eyebrow) {
    color: #dce9e2;
}

.sub-hero .eyebrow {
    color: var(--sun);
}

.sub-hero-green,
.sub-hero-sun,
.sub-hero-rose,
.sub-hero-mint,
.sub-hero-dark {
    background:
        linear-gradient(110deg, #10231d 0%, #17382f 46%, #f6fbf8 46%, #eef6f2 100%);
}

.feature-layout {
    gap: 32px;
}

.prose,
.feature-prose {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(8px);
}

.prose h2,
.prose h3 {
    line-height: 1.05;
}

.section-heading {
    border-bottom: 1px solid rgba(16, 35, 29, .1);
    padding-bottom: 16px;
}

.section-heading .eyebrow,
.panel-title-row .hint,
.count-hint {
    margin-bottom: 0;
}

.project-showcase-card,
.workshop-type-card,
.team-profile-card {
    grid-template-rows: 250px minmax(0, 1fr);
}

.project-showcase-card > div:last-child,
.workshop-type-card > div:last-child,
.team-profile-card > div:last-child,
.project-card > div:last-child,
.person-card,
.supporter-card,
.schedule-card {
    padding: 24px;
}

.team-profile-card {
    background: #fff;
}

.person-photo,
.gallery-item img,
.project-showcase-card img,
.workshop-type-card img {
    filter: saturate(1.04) contrast(1.02);
}

.supporter-card,
.partner-card {
    background: linear-gradient(180deg, #fff, #f8fbf7);
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-item {
    min-height: 310px;
}

.gallery-item figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(16, 35, 29, .86);
    backdrop-filter: blur(10px);
}

.auth-shell {
    background:
        linear-gradient(110deg, #10231d 0%, #17382f 52%, #eef6f2 52%, #f8fbf7 100%);
}

.auth-brand-panel {
    background:
        linear-gradient(135deg, rgba(16, 35, 29, .93), rgba(8, 119, 101, .78)),
        url("mint-lab.svg") center / min(620px, 86%) no-repeat;
}

.auth-card-panel {
    background: rgba(255, 255, 255, .58);
}

.login-card.refined {
    box-shadow: var(--shadow-lg);
}

input,
textarea,
select {
    border-color: rgba(16, 35, 29, .16);
    background: rgba(255, 255, 255, .94);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input:focus,
textarea:focus,
select:focus,
.editor-surface:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 4px rgba(93, 214, 163, .22);
    background: #fff;
}

fieldset {
    background: rgba(255, 255, 255, .72);
}

.editor-toolbar {
    background: #eef6f2;
}

.editor-toolbar button {
    border-color: rgba(16, 35, 29, .14);
}

.app-shell {
    grid-template-columns: 282px minmax(0, 1fr);
    gap: 30px;
    background:
        linear-gradient(90deg, #10231d 0, #10231d 282px, #eef5f1 282px, #f8fbf7 100%);
}

.side-nav {
    top: 100px;
    padding: 20px;
    background: #10231d;
    border-color: rgba(255, 255, 255, .1);
}

.side-nav h2 {
    color: #fff;
    font-size: 24px;
}

.side-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: #cbd9d1;
    border: 1px solid transparent;
}

.side-nav a.active,
.side-nav a:hover {
    background: #eafff4;
    border-color: rgba(93, 214, 163, .32);
    color: var(--ink);
}

.panel {
    gap: 24px;
}

.panel-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(235, 248, 241, .92));
    border-color: rgba(16, 35, 29, .12);
}

.teacher-hero {
    background:
        linear-gradient(135deg, rgba(255, 249, 224, .98), rgba(235, 248, 241, .96));
}

.student-panel-hero {
    background:
        linear-gradient(135deg, #10231d, #087765);
}

.kpi-grid span {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(16, 35, 29, .1);
}

.student-panel-hero .kpi-grid span {
    color: var(--ink);
}

.user-list-item,
.lesson-list-item,
.content-list-item,
.post-list-item,
.gallery-admin-item {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(16, 35, 29, .1);
}

.user-list-item:hover,
.lesson-list-item:hover,
.content-list-item:hover,
.post-list-item:hover,
.gallery-admin-item:hover {
    border-color: rgba(8, 119, 101, .26);
    box-shadow: var(--shadow-md);
}

.user-initial,
.placeholder-thumb,
.content-thumb.placeholder-thumb {
    background: linear-gradient(135deg, #10231d, #087765);
    color: var(--sun);
}

.content-thumb,
.gallery-admin-thumb,
.form-preview {
    border-color: rgba(16, 35, 29, .12);
}

.post-meta-line,
.user-badges,
.list-actions {
    row-gap: 8px;
}

.badge,
.category-pill {
    margin: 0;
    border-radius: 8px;
}

.badge-published,
.badge-approved,
.badge-read,
.badge-active,
.badge-teacher {
    background: #dbf7e7;
}

.badge-pending,
.badge-new {
    background: #fff2c2;
}

.badge-blocked,
.badge-archived {
    background: #ffe0dd;
}

.badge-admin {
    background: #10231d;
}

.category-pill {
    background: #f7faf8;
}

.pagination a,
.pagination span {
    border-color: rgba(16, 35, 29, .12);
    box-shadow: 0 8px 18px rgba(16, 35, 29, .05);
}

.pagination a.active {
    background: var(--ink);
    border-color: var(--ink);
}

.contact-layout {
    background:
        linear-gradient(180deg, #f8fbf7, #eef6f2);
}

.flash {
    border-color: rgba(8, 119, 101, .22);
    background: #e9fff3;
    box-shadow: var(--shadow-sm);
}

.flash.bad {
    background: #fff0ee;
}

.site-footer {
    background:
        linear-gradient(135deg, #10231d, #17382f);
}

.cookie {
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1100px) {
    .home-desk {
        grid-template-columns: 1fr;
    }

    .home-events-panel {
        position: static;
    }

    .app-shell {
        grid-template-columns: 240px minmax(0, 1fr);
        background:
            linear-gradient(90deg, #10231d 0, #10231d 240px, #eef5f1 240px, #f8fbf7 100%);
    }
}

/* TinyMCE integration */
.tinymce-editor {
    overflow: hidden;
}

.tinymce-editor .tox-tinymce {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tinymce-editor .tox .tox-toolbar,
.tinymce-editor .tox .tox-toolbar__primary,
.tinymce-editor .tox .tox-toolbar-overlord {
    background: #eef6f2;
}

.tinymce-editor .tox .tox-statusbar {
    border-top-color: rgba(16, 35, 29, .1);
}

.tinymce-source {
    min-height: 420px;
    border: 0;
    border-radius: 0;
    padding: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.tinymce-fallback .tinymce-source {
    border-top: 1px solid rgba(16, 35, 29, .1);
}

.tinymce-editor .editor-footer {
    align-items: center;
}

/* Modern writing editor */
.rich-editor {
    overflow: visible;
    background: #fff;
}

.editor-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(16, 35, 29, .1);
    background: linear-gradient(180deg, #fff, #f7faf8);
}

.editor-head strong {
    display: block;
    line-height: 1.1;
}

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

.editor-metrics {
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid rgba(16, 35, 29, .1);
    background: #eef6f2;
    color: var(--leaf);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.editor-toolbar {
    position: sticky;
    top: 72px;
    z-index: 4;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(238, 246, 242, .96);
    backdrop-filter: blur(10px);
}

.editor-tool-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(16, 35, 29, .08);
}

.editor-tool-group-right {
    margin-left: auto;
}

.editor-toolbar select,
.editor-toolbar button {
    min-height: 30px;
    border-radius: 8px;
    font-size: 13px;
}

.editor-toolbar select {
    width: auto;
    min-width: 128px;
    padding: 5px 28px 5px 8px;
}

.editor-toolbar button.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.editor-workspace {
    display: grid;
}

.editor-surface,
.editor-preview {
    min-height: 320px;
    padding: 22px;
    font-size: 17px;
    line-height: 1.72;
}

.editor-surface:empty::before {
    content: attr(data-placeholder);
    color: #8a9a91;
}

.editor-surface h2,
.editor-preview h2 {
    margin: 1.1em 0 .45em;
    font-size: 30px;
    line-height: 1.1;
}

.editor-surface h3,
.editor-preview h3 {
    margin: 1em 0 .4em;
    font-size: 24px;
    line-height: 1.12;
}

.editor-surface p,
.editor-preview p {
    margin: 0 0 1em;
}

.editor-surface figure,
.editor-preview figure {
    margin: 18px 0;
}

.editor-surface figcaption,
.editor-preview figcaption {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.editor-preview {
    display: none;
    background: #fbfdfb;
}

.rich-editor.is-preview .editor-surface {
    display: none;
}

.rich-editor.is-preview .editor-preview {
    display: block;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-top: 1px solid rgba(16, 35, 29, .1);
    background: #f7faf8;
}

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

.editor-fullscreen {
    position: fixed;
    inset: 18px;
    z-index: 100;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.editor-fullscreen .editor-toolbar {
    position: static;
}

.editor-fullscreen .editor-workspace {
    min-height: 0;
    overflow: auto;
}

.editor-fullscreen .editor-surface,
.editor-fullscreen .editor-preview {
    min-height: 100%;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

body.editor-lock {
    overflow: hidden;
}

@media (max-width: 900px) {
    .editor-toolbar {
        position: static;
    }

    .editor-tool-group-right {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .editor-head,
    .editor-footer {
        display: grid;
        align-items: start;
    }

    .editor-metrics {
        width: fit-content;
        white-space: normal;
    }

    .editor-toolbar select {
        width: 100%;
    }

    .editor-tool-group {
        width: 100%;
    }

    .editor-surface,
    .editor-preview {
        min-height: 260px;
        padding: 16px;
        font-size: 16px;
    }

    .editor-fullscreen {
        inset: 8px;
    }
}

/* Article reading screen */
.article-page {
    background:
        linear-gradient(180deg, #f8fbf7 0, #eef6f2 360px, #fff 100%);
}

.article-hero {
    padding: 34px clamp(20px, 5vw, 82px) 28px;
    background:
        linear-gradient(135deg, rgba(16, 35, 29, .96), rgba(8, 119, 101, .82)),
        url("mint-lab.svg") right clamp(20px, 6vw, 92px) center / min(340px, 30vw) no-repeat;
    color: #fff;
}

.article-hero-inner {
    max-width: 920px;
}

.article-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.article-kicker span:not(.category-pill) {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #dce9e2;
    font-size: 12px;
    font-weight: 850;
}

.article-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: .98;
}

.article-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: #dce9e2;
    font-size: 17px;
}

.article-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.article-author-row strong {
    display: block;
    color: #fff;
}

.article-author-row small {
    color: #dce9e2;
}

.article-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sun), var(--mint));
    color: var(--ink);
    font-weight: 950;
    font-size: 20px;
}

.article-avatar.large {
    width: 64px;
    height: 64px;
    font-size: 28px;
}

.article-avatar.small {
    width: 38px;
    height: 38px;
    font-size: 16px;
}

.article-shell {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 330px);
    gap: 24px;
    align-items: start;
    justify-content: center;
    padding: 30px clamp(20px, 5vw, 82px);
}

.article-card,
.article-sidebar,
.article-comments,
.article-comment-form {
    border: 1px solid rgba(16, 35, 29, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-sm);
}

.article-card {
    padding: clamp(22px, 4vw, 36px);
}

.article-prose {
    max-width: 680px;
    margin: 0 auto;
    color: #1b2d25;
    font-size: 17px;
    line-height: 1.78;
}

.article-prose > *:first-child {
    margin-top: 0;
}

.article-prose > *:last-child {
    margin-bottom: 0;
}

.article-prose p {
    margin: 0 0 1.15em;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
    margin: 1.45em 0 .55em;
    line-height: 1.12;
}

.article-prose h2 {
    font-size: 30px;
}

.article-prose h3 {
    font-size: 24px;
}

.article-prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.article-prose blockquote {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--leaf);
    border-radius: 8px;
    background: #eef6f2;
    color: var(--muted);
}

.article-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
    padding: 18px;
}

.article-author-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(16, 35, 29, .1);
}

.article-author-card h2 {
    margin: 3px 0;
    font-size: 22px;
    line-height: 1.05;
}

.article-author-card p {
    margin: 0;
}

.article-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.article-facts div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 8px;
    background: #f7faf8;
    border: 1px solid rgba(16, 35, 29, .08);
}

.article-facts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-facts dd {
    margin: 0;
    font-weight: 850;
}

.article-share-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f7fbf8);
}

.article-share-card h2 {
    margin: -6px 0 0;
    font-size: 20px;
    line-height: 1.05;
}

.share-link-box {
    display: grid;
    gap: 8px;
}

.share-link-box input {
    width: 100%;
    min-width: 0;
    font-size: 13px;
    color: #52625a;
    background: #f8fbf7;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-actions .button {
    min-width: 0;
}

.article-comments {
    max-width: 1114px;
    margin: 0 auto 42px;
    padding: 22px;
}

.article-comments-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(16, 35, 29, .1);
}

.article-comments-head h2 {
    margin: 0;
    font-size: 30px;
}

.article-comment-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.article-comment {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: #f8fbf7;
}

.article-comment.empty {
    grid-template-columns: 1fr;
}

.article-comment strong,
.article-comment small {
    display: block;
}

.article-comment p {
    margin: 8px 0 0;
}

.article-comment-form {
    margin-top: 18px;
    padding: 18px;
}

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

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .article-hero {
        padding: 28px 18px 24px;
        background:
            linear-gradient(135deg, rgba(16, 35, 29, .96), rgba(8, 119, 101, .88)),
            url("mint-lab.svg") right 14px bottom 14px / 160px no-repeat;
    }

    .article-hero h1 {
        font-size: 32px;
    }

    .article-hero p,
    .article-prose {
        font-size: 16px;
    }

    .article-shell {
        padding: 22px 18px;
    }

    .article-card,
    .article-comments,
    .article-comment-form {
        padding: 16px;
    }

    .article-comments-head {
        display: grid;
        align-items: start;
    }

    .article-comment {
        grid-template-columns: 1fr;
    }
}

/* Newsroom homepage */
.newsroom-page {
    background:
        linear-gradient(180deg, #f8fbf7 0, #eef6f2 360px, #fff 100%);
}

.newsroom-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .34fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px clamp(20px, 5vw, 82px);
    border-bottom: 1px solid rgba(16, 35, 29, .12);
    background:
        linear-gradient(135deg, rgba(16, 35, 29, .96), rgba(8, 119, 101, .82)),
        url("mint-lab.svg") right clamp(18px, 5vw, 82px) center / min(360px, 34vw) no-repeat;
    color: #fff;
}

.newsroom-masthead h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: .95;
}

.newsroom-masthead p:not(.eyebrow) {
    max-width: 720px;
    color: #dce9e2;
    font-size: 17px;
}

.newsroom-masthead .eyebrow {
    color: var(--sun);
}

.newsroom-next {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 158px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.newsroom-next strong {
    color: #fff;
    font-size: 26px;
    line-height: 1.05;
}

.newsroom-next small {
    color: #dce9e2;
}

.newsroom-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .36fr);
    gap: 28px;
    align-items: start;
    padding: 34px clamp(20px, 5vw, 82px) 56px;
}

.newsroom-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.newsroom-heading {
    margin-bottom: 0;
}

.newsroom-heading .count-hint,
.newsroom-events .count-hint {
    margin: 0;
}

.frontpage-lead {
    display: grid;
    grid-template-columns: minmax(240px, .42fr) minmax(0, .58fr);
    overflow: hidden;
    border: 1px solid rgba(16, 35, 29, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.frontpage-mark {
    display: grid;
    place-items: center;
    min-height: 360px;
    background:
        linear-gradient(135deg, rgba(16, 35, 29, .96), rgba(8, 119, 101, .88) 54%, rgba(241, 189, 72, .92));
}

.frontpage-mark span {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .42);
    color: var(--sun);
    font-size: 64px;
    font-weight: 950;
}

.frontpage-lead > div:last-child {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(22px, 4vw, 38px);
}

.frontpage-lead h2 {
    margin: 0;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: .98;
}

.frontpage-lead p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.frontpage-news-list {
    display: grid;
    gap: 12px;
}

.frontpage-news-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-sm);
}

.frontpage-news-row h3 {
    margin: 7px 0 8px;
    font-size: clamp(23px, 2.6vw, 34px);
    line-height: 1.04;
}

.frontpage-news-row p {
    margin: 0;
    color: var(--muted);
}

.frontpage-news-row:hover,
.frontpage-lead:hover,
.frontpage-event-card:hover {
    border-color: rgba(8, 119, 101, .28);
    box-shadow: var(--shadow-md);
}

.newsroom-events {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: linear-gradient(135deg, #10231d, #17382f 52%, #087765);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.newsroom-events h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
}

.newsroom-events .eyebrow {
    color: var(--mint);
}

.newsroom-events .count-hint,
.newsroom-events p,
.newsroom-events small {
    color: #cfe0d7;
}

.frontpage-event-list {
    display: grid;
    gap: 10px;
}

.frontpage-event-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .1);
}

.frontpage-event-card.empty {
    grid-template-columns: 1fr;
}

.frontpage-event-card h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 18px;
    line-height: 1.08;
}

.frontpage-event-card p {
    margin: 0 0 4px;
    font-size: 14px;
}

.frontpage-event-card small {
    display: block;
    font-size: 13px;
}

.newsroom-events .pagination {
    margin-top: 2px;
}

.newsroom-events .pagination a,
.newsroom-events .pagination span {
    min-width: 34px;
    min-height: 34px;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
    box-shadow: none;
}

.newsroom-events .pagination a.active {
    background: var(--sun);
    border-color: var(--sun);
    color: var(--ink);
}

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

    .newsroom-events {
        position: static;
    }
}

@media (max-width: 700px) {
    .newsroom-masthead {
        padding-top: 28px;
        padding-bottom: 28px;
        background:
            linear-gradient(135deg, rgba(16, 35, 29, .96), rgba(8, 119, 101, .88)),
            url("mint-lab.svg") right 16px bottom 16px / 190px no-repeat;
    }

    .newsroom-masthead h1 {
        font-size: 38px;
    }

    .newsroom-layout {
        padding-top: 24px;
        padding-bottom: 38px;
    }

    .frontpage-lead,
    .frontpage-news-row,
    .frontpage-event-card {
        grid-template-columns: 1fr;
    }

    .frontpage-mark {
        min-height: 230px;
    }

    .frontpage-lead h2 {
        font-size: 34px;
    }

    .frontpage-news-row .button {
        width: fit-content;
    }
}

/* Balanced scale refinement */
:root {
    --shadow-sm: 0 8px 20px rgba(16, 35, 29, .07);
    --shadow-md: 0 14px 34px rgba(16, 35, 29, .1);
    --shadow-lg: 0 20px 48px rgba(16, 35, 29, .14);
}

body {
    font-size: 16px;
    line-height: 1.5;
}

.site-header {
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand-logo {
    height: 54px;
}

.main-nav a {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
}

.button {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 14px;
}

.button.small {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 13px;
}

.eyebrow,
.badge,
.category-pill {
    font-size: 11px;
}

.newsroom-masthead,
.hero {
    padding-top: 20px;
    padding-bottom: 22px;
}

.newsroom-masthead h1,
.hero h1,
.home-hero h1 {
    font-size: clamp(32px, 4.1vw, 52px);
    line-height: 1;
}

.newsroom-masthead p:not(.eyebrow),
.hero p {
    font-size: 16px;
}

.newsroom-next {
    min-height: 132px;
    padding: 18px;
}

.newsroom-next strong {
    font-size: 22px;
}

.newsroom-layout,
.home-desk,
.feature-layout,
.section-wrap,
.gallery-grid,
.contact-layout,
.app-shell,
.narrow,
.content-band,
.home-focus {
    padding-top: 28px;
    padding-bottom: 34px;
}

.newsroom-layout,
.home-desk,
.feature-layout,
.contact-layout,
.app-shell {
    gap: 22px;
}

.section-heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.section-heading h2,
.panel h2 {
    font-size: clamp(25px, 3.2vw, 40px);
}

.frontpage-lead h2,
.featured-news-card h3 {
    font-size: clamp(28px, 3.2vw, 42px);
}

.frontpage-lead > div:last-child,
.featured-news-card > div:last-child {
    padding: 24px;
}

.frontpage-mark,
.featured-news-visual {
    min-height: 260px;
}

.frontpage-mark span,
.featured-news-visual span {
    width: 92px;
    height: 92px;
    font-size: 48px;
}

.frontpage-news-row,
.news-row,
.card,
.focus-card,
.project-card > div:last-child,
.person-card,
.supporter-card,
.schedule-card,
.project-showcase-card > div:last-child,
.workshop-type-card > div:last-child,
.info-card,
.prose,
.contact-layout .form,
.contact-card,
.content-list-item,
.post-list-item,
.lesson-list-item,
.gallery-admin-item,
.user-list-item,
.form.compact,
.login-card.refined {
    padding: 16px;
}

.frontpage-news-row h3,
.news-row h3,
.content-list-item h3,
.post-list-item h3,
.lesson-list-item h3,
.gallery-admin-item h3,
.user-identity h3 {
    font-size: 20px;
}

.frontpage-lead p,
.featured-news-card p,
.prose,
.lead {
    font-size: 16px;
}

.project-showcase-card,
.workshop-type-card,
.team-profile-card {
    grid-template-rows: 190px minmax(0, 1fr);
}

.gallery-item {
    min-height: 230px;
}

.schedule-card {
    min-height: 240px;
}

.date-chip {
    width: 64px;
    height: 64px;
}

.date-chip.compact {
    width: 50px;
    height: 50px;
}

.date-chip strong {
    font-size: 24px;
}

.date-chip.compact strong {
    font-size: 19px;
}

.metric-number {
    font-size: 44px;
}

.sub-hero {
    min-height: 240px;
    padding-top: 46px;
    padding-bottom: 46px;
}

.sub-hero h1 {
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: .98;
}

.sub-hero p:not(.eyebrow) {
    font-size: 18px;
}

.panel-hero {
    padding: 20px;
}

.panel-hero h1 {
    font-size: clamp(30px, 3.8vw, 46px);
}

.kpi-grid span {
    padding: 11px;
}

.kpi-grid strong {
    font-size: 22px;
}

.side-nav {
    top: 76px;
    padding: 16px;
}

.side-nav h2 {
    font-size: 21px;
}

.side-nav a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 14px;
}

input,
textarea,
select {
    padding: 9px 10px;
}

.editor-surface {
    min-height: 190px;
    padding: 14px;
}

.editor-toolbar {
    padding: 7px;
}

.editor-toolbar button {
    min-height: 28px;
    min-width: 30px;
    font-size: 13px;
}

.auth-brand-panel h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.login-card.refined h2 {
    font-size: 30px;
}

@media (max-width: 900px) {
    .newsroom-masthead,
    .hero,
    .sub-hero {
        padding-top: 28px;
        padding-bottom: 30px;
    }

    .app-shell {
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .brand-logo {
        height: 48px;
    }

    .main-nav a {
        min-height: 30px;
        padding: 5px 6px;
        font-size: 12px;
    }

    .newsroom-masthead h1,
    .hero h1,
    .home-hero h1,
    .sub-hero h1 {
        font-size: 32px;
    }

    .newsroom-masthead p:not(.eyebrow),
    .hero p,
    .sub-hero p:not(.eyebrow) {
        font-size: 15px;
    }

    .newsroom-next {
        min-height: 0;
        padding: 14px;
    }

    .newsroom-next strong {
        font-size: 20px;
    }

    .newsroom-layout,
    .home-desk,
    .feature-layout,
    .section-wrap,
    .gallery-grid,
    .contact-layout,
    .app-shell,
    .narrow,
    .content-band,
    .home-focus {
        padding-top: 22px;
        padding-bottom: 28px;
    }

    .section-heading h2,
    .panel h2,
    .frontpage-lead h2 {
        font-size: 26px;
    }

    .frontpage-mark,
    .featured-news-visual {
        min-height: 190px;
    }

    .project-showcase-card,
    .workshop-type-card,
    .team-profile-card {
        grid-template-rows: 170px minmax(0, 1fr);
    }

    .panel-hero h1 {
        font-size: 30px;
    }

    .side-nav {
        padding: 12px;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: static;
    }

    .hero,
    .home-hero {
        min-height: auto;
        background:
            linear-gradient(135deg, rgba(16, 35, 29, .96), rgba(8, 119, 101, .88)),
            url("mint-lab.svg") right 18px bottom 18px / 220px no-repeat;
    }

    .home-hero .hero-visual {
        display: none;
    }

    .sub-hero,
    .sub-hero-green,
    .sub-hero-sun,
    .sub-hero-rose,
    .sub-hero-mint,
    .sub-hero-dark {
        background: linear-gradient(135deg, #10231d, #087765);
    }

    .auth-shell {
        background: #eef6f2;
    }

    .featured-news-card {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
        background: #eef5f1;
    }

    .side-nav {
        top: auto;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .side-nav h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 12px 18px;
        gap: 10px;
    }

    .brand-logo {
        height: 56px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
    }

    .main-nav a {
        justify-content: center;
        min-height: 32px;
        padding: 6px 7px;
        font-size: 13px;
        text-align: center;
    }

    .hero,
    .home-hero {
        padding-top: 30px;
        padding-bottom: 38px;
    }

    .hero h1,
    .home-hero h1,
    .sub-hero h1 {
        font-size: 38px;
        line-height: .96;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-actions {
        gap: 8px;
        margin-top: 22px;
    }

    .section-heading {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .section-heading .button {
        width: fit-content;
        max-width: 100%;
    }

    .featured-news-card,
    .project-showcase-card,
    .workshop-type-card,
    .team-profile-card {
        grid-template-rows: 210px minmax(0, 1fr);
    }

    .gallery-item {
        min-height: 240px;
    }

    .side-nav {
        grid-template-columns: 1fr 1fr;
        padding: 14px;
    }

    .side-nav a {
        overflow-wrap: normal;
        word-break: normal;
        font-size: 13px;
    }

    .panel-title-row .button {
        width: 100%;
    }

    .list-actions {
        max-width: none;
    }
}

/* Shared Bootstrap Icons layer */
.bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}

.button,
.main-nav a,
.side-nav a,
.footer-links a,
.pagination a,
.inline-icon-link,
.meta-icon,
.badge,
.category-pill,
.article-facts dt,
.cookie button {
    gap: 12px;
}

.button .bi {
    font-size: 1.05em;
}

.button.small {
    gap: 10px;
}

.main-nav a .bi,
.side-nav a .bi,
.footer-links a .bi {
    font-size: 1rem;
    opacity: .9;
}

.main-nav a span,
.side-nav a span,
.footer-links a span,
.button span,
.pagination a span {
    min-width: 0;
}

.side-nav a,
.footer-links a,
.pagination a,
.inline-icon-link,
.meta-icon,
.article-facts dt,
.cookie button {
    display: inline-flex;
    align-items: center;
}

.side-nav a {
    display: flex;
}

.side-nav a .bi {
    width: 1.15em;
}

.badge,
.category-pill {
    align-items: center;
    gap: 9px;
}

.badge .bi,
.category-pill .bi,
.meta-icon .bi,
.article-facts dt .bi {
    font-size: .95em;
}

.inline-icon-link {
    font-weight: 900;
}

@media (max-width: 600px) {
    .button,
    .main-nav a,
    .side-nav a,
    .footer-links a,
    .pagination a {
        gap: 9px;
    }

    .main-nav a .bi {
        font-size: .95rem;
    }
}

/* Admin panel redesign */
.admin-shell {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 28px;
    background:
        linear-gradient(90deg, #10231d 0, #10231d 252px, #f3f7f4 252px, #f8fbf7 100%);
}

.admin-shell .side-nav {
    top: 76px;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: #10231d;
    box-shadow: 0 18px 42px rgba(16, 35, 29, .18);
}

.admin-shell .side-nav h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 2px 4px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 20px;
}

.admin-shell .side-nav h2::before {
    content: "";
    width: 10px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--mint), var(--sun));
}

.admin-shell .side-nav a {
    min-height: 39px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #d5e2da;
    font-size: 14px;
    font-weight: 850;
    gap: 12px;
}

.admin-shell .side-nav a .bi {
    width: 20px;
    font-size: 16px;
    opacity: .98;
}

.admin-shell .side-nav a.active {
    background: #f4fff9;
    border-color: rgba(93, 214, 163, .42);
    color: #10231d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .14);
}

.admin-shell .side-nav a:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

.admin-shell .side-nav a.active:hover {
    background: #f4fff9;
    color: #10231d;
}

.admin-panel {
    gap: 18px;
}

.admin-panel-hero {
    grid-template-columns: minmax(260px, .78fr) minmax(460px, 1.22fr);
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(16, 35, 29, .08);
}

.admin-panel-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f7ef;
    color: #075442;
}

.admin-panel-hero h1 {
    max-width: 560px;
    font-size: clamp(30px, 3.2vw, 42px);
}

.admin-hero-copy {
    max-width: 620px;
    margin: 9px 0 0;
    color: #66766d;
    font-size: 15px;
}

.admin-shell .kpi-grid {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
    gap: 10px;
}

.admin-shell .kpi-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
        "icon value"
        "icon label";
    align-items: center;
    gap: 2px 12px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: #f8fbf9;
    box-shadow: none;
}

.admin-shell .kpi-card .bi {
    grid-area: icon;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e7f7ef;
    color: #0d7b68;
    font-size: 18px;
}

.admin-shell .kpi-card strong {
    grid-area: value;
    color: #10231d;
    font-size: 24px;
    line-height: 1;
}

.admin-shell .kpi-card small {
    grid-area: label;
    color: #607268;
    font-size: 12px;
    font-weight: 850;
}

.admin-shell .kpi-card.attention .bi {
    background: #fff3cd;
    color: #7a5608;
}

.admin-shell .panel-title-row {
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 26px rgba(16, 35, 29, .06);
}

.admin-shell .panel-title-row h2 {
    font-size: clamp(24px, 2.5vw, 34px);
}

.admin-shell .panel-title-row .hint {
    max-width: 720px;
    color: #63746b;
}

.admin-shell .button {
    gap: 13px;
    border-color: rgba(16, 35, 29, .14);
}

.admin-shell .button.small {
    min-height: 34px;
    padding: 7px 10px;
    gap: 12px;
}

.admin-shell .button .bi {
    font-size: 1.08em;
}

.admin-shell .button.danger {
    background: #a9362d;
    border-color: #a9362d;
}

.admin-shell .list-actions {
    max-width: 540px;
    gap: 10px 12px;
}

.admin-shell .post-list-item {
    grid-template-columns: minmax(0, 1fr) minmax(390px, auto);
}

.admin-shell .user-list-item,
.admin-shell .lesson-list-item,
.admin-shell .content-list-item,
.admin-shell .post-list-item,
.admin-shell .gallery-admin-item,
.admin-shell .comment-admin,
.admin-shell .form.compact {
    border: 1px solid rgba(16, 35, 29, .1);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 26px rgba(16, 35, 29, .055);
}

.admin-shell .user-list-item,
.admin-shell .lesson-list-item,
.admin-shell .content-list-item,
.admin-shell .post-list-item,
.admin-shell .gallery-admin-item {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.admin-shell .user-list-item:hover,
.admin-shell .lesson-list-item:hover,
.admin-shell .content-list-item:hover,
.admin-shell .post-list-item:hover,
.admin-shell .gallery-admin-item:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 123, 104, .24);
    box-shadow: 0 16px 34px rgba(16, 35, 29, .09);
}

.admin-shell .user-initial,
.admin-shell .placeholder-thumb {
    background: #10231d;
    color: var(--sun);
}

.admin-shell .badge,
.admin-shell .category-pill {
    gap: 10px;
    padding: 5px 9px;
}

.admin-shell .count-hint {
    width: fit-content;
    margin: -4px 0 2px;
    padding: 5px 9px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 999px;
    background: #fff;
    color: #607268;
    font-size: 12px;
    font-weight: 850;
}

@media (max-width: 1180px) {
    .admin-panel-hero {
        grid-template-columns: 1fr;
    }

    .admin-shell .kpi-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .admin-shell .post-list-item {
        grid-template-columns: 1fr;
    }

    .admin-shell .list-actions {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
        background: #f3f7f4;
    }

    .admin-shell .side-nav {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .admin-shell .side-nav h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .admin-shell {
        padding-top: 20px;
    }

    .admin-panel-hero,
    .admin-shell .panel-title-row {
        padding: 14px;
    }

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

    .admin-shell .side-nav {
        grid-template-columns: 1fr 1fr;
    }

    .admin-shell .side-nav a {
        gap: 9px;
        font-size: 13px;
    }

    .mail-template-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .mail-preview-panel iframe {
        min-height: 300px;
    }
}

/* Definitive icon/text spacing fix */
:root {
    --icon-text-space: .72rem;
    --icon-text-space-small: .58rem;
}

.button,
.main-nav a,
.side-nav a,
.footer-links a,
.pagination a,
.inline-icon-link,
.meta-icon,
.badge,
.category-pill,
.article-facts dt,
.cookie button {
    gap: 0 !important;
}

.button .bi,
.main-nav a .bi,
.side-nav a .bi,
.footer-links a .bi,
.pagination a .bi,
.inline-icon-link .bi,
.meta-icon .bi,
.badge .bi,
.category-pill .bi,
.article-facts dt .bi,
.cookie button .bi {
    margin-inline: 0 var(--icon-text-space) !important;
}

.button.small .bi,
.badge .bi,
.category-pill .bi {
    margin-inline-end: var(--icon-text-space-small) !important;
}

.pagination a .bi:last-child {
    margin-inline: var(--icon-text-space) 0 !important;
}

.admin-shell .kpi-card > .bi {
    margin-inline: 0 !important;
}

/* Mobile navigation */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(16, 35, 29, .14);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16, 35, 29, .08);
}

.nav-toggle .bi {
    margin-inline: 0 var(--icon-text-space-small) !important;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: rgba(8, 119, 101, .34);
    background: #eef8f3;
}

.nav-toggle:focus-visible,
.main-nav a:focus-visible {
    outline: 3px solid rgba(245, 188, 75, .7);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .site-header {
        position: sticky !important;
        top: 0;
        z-index: 80;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center !important;
        justify-content: stretch;
        gap: 10px 12px;
        padding: 10px 14px !important;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        max-width: min(220px, 58vw);
        height: 48px !important;
    }

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

    .main-nav {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: stretch;
    }

    body.nav-ready .main-nav {
        display: grid !important;
        grid-template-columns: 1fr !important;
        max-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        gap: 6px;
        border: 0 solid transparent;
        transition: max-height .22s ease, opacity .18s ease, transform .18s ease, padding .18s ease, border-color .18s ease;
    }

    body.nav-ready .main-nav.is-open {
        max-height: min(72vh, 520px);
        padding: 10px;
        overflow: auto;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        border-width: 1px;
        border-color: rgba(16, 35, 29, .1);
        border-radius: 8px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 38px rgba(16, 35, 29, .14);
    }

    body.nav-ready .main-nav a {
        justify-content: flex-start !important;
        width: 100%;
        min-height: 42px !important;
        padding: 10px 12px !important;
        border: 1px solid rgba(16, 35, 29, .08);
        background: #f8fbf7;
        color: #263a31;
        font-size: 14px !important;
        text-align: left !important;
        white-space: normal;
    }

    body.nav-ready .main-nav a:hover,
    body.nav-ready .main-nav a:focus-visible {
        background: #edf7f2;
        color: var(--ink);
    }

    body.nav-ready .main-nav .nav-cta {
        background: var(--ink);
        color: #fff !important;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .site-header {
        gap: 8px 10px;
        padding: 8px 12px !important;
    }

    .brand-logo {
        max-width: min(200px, 56vw);
        height: 44px !important;
    }

    .nav-toggle {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 13px;
    }

    body.nav-ready .main-nav.is-open {
        max-height: calc(100vh - 74px);
    }
}

@media (min-width: 901px) {
    .nav-toggle {
        display: none !important;
    }

    .main-nav {
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
}

/* Animated status feedback */
.flash {
    position: fixed !important;
    top: 50%;
    left: 50%;
    z-index: 140;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: min(520px, calc(100vw - 32px));
    min-height: 82px;
    margin: 0 !important;
    padding: 16px 18px 16px 16px !important;
    border: 1px solid rgba(8, 119, 101, .2) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .97) !important;
    color: var(--ink);
    box-shadow:
        0 28px 80px rgba(16, 35, 29, .24),
        0 0 0 9999px rgba(16, 35, 29, .10);
    transform: translate(-50%, -50%) scale(.94);
    animation: flash-pop .36s cubic-bezier(.18, .89, .32, 1.18) forwards;
    cursor: pointer;
}

.flash.bad {
    border-color: rgba(169, 54, 45, .28) !important;
    background: rgba(255, 248, 247, .98) !important;
}

.flash.is-hiding {
    pointer-events: none;
    animation: flash-away .2s ease forwards;
}

.flash-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #e7f8ef;
    color: #087765;
    box-shadow: inset 0 0 0 1px rgba(8, 119, 101, .16);
    animation: flash-orb-pop .68s ease both;
}

.flash.bad .flash-orb {
    background: #ffe9e6;
    color: #a9362d;
    box-shadow: inset 0 0 0 1px rgba(169, 54, 45, .18);
    animation: flash-error-shake .48s ease both;
}

.flash .bi {
    margin-inline: 0 !important;
    font-size: 23px;
    line-height: 1;
}

.flash-message {
    min-width: 0;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.38;
}

@keyframes flash-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -44%) scale(.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes flash-away {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -47%) scale(.96);
    }
}

@keyframes flash-orb-pop {
    0% {
        transform: scale(.35);
    }
    55% {
        transform: scale(1.14);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes flash-error-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    22%,
    66% {
        transform: translateX(-3px);
    }
    44%,
    88% {
        transform: translateX(3px);
    }
}

@media (max-width: 600px) {
    .flash {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        min-height: 76px;
        padding: 14px !important;
    }

    .flash-orb {
        width: 42px;
        height: 42px;
    }

    .flash-message {
        font-size: 14px;
    }
}

/* Dense admin lists */
.management-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(140px, auto) minmax(140px, auto) auto auto;
    gap: 10px;
    align-items: end;
    margin: 14px 0 12px;
    padding: 12px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 24px rgba(16, 35, 29, .045);
}

.management-toolbar label {
    display: grid;
    gap: 5px;
    color: #607268;
    font-size: 12px;
    font-weight: 900;
}

.management-toolbar .search-field {
    position: relative;
}

.management-toolbar .search-field > span {
    padding-left: 24px;
}

.management-toolbar .search-field .bi {
    position: absolute;
    left: 10px;
    bottom: 10px;
    margin-inline: 0 !important;
    color: #607268;
    font-size: 15px;
}

.management-toolbar input,
.management-toolbar select {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid rgba(16, 35, 29, .14);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.management-toolbar .search-field input {
    padding-left: 34px;
}

.compact-admin-list {
    display: grid;
    gap: 8px;
}

.compact-user-item {
    grid-template-columns: minmax(220px, 1.2fr) minmax(190px, .7fr) minmax(210px, .8fr) auto !important;
    gap: 12px !important;
    min-height: 68px;
    padding: 10px 12px !important;
    box-shadow: 0 8px 18px rgba(16, 35, 29, .045) !important;
}

.compact-user-item .user-initial {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.compact-user-item .user-identity {
    gap: 10px;
}

.compact-user-item .user-identity h3 {
    margin: 0 0 2px;
    font-size: 15px;
    line-height: 1.15;
}

.compact-user-item .user-identity p,
.compact-user-item .user-meta small {
    margin: 0;
    color: #607268;
    font-size: 12px;
    line-height: 1.35;
}

.compact-user-item .user-meta {
    display: grid;
    gap: 2px;
}

.compact-comment-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
    gap: 12px;
    align-items: center;
    min-height: 86px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 35, 29, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 18px rgba(16, 35, 29, .045);
}

.compact-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.compact-title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.compact-title-line strong {
    min-width: 0;
    font-size: 15px;
    line-height: 1.2;
}

.compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    margin: 0;
    color: #607268;
    font-size: 12px;
    font-weight: 750;
}

.compact-meta .bi {
    margin-inline: 0 5px !important;
}

.compact-excerpt {
    margin: 0;
    color: #263a31;
    font-size: 13px;
    line-height: 1.38;
}

.compact-details {
    color: #607268;
    font-size: 12px;
}

.compact-details summary {
    width: fit-content;
    cursor: pointer;
    font-weight: 900;
}

.compact-details p {
    margin: 8px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: #f4f8f5;
    color: #263a31;
    font-size: 13px;
    line-height: 1.45;
}

.compact-controls {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.compact-controls label {
    display: grid;
    gap: 5px;
    color: #607268;
    font-size: 12px;
    font-weight: 900;
}

.compact-controls select {
    min-height: 34px;
    min-width: 138px;
    padding: 7px 9px;
    border: 1px solid rgba(16, 35, 29, .14);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.compact-controls .button-row {
    justify-content: flex-end;
    gap: 8px;
}

.compact-empty {
    padding: 16px !important;
}

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

    .management-toolbar .search-field {
        grid-column: 1 / -1;
    }

    .compact-user-item,
    .compact-comment-item {
        grid-template-columns: 1fr !important;
    }

    .compact-controls {
        justify-items: start;
    }

    .compact-controls .button-row {
        justify-content: flex-start;
    }
}

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

    .compact-user-item {
        padding: 10px !important;
    }

    .compact-meta {
        gap: 4px 10px;
    }
}
