@font-face {
    font-family: Dana;
    src: url('../fonts/dana-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Dana;
    src: url('../fonts/dana-bold.ttf') format('truetype');
    font-weight: 600 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #12374a;
    --gold: #d2b163;
    --green-950: #184420;
    --green-900: #2c5a20;
    --green-800: #5a8a28;
    --green-700: #6b9b21;
    --green-600: #7da727;
    --green-500: #8aaa21;
    --lime: #8db84a;
    --lime-dark: #7da727;
    --ink: #12374a;
    --muted: #5d6f63;
    --line: #e4eadf;
    --paper: #f4f6f1;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(18, 55, 74, 0.08);
    --radius: 16px;
    --header-h: 76px;
    --nav-h: 58px;
}

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

html {
    scroll-behavior: smooth;
    font-synthesis: none;
}

html,
body {
    margin: 0;
    font-family: Dana, Tahoma, sans-serif;
    overflow-x: hidden;
}

body {
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea {
    font-family: inherit;
}
button { cursor: pointer; }

b, strong, h1, h2, h3, h4, h5, h6 {
    font-family: Dana, Tahoma, sans-serif;
    font-weight: 700;
}

.container {
    width: min(1180px, calc(100% - 32px));
    max-width: 100%;
    margin-inline: auto;
}

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* Header */
.topbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(18, 55, 74, .06);
    box-shadow: 0 8px 24px rgba(18, 55, 74, .04);
    position: relative;
    z-index: 50;
}

.topbar-inner {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.contact {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf6e4;
    color: var(--green-700);
    display: grid;
    place-items: center;
}

.contact strong { display: block; font-size: 15px; letter-spacing: .3px; }
.contact span { display: block; font-size: 12px; color: var(--muted); }

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.brand-name { display: none; }
.brand-tag {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    max-width: 22ch;
}

.userbox {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.bell {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 50%;
    color: var(--green-700);
    display: grid;
    place-items: center;
    position: relative;
}
.bell.has-unread::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #e53935;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
    border: 2px solid #fff;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
}
.user img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dcedc8;
}
.user b { display: block; font-size: 14px; }
.user small { color: var(--muted); font-size: 12px; }
.user .icon { color: var(--muted); }

/* Nav */
.navwrap {
    background: var(--green-800);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 8px 20px rgba(18, 55, 74, .08);
}

.nav {
    display: flex;
    align-items: center;
    width: 100%;
}
.nav-drawer-head { display: none; }
.nav-drawer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: var(--nav-h);
    width: 100%;
}

.nav-drawer-links a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s ease;
}
.nav-drawer-links a:hover,
.nav-drawer-links a.is-active { background: rgba(255,255,255,.14); }
.nav-drawer-links a .icon { color: #e8f5e9; }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--navy);
    border-radius: 12px;
    position: relative;
    z-index: 90;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero {
    position: relative;
    min-height: 560px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(20, 40, 28, .12) 40%, rgba(16, 36, 24, .22) 100%),
        var(--hero) center/cover no-repeat;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .9fr 280px;
    gap: 22px;
    align-items: center;
    padding: 42px 0 48px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.55;
    color: var(--ink);
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.hero-lead {
    margin: 0 0 22px;
    color: #234433;
    max-width: 36ch;
    font-size: 14.5px;
    min-height: 1.7em;
}
.hero-lead.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: .9em;
    margin-right: 5px;
    background: var(--green-700);
    vertical-align: -2px;
    animation: type-caret .8s step-end infinite;
}
@keyframes type-caret {
    50% { opacity: 0; }
}

.hero-logo { display: none; }
.hero-badge { display: inline; }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.glass {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.feature {
    padding: 14px 14px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.feature-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8f5e9;
    color: var(--green-700);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.feature p {
    margin: 0;
    display: grid;
    gap: 2px;
    min-width: 0;
}
.feature-count {
    font-size: 18px;
    font-weight: 800;
    color: var(--green-800);
    line-height: 1.2;
    letter-spacing: 0;
}
.feature p span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--ink);
}

.phone-wrap {
    display: flex;
    justify-content: center;
    position: relative;
}
.phone {
    width: 230px;
    height: 460px;
    background: #111;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 30px 50px rgba(0,0,0,.28);
    position: relative;
}
.phone::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 78px;
    height: 16px;
    background: #111;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}
.phone-screen {
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(#e8f5e9, #f7faf5);
    padding: 28px 12px 12px;
}
.mini-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--green-700);
    font-size: 13px;
}
.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.mini-stat {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.mini-stat b { display: block; font-size: 18px; color: var(--green-700); }
.mini-stat span { font-size: 11px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 86px; padding: 8px; background: #fff; border-radius: 12px; }
.bars i {
    display: block;
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(var(--lime), var(--green-700));
}
.mini-list { margin-top: 10px; display: grid; gap: 6px; }
.mini-list span {
    background: #fff;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 11px;
    color: var(--muted);
}

.side-widgets { display: grid; gap: 12px; }
.widget { padding: 14px; }
.widget h3 {
    margin: 0 0 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.counts { display: flex; gap: 18px; }
.counts b { font-size: 26px; color: var(--green-700); display: block; line-height: 1.1; }
.counts span { font-size: 12px; color: var(--muted); }
.alert-zero { color: var(--muted); font-size: 13px; }
.reco {
    background: linear-gradient(180deg, #edf7e6, #dff0d4);
    border-color: #d4e8c6;
}
.reco p { margin: 0 0 12px; font-size: 13px; line-height: 1.9; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--green-700);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
}
.btn:hover { background: var(--green-600); }
.btn:disabled { opacity: .65; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost {
    background: #eef6ea;
    color: var(--green-800);
}
.btn-ghost:hover { background: #e1efda; }

/* Content */
.section { padding: 36px 0 48px; }

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.panel {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(22, 53, 38, .12);
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}
.panel-head h2 { margin: 0; font-size: 17px; }
.link-all { color: var(--green-600); font-size: 13px; font-weight: 600; }
.link-all:hover { text-decoration: underline; }

.featured-video {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}
.featured-video img { width: 100%; height: 180px; object-fit: cover; }
.play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.18);
}
.play span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--green-800);
    display: grid;
    place-items: center;
    font-size: 22px;
}
.featured-video strong {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.video-row, .class-row, .news-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}
.video-row img, .class-row img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}
.video-row p, .class-row p, .news-row p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
}
.class-row small { color: var(--muted); font-size: 12px; }

.date-badge {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--navy);
    display: grid;
    place-items: center;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.15;
}
.date-badge b { font-size: 18px; display: block; }
.date-badge span { font-size: 11px; }

.panel .btn { margin-top: auto; padding-block: 11px; }

.page-hero {
    background: linear-gradient(180deg, #e8f5e9, var(--paper));
    padding: 42px 0 18px;
}
.page-hero h1 { margin: 0 0 8px; font-size: 28px; }
.page-hero p { margin: 0; color: var(--muted); max-width: 60ch; }
.page-body { padding: 10px 0 60px; }
.empty-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.footer {
    background: var(--navy);
    color: #c5d4dc;
    font-size: 13.5px;
    margin-top: 8px;
    border-top: 4px solid var(--gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.2fr .95fr;
}
.footer-col {
    padding: 36px 28px 32px;
    border-inline-start: 1px solid rgba(255, 255, 255, .08);
}
.footer-col:first-child { padding-inline-start: 0; border-inline-start: 0; }
.footer-col:last-child { padding-inline-end: 0; }
.footer-col h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 15px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 99px;
    background: var(--gold);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #fff;
}
.footer-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}
.footer-brand strong {
    display: block;
    font-size: 22px;
    letter-spacing: 1px;
    line-height: 1;
}
.footer-brand small {
    display: block;
    margin-top: 6px;
    color: #c5d4dc;
    font-size: 11px;
    font-weight: 500;
}
.footer-col p {
    margin: 0;
    line-height: 1.9;
    max-width: 36ch;
}
.footer-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}
.footer-split nav { display: grid; gap: 8px; }
.footer-split a,
.footer-col a { color: #c5d4dc; }
.footer-split a:hover,
.footer-contact:hover { color: #fff; }
.footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-contact:first-of-type { border-top: 0; padding-top: 0; }
.footer-contact small { display: block; font-size: 11px; color: #9bb0bb; }
.footer-contact b { display: block; color: #fff; font-size: 14px; }
.footer-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(210, 177, 99, .14);
    color: var(--gold);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.footer-bar {
    background: #0c2838;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 0;
    font-size: 12.5px;
    color: #9bb0bb;
}
.footer-bar-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mobile-dock { display: none; }
.mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 65;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 6px 6px;
    background: rgba(90, 138, 40, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(18, 55, 74, .28);
}
.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: 16px;
    color: rgba(255, 255, 255, .78);
    text-align: center;
    background: none;
    box-shadow: none;
    transform: none;
    transition: color .15s ease, background .15s ease;
    position: relative;
}
.dock-item + .dock-item::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    border-radius: 1px;
    background: rgba(255, 255, 255, .28);
    pointer-events: none;
}
.dock-item b {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}
.dock-ico {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    filter: none;
}
.dock-ico .icon { width: 22px; height: 22px; }
.dock-item:active {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .1);
}
.dock-item.is-active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    box-shadow: none;
}
.dock-item.is-active .dock-ico { color: var(--lime); }

.nav-overlay {
    display: none;
}

@media (max-width: 1100px) {
    .nav-drawer-links a { padding: 8px 10px; font-size: 13px; gap: 6px; }
}

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr 250px; }
    .phone-wrap { grid-column: 1 / -1; order: 3; }
    .phone { height: 400px; width: 200px; }
}

@media (max-width: 860px) {
    :root { --header-h: 58px; --dock-h: 86px; }
    .topbar {
        position: sticky;
        top: 0;
        background: var(--green-800);
        border-bottom: 0;
        box-shadow: 0 8px 20px rgba(18, 55, 74, .12);
    }
    .topbar-inner {
        display: flex;
        direction: ltr;
        align-items: center;
        min-height: var(--header-h);
        gap: 10px;
        position: relative;
    }
    .contact,
    .userbox,
    .brand-tag { display: none; }
    .brand {
        justify-self: auto;
        margin-right: auto;
        flex-direction: row;
        text-align: left;
        z-index: 1;
    }
    .brand-name {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-size: 18px;
        font-weight: 800;
        letter-spacing: .22em;
        line-height: 1;
        pointer-events: none;
    }
    .brand img {
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        padding: 4px;
        box-shadow: 0 2px 8px rgba(18, 55, 74, .12);
    }
    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
        flex-shrink: 0;
        color: #fff;
        width: 48px;
        height: 48px;
    }
    .menu-toggle .icon {
        width: 28px;
        height: 28px;
        stroke-width: 2.2;
    }
    .menu-toggle:active { background: rgba(255, 255, 255, .12); }
    .cards-3 { grid-template-columns: 1fr; }
    .hero {
        min-height: 0;
        overflow: hidden;
        background:
            linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 42%, rgba(244,248,239,.55) 100%),
            var(--hero) center/cover no-repeat;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 22px 0 28px;
        gap: 14px;
        min-width: 0;
    }
    .hero-inner > * { min-width: 0; }
    .hero-intro {
        display: grid;
        justify-items: center;
        text-align: center;
        gap: 12px;
        margin-bottom: 4px;
    }
    .hero-logo {
        display: block;
        width: 118px;
        height: 118px;
        object-fit: contain;
        border-radius: 50%;
        background: #fff;
        padding: 10px;
        box-shadow: 0 10px 24px rgba(18, 55, 74, .14);
    }
    .hero h1 {
        margin: 0;
        font-size: 12px;
        line-height: 1.4;
        overflow-wrap: anywhere;
        display: flex;
        justify-content: center;
        max-width: 100%;
    }
    .hero-badge {
        display: inline-block;
        background: rgba(255, 255, 255, .38);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, .55);
        color: var(--navy);
        border-radius: 999px;
        padding: 6px 14px;
        box-shadow: 0 6px 16px rgba(18, 55, 74, .08);
        text-shadow: none;
        max-width: 100%;
        box-sizing: border-box;
        font-size: clamp(10px, 3vw, 12px);
        font-weight: 800;
        line-height: 1.4;
        white-space: nowrap;
    }
    .hero-lead {
        color: var(--ink);
        max-width: 36ch;
        font-size: 13px;
        margin: 0 0 8px;
        text-align: center;
    }
    .phone-wrap { display: none; }
    .feature-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        padding: 0;
    }
    .feature {
        flex: none;
        max-width: none;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 10px;
        min-height: 0;
    }
    .feature p { justify-items: center; }
    .feature-ico {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    .feature-count { font-size: 15px; }
    .feature p span { font-size: 11px; line-height: 1.45; }
    .side-widgets {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
    }
    .side-widgets > * { min-width: 0; }
    .widget {
        padding: 12px;
        text-align: center;
    }
    .widget h3 { justify-content: center; }
    .counts { justify-content: center; }
    .counts b { font-size: 22px; }
    .reco p { text-align: center; }
    .reco { grid-column: 1 / -1; }
    .navwrap {
        height: 0;
        min-height: 0;
        background: none;
        box-shadow: none;
        overflow: visible;
    }
    .navwrap .container {
        display: block;
        min-height: 0;
        height: 0;
        padding: 0;
        overflow: visible;
    }
    .nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        inset: 0;
        right: 0;
        left: auto;
        width: min(340px, 88vw);
        height: 100%;
        min-height: 100dvh;
        background: #fff;
        z-index: 120;
        transform: translateX(110%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .32s cubic-bezier(.22, 1, .36, 1), visibility .32s;
        box-shadow: -16px 0 40px rgba(18, 55, 74, .18);
        overflow: auto;
    }
    .nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 16px 16px 14px;
        background: linear-gradient(180deg, #f4f8ee, #fff);
        border-bottom: 1px solid var(--line);
        position: sticky;
        top: 0;
    }
    .nav-drawer-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--navy);
        min-width: 0;
    }
    .nav-drawer-brand img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }
    .nav-drawer-brand strong { display: block; font-size: 18px; letter-spacing: 1px; }
    .nav-drawer-brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
    .nav-drawer-close {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 10px;
        background: #eef6ea;
        color: var(--navy);
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }
    .nav-drawer-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px));
        min-height: 0;
        width: auto;
    }
    .nav-drawer-links a {
        color: var(--ink);
        white-space: normal;
        padding: 12px 14px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 12px;
    }
    .nav-drawer-links a .icon { color: var(--green-700); }
    .nav-drawer-links a:hover,
    .nav-drawer-links a.is-active {
        background: #eef6ea;
        color: var(--green-800);
    }
    .nav-overlay.is-open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(18, 55, 74, .45);
        backdrop-filter: blur(2px);
        z-index: 110;
    }
    body.nav-open .navwrap { z-index: 120; }
    .mobile-dock { display: grid; }
    body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); }
    .toast { bottom: calc(var(--dock-h) + 16px); }
    .footer { margin-bottom: 8px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col {
        padding: 24px 0;
        border-inline-start: 0;
        border-top: 1px solid rgba(255,255,255,.08);
    }
    .footer-col:first-child { border-top: 0; padding-top: 28px; }
    .footer-col:last-child { padding-bottom: 28px; }
}

@media (max-width: 560px) {
    .user span { display: none; }
}

/* Auth + user menu */
.login-cta {
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
}
.avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e8f5e9;
    color: var(--green-800);
    display: grid;
    place-items: center;
    font-weight: 800;
    border: 2px solid #dcedc8;
}
.user-menu { position: relative; }
.user-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 50;
}
.user-dropdown a,
.user-dropdown button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    background: none;
    color: inherit;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: #eef6ea; }
.flash-ok {
    max-width: 1180px;
    margin: 12px auto 0;
    background: #e8f5e9;
    color: var(--green-800);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    width: calc(100% - 32px);
}
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    z-index: 80;
    font-size: 13px;
}

.auth-page {
    min-height: 62vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background: linear-gradient(180deg, #e8f5e9, var(--paper));
}
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 16px;
}
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 94, 32, .45);
}
.auth-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    position: relative;
}
.auth-card-modal { z-index: 1; }
.auth-close {
    position: absolute;
    top: 14px;
    left: 14px;
    border: 0;
    background: #eef6ea;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--green-800);
    display: grid;
    place-items: center;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand img { width: 110px; height: 110px; margin-inline: auto; object-fit: contain; }
.auth-brand strong { display: block; margin-top: 10px; font-size: 20px; }
.auth-brand p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.field {
    width: 100%;
    border: 1px solid var(--line);
    background: #fbfdf9;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: inherit;
    outline: none;
}
.field:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(107,155,33,.18); background: #fff; }
.field.is-invalid { border-color: #e53935; }
.field-error { color: #c62828; font-size: 12px; margin: 8px 0 0; }
.auth-submit { padding-block: 12px; margin-top: 16px; }
.auth-hint {
    background: #eef6ea;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    margin: 0 0 16px;
}
.otp-boxes { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp-box {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdf9;
}
.otp-box:focus { border-color: var(--green-600); outline: none; }
.auth-resend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 4px;
    font-size: 13px;
    color: var(--muted);
}
.auth-resend button {
    border: 0;
    background: none;
    color: var(--green-700);
    font-weight: 700;
}
.auth-resend button:disabled { color: #9aaa9d; }

.onboard { padding: 36px 0 64px; }
.onboard-wrap { width: min(760px, calc(100% - 32px)); }
.onboard-head { margin-bottom: 22px; }
.onboard-head h1 { margin: 8px 0; font-size: 28px; }
.onboard-head p { margin: 0; color: var(--muted); }
.step-pill {
    display: inline-block;
    background: #e8f5e9;
    color: var(--green-800);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}
.onboard-card, .form-card, .side-card, .farm-detail {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.type-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 10px;
    cursor: pointer;
    background: #fbfdf9;
}
.type-card input { accent-color: var(--green-700); margin-top: 4px; }
.type-card b { display: block; }
.type-card small { color: var(--muted); font-size: 12px; }
.type-card:has(input:checked) {
    border-color: var(--green-600);
    background: #eef6ea;
    box-shadow: 0 0 0 3px rgba(107,155,33,.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.back-link { color: var(--green-700); font-size: 13px; font-weight: 700; }

.farm-page { padding: 24px 0 56px; }
.stat-row {
    display: grid;
    grid-template-columns: 1.15fr repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
}
.stat-card small { color: var(--muted); font-size: 12px; display: block; }
.stat-card strong { font-size: 16px; }
.stat-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e8f5e9;
    color: var(--green-700);
    display: grid;
    place-items: center;
}
.stat-add {
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    color: #fff;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.stat-plus {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
}
.empty-farm {
    background: #fff;
    border-radius: 18px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.empty-farm-art { font-size: 42px; }
.farm-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.farm-side { display: grid; gap: 14px; align-content: start; }
.side-head h3, .weather h3 { margin: 0 0 12px; font-size: 15px; }
.farm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}
.farm-item:hover, .farm-item.is-active { background: #eef6ea; }
.farm-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.farm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.farm-item b { display: block; font-size: 13px; }
.farm-item small { color: var(--muted); font-size: 12px; }
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: auto;
}
.status-good { background: var(--green-700); }
.status-average { background: #f9a825; }
.status-poor { background: #e53935; }
.weather-loc { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.weather-row { display: grid; gap: 8px; font-size: 13px; }
.weather-row div { display: flex; align-items: center; gap: 8px; color: var(--green-800); }
.detail-cover {
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.detail-head h2 { margin: 0 0 8px; }
.detail-actions { display: flex; gap: 8px; }
.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
}
.badge-good { background: #e8f5e9; color: #2e7d32; }
.badge-average { background: #fff8e1; color: #f9a825; }
.badge-poor { background: #ffebee; color: #c62828; }
.btn-danger { background: #c62828; }
.btn-danger:hover { background: #b71c1c; }
.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.meta-grid div {
    background: #f6faf3;
    border-radius: 12px;
    padding: 10px 12px;
}
.meta-grid small { color: var(--muted); font-size: 11px; display: block; }
.tabs {
    display: flex;
    gap: 6px;
    overflow: auto;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}
.tabs button {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.tabs button.is-active { background: #e8f5e9; color: var(--green-800); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.info-cards section {
    background: #f6faf3;
    border-radius: 14px;
    padding: 14px;
}
.info-cards h4, .notes-box h4 { margin: 0 0 10px; font-size: 14px; }
.info-cards ul { margin: 0; padding: 0 18px 0 0; font-size: 13px; }
.info-cards li { margin: 6px 0; }
.notes-box { margin-top: 14px; background: #f6faf3; border-radius: 14px; padding: 14px; }
.notes-head { display: flex; justify-content: space-between; }
.notes-box p { margin: 0; font-size: 13px; color: var(--muted); }
.doc-box { display: grid; gap: 12px; justify-items: start; }
.doc-box img { max-width: 320px; border-radius: 14px; }
.ai-banner {
    margin-top: 18px;
    background: linear-gradient(135deg, #edf7e6, #d7ecc8);
    border-radius: 18px;
    padding: 22px;
}
.ai-copy h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.ai-copy p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.ai-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ai-chips button {
    border: 1px solid #cfe6c0;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-800);
}
.ai-input { display: flex; gap: 8px; }
.ai-input input { flex: 1; }
.form-wrap { width: min(920px, calc(100% - 32px)); }
.farm-form { display: grid; gap: 14px; }
.form-card h3 { margin: 0 0 14px; font-size: 16px; }
.wizard-subhead { margin: 22px 0 14px; font-size: 16px; }
.wizard-head {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.wizard-steps {
    list-style: none;
    margin: 0;
    padding: 16px 18px 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}
.wizard-steps button {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}
.wizard-steps button span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef6ea;
    color: var(--green-800);
    font-size: 13px;
    font-weight: 800;
}
.wizard-steps button b { font-size: 12px; font-weight: 700; }
.wizard-steps button.is-active { color: var(--green-800); }
.wizard-steps button.is-active span,
.wizard-steps button.is-done span {
    background: var(--green-600);
    color: #fff;
}
.wizard-progress {
    height: 4px;
    background: var(--line);
    border-radius: 0;
    overflow: hidden;
    background-color: #eef6ea;
    box-shadow: none;
}
.wizard-progress span {
    display: block;
    height: 100%;
    width: 20%;
    margin-inline-start: auto;
    background: linear-gradient(to left, var(--green-600), var(--lime));
    transition: width .25s ease;
}
.wizard-caption { margin: 0; color: var(--muted); font-size: 13px; }
.wizard-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}
.wizard-nav .btn { min-width: 140px; padding-block: 12px; }
.wizard-nav [data-wizard-next],
.wizard-nav [data-wizard-submit] { margin-inline-start: auto; }
.form-preview { width: 160px; height: 110px; object-fit: cover; border-radius: 12px; margin-top: 10px; }
.map-hint { margin: -6px 0 14px; color: var(--muted); font-size: 13px; }
.detail-map-wrap { margin-bottom: 16px; }
.detail-map-wrap h4 { margin: 0 0 10px; font-size: 14px; }
.farm-map { display: grid; gap: 10px; }
.farm-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.map-btn {
    border: 1px solid #cfe6c0;
    background: #fff;
    color: var(--green-800);
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.map-btn:hover { background: #eef6ea; }
.map-btn.is-primary {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff;
}
.map-btn.is-primary:hover { background: var(--green-700); }
.map-search { margin-right: auto; min-width: min(220px, 100%); }
.map-search input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fbfdf9;
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    font-size: 12px;
    outline: none;
}
.map-search input:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(107,155,33,.18); }
.farm-map-canvas {
    width: 100%;
    height: 380px;
    min-height: 380px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    direction: ltr;
    background: #dfe8dc;
    position: relative;
    z-index: 1;
}
.farm-map-stage {
    position: relative;
    isolation: isolate;
}
.map-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2000;
    width: min(228px, calc(100% - 24px));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(228, 234, 223, .95);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(18, 55, 74, .16);
    padding: 10px 12px 12px;
    direction: rtl;
    color: var(--navy);
    pointer-events: auto;
}
.map-legend-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
}
.map-legend-kicker {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(180deg, #eef6ea, #e3f0d8);
    color: var(--green-800);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(107, 155, 33, .12);
}
.map-legend-kicker .icon { width: 14px; height: 14px; }
.map-legend-title {
    flex: 1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.3;
}
.map-legend ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.map-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    min-width: 0;
}
.leg-mark {
    width: 28px;
    height: 22px;
    border-radius: 7px;
    background: #f4f8ef;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(18, 55, 74, .05);
}
.leg-swatch {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.leg-poly {
    background: rgba(141, 184, 74, .38);
    border: 2px solid #6b9b21;
}
.leg-line {
    height: 0;
    width: 18px;
    border: 0;
    border-top: 3px dashed #6b9b21;
    background: none;
    border-radius: 0;
}
.leg-vertex {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b9b21;
    border: 2px solid #12374a;
}
.leg-here {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8db84a;
    border: 2px solid #6b9b21;
}
.farm-map-canvas.is-drawing { cursor: crosshair; }
.farm-map-status { margin: 0; color: var(--muted); font-size: 13px; }
.farm-map .leaflet-container {
    width: 100%;
    height: 380px;
    font-family: Dana, Tahoma, sans-serif;
    background: #dce6d6;
}
.farm-map .leaflet-container img.leaflet-tile {
    mix-blend-mode: normal !important;
    max-width: none !important;
    max-height: none !important;
    display: inline !important;
}
.farm-map .leaflet-bar { border: 0; box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; }
.farm-map .leaflet-bar a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    color: var(--green-800);
    border-bottom-color: var(--line);
}
.farm-map .leaflet-bar a:hover { background: #eef6ea; color: var(--green-900); }
.farm-map .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255,255,255,.85);
}
.field[data-jdp] {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b9b21' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='3.5' width='13' height='12' rx='2'/%3E%3Cpath d='M2.5 7.5h13M6 2v3M12 2v3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}
jdp-container {
    font-family: Dana, Tahoma, sans-serif;
    border-radius: 16px !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden;
}
jdp-container .jdp-day.selected,
jdp-container .jdp-day-name.selected {
    background-color: var(--green-600) !important;
}
jdp-container .jdp-day:not(.disabled-day):hover {
    background: #e8f4ea;
}
jdp-container .jdp-btn-close,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-today {
    background: var(--green-600) !important;
    font-family: inherit;
}

/* Content hubs: news, videos, classes */
.hub-hero {
    background: linear-gradient(180deg, #e8f5e9, var(--paper));
    padding: 36px 0 18px;
}
.hub-hero-slim { padding-bottom: 8px; }
.hub-hero h1 { margin: 6px 0 8px; font-size: 28px; }
.hub-hero p { margin: 0; color: var(--muted); max-width: 60ch; }
.crumb { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--green-700); font-weight: 700; }
.hub-body { padding: 8px 0 64px; }

.chip {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    font-style: normal;
    margin-bottom: 8px;
}
.chip-news, .chip-open { background: #e8f5e9; color: var(--green-800); }
.chip-notice { background: #fff4d6; color: #8a6a1a; }
.chip-soon { background: #eef3f6; color: var(--navy); }
.chip-full { background: #f3e8e8; color: #8a3a3a; }

.hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 18px;
}
.hub-filters button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}
.hub-filters button.is-active {
    background: var(--green-700);
    border-color: var(--green-700);
    color: #fff;
}

.news-layout {
    display: grid;
    grid-template-columns: 1.7fr .9fr;
    gap: 22px;
    align-items: start;
}
.news-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    min-height: 240px;
}
.news-feature img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.news-feature span { padding: 22px; display: grid; align-content: center; }
.news-feature strong { font-size: 22px; line-height: 1.6; }
.news-feature small { color: var(--muted); margin: 6px 0 10px; }
.news-feature p { margin: 0; color: var(--muted); font-size: 14px; }

.news-list { display: grid; gap: 10px; }
.news-card {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
    align-items: flex-start;
}
.news-card b { display: block; margin: 4px 0 6px; }
.news-card p { margin: 0; color: var(--muted); font-size: 13px; }

.notice-side {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    border-top: 4px solid var(--gold);
}
.notice-side h2 {
    margin: 0 0 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notice-side a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
}
.notice-side a:first-of-type { border-top: 0; }

.video-hero {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    min-height: 340px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.video-hero img { width: 100%; height: 380px; object-fit: cover; display: block; }
.video-hero-copy {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 28px 22px 20px;
    background: linear-gradient(transparent, rgba(18, 55, 74, .82));
    color: #fff;
}
.video-hero-copy em { font-style: normal; opacity: .85; font-size: 13px; }
.video-hero-copy strong { display: block; font-size: 24px; margin: 6px 0; }
.video-hero-copy p { margin: 0; opacity: .92; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.video-card b { display: block; padding: 12px 12px 2px; font-size: 14px; }
.video-card small { display: block; padding: 0 12px 14px; color: var(--muted); }
.video-thumb { position: relative; display: block; }
.video-thumb img { width: 100%; height: 168px; object-fit: cover; }
.video-thumb i, .video-hero i, .video-stage i {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(18, 55, 74, .8);
    color: #fff;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}
.play-sm span { width: 42px; height: 42px; }

.video-detail {
    display: grid;
    grid-template-columns: 1.6fr .8fr;
    gap: 22px;
    align-items: start;
}
.video-stage {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
}
.video-stage img { width: 100%; height: 420px; object-fit: cover; display: block; }
.video-stage .play {
    border: 0;
    width: 100%;
    height: 100%;
}
.video-detail h1 { margin: 0 0 8px; font-size: 26px; }
.video-detail aside {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px;
}
.video-detail aside h2 { margin: 0 0 10px; font-size: 15px; }
.video-detail .video-row { border-top: 1px solid var(--line); padding: 10px 0; }
.video-detail .video-row:first-of-type { border-top: 0; padding-top: 0; }

.class-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.class-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 180px 1fr;
}
.class-card-media { position: relative; display: block; }
.class-card-media img { width: 100%; height: 100%; object-fit: cover; min-height: 210px; }
.class-card-media .chip { position: absolute; top: 10px; right: 10px; margin: 0; }
.class-card-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.class-card-body h2 { margin: 0; font-size: 18px; }
.class-card-body p { margin: 0; color: var(--muted); font-size: 13px; }
.class-card-body .btn { margin-top: 8px; justify-self: start; }
.class-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--ink);
}
.class-meta li { display: flex; align-items: center; gap: 8px; }
.class-meta .icon { color: var(--green-700); }

.class-detail {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 22px;
    align-items: start;
    margin-bottom: 24px;
}
.class-detail h1 { margin: 10px 0 8px; }
.class-detail h2 { margin: 22px 0 10px; font-size: 18px; }
.class-side {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
}
.class-side .btn { margin: 16px 0 10px; }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.topic-list li { display: flex; align-items: center; gap: 8px; }
.topic-list .icon { color: var(--green-700); }

.article-wrap { width: min(760px, 100%); }
.article-wrap h1 { margin: 10px 0 8px; font-size: 28px; line-height: 1.55; }
.article-meta { color: var(--muted); margin: 0 0 16px; }
.article-cover {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}
.article-wrap p { color: var(--ink); }
.related-title { margin: 28px 0 10px; font-size: 18px; }
.related-list { display: grid; gap: 8px; }
.related-list a {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .stat-row { grid-template-columns: 1fr 1fr; }
    .farm-grid { grid-template-columns: 1fr; }
    .meta-grid, .info-cards, .form-row-3 { grid-template-columns: 1fr 1fr; }
    .news-layout, .video-detail, .class-detail, .news-feature, .class-card { grid-template-columns: 1fr; }
    .video-grid, .class-grid { grid-template-columns: 1fr 1fr; }
    .video-hero img, .video-stage img, .article-cover { height: 240px; }
    .news-feature img, .class-card-media img { min-height: 180px; height: 180px; }
}
@media (max-width: 900px) {
    .farm-map-canvas,
    .farm-map .leaflet-container { height: 320px; min-height: 320px; }
    .map-legend {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        padding: 8px;
        border-radius: 16px;
        background: rgba(18, 55, 74, .88);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, .14);
        box-shadow: 0 12px 28px rgba(18, 55, 74, .28);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    .map-legend-head {
        margin: 0 0 6px;
        padding: 2px 6px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        gap: 8px;
    }
    .map-legend-kicker {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: linear-gradient(180deg, var(--green-600), var(--green-800));
        color: #fff;
        box-shadow: 0 4px 10px rgba(107, 155, 33, .35);
    }
    .map-legend-kicker .icon { width: 13px; height: 13px; }
    .map-legend-title {
        font-size: 11px;
        color: #fff;
        font-weight: 800;
    }
    .map-legend ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .map-legend li {
        font-size: 11px;
        font-weight: 700;
        gap: 6px;
        padding: 7px 8px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }
    .leg-mark {
        width: 22px;
        height: 22px;
        border-radius: 8px;
        background: rgba(255, 255, 255, .95);
    }
}
@media (max-width: 700px) {
    .type-grid, .form-row, .meta-grid, .info-cards, .form-row-3, .stat-row { grid-template-columns: 1fr; }
    .detail-head { flex-direction: column; }
    .map-search { margin-right: 0; width: 100%; }
    .wizard-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 12px 8px 8px; gap: 4px; }
    .wizard-steps button b { font-size: 10px; }
    .wizard-nav { flex-wrap: wrap; }
    .wizard-nav .btn { width: 100%; min-width: 0; }
    .video-grid, .class-grid { grid-template-columns: 1fr; }
    .class-card-body .btn { width: 100%; }
}

.skel {
    display: block;
    background: linear-gradient(90deg, #e4eadf 20%, #f4f7f1 40%, #e4eadf 60%);
    background-size: 200% 100%;
    animation: skel-shine 1.15s ease-in-out infinite;
    border-radius: 8px;
}
.skel-cover { width: 100%; height: 180px; border-radius: 14px; }
.skel-cover-lg { width: 100%; height: 240px; border-radius: 18px; }
.skel-thumb { width: 72px; height: 52px; flex-shrink: 0; border-radius: 10px; }
.skel-circle { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.skel-line { height: 12px; width: 78%; }
.skel-line.w-90 { width: 90%; }
.skel-line.w-70 { width: 70%; }
.skel-line.w-50 { width: 50%; }
.skel-line.w-40 { width: 40%; }
.skel-chip { width: 72px; height: 22px; border-radius: 999px; }
.skel-btn { height: 40px; width: 100%; border-radius: 10px; margin-top: 12px; }
.skel-rowline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}
.skel-rowline > .skel-stack { flex: 1; display: grid; gap: 8px; min-width: 0; }
.skel-stack { display: grid; gap: 8px; }
.skel-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.skel-card-body { padding: 14px; display: grid; gap: 8px; }
.skel-scope { position: relative; }
.skel-scope.is-loading .skel-body {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}
.skel-scope:not(.is-loading),
.skel-scope:not(.is-loading) .skel-body {
    display: contents;
}
.skel-scope:not(.is-loading) .skel-ui { display: none; }
.skel-img:not(.is-loaded) {
    background: linear-gradient(90deg, #e4eadf 20%, #f4f7f1 40%, #e4eadf 60%);
    background-size: 200% 100%;
    animation: skel-shine 1.15s ease-in-out infinite;
}
.skel-map {
    position: absolute;
    inset: 0;
    z-index: 2100;
    border-radius: 14px;
    background: linear-gradient(90deg, #dfe8dc 20%, #eef3ea 40%, #dfe8dc 60%);
    background-size: 200% 100%;
    animation: skel-shine 1.15s ease-in-out infinite;
    pointer-events: none;
}
.skel-map.is-done {
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
@keyframes skel-shine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .skel, .skel-img:not(.is-loaded), .skel-map { animation: none; }
}
