:root {
    --blue: #063b63;
    --blue-dark: #012f52;
    --ink: #0b2f4e;
    --muted: #66798b;
    --green: #078a58;
    --green-dark: #047246;
    --line: #dde7ee;
    --soft: #f5f8f7;
    --cream: #f7f7f1;
    --white: #fff;
    --shadow: 0 14px 34px rgba(5, 37, 60, .10);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    background: linear-gradient(90deg, var(--blue-dark), #0a4a74);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    gap: 20px;
}
.top-menu,
.primary-menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.top-menu { gap: 18px; font-size: 12px; }

.brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    align-items: center;
    gap: clamp(24px, 4vw, 54px);
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.brand-fallback {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}
.brand img {
    width: auto;
    max-width: min(100%, 430px);
    max-height: 72px;
    object-fit: contain;
}
.brand-mark {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #5f7f44, var(--blue));
    color: var(--white);
    font: 800 36px/1 Inter, sans-serif;
    box-shadow: var(--shadow);
}
.brand-name {
    color: var(--blue);
    font: 800 clamp(28px, 4vw, 46px)/1 Inter, sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.header-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    width: 100%;
    max-width: 320px;
    justify-self: end;
    background: #f1f3f4;
    border-radius: 4px;
    overflow: hidden;
    min-height: 46px;
    border: 1px solid transparent;
}
.header-search:focus-within {
    background: var(--white);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(7, 138, 88, .12);
}
.header-search input,
.newsletter-box input {
    border: 0;
    background: transparent;
    padding: 0 18px;
    font: inherit;
    min-width: 0;
}
.header-search button {
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 0;
    cursor: pointer;
    position: relative;
}
.header-search button::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    top: 13px;
    left: 13px;
}
.header-search button::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    top: 28px;
    left: 27px;
}
.main-nav {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 58px;
    overflow-x: auto;
}
.home-link {
    color: var(--green);
    font-size: 25px;
    line-height: 1;
}
.primary-menu {
    flex-wrap: nowrap;
    gap: 34px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-wrap { padding: 28px 0 48px; }
.hero-news {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .85fr);
    background: var(--soft);
    border: 1px solid var(--line);
    margin-bottom: 22px;
}
.hero-image {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: linear-gradient(135deg, #7fb4c6, #224d38);
}
.hero-image img,
.article-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-placeholder,
.placeholder-media {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: linear-gradient(135deg, #96c9d5, #1d5a37 55%, #e5eef0);
}
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 18px;
    border-radius: 4px;
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.hero-image .badge {
    position: absolute;
    top: 24px;
    left: 24px;
}
.hero-copy {
    padding: clamp(34px, 5vw, 56px) 34px;
}
.hero-copy h1,
.article-header h1,
.dossier-band h2 {
    font-family: Lora, Georgia, serif;
    letter-spacing: 0;
}
.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(34px, 4.1vw, 52px);
    line-height: 1.08;
}
.hero-copy p {
    color: #29475e;
    margin: 0 0 24px;
    font-size: 17px;
}
.article-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    color: var(--muted);
    font-size: 13px;
    margin: 18px 0 24px;
}
.button,
.load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: var(--green);
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}
.button:hover,
.load-more:hover { background: var(--green-dark); color: var(--white); }

.card-grid {
    display: grid;
    gap: 24px;
}
.card-grid.four { grid-template-columns: repeat(4, 1fr); margin: 22px 0 34px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 34px; }
.post-card {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(8, 43, 70, .04);
}
.post-card-media {
    display: block;
    aspect-ratio: 1.55;
    overflow: hidden;
    background: #dce8e8;
}
.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-body { padding: 16px; }
.eyebrow,
.eyebrow a {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.post-card h3 {
    margin: 8px 0 0;
    color: var(--blue);
    font-family: Lora, Georgia, serif;
    font-size: 21px;
    line-height: 1.18;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0 18px;
    border-bottom: 1px solid var(--line);
}
.section-head h2 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--green);
    color: var(--blue);
    font: 800 22px/1.1 Lora, Georgia, serif;
    text-transform: uppercase;
}
.section-head a {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
}
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 34px;
}
.post-card-compact {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    border: 0;
    box-shadow: none;
}
.post-card-compact .post-card-body { padding: 0; }
.post-card-compact .post-card-media { aspect-ratio: 1.45; }
.post-card-compact h3 { font-size: 15px; }
.post-card-compact .meta-line { margin: 8px 0 0; }

.dossier-band {
    margin: 34px 0;
    padding: 42px 32px;
    min-height: 230px;
    border-radius: 4px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(1,47,82,.95), rgba(1,47,82,.65), rgba(1,47,82,.15)),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,.85) 0 1px, transparent 2px),
        linear-gradient(135deg, #003b5d, #6ab0c6);
    background-size: auto, 26px 26px, auto;
}
.dossier-band h2 {
    max-width: 560px;
    margin: 18px 0 8px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}
.dossier-band p { max-width: 520px; margin: 0 0 22px; }
.home-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 285px;
    gap: 28px;
    align-items: start;
}
.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.post-card-mini h3 { font-size: 15px; }
.post-card-mini .post-card-body { padding: 12px 0 0; }
.post-card-mini { border: 0; box-shadow: none; }
.newsletter-box {
    padding: 34px 24px;
    background: linear-gradient(135deg, #f2f4e9, #e4f0df);
    border-radius: 6px;
    text-align: center;
}
.newsletter-box h2 {
    margin: 0 0 8px;
    color: var(--blue);
    font: 700 25px/1.15 Lora, Georgia, serif;
}
.newsletter-box input {
    width: 100%;
    height: 42px;
    margin: 14px 0 10px;
    border: 1px solid #a9cdbb;
    border-radius: 4px;
    background: var(--white);
}
.newsletter-box .button { width: 100%; }

.site-footer {
    margin-top: 24px;
    background: #f2f5f4;
    color: var(--ink);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 42px;
    padding: 42px 0;
}
.footer-brand {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--blue);
    font: 800 30px/1 Inter, sans-serif;
}
.site-footer h3 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 15px;
    text-transform: uppercase;
}
.footer-menu {
    display: block;
    font-size: 14px;
}
.footer-menu li { margin: 6px 0; }
.support-box {
    border-left: 1px solid #becbd3;
    padding-left: 32px;
}
.footer-bottom {
    background: var(--blue-dark);
    color: var(--white);
    padding: 14px 0;
    font-size: 13px;
}

.archive-page { padding: 44px 0; }
.archive-header h1,
.article-header h1 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
}
.single-article { padding: 46px 0 20px; }
.article-header {
    max-width: 860px;
    margin: 0 auto 30px;
    min-width: 0;
}
.article-featured {
    margin: 28px 0 0;
    aspect-ratio: 1.72;
    overflow: hidden;
}
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 54px;
    align-items: start;
    justify-content: center;
    min-width: 0;
}
.article-content {
    color: #173a55;
    font-size: 19px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.article-content p { margin: 0 0 1.2em; }
.article-content a { color: var(--green); font-weight: 700; }
.article-content img,
.article-content video,
.article-content iframe,
.article-content embed,
.article-content object {
    max-width: 100%;
}
.article-content iframe,
.article-content video {
    width: 100%;
}
.article-content figure,
.article-content .wp-block-image,
.article-content .wp-block-embed,
.article-content .wp-block-video,
.article-content .wp-block-gallery,
.article-content .alignwide,
.article-content .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.article-content figcaption {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}
.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}
.article-content th,
.article-content td {
    padding: 10px 12px;
    border: 1px solid var(--line);
}
.article-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.article-content blockquote {
    margin: 1.5em 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--green);
}
.article-sidebar {
    min-width: 0;
}
.author-box {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    margin-top: 42px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--soft);
}
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0 0 6px; font-size: 22px; }
.post-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 28px;
    font-weight: 800;
}
.post-pager div:last-child { text-align: right; }
.article-sidebar .widget,
.tni-ad {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px dashed #b4c4cf;
    background: #f7faf9;
    text-align: center;
}
.tni-ad:empty { display: none; }
.next-articles { padding-bottom: 48px; }
.load-more { margin: 28px auto 0; display: flex; }

@media (max-width: 980px) {
    .brand-row {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
        gap: 22px;
    }
    .header-search { max-width: 280px; }
    .hero-news,
    .article-layout,
    .home-columns,
    .footer-grid { grid-template-columns: 1fr; }
    .card-grid.four,
    .card-grid.three,
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
    .support-box { border-left: 0; padding-left: 0; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .topbar-inner { align-items: flex-start; flex-direction: column; padding: 10px 0; gap: 8px; }
    .brand-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 0;
    }
    .brand img { max-height: 58px; }
    .brand-name { font-size: clamp(25px, 8.5vw, 34px); }
    .brand-mark { width: 56px; height: 56px; font-size: 30px; }
    .header-search {
        max-width: none;
        min-height: 44px;
        justify-self: stretch;
    }
    .hero-news,
    .post-card { border-left: 0; border-right: 0; }
    .hero-image { min-height: 280px; }
    .hero-copy { padding: 26px 18px; }
    .card-grid.four,
    .card-grid.three,
    .latest-grid,
    .mini-grid,
    .post-pager { grid-template-columns: 1fr; }
    .post-card-compact { grid-template-columns: 110px 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .dossier-band { padding: 28px 20px; }
    .article-content { font-size: 18px; }
    .article-header h1 {
        font-size: clamp(32px, 10vw, 46px);
        overflow-wrap: anywhere;
    }
    .author-box { grid-template-columns: 1fr; }
}
