/*
Theme Name: Oltre la Riga
Theme URI: https://oltrelariga.it
Author: Oltre la Riga
Description: Tema editoriale proprietario per OLTRE LA RIGA.
Version: 0.4.5
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: fuoririga-theme
*/

:root {
    --color-background: #f8f5ef;
    --color-surface: #fffdf9;
    --color-primary: #10283e;
    --color-accent: #8d2934;
    --color-text: #20232a;
    --color-muted: #59616c;
    --color-border: #d9d4cc;
    --fr-ink: #20232a;
    --fr-ink-soft: #59616c;
    --fr-navy: #10283e;
    --fr-burgundy: #8d2934;
    --fr-paper: #f8f5ef;
    --fr-white: #fffdf9;
    --fr-line: #d9d4cc;
    --fr-focus: #0c5aa6;
    --fr-max: 78rem;
    --fr-reading: 46rem;
    --fr-space-1: .35rem;
    --fr-space-2: .7rem;
    --fr-space-3: 1rem;
    --fr-space-4: 1.5rem;
    --fr-space-5: 2.25rem;
    --fr-space-6: 3.5rem;
    --fr-space-7: 5.5rem;
    --fr-display: Georgia, 'Times New Roman', serif;
    --fr-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* FASE 2.7: modern digital-publication layer. */
.fr-site-header { position: sticky; top: 0; background: color-mix(in srgb, var(--color-surface) 94%, transparent); backdrop-filter: blur(12px); transition: box-shadow 180ms ease, border-color 180ms ease; }
.fr-site-header.is-scrolled { box-shadow: 0 8px 24px rgb(16 40 62 / 8%); }
.fr-site-header .fr-header-inner { transition: min-height 180ms ease; }
.fr-site-header.is-scrolled .fr-header-inner { min-height: 4.6rem; }
.fr-site-header.is-scrolled .fr-brand { width: clamp(9.75rem, 16vw, 14.5rem); }
.fr-header-inner { min-height: 5.25rem; }
.fr-search-link { display: inline-flex; align-items: center; gap: .4rem; }
.fr-search-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.fr-home-intro { max-width: 38rem; padding-block: 1.25rem 1.5rem; }
.fr-home-intro h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.fr-hero-story { border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgb(16 40 62 / 8%); }
.fr-hero-story { grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr); }
.fr-hero-copy { padding: clamp(1.5rem, 3vw, 3rem); }
.fr-hero-copy h2 { font-size: clamp(2rem, 3vw, 2.85rem); }
.fr-featured-grid, .fr-editorial-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.fr-featured-grid .fr-story-card:first-child { grid-column: span 6; }
.fr-featured-grid .fr-story-card:not(:first-child) { grid-column: span 3; }
.fr-story-card { border-radius: 10px; overflow: hidden; box-shadow: 0 5px 18px rgb(16 40 62 / 6%); transition: transform 180ms ease, box-shadow 180ms ease; }
.fr-story-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(16 40 62 / 12%); }
.fr-story-image img, .fr-hero-media img { transition: transform 180ms ease; }
.fr-story-card:hover .fr-story-image img, .fr-hero-story:hover .fr-hero-media img { transform: scale(1.03); }
.fr-story-card--text-only { border-top: 3px solid var(--color-accent); }
.fr-dossier-section { margin-top: var(--fr-space-6); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.25rem); color: var(--color-surface); background: var(--color-primary); }
.fr-dossier-heading { display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid rgb(255 255 255 / 25%); padding-bottom: .9rem; }
.fr-dossier-heading h2 { margin: 0; color: inherit; font-size: clamp(1.8rem, 4vw, 3rem); }
.fr-dossier-section .fr-eyebrow { color: #e5a3a8; }
.fr-dossier-mark { color: #e5a3a8; font: 2.5rem/1 Georgia, serif; }
.fr-dossier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.fr-dossier-card { min-width: 0; border-radius: 8px; overflow: hidden; background: rgb(255 255 255 / 8%); }
.fr-dossier-card a { display: block; color: inherit; text-decoration: none; }
.fr-dossier-card img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.fr-dossier-card span { display: block; padding: 1rem; }
.fr-dossier-card strong, .fr-dossier-card small { display: block; }
.fr-dossier-card strong { font: 1.25rem/1.15 Georgia, serif; }
.fr-dossier-card small { margin-top: .7rem; color: #cbd5da; font-size: .75rem; }
.fr-article-header { margin-top: var(--fr-space-4); }
.fr-article-header h1 { font-size: clamp(2.35rem, 5vw, 4.75rem); }
.fr-reading-layout { grid-template-columns: minmax(0, 46rem) 11rem; gap: 3rem; }
.fr-entry-content { font-size: 1.15rem; line-height: 1.82; }
.fr-entry-content h2 { margin-top: 2.25rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.fr-entry-content h3 { margin-top: 1.75rem; }
.fr-entry-content figure { margin: 2rem 0; }
.fr-entry-content figcaption, .fr-gallery figcaption { color: var(--color-muted); font: .8rem/1.4 var(--fr-ui); }
.fr-related .fr-section-heading h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.fr-hero-story { grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr); }
.fr-hero-copy { padding: clamp(1.5rem, 3vw, 3rem); }
.fr-hero-copy h2 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); }
.fr-section-tile, .fr-search input, .fr-button { border-radius: 8px; }
.fr-button, .fr-menu-toggle { min-height: 44px; }

@media (max-width: 70rem) {
    .fr-nav ul { gap: .75rem; }
}
@media (max-width: 52rem) {
    .fr-featured-grid .fr-story-card:first-child, .fr-featured-grid .fr-story-card:not(:first-child) { grid-column: span 6; }
    .fr-dossier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
    .fr-featured-grid .fr-story-card:first-child, .fr-featured-grid .fr-story-card:not(:first-child) { grid-column: auto; }
    .fr-dossier-grid { grid-template-columns: 1fr; }
    .fr-site-header { position: sticky; }
}
@media (prefers-reduced-motion: reduce) {
    .fr-site-header, .fr-story-card, .fr-story-image img, .fr-hero-media img { transition: none; }
}

/* FASE 2.8: responsive hotfix cascade. */
.fr-container { width: min(calc(100% - 2rem), 90rem); }
.fr-header-inner { min-width: 0; }
.fr-masthead { min-width: 0; flex: 0 1 auto; white-space: nowrap; }
.fr-brand { display: inline-block; flex-shrink: 0; white-space: nowrap; }
.fr-payoff { white-space: nowrap; }
.fr-nav { min-width: 0; }
.fr-nav ul { flex-wrap: nowrap; }
.fr-nav ul { gap: .65rem; }
.fr-nav a { white-space: nowrap; font-size: .7rem; letter-spacing: .06em; }
.fr-brand { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .08em; }
.fr-editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fr-editorial-grid .fr-story-card { grid-column: auto; width: 100%; min-width: 0; }
.fr-editorial-grid .fr-story-card h2, .fr-editorial-grid .fr-story-card h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }
.fr-nav li, .fr-nav a { min-width: 0; }
.fr-page-header, .fr-article-header, .fr-home-section, .fr-related { scroll-margin-top: 6rem; }
h1, h2, h3, h4, .fr-story-card, .fr-list-story { min-width: 0; overflow-wrap: normal; word-break: normal; }
.fr-story-card, .fr-dossier-card, .fr-list-story, .fr-section-tile { min-width: 0; }

@media (max-width: 74.99rem) {
    .fr-payoff { display: none; }
    .fr-menu-toggle { display: block; flex: 0 0 auto; }
    .fr-nav { display: none; position: absolute; top: 100%; right: 1rem; left: 1rem; padding: 1rem; background: var(--fr-white); box-shadow: 0 12px 25px rgb(16 40 62 / 10%); }
    .fr-nav.is-open { display: block; }
    .fr-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1rem; }
    .fr-nav li { margin: 0; }
    .fr-nav a { display: block; padding: .7rem 0; }
    .fr-featured-grid, .fr-editorial-grid, .fr-related-grid { grid-template-columns: repeat(2, minmax(min(100%, 280px), 1fr)); }
    .fr-featured-grid .fr-story-card:first-child, .fr-featured-grid .fr-story-card:not(:first-child), .fr-editorial-grid .fr-story-card:nth-child(4n+1) { grid-column: auto; }
    .fr-dossier-grid { grid-template-columns: repeat(2, minmax(min(100%, 280px), 1fr)); }
    .fr-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47.99rem) {
    .fr-header-inner { min-height: 5rem; }
    .fr-brand { font-size: clamp(1.35rem, 6vw, 1.8rem); letter-spacing: .08em; }
    .fr-nav ul { grid-template-columns: 1fr; }
    .fr-featured-grid, .fr-editorial-grid, .fr-related-grid, .fr-dossier-grid, .fr-gallery { grid-template-columns: minmax(0, 1fr); }
    .fr-section-grid { grid-template-columns: 1fr; }
    .fr-hero-story { grid-template-columns: 1fr; }
    .fr-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .fr-article-header { margin-top: 1rem; }
    .fr-article-header h1 { font-size: clamp(2rem, 9vw, 3.1rem); }
}

@media (max-width: 23.5rem) {
    .fr-container { width: calc(100% - 1rem); }
    .fr-header-inner { gap: .5rem; }
    .fr-brand { font-size: 1.25rem; }
    .fr-menu-toggle { padding-inline: .55rem; }
}
/* Official Oltre la Riga logo: preserve the supplied asset proportions. */
.fr-brand { width: clamp(10.5rem, 18vw, 16.5rem); }
.fr-brand img, .fr-footer-brand img { display: block; width: 100%; height: auto; max-width: 100%; }
.fr-footer-brand { width: min(13rem, 72vw); }
@media (max-width: 38rem) {
    .fr-brand { width: clamp(9.5rem, 55vw, 13rem); }
    .fr-footer-brand { width: min(12rem, 70vw); }
}
/* Weather active state must come after the generic link-state cascade. */
.fr-weather-tabs .fr-weather-tab { color: var(--color-primary); background: transparent; }
.fr-weather-tabs .fr-weather-tab:hover,
.fr-weather-tabs .fr-weather-tab:focus,
.fr-weather-tabs .fr-weather-tab:active { color: var(--color-accent); background: transparent; }
.fr-weather-tabs .fr-weather-tab.is-active,
.fr-weather-tabs .fr-weather-tab[aria-current="page"],
.fr-weather-tabs .fr-weather-tab[aria-selected="true"] { color: var(--color-surface); background: var(--color-primary); }
.fr-weather-tabs .fr-weather-tab.is-active:hover,
.fr-weather-tabs .fr-weather-tab.is-active:focus,
.fr-weather-tabs .fr-weather-tab.is-active:focus-visible,
.fr-weather-tabs .fr-weather-tab.is-active:active,
.fr-weather-tabs .fr-weather-tab[aria-current="page"]:hover,
.fr-weather-tabs .fr-weather-tab[aria-current="page"]:focus,
.fr-weather-tabs .fr-weather-tab[aria-current="page"]:focus-visible,
.fr-weather-tabs .fr-weather-tab[aria-current="page"]:active,
.fr-weather-tabs .fr-weather-tab[aria-selected="true"]:hover,
.fr-weather-tabs .fr-weather-tab[aria-selected="true"]:focus,
.fr-weather-tabs .fr-weather-tab[aria-selected="true"]:focus-visible,
.fr-weather-tabs .fr-weather-tab[aria-selected="true"]:active { color: var(--color-surface); background: var(--color-primary); }

/* Footer logo and weather controls: preserve contrast after the global link pass. */
.fr-footer-brand { display: inline-block; max-width: min(13rem, 72vw); color: var(--color-surface); background: transparent; box-shadow: none; filter: none; border: 0; border-radius: 0; }
.fr-footer-brand img { width: 100%; height: auto; }

/* Mirato a sezioni e archivio: card sempre leggibili. */
.fr-editorial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fr-editorial-grid .fr-story-card {
    grid-column: auto;
    width: 100%;
    min-width: 0;
}
.fr-editorial-grid .fr-story-card h2,
.fr-editorial-grid .fr-story-card h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
@media (max-width: 74.99rem) {
    .fr-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 47.99rem) {
    .fr-editorial-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.fr-hero-copy h2 { font-size: clamp(2rem, 3vw, 2.85rem); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--fr-ink); background: var(--fr-paper); font-family: var(--fr-ui); line-height: 1.65; }
a { color: var(--fr-burgundy); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--fr-navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--fr-focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--fr-navy); font-family: var(--fr-display); line-height: 1.08; text-wrap: balance; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 6.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; color: var(--fr-white); background: var(--fr-navy); }
.skip-link:focus { top: 1rem; }
.fr-site { min-height: 100vh; }
.fr-container { width: min(calc(100% - 2rem), var(--fr-max)); margin-inline: auto; }
.fr-site-header { position: relative; z-index: 5; background: var(--fr-white); border-bottom: 1px solid var(--fr-line); }
.fr-header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--fr-space-5); min-height: 6.5rem; }
.fr-masthead { display: flex; align-items: baseline; gap: var(--fr-space-3); }
.fr-brand, .fr-footer-brand { color: var(--fr-navy); text-decoration: none; font-family: var(--fr-ui); font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: .12em; line-height: 1; }
.fr-payoff { margin: 0; color: var(--fr-burgundy); font-family: var(--fr-display); font-style: italic; }
.fr-nav ul, .fr-footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.fr-nav a { color: var(--fr-navy); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.fr-nav a:hover { color: var(--fr-burgundy); }
.fr-menu-toggle { display: none; border: 1px solid var(--fr-navy); padding: .55rem .8rem; color: var(--fr-navy); background: transparent; font: inherit; font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.fr-site-main { padding: var(--fr-space-4) 0 var(--fr-space-7); }
.fr-section-kicker, .fr-page-header, .fr-home-intro { border-top: 1px solid var(--fr-line); }
.fr-section-kicker { display: flex; justify-content: space-between; padding: .65rem 0; color: var(--fr-ink-soft); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.fr-home-intro { max-width: 44rem; padding-top: var(--fr-space-4); padding-bottom: var(--fr-space-4); }
.fr-home-intro h1 { margin-bottom: .35rem; }
.fr-home-intro p:last-child { max-width: 34rem; color: var(--fr-ink-soft); font-size: 1.15rem; }
.fr-eyebrow { margin-bottom: .7rem; color: var(--fr-burgundy); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.fr-eyebrow a { color: inherit; text-decoration: none; }
.fr-hero-story { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); margin-bottom: var(--fr-space-6); background: var(--fr-navy); }
.fr-hero-story--text-only { grid-template-columns: 1fr; }
.fr-hero-media, .fr-story-image { display: block; overflow: hidden; background: #d8d0c5; }
.fr-hero-media img, .fr-story-image img { width: 100%; height: 100%; object-fit: cover; }
.fr-hero-media { min-height: 27rem; }
.fr-hero-copy { align-self: center; padding: clamp(1.5rem, 5vw, 4.5rem); color: var(--fr-white); }
.fr-hero-copy h2 { margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 5.3rem); }
.fr-hero-copy h2 a { color: var(--fr-white); text-decoration: none; }
.fr-hero-copy .fr-dek { color: #dfe5e9; font-size: 1.1rem; }
.fr-hero-copy .fr-eyebrow, .fr-hero-copy .fr-byline { color: #e5a3a8; }
.fr-byline { color: var(--fr-ink-soft); font-size: .82rem; }
.fr-byline a { color: inherit; }
.fr-text-link { display: inline-flex; gap: .5rem; align-items: center; color: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.fr-home-section { margin-top: var(--fr-space-6); }
.fr-section-heading { display: flex; align-items: end; gap: 1.5rem; margin-bottom: var(--fr-space-4); border-bottom: 2px solid var(--fr-navy); padding-bottom: .8rem; }
.fr-section-heading h2 { margin: 0; }
.fr-section-heading .fr-eyebrow { margin-bottom: .25rem; }
.fr-section-heading .fr-text-link { margin-left: auto; color: var(--fr-burgundy); }
.fr-featured-grid, .fr-editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fr-space-4); }
.fr-story-card { min-width: 0; background: var(--fr-white); }
.fr-story-image { aspect-ratio: 1.5; }
.fr-story-body { padding: 1.2rem 1.1rem 1.3rem; border-bottom: 1px solid var(--fr-line); }
.fr-story-body h2, .fr-story-body h3 { margin-bottom: .65rem; }
.fr-story-body h2 a, .fr-story-body h3 a, .fr-list-story h3 a { color: var(--fr-navy); text-decoration: none; }
.fr-story-body p:not(.fr-eyebrow):not(.fr-byline) { color: var(--fr-ink-soft); font-size: .95rem; }
.fr-latest-list { border-top: 1px solid var(--fr-line); }
.fr-list-story { display: flex; justify-content: space-between; gap: var(--fr-space-4); padding: 1.25rem 0; border-bottom: 1px solid var(--fr-line); }
.fr-list-story h3 { margin-bottom: .35rem; }
.fr-list-story p:not(.fr-eyebrow):not(.fr-byline) { margin-bottom: 0; color: var(--fr-ink-soft); }
.fr-list-story > .fr-byline { flex: 0 0 8rem; text-align: right; }
.fr-section-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.fr-section-tile { display: flex; justify-content: space-between; padding: 1.1rem; color: var(--fr-navy); border-top: 3px solid var(--fr-burgundy); background: var(--fr-white); font-family: var(--fr-display); font-size: 1.25rem; text-decoration: none; }
.fr-page-header { margin-bottom: var(--fr-space-5); padding: var(--fr-space-5) 0 var(--fr-space-4); }
.fr-page-header h1 { margin-bottom: .6rem; }
.fr-page-header > p:last-child, .fr-term-description { max-width: 42rem; color: var(--fr-ink-soft); font-size: 1.1rem; }
.fr-editorial-grid .fr-story-card { grid-column: auto; width: 100%; min-width: 0; }
.fr-editorial-grid .fr-story-card h2, .fr-editorial-grid .fr-story-card h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }
.fr-article-header { max-width: 58rem; margin: var(--fr-space-5) auto var(--fr-space-4); text-align: center; }
.fr-article-header h1 { margin-bottom: 1.2rem; }
.fr-article-subtitle { max-width: 44rem; margin: 0 auto 1rem; color: var(--fr-ink-soft); font-family: var(--fr-display); font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
.fr-article-lead { max-width: 74rem; margin: 0 auto var(--fr-space-5); }
.fr-article-lead img { width: 100%; max-height: 40rem; object-fit: cover; }
.fr-summary { max-width: var(--fr-reading); margin: 0 auto var(--fr-space-4); color: var(--fr-navy); font-family: var(--fr-display); font-size: 1.3rem; font-weight: 700; }
.fr-reading-layout { display: grid; grid-template-columns: minmax(0, var(--fr-reading)) 13rem; justify-content: center; gap: 4rem; }
.fr-entry-content { font-family: var(--fr-display); font-size: 1.2rem; line-height: 1.85; }
.fr-entry-content h2 { margin-top: 2.5rem; }
.fr-entry-content blockquote { margin: 2rem 0; border-left: 4px solid var(--fr-burgundy); padding: .5rem 1.5rem; color: var(--fr-navy); font-size: 1.45rem; font-style: italic; }
.fr-article-aside { align-self: start; margin-top: .5rem; border-top: 2px solid var(--fr-burgundy); padding-top: .8rem; color: var(--fr-ink-soft); font-size: .86rem; }
.fr-article-aside h2 { margin-bottom: .5rem; font-family: var(--fr-ui); font-size: 1rem; letter-spacing: .03em; }
.fr-article-aside .fr-author-avatar-image { width: 3.2rem; height: 3.2rem; margin-bottom: .7rem; border-radius: 50%; object-fit: cover; }
.fr-author-initial { display: grid; width: 3.2rem; height: 3.2rem; margin-bottom: .7rem; place-items: center; border-radius: 50%; color: var(--fr-white); background: var(--fr-navy); font-family: var(--fr-display); font-size: 1.5rem; }
.fr-author-role { margin-top: -.3rem; color: var(--fr-burgundy); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: var(--fr-reading); margin: var(--fr-space-5) auto; }
.fr-gallery figure { margin: 0; }
.fr-gallery figcaption { padding-top: .35rem; color: var(--fr-ink-soft); font-size: .8rem; }
.fr-sources, .fr-article-tags, .fr-related { max-width: var(--fr-reading); margin: var(--fr-space-5) auto 0; }
.fr-sources { border-top: 3px solid var(--fr-navy); padding-top: 1.3rem; }
.fr-sources h2 { margin-bottom: 1rem; font-size: 2rem; }
.fr-sources ul { margin: 0; padding-left: 1.2rem; }
.fr-sources li { margin-bottom: .65rem; }
.fr-sources li span { color: var(--fr-ink-soft); }
.fr-tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.fr-tag-list li { padding: .3rem .65rem; border: 1px solid var(--fr-line); color: var(--fr-ink-soft); font-size: .8rem; }
.fr-author-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: var(--fr-space-6); border-top: 1px solid var(--fr-line); border-bottom: 1px solid var(--fr-line); padding: var(--fr-space-5) 0; }
.fr-author-header h1 { margin-bottom: .5rem; }
.fr-author-header p:last-child { max-width: 38rem; margin-bottom: 0; color: var(--fr-ink-soft); }
.fr-author-avatar { display: grid; flex: 0 0 6rem; place-items: center; width: 6rem; height: 6rem; border-radius: 50%; color: var(--fr-white); background: var(--fr-burgundy); font-family: var(--fr-display); font-size: 3rem; }
.fr-search { display: flex; max-width: 42rem; gap: .6rem; margin-top: 1.5rem; }
.fr-search input { min-width: 0; flex: 1; border: 1px solid var(--fr-line); padding: .8rem 1rem; color: var(--fr-ink); background: var(--fr-white); font: inherit; }
.fr-button { border: 0; padding: .8rem 1.2rem; color: var(--fr-white); background: var(--fr-burgundy); font: inherit; font-weight: 750; cursor: pointer; }
.fr-story-card--text-only { display: flex; min-height: 100%; border-top: 3px solid var(--fr-burgundy); }
.fr-story-card--text-only .fr-story-body { align-self: center; width: 100%; }
.fr-story-card--text-only .fr-story-body h3, .fr-story-card--text-only .fr-story-body h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.fr-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fr-space-3); }
.fr-related .fr-section-heading { margin-bottom: var(--fr-space-3); }
.fr-related .fr-section-heading h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
.fr-related .fr-story-body { padding: .9rem; }
.fr-related .fr-story-body h3 { margin-bottom: 0; font-size: 1.2rem; }
.fr-footer { color: var(--fr-white); background: var(--fr-navy); }
.fr-site-footer { margin-top: var(--fr-space-7); padding: var(--fr-space-6) 0 1.2rem; color: #dfe5e9; background: var(--fr-navy); }
.fr-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--fr-space-5); }
.fr-footer-brand, .fr-site-footer .fr-eyebrow { color: #f0c1c3; }
.fr-site-footer p { margin-bottom: .4rem; }
.fr-footer-note { max-width: 22rem; color: #b6c2c9; }
.fr-site-footer .fr-nav a, .fr-footer-links a { color: #f3f1eb; }
.fr-footer-links { display: block; }
.fr-footer-links li { margin-bottom: .45rem; }
.fr-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: var(--fr-space-5); border-top: 1px solid #3e5365; padding-top: 1rem; color: #aebbc3; font-size: .75rem; }

@media (max-width: 52rem) {
    .fr-masthead { display: block; }
    .fr-payoff { margin-top: .3rem; }
    .fr-menu-toggle { display: block; }
    .fr-nav { display: none; position: absolute; top: 100%; right: 1rem; left: 1rem; padding: 1rem; background: var(--fr-white); box-shadow: 0 12px 25px #10283e18; }
    .fr-nav.is-open { display: block; }
    .fr-nav ul { display: block; }
    .fr-nav li { margin: .8rem 0; }
    .fr-hero-story { grid-template-columns: 1fr; }
    .fr-hero-media { min-height: 17rem; }
    .fr-reading-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .fr-article-aside { max-width: var(--fr-reading); margin: 0 auto; }
    .fr-featured-grid, .fr-editorial-grid, .fr-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fr-editorial-grid .fr-story-card:nth-child(4n+1) { grid-column: auto; }
    .fr-section-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 38rem) {
    .fr-container { width: min(calc(100% - 1.5rem), var(--fr-max)); }
    .fr-header-inner { min-height: 5.5rem; }
    .fr-brand { font-size: 1.55rem; }
    .fr-featured-grid, .fr-editorial-grid, .fr-related-grid, .fr-gallery { grid-template-columns: 1fr; }
    .fr-hero-copy { padding: 1.5rem; }
    .fr-section-heading { display: block; }
    .fr-section-heading .fr-text-link { margin-top: .8rem; }
    .fr-list-story { display: block; }
    .fr-list-story > .fr-byline { text-align: left; }
    .fr-section-grid, .fr-footer-grid { grid-template-columns: 1fr 1fr; }
    .fr-author-header { align-items: flex-start; }
    .fr-author-avatar { flex-basis: 4.5rem; width: 4.5rem; height: 4.5rem; font-size: 2rem; }
    .fr-search { display: block; }
    .fr-search input, .fr-button { width: 100%; }
    .fr-button { margin-top: .6rem; }
    .fr-footer-bottom { display: block; }
    .fr-footer-bottom span { display: block; margin-top: .35rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Final cascade for the modern publication pass. */
.fr-site-header { position: sticky; top: 0; background: color-mix(in srgb, var(--color-surface) 94%, transparent); backdrop-filter: blur(12px); transition: box-shadow 180ms ease, border-color 180ms ease; }
.fr-site-header.is-scrolled { box-shadow: 0 8px 24px rgb(16 40 62 / 8%); }
.fr-header-inner { min-height: 5.25rem; }
.fr-search-link { display: inline-flex; align-items: center; gap: .4rem; }
.fr-search-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.fr-home-intro { max-width: 38rem; padding-block: 1.25rem 1.5rem; }
.fr-home-intro h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.fr-hero-story { border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgb(16 40 62 / 8%); }
.fr-hero-copy h2 { font-size: clamp(2rem, 3vw, 2.85rem); }
.fr-featured-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.fr-editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fr-featured-grid .fr-story-card:first-child { grid-column: span 6; }
.fr-featured-grid .fr-story-card:not(:first-child) { grid-column: span 3; }
.fr-story-card { border-radius: 10px; overflow: hidden; box-shadow: 0 5px 18px rgb(16 40 62 / 6%); transition: transform 180ms ease, box-shadow 180ms ease; }
.fr-story-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(16 40 62 / 12%); }
.fr-story-image img, .fr-hero-media img { transition: transform 180ms ease; }
.fr-story-card:hover .fr-story-image img, .fr-hero-story:hover .fr-hero-media img { transform: scale(1.03); }
.fr-story-card--text-only { border-top: 3px solid var(--color-accent); }
.fr-dossier-section { margin-top: var(--fr-space-6); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.25rem); color: var(--color-surface); background: var(--color-primary); }
.fr-dossier-heading { display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid rgb(255 255 255 / 25%); padding-bottom: .9rem; }
.fr-dossier-heading h2 { margin: 0; color: inherit; font-size: clamp(1.8rem, 4vw, 3rem); }
.fr-dossier-section .fr-eyebrow { color: #e5a3a8; }
.fr-dossier-mark { color: #e5a3a8; font: 2.5rem/1 Georgia, serif; }
.fr-dossier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.fr-dossier-card { min-width: 0; border-radius: 8px; overflow: hidden; background: rgb(255 255 255 / 8%); }
.fr-dossier-card a { display: block; color: inherit; text-decoration: none; }
.fr-dossier-card img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.fr-dossier-card span { display: block; padding: 1rem; }
.fr-dossier-card strong, .fr-dossier-card small { display: block; }
.fr-dossier-card strong { font: 1.25rem/1.15 Georgia, serif; }
.fr-dossier-card small { margin-top: .7rem; color: #cbd5da; font-size: .75rem; }
.fr-article-header { margin-top: var(--fr-space-4); }
.fr-article-header h1 { font-size: clamp(2.35rem, 5vw, 4.75rem); }
.fr-breadcrumb { margin-bottom: 1rem; color: var(--color-muted); font-size: .78rem; }
.fr-breadcrumb a { color: inherit; }
.fr-reading-layout { grid-template-columns: minmax(0, 46rem) 11rem; gap: 3rem; }
.fr-entry-content { font-size: 1.15rem; line-height: 1.82; }
.fr-entry-content h2 { margin-top: 2.25rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.fr-entry-content h3 { margin-top: 1.75rem; }
.fr-entry-content figure { margin: 2rem 0; }
.fr-entry-content figcaption, .fr-gallery figcaption { color: var(--color-muted); font: .8rem/1.4 var(--fr-ui); }
.fr-related .fr-section-heading h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.fr-section-tile, .fr-search input, .fr-button { border-radius: 8px; }
.fr-button, .fr-menu-toggle { min-height: 44px; }
@media (max-width: 52rem) {
    .fr-featured-grid .fr-story-card:first-child, .fr-featured-grid .fr-story-card:not(:first-child) { grid-column: span 6; }
    .fr-dossier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
    .fr-featured-grid .fr-story-card:first-child, .fr-featured-grid .fr-story-card:not(:first-child) { grid-column: auto; }
    .fr-dossier-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .fr-site-header, .fr-story-card, .fr-story-image img, .fr-hero-media img { transition: none; }
}

/* FASE 2.8: final responsive override. */
.fr-container { width: min(calc(100% - 2rem), 90rem); }
.fr-header-inner { min-width: 0; }
.fr-masthead { min-width: 0; flex: 0 1 auto; white-space: nowrap; }
.fr-brand { display: inline-block; flex-shrink: 0; white-space: nowrap; }
.fr-brand { width: clamp(10.5rem, 18vw, 16.5rem); height: auto; }
.fr-brand img { display: block; width: 100%; max-width: 100%; height: auto; }
.fr-brand-text { display: block; }
.fr-ad-slot { margin: var(--fr-space-5) 0; border: 1px solid var(--color-border); border-radius: 10px; padding: 1rem 1.25rem; background: var(--color-surface); }
.fr-ad-label { margin: 0 0 .45rem; color: var(--color-accent); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fr-ad-slot a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; color: var(--color-primary); text-decoration: none; }
.fr-ad-slot strong { font: 1.2rem/1.1 var(--fr-display); }
.fr-ad-slot span, .fr-ad-slot small { color: var(--color-muted); font-size: .82rem; }
.fr-ad-slot small { margin-left: auto; color: var(--color-accent); font-weight: 700; }
.fr-weather-module { margin-top: var(--fr-space-6); border-top: 3px solid var(--color-primary); padding-top: 1rem; }
.fr-weather-module .fr-section-heading { margin-bottom: 1rem; }
.fr-weather-tabs, .fr-weather-cities { display: flex; flex-wrap: wrap; gap: .5rem; }
.fr-weather-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.fr-weather-field { display: grid; gap: .3rem; color: var(--color-muted); font-size: .72rem; font-weight: 750; }
.fr-weather-field select, .fr-weather-field input { width: 100%; min-height: 2.5rem; border: 1px solid var(--color-border); border-radius: 7px; padding: .55rem .65rem; color: var(--color-primary); background: var(--color-surface); font: inherit; font-size: .85rem; }
.fr-weather-field select:focus-visible, .fr-weather-field input:focus-visible { outline: 3px solid var(--fr-focus); outline-offset: 2px; }
.fr-weather-tabs a, .fr-weather-tabs button, .fr-weather-cities a, .fr-weather-cities button { border: 1px solid var(--color-border); border-radius: 999px; padding: .45rem .75rem; color: var(--color-primary); background: transparent; font: inherit; font-size: .78rem; text-decoration: none; cursor: pointer; }
.fr-weather-tabs a.is-active, .fr-weather-tabs a:hover, .fr-weather-tabs button:hover, .fr-weather-cities a:hover, .fr-weather-cities button:hover { color: var(--color-surface); background: var(--color-primary); }
.fr-weather-layout { display: grid; grid-template-columns: minmax(0, 1fr) 2fr; gap: 1rem; margin-top: 1rem; }
.fr-weather-place { border-radius: 10px; padding: 1.25rem; color: var(--color-surface); background: var(--color-primary); }
.fr-weather-place h3 { margin-bottom: .25rem; color: inherit; }
.fr-weather-place strong { display: block; font: clamp(2.5rem, 5vw, 4rem)/1 var(--fr-display); }
.fr-weather-place span, .fr-weather-place small { display: block; color: #cbd5da; font-size: .8rem; }
.fr-weather-place small { margin-top: .7rem; color: #e5a3a8; }
.fr-weather-cities { align-content: start; }
.fr-weather-source { margin: .8rem 0 0; color: var(--color-muted); font-size: .75rem; }
.fr-weather-status { margin: .6rem 0 0; color: var(--color-muted); font-size: .75rem; }
.fr-weather-module[aria-busy="true"] .fr-weather-place { opacity: .78; }
.fr-footer-support-label { margin-top: 1rem; }
.fr-site-footer .fr-footer-links { columns: 2; column-gap: 2rem; }

/* Link state contrast pass: light and dark surfaces stay readable. */
a:link { color: var(--color-primary); text-decoration-thickness: .08em; text-underline-offset: .16em; transition: color 150ms ease, text-decoration-color 150ms ease; }
a:visited { color: #6f2e3b; }
a:hover, a:focus, a:active { color: var(--color-accent); text-decoration-thickness: .12em; text-decoration-color: currentColor; }
a:focus { outline: 2px solid var(--fr-focus); outline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--fr-focus); outline-offset: 3px; }
.fr-hero-copy a:link, .fr-hero-copy a:visited, .fr-dossier-section a:link, .fr-dossier-section a:visited, .fr-site-footer a:link, .fr-site-footer a:visited { color: var(--color-surface); }
.fr-hero-copy a:hover, .fr-hero-copy a:focus, .fr-hero-copy a:active, .fr-dossier-section a:hover, .fr-dossier-section a:focus, .fr-dossier-section a:active, .fr-site-footer a:hover, .fr-site-footer a:focus, .fr-site-footer a:active { color: #f0b0b5; }
.fr-nav a:link, .fr-nav a:visited { color: var(--color-primary); }
.fr-nav a:hover, .fr-nav a:focus, .fr-nav a:active { color: var(--color-accent); }
.fr-site-footer .fr-nav a:link, .fr-site-footer .fr-nav a:visited { color: var(--color-surface); }
.fr-site-footer .fr-nav a:hover, .fr-site-footer .fr-nav a:focus, .fr-site-footer .fr-nav a:active { color: #f0b0b5; }
.fr-story-body h2 a:link, .fr-story-body h2 a:visited, .fr-story-body h3 a:link, .fr-story-body h3 a:visited, .fr-list-story h3 a:link, .fr-list-story h3 a:visited { color: var(--color-primary); }
.fr-story-body h2 a:hover, .fr-story-body h2 a:focus, .fr-story-body h2 a:active, .fr-story-body h3 a:hover, .fr-story-body h3 a:focus, .fr-story-body h3 a:active, .fr-list-story h3 a:hover, .fr-list-story h3 a:focus, .fr-list-story h3 a:active { color: var(--color-accent); }
.fr-weather-tabs a:link, .fr-weather-tabs a:visited, .fr-weather-cities a:link, .fr-weather-cities a:visited { color: var(--color-primary); }
.fr-weather-tabs a:hover, .fr-weather-tabs a:focus, .fr-weather-tabs a:active, .fr-weather-cities a:hover, .fr-weather-cities a:focus, .fr-weather-cities a:active { color: var(--color-surface); }
@media (max-width: 47.99rem) {
    .fr-ad-slot a { display: block; }
    .fr-ad-slot span, .fr-ad-slot small { display: block; margin-top: .4rem; }
    .fr-weather-layout { grid-template-columns: 1fr; }
    .fr-site-footer .fr-footer-links { columns: 1; }
    .fr-weather-controls { grid-template-columns: 1fr; }
}
.fr-payoff { white-space: nowrap; }
.fr-nav { min-width: 0; }
.fr-nav ul { flex-wrap: nowrap; }
.fr-nav ul { gap: .65rem; }
.fr-nav a { white-space: nowrap; font-size: .7rem; letter-spacing: .06em; }
.fr-brand { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .08em; }
.fr-nav li, .fr-nav a { min-width: 0; }
.fr-page-header, .fr-article-header, .fr-home-section, .fr-related { scroll-margin-top: 6rem; }
h1, h2, h3, h4, .fr-story-card, .fr-list-story { min-width: 0; overflow-wrap: normal; word-break: normal; }
.fr-story-card, .fr-dossier-card, .fr-list-story, .fr-section-tile { min-width: 0; }
@media (max-width: 74.99rem) {
    .fr-payoff { display: none; }
    .fr-menu-toggle { display: block; flex: 0 0 auto; }
    .fr-nav { display: none; position: absolute; top: 100%; right: 1rem; left: 1rem; padding: 1rem; background: var(--fr-white); box-shadow: 0 12px 25px rgb(16 40 62 / 10%); }
    .fr-nav.is-open { display: block; }
    .fr-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1rem; }
    .fr-nav li { margin: 0; }
    .fr-nav a { display: block; padding: .7rem 0; }
    .fr-featured-grid, .fr-editorial-grid, .fr-related-grid { grid-template-columns: repeat(2, minmax(min(100%, 280px), 1fr)); }
    .fr-featured-grid .fr-story-card:first-child, .fr-featured-grid .fr-story-card:not(:first-child), .fr-editorial-grid .fr-story-card:nth-child(4n+1) { grid-column: auto; }
    .fr-dossier-grid { grid-template-columns: repeat(2, minmax(min(100%, 280px), 1fr)); }
    .fr-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
    .fr-header-inner { min-height: 5rem; }
    .fr-brand { font-size: clamp(1.35rem, 6vw, 1.8rem); letter-spacing: .08em; }
    .fr-nav ul { grid-template-columns: 1fr; }
    .fr-featured-grid, .fr-editorial-grid, .fr-related-grid, .fr-dossier-grid, .fr-gallery { grid-template-columns: minmax(0, 1fr); }
    .fr-section-grid { grid-template-columns: 1fr; }
    .fr-hero-story { grid-template-columns: 1fr; }
    .fr-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .fr-article-header { margin-top: 1rem; }
    .fr-article-header h1 { font-size: clamp(2rem, 9vw, 3.1rem); }
}
@media (max-width: 23.5rem) {
    .fr-container { width: calc(100% - 1rem); }
    .fr-header-inner { gap: .5rem; }
    .fr-brand { font-size: 1.25rem; }
    .fr-menu-toggle { padding-inline: .55rem; }
}
@media (max-width: 64rem) {
    .fr-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .fr-article-aside { max-width: var(--fr-reading); margin: 0 auto; }
}
/* Footer surface follows the official transparent logo; no logo alteration. */
.fr-site-footer { color: var(--fr-ink); border-top: 1px solid var(--fr-line); background: var(--fr-paper); }
.fr-footer-brand, .fr-site-footer .fr-eyebrow { color: var(--fr-navy); }
.fr-footer-note { color: var(--fr-ink-soft); }
.fr-site-footer a:link, .fr-site-footer a:visited, .fr-site-footer .fr-nav a:link, .fr-site-footer .fr-nav a:visited, .fr-site-footer .fr-footer-links a:link, .fr-site-footer .fr-footer-links a:visited { color: var(--fr-navy); }
.fr-site-footer .fr-nav a:hover, .fr-site-footer .fr-nav a:focus, .fr-site-footer .fr-nav a:active, .fr-site-footer .fr-footer-links a:hover, .fr-site-footer .fr-footer-links a:focus, .fr-site-footer .fr-footer-links a:active { color: var(--fr-burgundy); }
.fr-footer-bottom { border-top-color: var(--fr-line); color: var(--fr-ink-soft); }
