:root {
    --ink: #17323a;
    --muted: #60717a;
    --line: #d8e3e4;
    --brand: #147c7c;
    --brand-dark: #0d5558;
    --accent: #c06b37;
    --paper: #ffffff;
    --soft: #eef6f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f8fbfb;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    font-weight: 800;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    color: white;
    background: var(--brand);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a,
.nav-parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-parent::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}

.main-nav a:hover,
.nav-parent:hover,
.nav-group:focus-within .nav-parent,
.nav-group:hover .nav-parent {
    color: var(--brand-dark);
    background: var(--soft);
}

.nav-group:hover .nav-parent::after,
.nav-group:focus-within .nav-parent::after {
    transform: translateY(2px) rotate(225deg);
}

.nav-group {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.nav-flyout {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: grid;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 18px 45px rgba(15, 44, 52, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-flyout::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.nav-flyout a {
    display: block;
    padding: 10px 12px;
    white-space: nowrap;
}

.nav-group:hover .nav-flyout,
.nav-group:focus-within .nav-flyout {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--brand);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    font-size: 24px;
}

.hero-slider {
    position: relative;
    min-height: clamp(480px, 72vh, 760px);
    overflow: hidden;
    background: #12383f;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    padding: 80px clamp(20px, 6vw, 80px) 120px;
    color: white;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .8s ease, transform 1.2s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 35, 42, .88), rgba(6, 35, 42, .45), rgba(6, 35, 42, .2));
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.hero-content h1 {
    margin: 12px 0;
    font-size: clamp(36px, 7vw, 78px);
    line-height: 1.02;
}

.hero-content p {
    max-width: 620px;
    color: #e7f4f4;
    font-size: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 7px;
    font-weight: 800;
}

.primary {
    background: var(--accent);
    color: white;
}

.secondary {
    color: white;
    background: var(--brand);
}

.slider-controls {
    position: absolute;
    right: clamp(20px, 5vw, 70px);
    bottom: 42px;
    display: flex;
    gap: 10px;
}

.slider-controls button,
.slider-dots button {
    border: 0;
    cursor: pointer;
}

.slider-controls button {
    width: 46px;
    height: 46px;
    border-radius: 6px;
    color: white;
    background: rgba(255, 255, 255, .18);
    font-size: 32px;
}

.slider-dots {
    position: absolute;
    left: clamp(20px, 6vw, 80px);
    bottom: 58px;
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 28px;
    height: 4px;
    padding: 0;
    background: rgba(255, 255, 255, .45);
}

.slider-dots button.is-active {
    background: white;
}

.home-band,
.content-strip,
.two-column,
.page-hero {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.home-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 46px 0;
}

.home-band h2,
.section-title h2,
.page-hero h1 {
    margin: 8px 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
}

.content-strip {
    padding: 44px 0 70px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.post-card,
.post-row,
.sidebar,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.post-card {
    min-height: 230px;
    padding: 22px;
}

.post-card span,
.post-row span,
.side-link span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.post-card h3 {
    margin: 10px 0;
    font-size: 21px;
    line-height: 1.2;
}

.page-hero {
    padding: 58px 0 28px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-bottom: 70px;
}

.page-content,
.post-list {
    min-width: 0;
}

.rich-text {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.dynamic-section {
    position: relative;
    min-height: 260px;
    margin-top: 22px;
    padding: 34px;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.dynamic-section.type-image,
.dynamic-section.type-video {
    color: white;
}

.dynamic-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dynamic-section.type-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.dynamic-section > div {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.sidebar {
    align-self: start;
    position: sticky;
    top: 96px;
    padding: 18px;
}

.sidebar h2 {
    margin: 6px 0 12px;
    font-size: 18px;
}

.side-link {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.side-group {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.side-group > strong {
    line-height: 1.25;
}

.side-group a {
    display: block;
    padding-left: 12px;
    color: var(--muted);
    font-size: 14px;
}

.side-link strong {
    display: block;
    line-height: 1.25;
}

.side-link time {
    color: var(--muted);
    font-size: 13px;
}

.post-row {
    margin-bottom: 16px;
    padding: 24px;
}

.post-row h2 {
    margin: 8px 0;
}

.calendar-list {
    display: grid;
    gap: 16px;
}

.calendar-item,
.calendar-empty {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.calendar-empty {
    display: block;
}

.calendar-date {
    display: grid;
    place-items: center;
    align-self: start;
    min-height: 104px;
    padding: 12px;
    border-radius: 8px;
    color: white;
    background: var(--brand);
    text-align: center;
}

.calendar-date span {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.calendar-date strong {
    font-size: 14px;
}

.event-type {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-item h2 {
    margin: 8px 0;
}

.text-link {
    color: var(--brand-dark);
    font-weight: 800;
}

.cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 18px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    padding: 34px clamp(18px, 4vw, 56px);
    color: #e9f5f5;
    background: #14353d;
}

.site-footer p {
    max-width: 540px;
    color: #c9dbdc;
}

.site-footer address {
    font-style: normal;
    color: #c9dbdc;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        padding: 14px 20px;
        background: white;
        border-bottom: 1px solid var(--line);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-group {
        display: grid;
    }

    .nav-parent {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .nav-parent::after {
        transform: translateY(-2px) rotate(45deg);
    }

    .nav-flyout {
        position: static;
        min-width: 0;
        margin-left: 12px;
        padding: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-flyout::before {
        display: none;
    }

    .nav-flyout a {
        white-space: normal;
    }

    .home-band,
    .two-column,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .home-band {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .calendar-item {
        grid-template-columns: 1fr;
    }

    .calendar-date {
        width: 112px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding: 62px 20px 120px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .site-footer {
        display: block;
    }
}
