/* ==========================================================================
   MORP DNR - Theme

   Layout language borrowed from the Positivus design system: a white canvas,
   ink-outlined blocks lifted by a hard offset shadow, pill-highlighted
   headings and generous whitespace. Positivus leans on one acid-green accent;
   here that role is split between blue (highlight) and red (call to action)
   so the palette lands on red, white and blue.
   ========================================================================== */

/* Space Grotesk, self-hosted under the SIL Open Font License 1.1
   (see assets/fonts/OFL.txt). One variable file per subset covers every weight
   the site uses, and keeping it on our own origin removes a render-blocking
   round trip to fonts.googleapis.com. */
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

:root {
    --white: #ffffff;
    --ink: #0d1b30;
    --ink-soft: #46536b;
    --muted: #6b7789;

    --blue: #1d4ed8;
    --blue-deep: #0a3161;
    --blue-tint: #bcd4ff;
    --blue-wash: #edf3ff;

    --red: #c8102e;
    --red-bright: #e0243f;
    --red-tint: #ffd2d9;

    --grey: #f3f5f9;

    --hero-dark-top: #070f1c;
    --hero-dark-bottom: #0f2240;
    --hero-dark-bg: linear-gradient(
        180deg,
        var(--hero-dark-top) 0%,
        var(--ink) 42%,
        var(--hero-dark-bottom) 100%
    );

    --radius-pill: 999px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-md: 28px;
    --radius-lg: 45px;

    /* The signature elevation: an offset with no blur, so blocks read as
       cut paper stacked on the page rather than as soft drop shadows. */
    --lift: 0 5px 0 0 var(--ink);
    --lift-hover: 0 9px 0 0 var(--ink);
    --shadow-soft: 0 18px 50px rgba(13, 27, 48, 0.12);

    --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font);

    --container: 1240px;
    --header-h: 76px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--red);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
    color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.3em; }

hr {
    border: 0;
    border-top: 1px solid var(--ink);
    margin: 2.5rem 0;
    opacity: 0.15;
}

::selection {
    background: var(--blue-tint);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.2rem);
}

.container--narrow { max-width: 820px; }

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

/* The highlight pill behind a section title is the core Positivus motif. */
.section-head h2 {
    display: inline-block;
    margin: 0;
    padding: 0.05em 0.3em;
    background: var(--blue-tint);
    border-radius: var(--radius-sm);
}

.section-head p {
    margin: 0.9rem 0 0;
    color: var(--ink-soft);
    max-width: 54ch;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--grey);
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 0.7rem 1.2rem;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    font-family: var(--font);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease,
        transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn--primary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn--accent:hover {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--ghost {
    background: var(--white);
    color: var(--ink);
}

.btn--ghost:hover {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--ink);
    box-shadow: 0 6px 24px rgba(13, 27, 48, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    flex-shrink: 0;
}

.brand:hover { color: var(--ink); }
/* The mark ships as <picture>, so the wrapper needs to be the flex item. */
.brand picture {
    display: block;
    flex-shrink: 0;
    background: var(--hero-dark-bg);
    border-radius: var(--radius-sm);
    line-height: 0;
}
.brand img { display: block; width: 38px; height: 38px; }
.brand span { color: var(--red); }

.brand small {
    display: block;
    font-family: var(--font);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.nav-menu > li { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    border-radius: var(--radius-sm);
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover { background: var(--grey); color: var(--ink); }

.nav-item.is-active > .nav-link,
.nav-link[aria-current="page"] {
    background: var(--blue-tint);
    color: var(--ink);
}

.nav-caret {
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.has-dropdown:hover .nav-caret,
.has-dropdown:focus-within .nav-caret { transform: rotate(-135deg) translateY(-2px); }

.dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 232px;
    list-style: none;
    margin: 0;
    padding: 0.55rem;
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    box-shadow: var(--lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Invisible bridge over the gap between the trigger and panel so :hover
   does not drop while the cursor moves down to a menu item. */
.dropdown::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
    color: var(--ink);
    border-radius: var(--radius-sm);
}

.dropdown a:hover { background: var(--grey); color: var(--ink); }
.dropdown a[aria-current="page"] { background: var(--blue-tint); }

.dropdown-label {
    padding: 0.5rem 0.85rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.dropdown-sep {
    height: 1px;
    margin: 0.4rem 0.85rem;
    background: var(--ink);
    opacity: 0.14;
}

.nav-link--lang {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.nav-item--lang .dropdown {
    min-width: 11rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.75rem, 6vw, 4.75rem);
    color: var(--white);
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(29, 78, 216, 0.22), transparent 65%),
        var(--hero-dark-bg);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.35;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero__inner {
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
}

.hero__logo {
    margin: 0 auto 1.1rem;
    max-width: clamp(160px, 28vw, 220px);
    line-height: 0;
}

.hero__logo picture,
.hero__logo img {
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.hero__brand {
    margin: 0 0 1.35rem;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(188, 212, 255, 0.92);
}

.hero__lead {
    font-size: clamp(1.03rem, 1.7vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 62ch;
    margin: 0 auto 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.hero .btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.38);
}

.hero .btn--ghost:hover {
    background: var(--white);
    color: var(--ink);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding: 1.6rem clamp(1.2rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.hero .stat strong {
    color: var(--white);
}

.hero .stat span {
    color: rgba(188, 212, 255, 0.72);
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.stat span {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Cards / article grid
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    box-shadow: var(--lift);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lift-hover);
}

.card__media {
    display: block;
    border-bottom: 1px solid var(--ink);
    background: var(--grey);
    overflow: hidden;
}

.card__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card__media img { transform: scale(1.04); }

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.card__title {
    font-size: 1.16rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--blue); }

.card__excerpt {
    color: var(--ink-soft);
    font-size: 0.93rem;
    margin-bottom: 1.2rem;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--muted);
}

.card__meta time { white-space: nowrap; }
.card__meta .dot { opacity: 0.5; }

/* --------------------------------------------------------------------------
   Tags
   -------------------------------------------------------------------------- */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    transition: background 0.18s ease, color 0.18s ease;
}

.tag:hover { background: var(--blue-tint); color: var(--ink); }

.tag.is-active {
    background: var(--ink);
    color: var(--white);
}

.tag__count {
    font-size: 0.72rem;
    opacity: 0.6;
}

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.1rem;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
}

.search-form input::placeholder { color: var(--muted); }

.search-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-wash);
}

/* --------------------------------------------------------------------------
   Page heads / breadcrumbs
   -------------------------------------------------------------------------- */

.page-head {
    padding: clamp(2.2rem, 5vw, 3.5rem) 0;
    background: var(--grey);
    border-bottom: 1px solid var(--ink);
}

/* Article pages carry their title in the body, so the band holds only the
   breadcrumb trail and should not reserve room for a heading. */
.page-head--bare { padding: 1rem 0; }
.page-head--bare .breadcrumbs { margin-bottom: 0; }

.page-head h1 { margin-bottom: 0.6rem; }

.page-head p {
    color: var(--ink-soft);
    max-width: 62ch;
    margin: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    font-size: 0.83rem;
    color: var(--muted);
}

.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; opacity: 0.45; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current="page"] { color: var(--muted); }

/* --------------------------------------------------------------------------
   Long-form content
   -------------------------------------------------------------------------- */

.prose {
    font-size: 1.03rem;
    line-height: 1.8;
    color: var(--ink-soft);
}

.prose > *:first-child { margin-top: 0; }

.prose h2 {
    margin-top: 2.4rem;
    color: var(--ink);
}

.prose h3 { margin-top: 1.9rem; color: var(--ink); }

.prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover { color: var(--red); }

.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); }

.prose img {
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    margin: 1.8rem 0;
}

.prose blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    background: var(--blue-wash);
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    color: var(--ink);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    background: var(--grey);
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.prose pre {
    padding: 1.2rem 1.4rem;
    overflow-x: auto;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-md);
}

.prose pre code { background: none; padding: 0; color: inherit; }

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: 0.94rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.prose th, .prose td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(13, 27, 48, 0.12);
}

.prose th {
    background: var(--ink);
    color: var(--white);
    font-weight: 500;
}

.prose tbody tr:nth-child(even) { background: var(--grey); }
.prose tbody tr:last-child td { border-bottom: 0; }

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Article detail
   -------------------------------------------------------------------------- */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.article-cover {
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--grey);
}

.article-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.sidebar {
    display: grid;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}

.widget {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    box-shadow: var(--lift);
}

.widget h3 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

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

.widget-list a {
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.widget-list a:hover { color: var(--blue); }
.widget-list time { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 0.2rem; }

.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(13, 27, 48, 0.12);
}

.share-row span {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.9rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
}

.pagination a:hover {
    background: var(--blue-tint);
    color: var(--ink);
}

.pagination [aria-current="page"] {
    background: var(--ink);
    color: var(--white);
}

.pagination .is-disabled { opacity: 0.35; pointer-events: none; }

/* --------------------------------------------------------------------------
   Call to action / notices
   -------------------------------------------------------------------------- */

.cta {
    padding: clamp(2.2rem, 6vw, 3.8rem) clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
    background: var(--blue-wash);
    border: 1px solid var(--ink);
    border-radius: var(--radius-lg);
}

.cta p { color: var(--ink-soft); max-width: 58ch; margin: 0 auto 1.8rem; }

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.empty {
    padding: 2.5rem;
    text-align: center;
    color: var(--ink-soft);
    background: var(--grey);
    border: 1px dashed var(--ink);
    border-radius: var(--radius-md);
}

.alert {
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.94rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
}

.alert--success { background: #dcfce7; color: #14532d; }
.alert--error { background: var(--red-tint); color: #7f1020; }
.alert--info { background: var(--blue-wash); color: var(--blue-deep); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.site-footer h4,
.site-footer .brand { color: var(--white); }
.site-footer .brand span { color: var(--red-bright); }
.site-footer .brand:hover { color: var(--white); }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--white); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: clamp(1.8rem, 4vw, 3rem);
    padding-bottom: 2.5rem;
}

.footer-grid h4 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.footer-grid p { font-size: 0.92rem; }

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-links a { font-size: 0.92rem; }

.social-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-pill);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.social-row a:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.social-row svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-note {
    margin: 1.5rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }

    .nav-menu {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        padding: 1rem;
        background: var(--white);
        border-bottom: 1px solid var(--ink);
        box-shadow: 0 18px 40px rgba(13, 27, 48, 0.14);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        justify-content: space-between;
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    /* On touch there is no hover, so dropdowns are toggled by the caret. */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 0;
        margin: 0.2rem 0 0.5rem 0.75rem;
        border: 0;
        border-left: 1px solid rgba(13, 27, 48, 0.15);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .dropdown.is-open { display: block; }

    .nav-actions .btn { display: none; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .brand { font-size: 1.25rem; }
    .site-footer { border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .hero__stats { gap: 1.5rem 2.5rem; }
}

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

/* Reveal-on-scroll; visible by default so content is never hidden without JS. */
.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media print {
    .site-header, .site-footer, .sidebar, .cta, .share-row { display: none; }
    body { background: #fff; color: #000; }
}
