header {
    position: relative;
}

.home-banners {
    padding-left: 80px;
    padding-right: 80px;
}

.gallery-section {
    padding: 48px 80px;
    background: #f7faf8;
}

.gallery-content {
    width: 100%;
}

.gallery-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.gallery-heading h2 {
    margin: 0;
    color: #1b4d3e;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.gallery-heading p {
    margin: 0;
    color: #657168;
    font-size: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    border-color: #8fb38f;
    box-shadow: 0 8px 24px rgb(27 77 62 / 12%);
    transform: translateY(-2px);
}

.gallery-card:focus-visible {
    outline: 3px solid #b38700;
    outline-offset: 3px;
}

.gallery-card-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1b4d3e;
}

.gallery-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgb(0 37 17 / 48%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background .18s;
}

.gallery-card-overlay > i,
.gallery-card-overlay > svg {
    color: #ffcc00;
    font-size: 32px;
}

.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-visible .gallery-card-overlay {
    background: rgb(0 37 17 / 68%);
}

.gallery-card-body {
    display: flex;
    min-height: 92px;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
}

.gallery-card-body h3 {
    margin: 0;
    color: #1b4d3e;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.gallery-card-body > span {
    align-self: flex-start;
    color: #657168;
    font-size: 12px;
    font-weight: 700;
}

.gallery-card-body > span > i,
.gallery-card-body > span > svg {
    margin-left: 4px;
    color: #1b4d3e;
}

.gallery-empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed #b9c9bd;
    background: #fff;
    color: #657168;
    text-align: center;
}

header.w-full nav ul,
footer .tracking-widest {
    letter-spacing: 0;
}

.institutional-toggle {
    min-height: 28px;
}

.institutional-toggle[aria-expanded="true"] {
    color: #d97706;
}

.institutional-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 180px;
    padding: 8px 0;
    background: #fff;
    border-top: 3px solid #ffcc00;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 20px rgb(27 77 62 / 16%);
    text-transform: none;
}

.institutional-menu[hidden] {
    display: none;
}

.institutional-menu a {
    display: block;
    padding: 12px 20px;
}

.institutional-menu a:hover,
.institutional-menu a:focus-visible,
.institutional-menu a[aria-current="page"] {
    color: #1b4d3e;
    background: #edf4ed;
}

header a:focus-visible,
header button:focus-visible,
footer button:focus-visible {
    outline: 2px solid #1b4d3e;
    outline-offset: 4px;
}

.statute-page {
    max-width: 1152px;
    margin: 0 auto;
    padding: 48px 40px 64px;
}

.statute-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 32px;
}

.statute-download,
.statute-open {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.statute-download {
    background: #1b4d3e;
    color: #fff;
}

.statute-download:hover { background: #123b2f; }

.statute-open {
    border: 1px solid #1b4d3e;
    color: #1b4d3e;
}

.statute-open:hover { background: #edf4ed; }

.statute-viewer {
    overflow: hidden;
    border: 1px solid #cfdbd2;
    border-radius: 4px;
    background: #f7faf8;
}

.statute-viewer object {
    display: block;
    width: 100%;
    height: min(1000px, 80vh);
}

.statute-fallback {
    padding: 32px;
    color: #46564b;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .home-banners {
        padding-left: 56px;
        padding-right: 56px;
    }

    .gallery-section {
        padding: 32px 56px;
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .gallery-heading h2 {
        font-size: 26px;
    }

    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    header.w-full > div > div {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    header.w-full > div > div > div:last-child {
        width: 100%;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header input {
        max-width: 100%;
    }

    header.w-full nav > ul {
        flex-wrap: wrap;
        gap: 12px 20px;
        padding: 12px 20px;
    }

    header.w-full nav > ul > li > a,
    .institutional-toggle {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    footer {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    footer > div > div:last-child {
        gap: 20px;
        text-align: center;
    }

    .statute-page { padding: 32px 20px 48px; }

    .statute-viewer object { height: 70vh; }
}
