html[data-theme="dark"] {
    --pn-green: #2f5c45;
    --pn-green-2: #47705a;
    --pn-gold: #c2a65c;
    --pn-bg: #111613;
    --pn-text: #e7eee8;
    --pn-muted: #a3b0a9;
    --pn-border: #2d3b34;
    --pn-sidebar: #0f2219;
    --pn-panel-bg: #17211c;
}

html[data-theme="dark"] body {
    background: var(--pn-bg);
    color: var(--pn-text);
}

html[data-theme="dark"] .navbar-pn {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .navbar-pn .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .navbar-pn .nav-link:hover,
html[data-theme="dark"] .navbar-pn .nav-link:focus-visible {
    color: #fff;
}

html[data-theme="dark"] .card-soft,
html[data-theme="dark"] .dashboard-topbar,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .table,
html[data-theme="dark"] .table-light {
    background-color: #17211c;
    color: var(--pn-text);
    border-color: var(--pn-border);
}

html[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: #17211c;
    color: var(--pn-text);
    border-color: var(--pn-border);
}

html[data-theme="dark"] .text-muted-pn {
    color: var(--pn-muted) !important;
}

html[data-theme="dark"] .btn-outline-secondary {
    color: var(--pn-text);
    border-color: var(--pn-border);
}

html[data-theme="dark"] .btn-outline-secondary:hover {
    background: #26312b;
    color: #fff;
}

html[data-theme="dark"] .btn-light {
    background: #1b241f;
    color: var(--pn-text);
    border-color: var(--pn-border);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #101512;
    color: var(--pn-text);
    border-color: #33423a;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #7f8c84;
}

html[data-theme="dark"] .alert {
    background: #17211c;
    color: var(--pn-text);
    border-color: var(--pn-border);
}

html[data-theme="dark"] .dashboard-sidebar {
    background: linear-gradient(180deg, #0d1e16, #173226);
}

html[data-theme="dark"] .badge-pn {
    background: rgba(184, 155, 74, 0.18);
    color: #e7d49d;
}

html[data-theme="dark"] .btn-pn-outline {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.scroll-top-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

html[data-theme="dark"] .scroll-top-btn {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.theme-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(35, 75, 53, 0.16);
    border-radius: 999px;
    background: rgba(35, 75, 53, 0.08);
    padding: 0;
    cursor: pointer;
    line-height: 0;
    color: #234b35;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-switch:hover {
    background: rgba(35, 75, 53, 0.14);
    transform: scale(1.04);
}

.theme-switch:focus-visible {
    outline: 2px solid var(--pn-gold, #b89b4a);
    outline-offset: 2px;
}

.theme-switch-icon {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

html[data-theme="light"] .theme-switch-icon-sun,
html:not([data-theme]) .theme-switch-icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

html[data-theme="dark"] .theme-switch-icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-switch-navbar {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.theme-switch-navbar:hover {
    background: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .theme-switch {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    color: #e7eee8;
}

html[data-theme="dark"] .theme-switch:hover {
    background: rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .theme-switch-navbar {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #f0f4f1;
}

.theme-switch-host {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pn-green), var(--pn-green-2));
    box-shadow: 0 8px 18px rgba(35, 75, 53, 0.18);
}

html[data-theme="dark"] .theme-switch-host {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.navbar-tools {
    position: relative;
}

.navbar-pn .dropdown-menu {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    padding: 0.35rem;
    margin-top: 0.5rem;
    min-width: 12rem;
}

.navbar-pn .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-weight: 500;
}

.navbar-pn .dropdown-item:hover,
.navbar-pn .dropdown-item:focus {
    background: rgba(35, 75, 53, 0.08);
    color: var(--pn-green, #234b35);
}

html[data-theme="dark"] .navbar-pn .dropdown-menu {
    background: #17211c;
    border: 1px solid var(--pn-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .navbar-pn .dropdown-item {
    color: var(--pn-text);
}

html[data-theme="dark"] .navbar-pn .dropdown-item:hover,
html[data-theme="dark"] .navbar-pn .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.navbar-search {
    position: relative;
}

.navbar-search-trigger,
.navbar-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.navbar-search-trigger:hover,
.navbar-search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.04);
}

.navbar-search-trigger:focus-visible,
.navbar-search-close:focus-visible {
    outline: 2px solid var(--pn-gold, #b89b4a);
    outline-offset: 2px;
}

.navbar-search-backdrop {
    display: none;
}

.navbar-search-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(22rem, calc(100vw - 2rem));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1040;
}

.navbar-search.is-open .navbar-search-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--pn-border, #d9e1d8);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.navbar-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-size: 0.9375rem;
    color: var(--pn-text, #24302a);
}

.navbar-search-input::placeholder {
    color: var(--pn-muted, #6b7a72);
}

.navbar-search-input:focus {
    border-color: transparent !important;
    box-shadow: none !important;
}

.navbar-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--pn-green, #234b35);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.navbar-search-submit:hover {
    background: #1c3b2a;
}

.navbar-search-submit:focus-visible {
    outline: 2px solid var(--pn-gold, #b89b4a);
    outline-offset: 2px;
}

.navbar-search-close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-color: var(--pn-border, #d9e1d8);
    background: rgba(35, 75, 53, 0.06);
    color: var(--pn-text, #24302a);
}

.navbar-search-close:hover {
    background: rgba(35, 75, 53, 0.12);
}

html[data-theme="dark"] .navbar-search-form {
    background: var(--pn-panel-bg, #17211c);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .navbar-search-input {
    color: var(--pn-text);
    background-color: transparent !important;
}

html[data-theme="dark"] .navbar-search-input::placeholder {
    color: var(--pn-muted);
}

html[data-theme="dark"] .navbar-search-submit {
    background: var(--pn-accent);
    color: #111111;
}

html[data-theme="dark"] .navbar-search-submit:hover {
    background: var(--pn-accent-hover);
    color: #111111;
}

html[data-theme="dark"] .navbar-search-close {
    color: var(--pn-text);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .navbar-search-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

@media (max-width: 991.98px) {
    .navbar-tools {
        width: 100%;
        justify-content: flex-end;
        gap: 0.75rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .navbar-search {
        position: static;
        flex: 1 1 auto;
    }

    .navbar-search-trigger {
        width: 2.75rem;
        height: 2.75rem;
    }

    .navbar-search.is-open .navbar-search-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 24, 19, 0.45);
        z-index: 1045;
    }

    .navbar-search.is-open .navbar-search-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
        background: linear-gradient(135deg, var(--pn-green, #234b35), var(--pn-green-2, #3f5f49));
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
        transform: translateY(0);
        z-index: 1050;
    }

    .navbar-search.is-open .navbar-search-form {
        width: 100%;
        max-width: none;
        border-radius: 1rem;
        padding: 0.5rem 0.5rem 0.5rem 0.85rem;
        gap: 0.65rem;
    }

    .navbar-search-input {
        font-size: 16px;
        min-height: 2.75rem;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .navbar-search-submit,
    .navbar-search-close {
        width: 2.75rem;
        height: 2.75rem;
        flex-shrink: 0;
    }

    body.navbar-search-open {
        overflow: hidden;
    }
}

.material-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
}

.material-card-tags .badge {
    font-weight: 400;
}

.material-card-actions__read,
.material-card-actions__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.material-card-actions__icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    flex: 0 0 auto;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    box-shadow: none;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.material-card-actions__icon:hover,
.material-card-actions__icon:focus-visible {
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--pn-text, #111);
}

.material-card-actions__icon svg {
    width: 22px;
    height: 22px;
}

.material-card-bookmark-btn.is-bookmarked {
    background: none;
    border: 0;
    color: inherit;
}

.material-card-bookmark-btn.is-bookmarked svg {
    stroke-width: 2;
}

.material-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.material-card-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.material-card-vote {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.material-card-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.material-card-vote-btn:hover {
    color: var(--pn-text, #111);
}

.material-card-vote-btn:disabled {
    cursor: default;
}

.material-card-vote-btn.is-chosen:disabled {
    opacity: 0.45;
}

.material-card-vote.is-pending .material-card-vote-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.material-card-vote-score {
    min-width: 1.5rem;
    text-align: center;
    font-size: inherit;
    font-weight: 500;
    line-height: 1;
}

.material-card-vote-btn.is-active {
    color: var(--pn-text, #111);
}

.material-card-vote-btn.is-chosen {
    opacity: 0.45;
}

.material-card-vote-btn.is-active svg {
    stroke-width: 2;
    fill: currentColor;
    fill-opacity: 0.12;
}

.material-card-vote.is-pending {
    opacity: 0.75;
}

.pn-bookmark-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 1060;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #17211c;
    color: #f0f4f1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.pn-bookmark-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

html[data-theme="light"] .pn-bookmark-toast,
html:not([data-theme]) .pn-bookmark-toast {
    background: #fff;
    color: var(--pn-text, #24302a);
    border: 1px solid var(--pn-border, #d9e1d8);
}

.home-archive-card__shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background:
        linear-gradient(135deg, rgba(35, 75, 53, 0.08) 0%, rgba(184, 155, 74, 0.08) 100%),
        var(--pn-panel-bg, #fff);
    border: 1px solid rgba(35, 75, 53, 0.12);
    box-shadow: 0 18px 40px rgba(35, 75, 53, 0.08);
}

.home-archive-card__accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #234b35 0%, #b89b4a 100%);
}

.home-archive-card__body {
    position: relative;
    padding: 1.5rem;
}

@media (min-width: 992px) {
    .home-archive-card__body {
        padding: 1.75rem 2rem;
    }
}

.home-archive-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.home-archive-card__intro {
    display: flex;
    gap: 1rem;
    max-width: 42rem;
}

.home-archive-card__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--pn-green, #234b35);
    background: rgba(35, 75, 53, 0.1);
    box-shadow: inset 0 0 0 1px rgba(35, 75, 53, 0.08);
}

.home-archive-card__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c6420;
    margin-bottom: 0.35rem;
}

.home-archive-card__title {
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.home-archive-card__lead {
    color: var(--pn-muted, #66756d);
    max-width: 38rem;
    line-height: 1.55;
}

.home-archive-card__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 11rem;
}

.home-archive-card__stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.home-archive-card__stat-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    color: var(--pn-green, #234b35);
    letter-spacing: -0.03em;
}

.home-archive-card__stat-label {
    font-size: 0.82rem;
    color: var(--pn-muted, #66756d);
}

.home-archive-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding-inline: 1.1rem;
    white-space: nowrap;
}

.home-archive-card__cta-secondary {
    border-radius: 999px;
    white-space: nowrap;
}

.home-archive-card__year-nav {
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.home-archive-year-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px !important;
    padding: 0.55rem 1rem !important;
    font-weight: 600;
    color: var(--pn-green, #234b35);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 75, 53, 0.12);
}

.home-archive-year-tab.active,
.home-archive-year-tab[aria-selected="true"] {
    background: var(--pn-green, #234b35) !important;
    color: #fff !important;
    border-color: var(--pn-green, #234b35) !important;
}

.home-archive-year-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(35, 75, 53, 0.1);
}

.home-archive-year-tab.active .home-archive-year-tab__count,
.home-archive-year-tab[aria-selected="true"] .home-archive-year-tab__count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.home-archive-card__tab-content {
    padding-top: 0.25rem;
}

.home-archive-card__year-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-archive-card__year-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.home-archive-card__months {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.65rem;
}

.home-archive-month-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 5.5rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.95rem;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(35, 75, 53, 0.1);
    box-shadow: 0 6px 16px rgba(35, 75, 53, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-archive-month-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 75, 53, 0.24);
    box-shadow: 0 12px 24px rgba(35, 75, 53, 0.12);
    color: inherit;
}

.home-archive-month-tile--archive {
    background: linear-gradient(180deg, rgba(35, 75, 53, 0.08) 0%, rgba(255, 255, 255, 0.82) 100%);
}

.home-archive-month-tile__label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pn-green, #234b35);
}

.home-archive-month-tile__count {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-archive-month-tile__badge {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7c6420;
    background: rgba(184, 155, 74, 0.16);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}

.home-archive-month-tile--archive .home-archive-month-tile__badge {
    color: var(--pn-green, #234b35);
    background: rgba(35, 75, 53, 0.12);
}

.home-archive-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(35, 75, 53, 0.1);
}

.home-archive-card__link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pn-green, #234b35);
    text-decoration: none;
}

.home-archive-card__link:hover {
    color: #1c3b2a;
}

.home-archive-card__empty {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px dashed rgba(35, 75, 53, 0.18);
}

.home-archive-card__empty-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    color: var(--pn-green, #234b35);
    background: rgba(35, 75, 53, 0.08);
}

html[data-theme="dark"] .home-archive-card__shell {
    background:
        linear-gradient(135deg, rgba(47, 92, 69, 0.18) 0%, rgba(194, 166, 92, 0.08) 100%),
        #17211c;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .home-archive-card__icon,
html[data-theme="dark"] .home-archive-card__empty-icon {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #d7e5dc;
}

html[data-theme="dark"] .home-archive-card__eyebrow {
    color: #e7d49d;
}

html[data-theme="dark"] .home-archive-card__stat-value,
html[data-theme="dark"] .home-archive-month-tile__label {
    color: #d7e5dc;
}

html[data-theme="dark"] .home-archive-year-tab {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d7e5dc;
}

html[data-theme="dark"] .home-archive-year-tab.active,
html[data-theme="dark"] .home-archive-year-tab[aria-selected="true"] {
    background: #2f5c45 !important;
    border-color: #2f5c45 !important;
}

html[data-theme="dark"] .home-archive-month-tile {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-theme="dark"] .home-archive-month-tile:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .home-archive-month-tile--archive {
    background: linear-gradient(180deg, rgba(47, 92, 69, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
}

html[data-theme="dark"] .home-archive-year-tile__year {
    color: #d7e5dc;
}

html[data-theme="dark"] .home-archive-year-tile {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-theme="dark"] .home-archive-year-tile:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .home-archive-card__empty {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .home-archive-card__footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-archive-card__link:hover {
    color: #fff;
}

/* Unified portal archive hub (home) */
.portal-archive-hub,
.portal-archive-hub .section-title {
    font-weight: var(--pn-font-weight-body, 400);
}

.portal-archive-hub__shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: #fff;
    border: 1px solid rgba(35, 75, 53, 0.12);
    box-shadow: 0 8px 24px rgba(35, 75, 53, 0.06);
    padding: 1.35rem;
}

@media (min-width: 992px) {
    .portal-archive-hub__shell {
        padding: 1.75rem 2rem 2rem;
    }
}

.portal-archive-hub__glow {
    display: none;
}

.portal-archive-hub__top {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
}

.portal-archive-hub__intro {
    display: flex;
    gap: 1rem;
    max-width: 44rem;
}

.portal-archive-hub__icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--pn-green, #234b35);
    background: rgba(35, 75, 53, 0.1);
    box-shadow: inset 0 0 0 1px rgba(35, 75, 53, 0.08);
}

.portal-archive-hub__eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c6420;
    margin-bottom: 0.35rem;
}

.portal-archive-hub__title {
    margin-bottom: 0.45rem !important;
}

.portal-archive-hub__lead {
    color: var(--pn-muted, #66756d);
    max-width: 40rem;
    line-height: 1.55;
}

.portal-archive-hub__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portal-archive-hub__stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 5.5rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 75, 53, 0.1);
}

.portal-archive-hub__stat--muted {
    min-width: auto;
    padding: 0.45rem 0.75rem;
    background: transparent;
    border: 0;
}

.portal-archive-hub__stat--muted .portal-archive-hub__stat-value {
    color: var(--pn-text, #24302a);
}

.portal-archive-hub__stat-published {
    font-size: 0.90rem;
    line-height: 1.35;
    font-weight: 300;
    color: var(--pn-muted, #66756d);
    letter-spacing: 0;
}

.portal-archive-hub__stat-value {
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 500;
    color: var(--pn-green, #234b35);
    letter-spacing: -0.03em;
}

.portal-archive-hub__stat-label {
    font-size: 0.78rem;
    color: var(--pn-muted, #66756d);
}

.portal-archive-hub__sections {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.portal-archive-section-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px !important;
    padding: 0.55rem 0.95rem !important;
    font-weight: 300;
    white-space: nowrap;
    color: var(--pn-text, #24302a);
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-archive-section-tab:hover:not(.active):not([aria-selected="true"]) {
    background: #4a4a4a !important;
    color: #fff !important;
    border-color: #4a4a4a !important;
    box-shadow: none;
}

.portal-archive-section-tab:hover:not(.active):not([aria-selected="true"]) .portal-archive-section-tab__icon {
    filter: brightness(0) invert(1);
}

.portal-archive-section-tab.active,
.portal-archive-section-tab[aria-selected="true"] {
    background: var(--pn-green, #234b35) !important;
    color: #fff !important;
    border-color: var(--pn-green, #234b35) !important;
    box-shadow: 0 10px 24px rgba(35, 75, 53, 0.18);
}

.portal-archive-section-tab__icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.4rem;
    flex-shrink: 0;
    background-color: rgba(35, 75, 53, 0.12);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.85rem;
}

.portal-archive-section-tab.active .portal-archive-section-tab__icon,
.portal-archive-section-tab[aria-selected="true"] .portal-archive-section-tab__icon {
    background-color: rgba(255, 255, 255, 0.18);
}

.portal-archive-section-tab__icon--news {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

.portal-archive-section-tab__icon--history {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.portal-archive-section-tab__icon--projects {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.portal-archive-section-tab__icon--memory {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.portal-archive-section-tab__icon--youth {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.portal-archive-section-tab__icon--monuments {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 22h18'/%3E%3Cpath d='M6 22V8l6-4 6 4v14'/%3E%3Cpath d='M10 22v-6h4v6'/%3E%3C/svg%3E");
}

.portal-archive-section-tab__icon--maps {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6'/%3E%3Cline x1='8' y1='2' x2='8' y2='18'/%3E%3Cline x1='16' y1='6' x2='16' y2='22'/%3E%3C/svg%3E");
}

.portal-archive-section-tab.active .portal-archive-section-tab__icon,
.portal-archive-section-tab[aria-selected="true"] .portal-archive-section-tab__icon {
    filter: brightness(0) invert(1);
}

.portal-archive-section-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 500;
    background: rgba(184, 155, 74, 0.18);
    color: #7c6420;
}

.portal-archive-section-tab.active .portal-archive-section-tab__badge,
.portal-archive-section-tab[aria-selected="true"] .portal-archive-section-tab__badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.portal-archive-hub__panels {
    position: relative;
}

.portal-archive-hub__section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(35, 75, 53, 0.08);
}

.portal-archive-hub__section-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--pn-green, #234b35);
}

.portal-archive-hub__section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portal-archive-hub__years {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portal-archive-year-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px !important;
    padding: 0.5rem 0.95rem !important;
    font-weight: 300;
    color: var(--pn-text, #24302a);
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.portal-archive-year-tab:hover:not(.active):not([aria-selected="true"]) {
    background: #4a4a4a !important;
    color: #fff !important;
    border-color: #4a4a4a !important;
}

.portal-archive-year-tab:hover:not(.active):not([aria-selected="true"]) .portal-archive-year-tab__count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.portal-archive-year-tab.active,
.portal-archive-year-tab[aria-selected="true"] {
    background: var(--pn-green, #234b35) !important;
    color: #fff !important;
    border-color: var(--pn-green, #234b35) !important;
}

.portal-archive-year-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(35, 75, 53, 0.1);
}

.portal-archive-year-tab.active .portal-archive-year-tab__count,
.portal-archive-year-tab[aria-selected="true"] .portal-archive-year-tab__count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.portal-archive-hub__year-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.portal-archive-hub__year-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.portal-archive-hub__months {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
    gap: 0.65rem;
}

.portal-archive-month-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 5.25rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.95rem;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(35, 75, 53, 0.1);
    box-shadow: 0 6px 16px rgba(35, 75, 53, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-archive-month-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 75, 53, 0.24);
    box-shadow: 0 12px 24px rgba(35, 75, 53, 0.12);
    color: inherit;
}

.portal-archive-month-tile--archive {
    background: linear-gradient(180deg, rgba(35, 75, 53, 0.08) 0%, rgba(255, 255, 255, 0.82) 100%);
}

.portal-archive-month-tile__label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--pn-green, #234b35);
}

.portal-archive-month-tile__count {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.portal-archive-month-tile__badge {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7c6420;
    background: rgba(184, 155, 74, 0.16);
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}

.portal-archive-month-tile--archive .portal-archive-month-tile__badge {
    color: var(--pn-green, #234b35);
    background: rgba(35, 75, 53, 0.12);
}

.portal-archive-hub__empty-section {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    background: #f8f8f8;
    border: 1px dashed #e0e0e0;
}

html[data-theme="dark"] .portal-archive-hub__shell {
    background: #17211c;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .portal-archive-section-tab:hover:not(.active):not([aria-selected="true"]),
html[data-theme="dark"] .portal-archive-year-tab:hover:not(.active):not([aria-selected="true"]) {
    background: #6b6b6b !important;
    color: #fff !important;
    border-color: #6b6b6b !important;
}

html[data-theme="dark"] .portal-archive-hub__icon {
    background: rgba(255, 255, 255, 0.06);
    color: #d7e5dc;
}

html[data-theme="dark"] .portal-archive-hub__stat,
html[data-theme="dark"] .portal-archive-hub__section-head {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .portal-archive-hub__stat-value,
html[data-theme="dark"] .portal-archive-hub__section-title,
html[data-theme="dark"] .portal-archive-month-tile__label {
    color: #d7e5dc;
}

html[data-theme="dark"] .portal-archive-section-tab,
html[data-theme="dark"] .portal-archive-year-tab {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d7e5dc;
}

html[data-theme="dark"] .portal-archive-section-tab.active,
html[data-theme="dark"] .portal-archive-section-tab[aria-selected="true"],
html[data-theme="dark"] .portal-archive-year-tab.active,
html[data-theme="dark"] .portal-archive-year-tab[aria-selected="true"] {
    background: #2f5c45 !important;
    border-color: #2f5c45 !important;
}

html[data-theme="dark"] .portal-archive-month-tile {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-theme="dark"] .portal-archive-month-tile:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .portal-archive-month-tile--archive {
    background: linear-gradient(180deg, rgba(47, 92, 69, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
}

html[data-theme="dark"] .portal-archive-hub__empty-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

.home-section-card--news {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-section-card--news:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(35, 75, 53, 0.1);
}

.home-section-card__meta {
    border-top: 1px solid rgba(35, 75, 53, 0.1);
    padding-top: 0.85rem;
}

.home-section-card__archive-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pn-green, #234b35);
    text-decoration: none;
}

.home-section-card__archive-link:hover {
    color: #1c3b2a;
}

html[data-theme="dark"] .home-section-card__meta {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-section-card__archive-link:hover {
    color: #fff;
}

.navbar-recent-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.navbar-recent-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.04);
}

.navbar-recent-trigger:focus-visible {
    outline: 2px solid var(--pn-gold, #b89b4a);
    outline-offset: 2px;
}

.recent-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 28, 22, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1040;
}

.recent-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(26rem, calc(100vw - 1rem));
    height: 100vh;
    height: 100dvh;
    background: #fff;
    border-left: 1px solid var(--pn-border, #d9e1d8);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1045;
    display: flex;
    flex-direction: column;
}

html.is-recent-drawer-open .recent-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

html.is-recent-drawer-open .recent-drawer {
    transform: translateX(0);
}

body.recent-drawer-open {
    overflow: hidden;
}

.recent-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--pn-border, #d9e1d8);
}

.recent-drawer__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.recent-drawer__subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--pn-muted, #66736d);
    line-height: 1.45;
}

.recent-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--pn-border, #d9e1d8);
    border-radius: 999px;
    background: transparent;
    color: var(--pn-text, #24302a);
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.recent-drawer__close:hover {
    background: rgba(35, 75, 53, 0.06);
}

.recent-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.recent-drawer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-drawer-card {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.65rem;
    border: 1px solid var(--pn-border, #d9e1d8);
    border-radius: 1rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.recent-drawer-card:hover {
    transform: translateY(-1px);
    border-color: rgba(35, 75, 53, 0.24);
    box-shadow: 0 8px 18px rgba(35, 75, 53, 0.08);
    color: inherit;
}

.recent-drawer-card__thumb {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    height: 4.125rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(35, 75, 53, 0.92), rgba(184, 155, 74, 0.68));
}

.recent-drawer-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-drawer-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.recent-drawer-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.recent-drawer-card__meta {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pn-green, #234b35);
}

.recent-drawer-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-drawer-card__date {
    font-size: 0.75rem;
    color: var(--pn-muted, #66736d);
}

.recent-drawer__empty {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9375rem;
}

.recent-drawer__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--pn-border, #d9e1d8);
}

html[data-theme="dark"] .recent-drawer {
    background: #17211c;
    border-left-color: var(--pn-border);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .recent-drawer__header,
html[data-theme="dark"] .recent-drawer__footer {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .recent-drawer-card {
    background: #1d2922;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .recent-drawer-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .recent-drawer__close {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--pn-text);
}

html[data-theme="dark"] .recent-drawer__close:hover {
    background: rgba(255, 255, 255, 0.06);
}

.documents-page__sidebar {
    position: sticky;
    top: 1.25rem;
}

.documents-page__sidebar-head .h6 {
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.documents-page__back-link {
    display: inline-block;
    white-space: nowrap;
}

.documents-page__sections {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.documents-page__section-link {
    display: inline-flex;
    align-items: center;
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--pn-border);
    text-decoration: none;
    color: var(--pn-text);
    font-size: .92rem;
    transition: background .15s ease, border-color .15s ease;
}

.documents-page__section-link:hover {
    background: rgba(35, 75, 53, .06);
}

.documents-page__section-link.is-active {
    background: rgba(35, 75, 53, .1);
    border-color: rgba(35, 75, 53, .18);
    font-weight: 600;
}

.documents-page__groups {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.documents-page__group-head {
    margin-bottom: .75rem;
}

.documents-page__nav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.documents-page__nav-link {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .65rem .85rem;
    border-radius: .85rem;
    text-decoration: none;
    color: var(--pn-text);
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}

.documents-page__nav-link:hover {
    background: rgba(35, 75, 53, .06);
    border-color: var(--pn-border);
}

.documents-page__nav-link.is-active {
    background: rgba(35, 75, 53, .1);
    border-color: rgba(35, 75, 53, .18);
    font-weight: 600;
}

.documents-page__nav-date {
    font-size: .78rem;
    color: var(--pn-muted);
}

.documents-page__nav-title {
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.documents-page__index .documents-page__nav-link {
    padding: .85rem 1rem;
}

.documents-page__index .documents-page__nav-title {
    font-size: 1rem;
}

.documents-page__content .content-gallery {
    margin-top: 1.5rem;
}

.document-gallery__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.document-gallery__item {
    margin: 0;
}

.document-gallery__link {
    transition: transform .2s ease, box-shadow .2s ease;
}

.document-gallery__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(35, 75, 53, .12) !important;
}

.document-gallery__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    max-height: 72vh;
    padding: .75rem;
    background: rgba(35, 75, 53, .04);
}

.document-gallery__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 992px) {
    .document-gallery__preview {
        min-height: 320px;
        padding: 1rem 1.25rem;
    }
}

html[data-theme="dark"] .document-gallery__preview {
    background: rgba(255, 255, 255, .04);
}
