:root {
    --color-primary: #8b1e24;
    --color-primary-dark: #651318;
    --color-secondary: #b48a32;
    --color-secondary-light: #d9bd72;
    --color-navy: #17324d;
    --color-text: #202833;
    --color-muted: #657180;
    --color-border: #d8dee6;
    --color-surface: #ffffff;
    --color-surface-muted: #f4f6f8;
    --color-footer: #14283b;
    --shadow-sm: 0 1px 3px rgba(22, 37, 52, 0.06), 0 1px 2px rgba(22, 37, 52, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(22, 37, 52, 0.08), 0 2px 4px -1px rgba(22, 37, 52, 0.04);
    --radius-sm: 4px;
    --radius-md: 6px;
    --container-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-surface);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

body,
button,
input,
textarea,
select {
    font-size: 16px;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    padding: 10px 16px;
    color: #fff;
    background: #000;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 1000;
    background: #fff;
    transition: box-shadow 180ms ease;
}

.site-header--scrolled {
    box-shadow: 0 8px 24px rgba(18, 34, 50, 0.12);
}

.government-bar {
    color: #fff;
    background: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.government-bar__content {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.government-bar__separator {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.45);
}

.brand-area {
    border-bottom: 1px solid rgba(216, 222, 230, 0.8);
}

.brand-area__content {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--color-primary-dark);
    text-decoration: none;
}

.brand__mark {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--color-primary);
    border: 4px solid var(--color-secondary-light);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 0 0 3px rgba(139, 30, 36, 0.12);
}

.brand__text {
    display: grid;
    gap: 4px;
}

.brand__text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: 0.035em;
}

.brand__text span {
    color: var(--color-navy);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.main-navigation {
    background: var(--color-primary);
}

.main-navigation__list {
    min-height: 50px;
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #fff;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    border-bottom: 3px solid transparent;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    background: var(--color-primary-dark);
    border-bottom-color: var(--color-secondary-light);
    outline: none;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}

.menu-toggle__line {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-primary);
}

.hero {
    position: relative;
    min-height: 440px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #0b3b5b;
}

.hero::after {
    display: none;
}

.hero__overlay {
    display: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    padding-block: 90px;
}

.hero__eyebrow,
.section-heading__eyebrow,
.page-banner__eyebrow {
    margin-bottom: 12px;
    color: var(--color-secondary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero h1 {
    max-width: 940px;
    margin-bottom: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.015em;
}

.hero__description {
    max-width: 820px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.14rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
    box-shadow: var(--shadow-sm);
}

.button--primary {
    color: var(--color-primary-dark);
    background: var(--color-secondary-light);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: #e4ca85;
}

.button--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
}

.button--outline:hover,
.button--outline:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.notice-strip {
    border-bottom: 1px solid #e5d39d;
    background: #fff8e5;
}

.notice-strip__content {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #56451f;
    font-size: 0.92rem;
}

.notice-strip strong {
    color: var(--color-primary);
}

.section {
    padding-block: 82px;
}

.section--muted {
    background: var(--color-surface-muted);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-heading--split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2,
.contact-band h2,
.page-banner h1 {
    margin-bottom: 14px;
    color: var(--color-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--color-muted);
}

.text-link {
    flex: 0 0 auto;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

.overview-grid,
.department-grid,
.member-grid {
    display: grid;
    gap: 22px;
}

.overview-grid {
    grid-template-columns: repeat(3, 1fr);
}

.overview-card,
.department-card,
.member-card,
.prose-card,
.info-panel,
.contact-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.overview-card {
    position: relative;
    padding: 30px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.overview-card:hover {
    border-color: #c7b171;
    box-shadow: var(--shadow-sm);
}

.overview-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.overview-card:hover::after {
    transform: scaleX(1);
}

.overview-card__number {
    display: block;
    margin-bottom: 20px;
    color: var(--color-secondary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    font-weight: 700;
}

.overview-card h3,
.department-card h3,
.member-card h3 {
    color: var(--color-navy);
}

.overview-card p,
.department-card p,
.member-card p {
    margin-bottom: 0;
    color: var(--color-muted);
}

.department-grid {
    grid-template-columns: repeat(2, 1fr);
}

.department-card {
    position: relative;
    padding: 30px;
    overflow: hidden;
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.department-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: #aac9d8;
}

.department-card__index {
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(139, 30, 36, 0.12);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    font-weight: 800;
}

.department-card h3 {
    max-width: calc(100% - 70px);
    margin-bottom: 10px;
}

.department-card__detail {
    max-height: 0;
    overflow: hidden;
    color: var(--color-text);
    opacity: 0;
    transition: max-height 220ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.department-card:hover .department-card__detail,
.department-card:focus-within .department-card__detail {
    max-height: 180px;
    margin-top: 18px;
    opacity: 1;
}

.member-grid {
    grid-template-columns: repeat(3, 1fr);
}

.member-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 26px;
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.member-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: #aac9d8;
}

.member-card__avatar {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--color-navy);
    border: 3px solid var(--color-secondary-light);
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.member-card__department {
    margin-bottom: 5px !important;
    color: var(--color-primary) !important;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-card h3 {
    margin-bottom: 4px;
}

.member-card__position {
    margin-bottom: 12px !important;
    color: var(--color-text) !important;
    font-weight: 700;
}

.contact-band {
    padding-block: 72px;
    color: #fff;
    background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
}

.contact-band__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.contact-band h2 {
    color: #fff;
}

.contact-band p {
    color: rgba(255, 255, 255, 0.78);
}

.section-heading__eyebrow--light {
    color: var(--color-secondary-light);
}

.contact-list,
.contact-detail-list,
.info-panel dl {
    margin: 0;
}

.contact-list > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list dt,
.contact-detail-list dt,
.info-panel dt {
    font-weight: 800;
}

.contact-list dd,
.contact-detail-list dd,
.info-panel dd {
    margin: 0;
}

.page-banner {
    padding-block: 72px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(20, 40, 59, 0.98), rgba(101, 19, 24, 0.94)),
        repeating-linear-gradient(135deg, transparent 0 20px, rgba(255, 255, 255, 0.04) 20px 21px);
}

.page-banner h1 {
    color: #fff;
}

.page-banner p:last-child {
    max-width: 700px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.prose-card,
.info-panel,
.contact-card {
    padding: 34px;
}

.prose-card h2,
.prose-card h3,
.info-panel h2,
.contact-card h2 {
    color: var(--color-navy);
    font-family: Georgia, "Times New Roman", serif;
}

.prose-card h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.info-panel {
    border-top: 5px solid var(--color-primary);
}

.info-panel dl > div,
.contact-detail-list > div {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-panel dt,
.contact-detail-list dt {
    margin-bottom: 5px;
    color: var(--color-primary);
}

.info-panel dd,
.contact-detail-list dd {
    color: var(--color-muted);
}

.department-list {
    display: grid;
    gap: 20px;
}

.department-list__item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 26px;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.department-list__item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.department-list__number {
    color: var(--color-secondary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.6rem;
    font-weight: 800;
}

.department-list h2 {
    margin-bottom: 6px;
    color: var(--color-navy);
    font-family: Georgia, "Times New Roman", serif;
}

.department-list h3 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.department-list__summary {
    color: var(--color-primary);
    font-weight: 700;
}

.responsive-table {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    color: #fff;
    background: var(--color-navy);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.data-table tbody tr {
    transition: background-color 140ms ease;
}

.data-table tbody tr:hover {
    background: #fff9eb;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
}

.map-placeholder {
    min-height: 390px;
    display: grid;
    place-items: center;
    padding: 34px;
    text-align: center;
    color: var(--color-muted);
    border: 2px dashed #b9c2cd;
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
}

.map-placeholder span {
    display: block;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 3.2rem;
}

.map-placeholder h2 {
    color: var(--color-navy);
}

.error-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: var(--color-footer);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 50px;
    padding-block: 58px;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
}

.site-footer h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.site-footer h3 {
    font-size: 1rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.site-footer p {
    margin-bottom: 8px;
}

.site-footer__bottom {
    padding-block: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
}

.site-footer__bottom p {
    margin: 0;
}

@media (max-width: 980px) {
    .overview-grid,
    .member-grid {
        grid-template-columns: 1fr;
    }

    .department-grid,
    .contact-band__grid,
    .content-layout,
    .contact-page-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        gap: 28px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--container-width));
    }

    .government-bar__content {
        justify-content: center;
        text-align: center;
        font-size: 0.68rem;
    }

    .government-bar__separator,
    .government-bar__content span:last-child {
        display: none;
    }

    .brand-area__content {
        min-height: 86px;
    }

    .brand__mark {
        width: 54px;
        height: 54px;
        font-size: 0.9rem;
    }

    .brand__text strong {
        font-size: 0.86rem;
    }

    .brand__text span {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation--open {
        display: block;
    }

    .main-navigation__list {
        display: block;
        padding-block: 6px;
    }

    .main-navigation a {
        min-height: 46px;
        padding-inline: 14px;
        border-bottom-width: 1px;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .hero {
        min-height: 460px;
    }

    .hero__content {
        padding-block: 66px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .section,
    .contact-band {
        padding-block: 58px;
    }

    .section-heading--split {
        display: block;
    }

    .text-link {
        display: inline-block;
        margin-top: 5px;
    }

    .overview-card,
    .department-card,
    .member-card,
    .prose-card,
    .info-panel,
    .contact-card {
        padding: 24px;
    }

    .department-list__item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px;
    }

    .department-list__number {
        font-size: 2rem;
    }

    .notice-strip__content {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding-block: 12px;
    }

    .contact-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
