:root {
    --forest: #214d34;
    --forest-deep: #152a1e;
    --moss: #6f8e45;
    --bark: #8b6f47;
    --clay: #a64b3d;
    --sky: #5f8794;
    --cream: #f6f3ea;
    --paper: #fffcf5;
    --ink: #1f281f;
    --muted: #5f655c;
    --line: #d8d0be;
    --sun: #c49a43;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

a {
    color: var(--forest);
}

h1:focus,
.hero-title:focus {
    outline: none;
}

.site-layout {
    background:
        linear-gradient(180deg, rgba(246, 243, 234, 0.64), rgba(246, 243, 234, 1) 28rem),
        linear-gradient(135deg, rgba(95, 135, 148, 0.09), transparent 38rem);
    min-height: 100svh;
}

.site-main {
    min-height: 100svh;
}

.site-footer {
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.site-footer-inner {
    display: grid;
    gap: 0.7rem;
    min-height: 132px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: left;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex: 0 0 auto;
}

.footer-address {
    display: grid;
    gap: 0.18rem;
    margin: 0;
    color: var(--ink);
    font-style: normal;
    line-height: 1.35;
}

.footer-address strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    color: var(--forest-deep);
}

.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.1;
    text-align: center;
}

.footer-credit-icon {
    color: #000;
    font-size: 0.9rem !important;
}

.footer-login-link {
    position: relative;
    top: -1px;
    display: inline-flex;
    align-items: center;
    color: #000 !important;
    line-height: 1;
}

.footer-login-link:hover {
    opacity: 0.72;
}

.footer-credit-link {
    color: var(--forest-deep) !important;
    font-weight: 600;
}

.site-topbar {
    min-height: 76px;
    padding: 0 22px;
    background: rgba(21, 42, 30, 0.78) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 248, 231, 0.16);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff8e7 !important;
    min-width: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-wordmark {
    color: #fff8e7;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.mobile-nav {
    display: none;
}

.nav-link-button,
.auth-button,
.admin-button {
    color: #fff8e7 !important;
    border-radius: 8px !important;
    min-height: 40px;
}

.nav-link-button {
    position: relative;
}

.nav-link-button::after {
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-link-button.active::after,
.nav-link-button:hover::after {
    opacity: 0.9;
    transform: scaleX(1);
}

.active-nav-menu-item,
.active-nav-menu-item:hover,
.active-nav-menu-item:focus-visible,
.active-nav-menu-item.mud-list-item,
.active-nav-menu-item .mud-list-item-button {
    background: var(--forest) !important;
    color: #fff !important;
    font-weight: 800 !important;
}

.active-nav-menu-item .mud-list-item-text,
.active-nav-menu-item .mud-list-item-icon,
.active-nav-menu-item .mud-typography {
    color: #fff !important;
}

.admin-button,
.auth-button {
    margin-left: 8px;
}

.hero-section {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    background: var(--forest-deep);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 24, 16, 0.42), rgba(10, 24, 16, 0.34) 42%, rgba(10, 24, 16, 0.82)),
        linear-gradient(90deg, rgba(10, 24, 16, 0.72), rgba(10, 24, 16, 0.12));
    z-index: -1;
}

.hero-content {
    padding-top: 9rem;
    padding-bottom: clamp(4rem, 10vh, 7rem);
    color: #fff8e7;
}

.hero-heading {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    max-width: 1040px;
    margin-bottom: 1rem;
}

.hero-title {
    max-width: 780px;
    color: #fff8e7;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 6.25rem;
    line-height: 0.98;
    margin-bottom: 0;
    overflow-wrap: normal;
}

.hero-subtitle {
    max-width: 660px;
    color: rgba(255, 248, 231, 0.88);
    font-size: 1.45rem;
}

.hero-actions {
    flex-wrap: wrap;
    margin-top: 2rem;
}

.page-hero {
    padding-top: 4rem;
    padding-bottom: 0.5rem;
}

.admin-hero {
    padding-bottom: 1rem;
}

.page-intro {
    max-width: 780px;
    color: var(--muted);
    margin-top: 0.4rem;
}

.page-section {
    padding-top: clamp(2.75rem, 6vw, 5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.compact-top {
    padding-top: clamp(2.75rem, 6vw, 5rem);
}

.association-section {
    padding-top: clamp(2.75rem, 6vw, 5rem);
}

.mud-container.page-hero,
.mud-container.page-section,
.mud-container.hero-content {
    padding-left: clamp(0.5rem, 1vw, 0.85rem);
    padding-right: clamp(0.5rem, 1vw, 0.85rem);
}

.brand-heading {
    font-family: "Playfair Display", Georgia, serif !important;
    font-weight: 700 !important;
    color: var(--forest-deep);
}

.brand-heading.light {
    color: #fff8e7;
}

.section-kicker {
    color: var(--clay);
    font-weight: 800 !important;
    text-transform: uppercase;
}

.lead-copy {
    font-size: 1.18rem;
    color: #313a31;
}

.board-page {
    --board-heading-color: var(--forest-deep);
    --board-text-color: var(--ink);
    --board-muted-color: var(--muted);
    --board-link-color: var(--forest);
    --board-copy-size: 1rem;
    --board-name-size: 1.08rem;
    --board-role-size: 1.35rem;
}

.board-summary,
.board-member-contact {
    color: var(--board-muted-color);
    font-size: var(--board-copy-size);
    line-height: 1.58;
}

.board-member-role {
    margin-bottom: 0.2rem;
    color: var(--board-heading-color);
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: var(--board-role-size);
    font-weight: 700 !important;
    line-height: 1.18;
}

.board-member-name {
    margin-bottom: 0.55rem;
    color: var(--board-text-color);
    font-size: var(--board-name-size);
    font-weight: 700 !important;
    line-height: 1.35;
}

.board-member-link {
    display: inline-block;
    margin-top: 0.15rem;
    color: var(--board-link-color) !important;
    font-size: var(--board-copy-size);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.nature-panel,
.info-card,
.person-card,
.resource-card,
.callout-panel {
    border: 1px solid var(--line);
    border-radius: 8px !important;
    background: rgba(255, 252, 245, 0.92);
}

.nature-panel {
    box-shadow: 0 18px 48px rgba(31, 40, 31, 0.09);
}

.callout-panel {
    background: #f0eadc;
    border-color: #d6c7a5;
}

.info-card,
.person-card,
.resource-card {
    height: 100%;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.info-card .mud-card-content,
.person-card .mud-card-content,
.resource-card .mud-card-content {
    padding: 0.75rem !important;
}

.callout-panel.pa-5,
.nature-panel.pa-6,
.nature-panel.pa-4,
.upload-panel.pa-4 {
    padding: 0.9rem !important;
}

.person-card-highlight {
    border-color: rgba(196, 154, 67, 0.72);
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(240, 234, 220, 0.94));
    box-shadow: 0 18px 48px rgba(31, 40, 31, 0.12);
}

.practical-info-card {
    height: 100%;
}

.resource-card-link {
    display: block;
    height: 100%;
    color: inherit !important;
}

.resource-card-link:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(95, 135, 148, 0.45);
    outline-offset: 4px;
}

.info-card:hover,
.resource-card:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 77, 52, 0.34);
    box-shadow: 0 16px 34px rgba(31, 40, 31, 0.1);
}

.observations-status {
    min-height: 8rem;
}

.observations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.observation-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: inherit !important;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 252, 245, 0.92);
    box-shadow: 0 12px 26px rgba(31, 40, 31, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.observation-card:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 77, 52, 0.34);
    box-shadow: 0 16px 34px rgba(31, 40, 31, 0.11);
}

.observation-card:focus-visible {
    outline: 3px solid rgba(95, 135, 148, 0.45);
    outline-offset: 4px;
}

.observation-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #ece3d1;
}

.observation-body {
    padding: 0.9rem;
}

.observation-title {
    color: var(--forest-deep);
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
}

.observation-latin {
    color: var(--muted);
    font-style: italic;
}

.observation-date {
    display: block;
    margin-top: 0.55rem;
    color: var(--clay);
    font-weight: 800 !important;
}

.inaturalist-install {
    position: sticky;
    top: 6.5rem;
}

.install-icon {
    color: var(--moss);
    font-size: 2.6rem !important;
}

.resource-toc {
    margin-bottom: 3rem;
}

.resource-toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.resource-group {
    scroll-margin-top: 6.5rem;
    margin-bottom: 4.5rem;
}

.resource-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.map-card {
    overflow: hidden;
}

.map-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #ece3d1;
}

.document-card {
    min-height: 220px;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.65rem 0 0.75rem;
}

.resource-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.resource-tag-welcome {
    background: var(--forest-deep);
}

.resource-tag-minutes {
    background: var(--forest);
}

.resource-tag-notice {
    background: var(--clay);
}

.resource-tag-map {
    background: var(--sky);
}

.resource-tag-legislation {
    background: var(--bark);
}

.resource-tag-link {
    background: var(--moss);
}

.resource-tag-other {
    background: var(--forest-deep);
}

.resource-tag-sewerage {
    background: var(--sky);
}

.resource-tag-default {
    background: var(--forest-deep);
}

.auth-message {
    padding-top: 10rem;
}

.upload-panel {
    border: 1px dashed rgba(33, 77, 52, 0.38);
    border-radius: 8px;
    background: rgba(246, 243, 234, 0.72);
}

.admin-toolbar {
    gap: 1rem;
    flex-wrap: wrap;
}

.mud-button-root {
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 700 !important;
}

.mud-paper {
    color: var(--ink);
}

.mud-input,
.mud-table {
    color: var(--ink);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--moss);
}

.invalid {
    outline: 1px solid var(--clay);
}

.validation-message {
    color: var(--clay);
}

.blazor-error-boundary {
    background: #5b2d26;
    color: #fff8e7;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "Der opstod en fejl.";
}

@media (max-width: 1180px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: inline-flex;
        margin-right: -16px;
    }
}

@media (max-width: 720px) {
    .site-topbar {
        min-height: 66px;
        padding: 0 12px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-wordmark {
        max-width: 11rem;
        white-space: normal;
        font-size: 1rem;
    }

    .auth-button,
    .admin-button {
        display: none !important;
    }

    .hero-content {
        padding-top: 7rem;
        padding-bottom: 3.5rem;
    }

    .page-hero {
        padding-top: 2.75rem;
    }

    .brand-heading.mud-typography-h1 {
        font-size: 2.8rem;
        line-height: 1.05;
    }

    .brand-heading.mud-typography-h2 {
        font-size: 2.25rem;
        line-height: 1.08;
    }

    .brand-heading.mud-typography-h3 {
        font-size: 1.9rem;
        line-height: 1.12;
    }

    .hero-heading {
        align-items: flex-start;
        gap: 0.9rem;
    }

    .hero-title {
        max-width: 22rem;
        font-size: 2.65rem;
        line-height: 1;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 430px) {
    .brand-heading.mud-typography-h1 {
        font-size: 2.35rem;
    }

    .brand-heading.mud-typography-h2 {
        font-size: 2rem;
    }

    .brand-heading.mud-typography-h3 {
        font-size: 1.7rem;
    }

    .hero-title {
        max-width: 100%;
        font-size: 2.15rem;
    }

    .site-footer-inner {
        min-height: 116px;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo {
        width: 60px;
        height: 60px;
    }
}
