/* Fonts */
@font-face {
    font-family: 'Radio Canada Big';
    src: url('/static/fonts/RadioCanadaBig-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Radio Canada Big';
    src: url('/static/fonts/RadioCanadaBig-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Libre Baskerville';
    src: url('/static/fonts/LibreBaskerville-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Libre Baskerville';
    src: url('/static/fonts/LibreBaskerville-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Libre Baskerville';
    src: url('/static/fonts/LibreBaskerville-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ─── Design tokens ─── */
:root {
    /* Colors */
    --text: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg: #ffffff;
    --accent: #0040C4;
    --accent-hover: #002d8a;
    --accent-light: #008AE5;
    --accent-orange: #FF5A02;
    --accent-yellow: #FFD100; /* reserved — brand yellow */
    --muted: #757575;
    --border: #eaeaea;
    --surface: #f7f7f8;
    --surface-accent: #eef2ff;
    --content-article: var(--accent);
    --content-note: var(--accent-orange);
    --surface-note: #fff5ef;

    /* Type scale (minor third ~1.2) */
    --text-2xs: 0.65rem;
    --text-xs: 0.75rem;
    --text-sm: 0.85rem;
    --text-base: 1rem;
    --text-lg: 1.15rem;
    --text-xl: 1.35rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.25rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;

    /* Layout */
    --max-width: 640px;
    --max-width-wide: 960px;
    --gutter: 1.25rem;
    --sidebar-width: 280px;
    --font-heading: 'Radio Canada Big', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-code: 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--gutter);
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ─── Skip link ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--accent);
    color: white;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    transition: top 0.15s;
}
.skip-link:focus { top: 0; color: white; text-decoration: none; }

html { quotes: "\00ab" "\00bb" "\201c" "\201d"; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text);
    letter-spacing: -0.01em;
    text-wrap: pretty;
}
h1 { font-weight: 800; line-height: 1.15; }
h2 { font-weight: 700; line-height: 1.2; }
h3 { font-weight: 600; line-height: 1.25; }

/* ─── Header ─── */
.site-header {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: var(--space-lg) 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.nav-desktop {
    display: flex;
    gap: var(--space-lg);
    font-family: var(--font-heading);
}
.nav-desktop a:not(.nav-cta) {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.nav-desktop a:not(.nav-cta):hover { color: var(--text); text-decoration: none; }
.nav-desktop .nav-active { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.nav-desktop .nav-active-note { border-bottom-color: var(--content-note); }
.nav-mobile .nav-active { color: var(--accent); }
.nav-mobile .nav-active-note { color: var(--content-note); }

.nav-cta { margin-left: var(--space-sm); white-space: nowrap; }
.nav-search:hover { color: var(--text); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
    display: none;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: var(--space-lg) 2rem;
    flex-direction: column;
    gap: var(--space-xs);
    font-family: var(--font-heading);
}
.nav-mobile a {
    display: block;
    padding: 0.75rem 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover { color: var(--accent); text-decoration: none; }

/* ─── Wide main (homepage) ─── */
.main-wide {
    max-width: var(--max-width-wide);
}

/* ─── Homepage layout ─── */
.home-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
    margin-bottom: var(--space-xl);
}
.home-top .featured-card { grid-column: 1 / -1; }

.home-columns {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-xl);
    align-items: start;
}

.home-main { min-width: 0; }
.home-sidebar { min-width: 0; }

.home-main .content-guide {
    grid-template-columns: 1fr;
}

.home-sidebar .stream-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
}
.home-sidebar .stream-timestamp { padding-top: 0; }
.home-sidebar .stream-commentary { display: none; }
.home-sidebar .link-stream-header .section-label { font-size: var(--text-xs); }

/* ─── Hero ─── */
.hero { margin-bottom: 0; }
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: var(--space-sm);
}
.hero-kicker {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
/* Geometric dot — brand accent after kicker (echoes logo period) */
.hero-kicker::after {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--accent-orange);
    border-radius: 50%;
}
.hero-sub {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

/* ─── Home coaching ─── */
.home-coaching {
    border-left: none;
    padding: var(--space-xl) var(--space-lg);
    background: var(--accent-orange);
    border-radius: 8px;
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}
/* Geometric circle — top-right accent */
.home-coaching::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    background: url('/static/brand/modular/media-curva-naranja.png') no-repeat center/contain;
    opacity: 0.20;
}
.home-coaching::after {
    content: "";
    position: absolute;
    bottom: -1rem; left: -1rem;
    width: 3.5rem; height: 3.5rem;
    background: url('/static/brand/modular/circulo-amarillo.png') no-repeat center/contain;
    opacity: 0.15;
}
.home-coaching h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: white;
    position: relative;
    z-index: 1;
}
.home-coaching p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--space-md);
    line-height: 1.5;
    font-family: var(--font-heading);
    font-weight: 400;
    position: relative;
    z-index: 1;
}
.coaching-link {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent-orange);
    background: white;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: background-color 0.15s, color 0.15s;
}
.coaching-link:hover {
    background: var(--accent-yellow);
    color: var(--text);
    text-decoration: none;
}

/* ─── Meta line (shared across all listings and posts) ─── */
.meta {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}
.meta a { color: var(--muted); }
.meta a:hover { color: var(--accent); text-decoration: none; }
.meta .sep { color: var(--border); }

/* ─── Featured card (homepage) ─── */
.featured-card {
    background: var(--surface-accent);
    border-radius: 8px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: none;
    border-left: none;
    position: relative;
    overflow: hidden;
}
/* Bold blue top bar — editorial "pick" marker */
.featured-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 70%, var(--accent-orange) 100%);
}
/* Geometric quarter-circle — bottom-right, brand vocabulary */
.featured-card::after {
    content: "";
    position: absolute;
    bottom: -2rem; right: -2rem;
    width: 8rem; height: 8rem;
    background: url('/static/brand/modular/cuarto-curva-azul.png') no-repeat center/contain;
    opacity: 0.08;
}
.featured-card .content-type {
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: var(--text-2xs);
    letter-spacing: 0.08em;
}
.featured-card h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
    margin-top: var(--space-sm);
    line-height: 1.15;
}
.featured-card h2 a { color: var(--text); }
.featured-card h2 a:hover { color: var(--accent); text-decoration: none; }
.featured-card .excerpt {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

/* ─── Post card (homepage, compact) ─── */
.post-card {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.post-card:last-child { border-bottom: none; }
.post-card h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.3;
}
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); text-decoration: none; }
.post-card.note h2 { font-size: var(--text-base); }
.post-card.note h2 a { color: var(--text-secondary); }

/* ─── Post list (blog, category, tag, search) ─── */
.post-list { list-style: none; }
.post-list li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}
.post-list li:first-child { padding-top: 0; }
.post-list h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.35;
}
.post-list h2 a { color: var(--text); transition: color 0.15s; }
.post-list h2 a:hover { color: var(--accent); text-decoration: none; }

/* Article items in lists */
.post-list li.article {
    border-left: 3px solid var(--accent);
    padding-left: var(--space-md);
}
.list-excerpt {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
    line-height: 1.55;
    font-family: var(--font-body);
}

/* Note items in lists */
.post-list li.note {
    border-left: 3px solid var(--content-note);
    padding-left: var(--space-md);
}
.post-list li.note h2 {
    font-size: var(--text-sm);
    font-weight: 600;
}
.post-list li.note h2 a { color: var(--text-secondary); }
.post-list li.note h2 a:hover { color: var(--accent); }

/* ─── Link Stream component ─── */
.link-stream { margin-bottom: var(--space-xl); }

.link-stream-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--accent-orange);
}
.link-stream-header .section-label { color: var(--accent-orange); }
.link-stream-header .section-label::before { background: var(--accent-orange); }
.link-stream-header .section-label { margin-bottom: 0; }

.stream-more {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
}

.stream-items { list-style: none; }

.stream-item {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.15s;
}
.stream-item:last-child { border-bottom: none; }
.stream-item:hover {
    background: var(--surface-note);
    border-left: 3px solid var(--content-note);
    padding-left: calc(var(--space-md) - 3px);
}

.stream-timestamp {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
    padding-top: 0.15rem;
}
.stream-timestamp a { color: var(--muted); }
.stream-timestamp a:hover { color: var(--accent); text-decoration: none; }

.stream-body { position: relative; }
.stream-body h3 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.35;
}
.stream-body h3 a { color: var(--text); }
.stream-body h3 a:hover { color: var(--accent); text-decoration: none; }

.stream-commentary {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.2rem;
}

.stream-permalink {
    color: var(--muted);
    font-size: var(--text-sm);
    opacity: 0.4;
    margin-left: var(--space-xs);
}
.stream-permalink:hover { opacity: 1; color: var(--accent); text-decoration: none; }

/* ─── Article cards (blog listing) ─── */
.articles-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    position: relative;
}
/* Section divider — geometric line with brand gradient (echoes brandbook full-bleed dividers) */
.articles-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 60%, transparent 100%);
    border-radius: 2px;
}
.articles-section .section-label {
    padding-bottom: var(--space-sm);
    border-bottom: none;
    margin-bottom: var(--space-md);
}

.article-card {
    padding: var(--space-lg) var(--space-lg);
    border-left: none;
    border-bottom: none;
    margin-bottom: var(--space-sm);
    background: var(--surface);
    border-radius: 6px;
    position: relative;
    transition: background-color 0.15s;
}
/* Accent bar on left edge */
.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    border-radius: 6px 0 0 6px;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.article-card:hover { background: var(--surface-accent); }
.article-card:hover::before { opacity: 1; }

.article-card h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.2;
}
.article-card h2 a { color: var(--text); }
.article-card h2 a:hover { color: var(--accent); text-decoration: none; }

.article-card-excerpt {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
    line-height: 1.55;
}

/* ─── Content type labels ─── */
.content-type {
    font-family: var(--font-heading);
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.content-type--article {
    color: var(--content-article);
    background: var(--surface-accent);
}
.content-type--note {
    color: var(--content-note);
    background: var(--surface-note);
}

/* ─── Section "Ver todos" link ─── */
.section-more {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    margin-top: var(--space-lg);
    color: var(--accent);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}
.section-more:hover {
    text-decoration: none;
    border-bottom-color: var(--accent);
}

/* ─── Archive orientation ─── */
.archive-header { margin-bottom: var(--space-lg); }
.archive-description {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* ─── Topic shortcuts ─── */
.archive-topics {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}
.archive-topics a {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: var(--surface-accent);
    border-radius: 4px;
    color: var(--accent);
    transition: background-color 0.15s, color 0.15s;
}
.archive-topics a:hover { background: var(--accent); color: white; text-decoration: none; }

/* ─── Archive CTA ─── */
.archive-cta {
    background: var(--accent);
    border-radius: 8px;
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    text-align: center;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.archive-cta::before {
    content: "";
    position: absolute;
    top: -2rem; right: -2rem;
    width: 7rem; height: 7rem;
    background: url('/static/brand/modular/cuarto-curva-naranja.png') no-repeat center/contain;
    opacity: 0.20;
    pointer-events: none;
}
.archive-cta::after {
    content: "";
    position: absolute;
    bottom: -1.5rem; left: -1.5rem;
    width: 5rem; height: 5rem;
    background: url('/static/brand/modular/circulo-amarillo.png') no-repeat center/contain;
    opacity: 0.15;
    pointer-events: none;
}
.archive-cta p {
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}
.archive-cta .btn {
    background: white;
    color: var(--accent);
    position: relative;
    z-index: 1;
}
.archive-cta .btn:hover {
    background: var(--accent-yellow);
    color: var(--text);
}

/* ─── Homepage newsletter CTA ─── */
.home-newsletter {
    background: var(--accent);
    border-radius: 8px;
    padding: var(--space-xl) var(--space-xl);
    text-align: center;
    align-self: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
/* Geometric half-circle — top-right (brandbook auxiliary element) */
.home-newsletter::before {
    content: "";
    position: absolute;
    top: -2rem; right: -2rem;
    width: 7rem; height: 7rem;
    background: url('/static/brand/modular/cuarto-curva-naranja.png') no-repeat center/contain;
    opacity: 0.20;
    z-index: 0;
}
/* Geometric half-circle — bottom-left */
.home-newsletter::after {
    content: "";
    position: absolute;
    bottom: -1.5rem; left: -1.5rem;
    width: 5rem; height: 5rem;
    background: url('/static/brand/modular/medio-circulo-azul.png') no-repeat center/contain;
    opacity: 0.12;
    z-index: 0;
}
.home-newsletter p {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}
.home-newsletter .btn {
    background: white;
    color: var(--accent);
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.home-newsletter .btn:hover {
    background: var(--accent-yellow);
    color: var(--text);
}

/* ─── Content guide ─── */
.content-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}
.content-guide-item {
    padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xl);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border-left: none;
}
/* Thick left stripe — replaces thin 4px border with a bold branded bar */
.content-guide-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 8px 0 0 8px;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.content-guide-item:hover::before { opacity: 1; }
/* Geometric circle accent — bottom-right corner */
.content-guide-item::after {
    content: "";
    position: absolute;
    bottom: -1.2rem;
    right: -1.2rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    opacity: 0.10;
}
.content-guide-item--articles {
    background: var(--surface-accent);
}
.content-guide-item--articles::before {
    background: var(--content-article);
}
.content-guide-item--articles::after {
    background: var(--content-article);
}
.content-guide-item--notes {
    background: var(--surface-note);
}
.content-guide-item--notes::before {
    background: var(--content-note);
}
.content-guide-item--notes::after {
    background: var(--content-note);
}
.content-guide-insignia {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 48px;
    height: auto;
    opacity: 0.12;
    pointer-events: none;
}
.content-guide-item h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}
.content-guide-item--articles h3 { color: var(--accent); }
.content-guide-item--notes h3 { color: var(--accent-orange); }
.content-guide-item p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
    font-family: var(--font-heading);
    font-weight: 400;
}
.content-guide-item a {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    transition: background-color 0.15s, color 0.15s;
}
.content-guide-item--articles a {
    background: var(--accent);
    color: white;
}
.content-guide-item--articles a:hover {
    background: var(--accent-hover);
    color: white;
    text-decoration: none;
}
.content-guide-item--notes a {
    background: var(--accent-orange);
    color: white;
}
.content-guide-item--notes a:hover {
    background: #e04e00;
    color: white;
    text-decoration: none;
}

/* ─── Featured article enhancements ─── */
.featured-read {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent);
    margin-top: var(--space-md);
    display: inline-block;
    padding: 0.4rem 1rem;
    background: white;
    border-radius: 4px;
    border: 2px solid var(--accent);
    transition: background-color 0.15s, color 0.15s;
}
.featured-read:hover {
    background: var(--accent);
    color: white;
    text-decoration: none;
}

/* ─── Coaching mention (in articles) ─── */
.coaching-mention {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--text-secondary);
    border-left: 3px solid var(--content-note);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
}
.coaching-mention a {
    display: block;
    font-weight: 600;
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
}

/* ─── Related categories/tags ─── */
.related-categories, .related-tags {
    margin-top: var(--space-xl);
}
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}
.category-pills a {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: var(--surface-accent);
    border-radius: 4px;
    color: var(--accent);
    transition: background-color 0.15s, color 0.15s;
}
.category-pills a:hover { background: var(--accent); color: white; text-decoration: none; }

/* ─── Topics grid (categories browse) ─── */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.topic-card {
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-accent);
    position: relative;
    transition: border-color 0.15s, background-color 0.15s;
}
.topic-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--accent);
    border-radius: 8px 0 0 8px;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.topic-card:hover { border-color: var(--accent); text-decoration: none; }
.topic-card:hover::before { opacity: 1; }
.topic-card-name {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
    display: block;
}
.topic-card-count {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--muted);
}

/* ─── External link indicator ─── */
.external-link::after { content: " \2197"; font-size: 0.75em; opacity: 0.6; }

/* ─── Permalink ─── */
.permalink {
    color: var(--muted);
    font-size: var(--text-base);
    margin-left: var(--space-sm);
    text-decoration: none;
    opacity: 0.4;
}
.permalink:hover { opacity: 1; color: var(--accent); text-decoration: none; }

/* ─── Single post ─── */
.post.article header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: none;
    position: relative;
}
.post.article header::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 40%, transparent 100%);
}
.post.article h1 {
    font-size: clamp(1.75rem, 4vw, var(--text-3xl));
    margin-bottom: var(--space-sm);
}

/* Article header: byline (date + reading time) */
.article-byline {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.article-byline a { color: var(--muted); }
.article-byline a:hover { color: var(--accent); text-decoration: none; }
.byline-sep { color: var(--border); }

/* Article header: category pills */
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}
.article-categories a {
    font-size: var(--text-xs);
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--accent);
    background: var(--surface-accent);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    transition: background-color 0.15s, color 0.15s;
}
.article-categories a:hover {
    background: var(--accent);
    color: white;
    text-decoration: none;
}

/* ─── Note Card (single-column) ─── */
.post.note .note-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    position: relative;
}
.post.note .note-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--content-note);
    border-radius: 8px 0 0 8px;
}
.post.note .note-card::after {
    content: "";
    position: absolute;
    bottom: -2rem; right: -2rem;
    width: 6rem; height: 6rem;
    border-radius: 50%;
    background: var(--content-note);
    opacity: 0.06;
    pointer-events: none;
}

.note-card-body {
    padding: var(--space-lg);
}
.note-card-body .post-content {
    margin-bottom: 0;
}
.note-card-body .post-content p:last-child { margin-bottom: 0; }

.note-card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.note-card-source {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.35;
    margin-bottom: var(--space-sm);
    overflow-wrap: break-word;
}
.note-card-source:hover { color: var(--accent-hover); text-decoration: none; }

.note-card-title {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: var(--space-sm);
    overflow-wrap: break-word;
}

.note-card-meta {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.note-card-meta a { color: var(--muted); }
.note-card-meta a:hover { color: var(--accent); text-decoration: none; }
.note-card-meta .sep { color: var(--border); }

.post-content { margin-bottom: var(--space-xl); }
.post-content p { margin-bottom: 1.25rem; text-wrap: pretty; }
.post-content li { text-wrap: pretty; }
.post-content h2 {
    margin-top: var(--space-xl);
    margin-bottom: 0.6rem;
    font-size: var(--text-xl);
}
.post-content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
}
.post-content blockquote {
    border-left: 3px solid var(--accent-light);
    background: var(--surface);
    padding: var(--space-md) var(--space-lg);
    border-radius: 0 4px 4px 0;
    margin: var(--space-lg) 0;
    color: var(--text-secondary);
}
.post-content blockquote p { margin-bottom: var(--space-sm); }
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--accent-light);
    text-underline-offset: 2px;
}
.post-content a:hover { color: var(--accent-orange); text-decoration-color: var(--accent-orange); }
.post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: var(--space-md) 0; }
.post-content ul, .post-content ol { margin-bottom: 1.25rem; padding-left: var(--space-lg); }
.post-content li { margin-bottom: var(--space-xs); }
.post-content code {
    font-size: var(--text-sm);
    background: var(--surface);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-code);
}
.post-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: var(--space-lg) 0;
    font-size: var(--text-xs);
    line-height: 1.6;
}
.post-content pre code { background: none; padding: 0; }

/* ─── Tags ─── */
.tags {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: none;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}
.tags::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 30%, transparent 100%);
}
.tags a {
    font-size: var(--text-xs);
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--accent);
    background: var(--surface-accent);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    transition: background-color 0.15s, color 0.15s;
}
.tags a:hover { background: var(--accent); color: white; text-decoration: none; }

/* ─── Post CTA (newsletter prompt on articles) ─── */
.post-cta {
    background: var(--accent);
    border-radius: 8px;
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    text-align: center;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
}
.post-cta::before {
    content: "";
    position: absolute;
    top: -1.5rem; left: -1.5rem;
    width: 5rem; height: 5rem;
    background: url('/static/brand/modular/cuarto-curva-azul.png') no-repeat center/contain;
    opacity: 0.15;
}
.post-cta::after {
    content: "";
    position: absolute;
    bottom: -1rem; right: -1rem;
    width: 4rem; height: 4rem;
    background: url('/static/brand/modular/circulo-naranja.png') no-repeat center/contain;
    opacity: 0.15;
}
.post-cta p {
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}
.post-cta .btn {
    background: white;
    color: var(--accent);
    position: relative;
    z-index: 1;
}
.post-cta .btn:hover {
    background: var(--accent-yellow);
    color: var(--text);
}

/* ─── Related posts ─── */
.related-posts {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    position: relative;
}
.related-posts::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 30%, transparent 100%);
}
.related-posts .section-label {
    margin-bottom: var(--space-md);
}
.related-posts ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.related-posts li {
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.15s, background-color 0.15s;
}
.related-posts li:hover {
    border-color: var(--accent);
    background: var(--surface-accent);
}
.related-posts li a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--text);
    display: block;
}
.related-posts li a:hover { color: var(--accent); text-decoration: none; }
.related-posts li p {
    font-size: var(--text-xs);
    color: var(--muted);
    margin: var(--space-xs) 0 0;
    line-height: 1.4;
}

/* ─── Post navigation (prev/next) ─── */
.post-nav {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
}
.post-nav-prev, .post-nav-next { flex: 1; }
.post-nav-next { text-align: right; }
.post-nav-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: var(--space-xs);
}
.post-nav a {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.post-nav a:hover { color: var(--accent); text-decoration: none; }

/* ─── Categories page ─── */
.categories-page h1 { font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.section-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
    position: relative;
    padding-left: 0.75rem;
}
/* Geometric square marker — brand vocabulary, replaces invisible labels */
.section-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.4rem;
    height: 0.4rem;
    background: var(--accent);
    border-radius: 1px;
}
.tag-section-label { margin-top: var(--space-xl); }

.category-list { list-style: none; }
.category-list li { display: inline; }
.category-list li a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
}
.category-list li .count {
    color: var(--muted);
    font-size: var(--text-sm);
    font-family: var(--font-heading);
}
.category-list li::after {
    content: "\00a0\00a0\00b7\00a0\00a0";
    color: var(--border);
}
.category-list li:last-child::after { content: ""; }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}
.tag-cloud .tag {
    font-size: var(--text-xs);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    background: var(--surface-accent);
    color: var(--accent);
    border-radius: 3px;
    transition: background-color 0.15s, color 0.15s;
}
.tag-cloud .tag:hover { background: var(--accent); color: white; text-decoration: none; }
.tag-cloud .tag .count { font-size: var(--text-2xs); color: var(--muted); }

/* ─── Comments ─── */
.comments {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}
.comments h2 {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: var(--space-md);
}
.comment {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.comment strong {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
}
.comment time {
    color: var(--muted);
    font-size: var(--text-xs);
    font-family: var(--font-heading);
    margin-left: var(--space-sm);
}
.comment-form { margin-top: var(--space-lg); }
.comment-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
    line-height: 1.6;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form button {
    margin-top: var(--space-sm);
    padding: 0.55rem 1.4rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    transition: background-color 0.15s;
}
.comment-form button:hover { background: var(--accent-hover); }
.comment-gate { color: var(--muted); margin-top: var(--space-md); font-size: 0.9rem; }

/* ─── Paywall ─── */
.paywall {
    padding: var(--space-xl);
    text-align: center;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    margin: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}
.paywall p { margin-bottom: var(--space-md); font-family: var(--font-heading); position: relative; z-index: 1; }
.paywall .btn { background: white; color: var(--accent); position: relative; z-index: 1; }
.paywall .btn:hover { background: var(--accent-yellow); color: var(--text); }

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: background-color 0.15s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; color: white; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}
.btn-outline:hover { background: var(--accent-orange); color: white; }
.btn-sm { padding: 0.4rem 1.2rem; font-size: var(--text-xs); }

/* ─── Home CTAs ─── */
.home-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}
.cta-card {
    padding: var(--space-lg);
    border-radius: 8px;
}
.cta-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
}
.cta-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
    font-family: var(--font-heading);
    font-weight: 400;
}
.cta-newsletter { background: var(--surface); }
.cta-coaching {
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-orange);
}

/* ─── Search ─── */
.search-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-sm);
}
.search-form::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-orange) 100%);
    border-radius: 2px;
}
.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: var(--text-lg);
}
.search-form input:focus { outline: none; border-color: var(--accent); }
.search-form button {
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    transition: background-color 0.15s;
}
.search-form button:hover { background: var(--accent-hover); }

.search-meta {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.empty-state {
    text-align: center;
    padding: var(--space-2xl) 0;
    color: var(--muted);
}
.empty-state p { margin-bottom: var(--space-sm); }
.empty-state a { color: var(--accent); }

/* ─── Pagination ─── */
.pagination {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
    font-family: var(--font-heading);
}
.pagination a, .pagination .current {
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
}
.pagination .current { background: var(--accent); color: white; }
.pagination a { color: var(--text-secondary); }
.pagination a:hover { background: var(--surface); text-decoration: none; }

/* ─── Static pages ─── */
.page h1 { font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.page-content p { margin-bottom: 1.25rem; }

/* ─── Error ─── */
.error-page {
    text-align: center;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}
.error-page::before {
    content: "";
    position: absolute;
    top: -3rem; right: -3rem;
    width: 10rem; height: 10rem;
    background: url('/static/brand/modular/cuarto-curva-azul.png') no-repeat center/contain;
    opacity: 0.06;
    pointer-events: none;
}
.error-page h1 {
    font-size: 6rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--space-sm);
}
.error-page p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
}
.error-suggestion {
    font-size: var(--text-sm);
    color: var(--muted);
}

/* ─── Footer ─── */
.site-footer {
    max-width: var(--max-width-wide);
    margin: var(--space-2xl) auto 0;
    padding: var(--space-xl) var(--gutter) var(--space-lg);
    border-top: none;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 40%, transparent 100%);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}
.footer-about p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 400;
}
.footer-about a { font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 600; }
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-family: var(--font-heading);
}
.footer-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-connect {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
}
.footer-connect-text {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 500;
}
.footer-colophon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--muted);
}
.footer-colophon a { color: var(--muted); }
.footer-colophon a:hover { color: var(--text-secondary); }
.footer-mark { height: 16px; width: auto; opacity: 0.3; }

/* ─── Responsive ─── */
@media (max-width: 820px) {
    .home-columns { grid-template-columns: 1fr; }
    .home-sidebar .stream-item {
        grid-template-columns: 7rem 1fr;
        gap: var(--space-md);
    }
    .home-sidebar .stream-commentary { display: block; }
    .content-guide { grid-template-columns: 1fr; }
    .home-cta { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero h1 { font-size: clamp(1.35rem, 5vw, 2.4rem); }
    .post.article h1 { font-size: 1.5rem; }
    .related-posts ul { grid-template-columns: 1fr; }
    .logo img { height: 32px; }
    .site-header { padding: 1.25rem 1rem 0; }

    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }
    body.nav-open .nav-mobile { display: flex; }

    main { padding: var(--space-lg) 1rem; }

    .home-top { grid-template-columns: 1fr; }
    .home-cta { grid-template-columns: 1fr; }

    /* Featured card: scale down heading, reduce padding */
    .featured-card { padding: var(--space-lg); }
    .featured-card h2 { font-size: var(--text-xl); }
    .featured-card::after { width: 5rem; height: 5rem; }

    /* Newsletter CTA: reduce geometric elements on small screens */
    .home-newsletter { padding: var(--space-lg); }
    .home-newsletter::before { width: 5rem; height: 5rem; }
    .home-newsletter::after { width: 3.5rem; height: 3.5rem; }

    /* Coaching CTA: scale geometric elements */
    .home-coaching { padding: var(--space-lg); }
    .home-coaching::before { width: 3.5rem; height: 3.5rem; }

    /* Article cards: tighter padding on mobile */
    .article-card { padding: var(--space-md) var(--space-md); }

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

    .post-nav { flex-direction: column; gap: var(--space-md); }
    .post-nav-next { text-align: left; }

    .stream-item { grid-template-columns: 1fr; gap: 0.15rem; }
    .stream-timestamp { padding-top: 0; }

    .post.note .note-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
        width: calc(100% + 2 * var(--gutter));
    }

    .category-list li { display: block; }
    .category-list li::after { content: ""; }
    .category-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
}

/* ─── Print ─── */
@media print {
    .site-header, .site-footer, .nav-mobile, .nav-toggle,
    .post-cta, .post-nav, .comments, .home-cta,
    .search-form, .pagination, .skip-link { display: none; }
    main { max-width: 100%; padding: 0; }
    .post.note .note-card {
        grid-template-columns: 1fr;
        margin-left: 0; width: 100%;
        border: none;
    }
    a { color: var(--text); text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: var(--muted); }
    .logo a::after, .meta a::after { content: none; }
}
