:root {
    --ink: #102338;
    --muted: #5e7388;
    --line: #d9e4eb;
    --paper: #f5f9fa;
    --surface: #ffffff;
    --primary: #0e7180;
    --primary-dark: #064b68;
    --accent: #f7ae2c;
    --success: #147c54;
    --danger: #b23b4b;
    --shadow: 0 18px 50px rgba(12, 59, 78, .12);
    --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; }
h1 { margin-bottom: 1.15rem; font-size: clamp(2.45rem, 5.5vw, 4.8rem); letter-spacing: -.06em; }
h2 { margin-bottom: .65rem; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.04em; }
h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 50; padding: .65rem .9rem; color: var(--ink); background: #fff; border-radius: .45rem; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid rgba(247, 174, 44, .65); outline-offset: 3px; }

/* Shared public navigation and compact footer. */
.site-header { position: sticky; top: 0; z-index: 20; color: #f8fcff; background: linear-gradient(110deg, #073b58, #07666a); border-bottom: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 7px 20px rgba(3, 37, 52, .14); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; color: inherit; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand-logo { display: block; width: min(199px, 34vw); height: auto; }
.brand-mark { display: inline-grid; width: 2rem; height: 2rem; place-items: center; color: #fff; background: linear-gradient(135deg, #286df0, #6f9aff); border-radius: .68rem; box-shadow: 0 8px 18px rgba(20, 99, 216, .25); font-family: inherit; font-weight: 900; }
.site-actions { display: flex; align-items: center; gap: clamp(.65rem, 1.7vw, 1.35rem); }
.site-nav-link { position: relative; padding: .7rem 0; color: rgba(255, 255, 255, .9); font-size: .88rem; font-weight: 800; text-decoration: none; }
.site-nav-link::after { position: absolute; right: 0; bottom: .35rem; left: 0; height: 2px; content: ""; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.site-nav-link:hover, .site-nav-link.is-active { color: #fff; }
.site-nav-link:hover::after, .site-nav-link.is-active::after { transform: scaleX(1); }
.template-header-cta { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .9rem; color: #07394f; background: linear-gradient(110deg, #ffc24b, #ff7646); border-radius: 999px; box-shadow: 0 8px 17px rgba(4, 35, 51, .16); font-size: .82rem; font-weight: 850; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.template-header-cta:hover { color: #07394f; box-shadow: 0 12px 22px rgba(4, 35, 51, .24); transform: translateY(-2px); }
.locale-picker { position: relative; }
.locale-picker summary { display: flex; align-items: center; gap: .22rem; padding: .42rem .1rem; color: #effaff; border: 0; list-style: none; font-size: .84rem; font-weight: 850; cursor: pointer; }
.locale-picker summary::-webkit-details-marker { display: none; }
.locale-menu { position: absolute; top: calc(100% + .5rem); right: -.65rem; z-index: 30; display: grid; width: min(15rem, calc(100vw - 28px)); max-height: 20rem; overflow: auto; padding: .4rem; color: var(--ink); background: #fff; border: 1px solid #d9e5eb; border-radius: .72rem; box-shadow: 0 18px 40px rgba(4, 35, 51, .2); }
.locale-menu a { padding: .48rem .58rem; color: #38536b; border-radius: .42rem; font-size: .86rem; text-decoration: none; }
.locale-menu a:hover, .locale-menu a.is-active { color: #063e56; background: #e7f5f4; font-weight: 800; }
.site-footer { padding: 0; color: #cce4e9; background: linear-gradient(110deg, #073b58, #07666a); }
.footer-top { padding: 2rem 0 1.35rem; }
.footer-brand { display: grid; justify-items: center; gap: .65rem; text-align: center; }
.footer-logo { width: min(199px, 55vw); height: auto; }
.site-footer p { margin-bottom: 0; }
.footer-brand p { max-width: 46ch; color: #c0dce1; font-size: .88rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1rem; }
.footer-legal a { color: #f4fbfd; font-size: .79rem; text-decoration: none; text-underline-offset: 3px; }
.footer-legal a:hover { color: #ffd36d; text-decoration: underline; }
.footer-bottom { background: rgba(1, 36, 59, .34); border-top: 1px solid rgba(215, 242, 244, .15); }
.footer-bottom-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; }
.copyright-text { color: #c0dce1; font-size: .79rem; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem 1.1rem; }
.footer-menu a { color: #f4fbfd; font-size: .82rem; font-weight: 700; text-decoration: none; }
.footer-menu a:hover { color: #ffd36d; }
.muted { max-width: 62ch; color: var(--muted); font-size: .84rem; }

/* Static public content pages. */
.eyebrow { margin: 0 0 .65rem; color: var(--primary); font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy { max-width: 62ch; color: #40546d; font-size: 1.05rem; }
.section, .content-section { padding: clamp(3.4rem, 7vw, 5.8rem) 0; }
.content-page { padding: clamp(3.2rem, 7vw, 5.8rem) 0; }
.content-page-header { max-width: 850px; margin-bottom: 2rem; }
.content-page-header h1 { max-width: 18ch; margin-bottom: .8rem; font-size: clamp(2rem, 4.4vw, 3.55rem); letter-spacing: -.05em; }
.content-prose { max-width: 75ch; color: #365268; font-size: 1.03rem; line-height: 1.75; }
.content-prose > :last-child { margin-bottom: 0; }
.content-prose h2 { margin: 2.25rem 0 .7rem; color: #0b4560; font-size: clamp(1.42rem, 2.8vw, 1.92rem); letter-spacing: -.03em; }
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 { margin: 1.55rem 0 .45rem; color: #0d5c71; font-size: 1.12rem; }
.content-prose ul { padding-left: 1.25rem; }
.content-prose li + li { margin-top: .35rem; }
.page-updated { margin: -1rem 0 2rem; color: var(--muted); font-size: .82rem; }
.legal-setup-note { max-width: 75ch; margin: 0 0 1.5rem; padding: .95rem 1rem; color: #6b4d17; background: #fff8df; border: 1px solid #efd588; border-radius: .75rem; font-size: .9rem; }
.legal-setup-note strong { display: block; margin-bottom: .2rem; }
.blog-hero { background: radial-gradient(circle at 85% 10%, #dce9ff 0, transparent 35%), #f7fbff; border-bottom: 1px solid #d7e4f5; }
.blog-section { padding-top: 3.2rem; }
.public-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.public-section-heading h2 { margin-bottom: 0; }
.public-section-heading--spaced { margin-top: clamp(2.5rem, 6vw, 4rem); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.article-card { display: flex; flex-direction: column; min-height: 250px; padding: 1.4rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 4px 12px rgba(24, 53, 79, .035); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.article-card:hover { border-color: #a5c6da; box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card h2 { margin-top: 1rem; font-size: 1.42rem; }
.article-card p { flex: 1; color: var(--muted); font-size: .92rem; }
.article-card-link { color: var(--primary-dark); font-size: .88rem; font-weight: 800; }
.country-chip { display: inline-flex; width: fit-content; padding: .25rem .6rem; color: var(--muted); background: #edf3f5; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.empty-state, .ad-placeholder { display: grid; min-height: 110px; place-items: center; padding: 2rem; color: var(--muted); background: #fff; border: 1px dashed #b9c9d7; border-radius: 1rem; text-align: center; }
.ad-placeholder { margin-bottom: 3rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* The home page fills the space left by its compact header and footer. */
body.page-home { display: flex; min-height: 100svh; flex-direction: column; }
body.page-home main { display: flex; flex: 1; }
body.page-home main > .simple-home { width: 100%; flex: 1; }

@media (max-width: 900px) {
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 28px, 1160px); }
    .nav-wrap { min-height: 64px; }
    .brand-logo { width: min(169px, 48vw); }
    .site-actions { gap: .65rem; }
    .site-nav-link, .template-header-cta { display: none; }
    .article-grid { grid-template-columns: 1fr; }
    .public-section-heading { align-items: flex-start; }
    .footer-top { padding-top: 1.65rem; }
    .footer-brand p { max-width: 36ch; }
    .footer-bottom-content { min-height: 0; padding: .85rem 0; flex-direction: column; justify-content: center; text-align: center; }
    .footer-menu { justify-content: center; }
}

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