@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;600;700;800&display=swap');

:root {
    --ink: #163325;
    --text: #304339;
    --muted: #6b7d72;
    --green: #78b81e;
    --dark: #0d291d;
    --mint: #f0f7e9;
    --paper: #f7f9f5;
    --border: #dfe8d9;
    --white: #fff;
    --shadow: 0 14px 48px rgba(20, 49, 31, .06)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 16px/1.6 'DM Sans', Arial, sans-serif
}

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

button {
    cursor: pointer
}

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

img {
    display: block;
    max-width: 100%
}

h1,
h2,
h3 {
    font-family: Manrope, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -.035em
}

h1 {
    font-size: clamp(2.15rem, 4.6vw, 4.5rem);
    margin: 0
}

h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem)
}

h3 {
    font-size: 1.17rem
}

p {
    margin: .5rem 0 1rem
}

main {
    min-height: 65vh
}

.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10
}

.header-inner {
    max-width: 1280px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 26px;
    min-height: 79px
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink)
}

.brand img {
    height: 63px;
    width: 65px;
    object-fit: contain
}

.brand strong {
    display: block;
    line-height: 1.15;
    font-size: 1.09rem;
    letter-spacing: .12em
}

.brand small {
    display: block;
    font-size: .68rem;
    letter-spacing: .25em;
    color: var(--muted);
    font-weight: 800
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px
}

.nav a {
    font-weight: 700;
    font-size: .83rem;
    white-space: nowrap;
    color: #485d4c
}

.nav a:hover,
.nav a[aria-current=page] {
    color: #4d9116
}

.nav-login {
    background: var(--ink);
    color: white !important;
    border-radius: 9px;
    padding: 10px 17px
}

.mobile-toggle {
    display: none
}

.hero {
    background: linear-gradient(122deg, #112e21, #234b29 57%, #356b27);
    color: white;
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    align-items: center;
    gap: 28px;
    min-height: 530px;
    padding: 60px max(7vw, 30px);
    overflow: hidden
}

.hero-content {
    max-width: 735px
}

.hero h1 {
    color: white
}

.hero h1 span {
    color: #b8f264
}

.hero p {
    color: #dce9de;
    font-size: 1.12rem;
    max-width: 560px;
    margin: 25px 0 32px
}

.hero .eyebrow {
    color: #b5e97f;
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .22em;
    margin-bottom: 22px
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center
}

.hero-logo img {
    max-width: 450px;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .22))
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    border: 0;
    border-radius: 8px;
    padding: 11px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 800;
    transition: background .2s, transform .2s;
    white-space: nowrap
}

.btn:hover {
    transform: translateY(-1px)
}

.btn.primary {
    background: var(--green);
    color: #0b280d
}

.btn.primary:hover {
    background: #96d839
}

.btn.light {
    background: #ffffff1d;
    color: white;
    border: 1px solid #ffffff55
}

.btn.outline {
    border: 1px solid var(--border);
    background: white;
    color: var(--ink)
}

.btn.danger {
    color: #b73333
}

.page-head {
    background: linear-gradient(113deg, #143824, #2c6132);
    padding: 61px 28px 66px
}

.page-head-inner {
    max-width: 1200px;
    margin: auto
}

.page-head h1,
.page-head p {
    color: #fff
}

.page-head h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.3rem)
}

.page-head .overline {
    color: #b5df7a
}

.page-head p:last-child {
    color: #dfebda
}

.overline {
    font-size: .72rem !important;
    font-weight: 800;
    letter-spacing: .17em;
    color: #568c28;
    text-transform: uppercase
}

.section {
    max-width: 1250px;
    margin: 0 auto;
    padding: 52px 28px
}

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

.section-heading h2 {
    margin: 3px 0
}

.text-link {
    font-weight: 800;
    color: #4f8921
}

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

.feature,
.panel,
.tile {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow)
}

.feature {
    padding: 31px
}

.feature-num {
    font-family: Manrope, sans-serif;
    color: #7bb92a;
    font-weight: 800;
    font-size: 1.6rem
}

.feature h3 {
    margin: 10px 0
}

.feature a {
    font-weight: 800;
    color: #4e8b1a
}

.cards {
    display: grid;
    gap: 18px
}

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

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

.tile {
    padding: 24px
}

.tile h3 {
    margin: 4px 0 12px
}

.tile .meta {
    font-size: .81rem;
    font-weight: 800;
    color: #649d28
}

.tile .summary {
    color: var(--muted);
    overflow-wrap: anywhere
}

.panel {
    padding: 27px
}

.panel h2 {
    margin-top: 0
}

.space-top {
    margin-top: 18px
}

.filters {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap
}

.filters label {
    flex: 1;
    min-width: 190px
}

.form {
    display: grid;
    gap: 15px
}

.form label,
.filters label {
    display: grid;
    gap: 6px;
    font-weight: 800;
    font-size: .89rem;
    color: var(--ink)
}

input,
select,
textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #cdd8c7;
    border-radius: 8px;
    padding: 10px 11px;
    min-height: 44px;
    outline-offset: 2px;
    color: var(--ink)
}

textarea {
    min-height: 110px;
    resize: vertical
}

.form-row {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap
}

.form-row>label {
    flex: 1;
    min-width: 140px
}

.form-row .btn {
    margin-bottom: 0
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    outline: 2px solid #a3d96c55
}

.auth-grid {
    max-width: 1130px;
    margin: 40px auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.table-wrap {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top
}

th {
    background: var(--mint);
    color: var(--ink);
    font-size: .79rem
}

td {
    font-size: .9rem
}

.pagination {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 24px
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px
}

.calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.calendar-head h2 {
    margin: 0
}

.icon-btn {
    font-size: 2rem;
    padding: 4px 18px;
    background: var(--mint);
    color: var(--ink)
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    margin-top: 20px
}

.calendar-grid>div {
    min-height: 70px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px;
    font-size: .85rem
}

.calendar-grid .dayhead {
    min-height: 33px;
    background: var(--mint);
    text-align: center;
    font-weight: 800
}

.calendar-grid .outside {
    opacity: .27
}

.calendar-grid .day-event {
    background: #e3f5c9;
    border-color: #84c545
}

.calendar-grid b {
    display: block;
    font-size: .7rem;
    color: #518e24;
    line-height: 1.1
}

.calendar-event {
    padding: 12px 0;
    border-bottom: 1px solid var(--border)
}

.calendar-event strong {
    display: block;
    color: var(--ink)
}

.tiny {
    color: var(--muted);
    font-size: .8rem
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px
}

.stat {
    padding: 25px;
    background: var(--ink);
    color: white;
    border-radius: 12px
}

.stat strong {
    font-size: 2rem;
    display: block
}

.stat small {
    color: #d6ebc8
}

.account-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.5fr;
    gap: 20px
}

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px
}

.admin-nav {
    display: grid;
    gap: 7px
}

.admin-nav button {
    padding: 12px;
    text-align: left;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    color: var(--ink)
}

.admin-nav button.active {
    background: var(--mint);
    border-color: #8cbc48
}

.footer {
    background: #0b241b;
    color: #c6d4c9;
    margin-top: 64px
}

.footer-inner {
    max-width: 1250px;
    padding: 34px 28px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    font-size: .8rem
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px
}

.footer-brand img {
    width: 64px;
    height: 65px;
    object-fit: contain
}

.footer-brand p {
    margin: 2px 0
}

.footer-brand strong {
    color: #fff
}

.loading,
.error,
.empty {
    padding: 24px;
    color: var(--muted);
    background: white;
    border-radius: 12px;
    border: 1px dashed var(--border)
}

.error {
    color: #b33535;
    border-color: #e7bebe
}

.success {
    color: #377b16
}

.hidden {
    display: none !important
}

[hidden] {
    display: none !important
}

@media(max-width:1050px) {
    .nav {
        gap: 12px
    }

    .nav a {
        font-size: .75rem
    }

    .header-inner {
        padding: 9px 15px
    }

    .hero {
        padding: 60px 34px
    }
}

@media(max-width:780px) {
    .mobile-toggle {
        display: block;
        border: 0;
        background: var(--mint);
        font-size: 1.35rem;
        border-radius: 8px;
        padding: 6px 13px
    }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 79px;
        flex-direction: column;
        align-items: stretch;
        background: white;
        padding: 18px 24px;
        box-shadow: 0 14px 40px #12341b20
    }

    .nav.open {
        display: flex
    }

    .nav a {
        font-size: .92rem
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: unset
    }

    .hero-logo {
        display: none
    }

    .features,
    .cards.three {
        grid-template-columns: 1fr 1fr
    }

    .calendar-layout,
    .account-grid,
    .admin-layout {
        grid-template-columns: 1fr
    }

    .auth-grid {
        grid-template-columns: 1fr
    }

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

@media(max-width:520px) {
    .section {
        padding: 34px 15px
    }

    .features,
    .cards.three,
    .cards.two,
    .stats {
        grid-template-columns: 1fr
    }

    .page-head {
        padding: 36px 15px
    }

    .calendar-grid {
        gap: 3px
    }

    .calendar-grid>div {
        padding: 3px;
        min-height: 54px;
        font-size: .68rem
    }

    .panel {
        padding: 16px
    }

    .hero {
        padding: 43px 20px
    }

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

    .brand img {
        width: 52px;
        height: 52px
    }

    .header-inner {
        min-height: 67px
    }

    .nav {
        top: 67px
    }
}