:root {
    --color-ink: #17202a;
    --color-muted: #5c6a78;
    --color-panel: #ffffff;
    --color-soft: #f3f7f8;
    --color-line: #d8e2e6;
    --color-navy: #0e2638;
    --color-teal: #0f7b82;
    --color-amber: #f4a735;
    --color-red: #b83d44;
    --shadow-soft: 0 18px 54px rgba(22, 32, 42, 0.12);
    --shadow-tight: 0 10px 28px rgba(22, 32, 42, 0.10);
    --radius: 8px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: #fbfcfc;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    z-index: 1000;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    padding: 0.7rem 1rem;
    color: #fff;
    background: var(--color-navy);
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(251, 252, 252, 0.92);
    border-bottom: 1px solid rgba(216, 226, 230, 0.9);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem clamp(1rem, 3vw, 2rem);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--color-ink);
    text-decoration: none;
}

.site-brand__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    border-radius: var(--radius);
    font-weight: 800;
    overflow: hidden;
}

.site-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-brand__text {
    display: grid;
    line-height: 1.1;
}

.site-brand__text strong {
    font-size: 1rem;
}

.site-brand__text small {
    max-width: 24ch;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary-nav .menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.45rem 0.8rem;
    color: var(--color-ink);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--color-teal);
    background: rgba(15, 123, 130, 0.08);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-line);
    background: #fff;
    border-radius: var(--radius);
}

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-ink);
}

.hero {
    position: relative;
    display: grid;
    min-height: min(460px, calc(68vh - 72px));
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.hero__media,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__media {
    z-index: -2;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 900ms ease;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 16, 24, 0.88) 0%, rgba(6, 16, 24, 0.66) 38%, rgba(6, 16, 24, 0.2) 72%),
        linear-gradient(180deg, rgba(6, 16, 24, 0.06) 58%, rgba(6, 16, 24, 0.48) 100%);
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(280px, 520px);
    gap: clamp(1.5rem, 0, 4rem);
    align-items: center;
    justify-content: center;
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3.5rem);
}

.hero h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(2.45rem, 6vw, 5.1rem);
    line-height: 0.98;
}

.hero__title {
    justify-self: center;
    width: 100%;
    max-width: none;
    text-align: center;
}

.hero__title img {
    width: min(100%, 360px);
    max-height: 240px;
    object-fit: contain;
    object-position: center;
}

.hero__copy {
    min-width: 0;
}

.hero__copy p {
    max-width: 56ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.35rem, 2.6vw, 2.15rem);
    font-weight: 800;
    line-height: 1.12;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--color-red);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero .eyebrow,
.cta-band .eyebrow {
    color: var(--color-amber);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

.button--primary {
    color: #10202a;
    background: var(--color-amber);
}

.button--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.button--light {
    color: var(--color-navy);
    background: #fff;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: var(--max-width);
    margin: -1.8rem auto 0;
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
    z-index: 2;
}

.signal-strip div {
    min-width: 0;
    padding: 1.15rem;
    background: #fff;
    box-shadow: var(--shadow-tight);
}

.signal-strip div:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.signal-strip div:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.signal-strip strong,
.signal-strip span {
    display: block;
}

.signal-strip strong {
    font-size: 0.98rem;
}

.signal-strip span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 3vw, 2rem);
}

.section--split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.section__intro h2,
.section__header h2,
.cta-band h2,
.page-hero h1,
.entry__header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.05;
}

.section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.section-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    color: var(--color-teal);
    background: rgba(15, 123, 130, 0.08);
    border: 1px solid rgba(15, 123, 130, 0.22);
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

.section-links a:hover,
.section-links a:focus {
    color: #fff;
    background: var(--color-teal);
}

.section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature,
.post-card,
.empty-state {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-tight);
}

.feature {
    padding: 1.25rem;
}

.feature__icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: #fff;
    background: var(--color-navy);
    border-radius: var(--radius);
    font-weight: 800;
}

.feature:nth-child(2) .feature__icon {
    background: var(--color-teal);
}

.feature:nth-child(3) .feature__icon {
    background: var(--color-red);
}

.feature h3,
.post-card h3,
.empty-state h3 {
    margin: 0 0 0.55rem;
    font-size: 1.16rem;
    line-height: 1.25;
}

.feature p,
.post-card p,
.empty-state p {
    margin: 0;
    color: var(--color-muted);
}

.section--news {
    max-width: none;
    background: var(--color-soft);
    padding: clamp(2rem, 3vw, 7rem) clamp(1rem, 3vw, 2rem);
}

.section--news > * {
    max-width: var(--max-width);
    margin-right: auto;
    margin-left: auto;
}

.text-link {
    color: var(--color-teal);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.post-card {
    overflow: hidden;
}

.post-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--color-navy), var(--color-teal));
    font-weight: 800;
    text-decoration: none;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    padding: 1.1rem;
}

.post-card time {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--color-red);
    font-size: 0.78rem;
    font-weight: 800;
}

.post-card h3 a {
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--color-teal);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 1.4rem;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: clamp(1rem, 3vw, 2rem) auto clamp(4rem, 8vw, 7rem);
    padding: clamp(1.5rem, 4vw, 2.4rem);
    color: #fff;
    background: linear-gradient(135deg, var(--color-navy), #163f46 58%, var(--color-red));
    border-radius: var(--radius);
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--color-navy), #163f46);
}

.page-hero > div {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(2rem, 2vw, 6rem) clamp(1rem, 3vw, 2rem);
}

.entry {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem);
}

.entry__header {
    margin-bottom: 2rem;
}

.entry__excerpt {
    color: var(--color-muted);
    font-size: 1.15rem;
}

.entry__image {
    margin: 0 0 2rem;
    overflow: hidden;
    border-radius: var(--radius);
}

.entry__content > * {
    max-width: 100%;
}

.entry__content a {
    color: var(--color-teal);
    font-weight: 700;
}

.entry__content h2,
.entry__content h3 {
    margin-top: 2rem;
    line-height: 1.18;
}

.entry__content p,
.entry__content ul,
.entry__content ol {
    color: #263644;
}

.comments-area {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem) clamp(4rem, 7vw, 6rem);
}

.comments-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 820px);
    min-height: 72px;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    text-align: left;
    color: var(--color-ink);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-tight);
    cursor: pointer;
}

.comments-toggle .eyebrow {
    display: block;
    margin-bottom: 0.25rem;
}

.comments-toggle strong {
    display: block;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.15;
}

.comments-toggle__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    color: #fff;
    background: var(--color-teal);
    border-radius: var(--radius);
    font-weight: 800;
}

.comments-toggle[aria-expanded="true"] .comments-toggle__hint {
    background: var(--color-navy);
}

.comments-panel {
    margin-top: 1rem;
}

.comments-panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: start;
    width: 100%;
}

.comments-panel__list,
.comments-panel__form {
    min-width: 0;
}

.comments-area__header {
    margin-bottom: 1rem;
}

.comments-area__header h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.12;
}

.comment-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list .children {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    list-style: none;
    border-left: 2px solid var(--color-line);
}

.comment-body {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-tight);
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.comment-author {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-ink);
    font-weight: 800;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-metadata a,
.reply a,
.comment-edit-link {
    color: var(--color-teal);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.comment-content p {
    margin: 0 0 0.85rem;
    color: #263644;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-awaiting-moderation {
    display: inline-block;
    margin: 0.4rem 0 0.85rem;
    color: var(--color-red);
    font-weight: 800;
}

.comment-respond {
    position: sticky;
    top: 96px;
    padding: clamp(1rem, 2vw, 1.35rem);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-tight);
}

.comment-respond h3 {
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
    line-height: 1.2;
}

.comment-notes,
.logged-in-as,
.comments-area__closed {
    color: var(--color-muted);
}

.comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.comment-form p {
    margin: 0;
}

.comment-notes,
.comment-form-comment,
.comment-form-url,
.comment-form-cookies-consent,
.form-submit,
.logged-in-as {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-ink);
    font-weight: 800;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    color: var(--color-ink);
    background: #fbfcfc;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    font: inherit;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1.1rem;
    color: #10202a;
    background: var(--color-amber);
    border: 0;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.comment-form-cookies-consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.6rem;
    align-items: start;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.comment-form-cookies-consent input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
}

.comment-form-cookies-consent label {
    margin: 0;
    color: var(--color-muted);
    font-weight: 500;
}

.comments-empty {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-tight);
}

.comments-empty h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.comments-empty p:last-child {
    margin: 0;
    color: var(--color-muted);
}

.navigation.pagination {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    color: var(--color-ink);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

.page-numbers.current {
    color: #fff;
    background: var(--color-teal);
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: #101820;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 2rem);
}

.site-footer strong {
    display: block;
    color: #fff;
    font-size: 1.15rem;
}

.site-footer p {
    margin: 0.3rem 0 0;
}

.site-footer__nav .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__copy {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

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

    .primary-nav {
        position: fixed;
        inset: 73px 0 auto;
        display: none;
        padding: 0.75rem 1rem 1rem;
        background: #fff;
        border-bottom: 1px solid var(--color-line);
        box-shadow: var(--shadow-soft);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        display: grid;
        gap: 0.35rem;
        max-width: var(--max-width);
        margin: 0 auto;
    }

    .primary-nav a {
        width: 100%;
        min-height: 48px;
    }

    .hero {
        min-height: auto;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-top: 1.75rem;
        padding-bottom: 2.5rem;
    }

    .hero__media {
        background-position: 61% center;
    }

    .hero__overlay {
        background:
            linear-gradient(90deg, rgba(6, 16, 24, 0.92), rgba(6, 16, 24, 0.62)),
            linear-gradient(180deg, rgba(6, 16, 24, 0.16) 65%, rgba(6, 16, 24, 0.58));
    }

    .hero h1 {
        max-width: none;
    }

    .hero__title {
        justify-self: center;
        width: 100%;
        text-align: center;
    }

    .hero__title img {
        width: min(100%, 300px);
        max-height: 210px;
        margin-right: auto;
        margin-left: auto;
        object-position: center;
    }

    .hero__copy p {
        max-width: 24ch;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .hero__actions {
        justify-content: center;
    }

    .signal-strip,
    .section--split,
    .feature-grid,
    .post-grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .signal-strip {
        margin-top: 0;
        padding-top: 1rem;
        background: var(--color-soft);
    }

    .signal-strip div,
    .signal-strip div:first-child,
    .signal-strip div:last-child {
        border-radius: var(--radius);
    }

    .section__header,
    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .comments-panel__grid {
        grid-template-columns: 1fr;
    }

    .comment-respond {
        position: static;
    }

    .site-footer__nav .menu {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .site-brand__text small {
        max-width: 16ch;
    }

    .hero__content {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

    .hero__title img {
        width: min(100%, 250px);
        max-height: 180px;
    }

    .hero__actions,
    .hero__actions .button,
    .cta-band .button {
        width: 100%;
    }

    .comments-toggle {
        align-items: flex-start;
        flex-direction: column;
    }

    .comments-toggle__hint,
    .comment-form input[type="submit"] {
        width: 100%;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .section,
    .page-hero > div,
    .entry {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .comments-area {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

.qtc-item {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.qtc-item__media {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
}

.qtc-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qtc-item__body {
    flex: 1;
    min-width: 0;
}

.qtc-item__date {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    opacity: 0.65;
}

.qtc-item__title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

.qtc-item__title a {
    color: inherit;
    text-decoration: none;
}

.qtc-item__title a:hover {
    text-decoration: underline;
}

.qtc-item__excerpt {
    line-height: 1.6;
}

.qtc-item__excerpt p {
    margin: 0;
}

@media (max-width: 600px) {
    .qtc-item {
        gap: 1rem;
    }

    .qtc-item__media {
        flex-basis: 100px;
        width: 100px;
        height: 100px;
    }

    .qtc-item__title {
        font-size: 1.25rem;
    }
}