/*
Theme Name: FR Hub Theme
Theme URI: https://futureromania.ro/
Author: Future Romania
Author URI: https://futureromania.ro/
Description: Standalone regional hub theme with refined typography, editorial photography and native WordPress content management.
Version: 2.10.1
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fr-hub-theme
*/

:root {
  --ink: #1d1d1f;
  --blue: #1849b5;
  --blue-dim: #123a91;
  --blue-soft: #edf2fa;
  --muted: #626268;
  --paper: #f5f5f7;
  --line: rgba(29, 29, 31, .12);
  --gold: #fcd116;
  --red: #ce1126;
  --dark: #101c30;
  --dark-surface: #111c2e;
  --dark-text: #f5f5f7;
  --dark-muted: #c1c8d4;
  --dark-line: rgba(255, 255, 255, .12);
  --shadow-card: 0 4px 24px rgba(29, 29, 31, .04);
  --shadow-glow: 0 12px 36px rgba(29, 29, 31, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body { margin: 0; color: var(--ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: .22em; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.5rem); font-weight: 650; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.75rem); font-weight: 650; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.container { width: min(1120px, calc(100% - 4rem)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 9vw, 9rem); }
.section-muted { background: var(--paper); }
.section-heading { text-align: center; max-width: 780px; margin: 0 auto 4rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.1rem; }
.section-heading h2 { margin-bottom: 1.2rem; text-wrap: balance; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.tricolor-bar { display: block; width: 36px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--blue) 0 33.33%, var(--gold) 33.33% 66.66%, var(--red) 66.66%); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; border: 1px solid transparent; border-radius: 999px; padding: .8rem 1.65rem; background: var(--blue); color: #fff; font-size: .95rem; font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none; transition: background .25s, border-color .25s, color .25s; }
.button:hover { background: var(--blue-dim); }
.button:active { transform: translateY(0); }
.button-small { min-height: 42px; padding: .6rem 1.2rem; }
.button-secondary { background: transparent; color: var(--blue); border-color: var(--line); }
.button-secondary:hover { background: var(--blue-soft); border-color: var(--blue); }
.button-on-dark { background: transparent; color: var(--dark-text); border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.button-on-dark:hover { background: #fff; color: var(--dark); border-color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 500; margin-top: 1rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem; border: 1px dashed rgba(32, 33, 36, .16); border-radius: 20px; width: 100%; grid-column: 1 / -1; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 1000; background: #fff; padding: 1rem; border-radius: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 72px; height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, var(--blue) 0 33.33%, var(--gold) 33.33% 66.66%, var(--red) 66.66%); pointer-events: none; }
.admin-bar .site-header { top: 32px; }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; color: var(--ink); line-height: 1.4; text-decoration: none; }
.brand-local { border-left: 1px solid var(--line); padding-left: 1rem; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; max-width: 190px; }
.brand-logo { width: auto; max-width: 140px; height: 36px; object-fit: contain; object-position: left; }
.fr-logo-default { background: var(--dark-surface); border-radius: 8px; }
.brand-logo.fr-logo-default { height: 38px; padding: 5px 8px; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; padding: 0; margin: 0; list-style: none; }
.nav-links a { font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links .button { color: #fff; font-weight: 650; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: .5rem; flex-shrink: 0; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .85rem; color: var(--ink); font-size: .8rem; }

.hero { position: relative; isolation: isolate; padding-block: clamp(3.5rem, 6vw, 5.5rem) 3rem; background: #fbf8f2; text-align: center; }
.hero::before, .hero::after { content: ""; position: absolute; top: 7rem; width: 28px; height: 28px; border: 1px solid rgba(24, 73, 181, .18); transform: rotate(45deg); pointer-events: none; z-index: -1; }
.hero::before { left: max(1rem, calc((100% - 1160px) / 2)); }
.hero::after { right: max(1rem, calc((100% - 1160px) / 2)); border-color: rgba(206, 17, 38, .18); }
.hero-content { position: relative; max-width: 860px; }
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero .tricolor-bar { margin: 0 auto 1.5rem; }
.hero h1 { max-width: 780px; margin-inline: auto; font-size: clamp(2.75rem, 5.4vw, 4.75rem); text-wrap: balance; }
.hero-subtitle { max-width: 640px; margin: 1.75rem auto 2rem; font-size: clamp(1.12rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hero-actions .button-secondary { border-color: rgba(29, 29, 31, .2); }
.hero-collage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.25fr); grid-template-areas: "primary first secondary" "primary second secondary"; gap: 1rem; margin-top: 3rem; text-align: left; }
.hero-collage-0 { max-width: 760px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "first second"; }
.hero-collage-1 { max-width: 900px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "primary first" "primary second"; }
.hero-photo { position: relative; overflow: hidden; min-width: 0; min-height: 330px; border-radius: 20px; background: #e9edf3; }
.hero-photo-primary { grid-area: primary; }
.hero-photo-secondary { grid-area: secondary; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-message { min-width: 0; padding: clamp(1.5rem, 2.5vw, 2rem); border-radius: 20px; }
.hero-message p { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.25; white-space: pre-line; margin: 0; }
.hero-message-first { grid-area: first; background: #e9eff8; }
.hero-message-first .tricolor-bar { margin: 0 0 1.25rem; }
.hero-message-second { grid-area: second; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; background: var(--dark); color: var(--dark-text); }
.hero-message-photo { width: 76px; height: 76px; margin-top: 1.25rem; border-radius: 12px; overflow: hidden; }
.hero-message-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-message-mark { align-self: flex-end; color: var(--dark-muted); font-size: 1.5rem; line-height: 1; }
.value-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; margin: 2rem auto 0; }
.value-card { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .5rem 1rem; }
.value-card + .value-card { border-left: 1px solid var(--line); }
.value-card svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--blue); }
.value-card span { font-size: .85rem; font-weight: 500; }

.mission-card { overflow: hidden; border-radius: 24px; background: var(--dark); }
.mission-card.has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mission-image { min-width: 0; min-height: 340px; }
.mission-image img { width: 100%; height: 100%; object-fit: cover; }
.mission-panel { min-width: 0; min-height: 400px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); color: var(--dark-text); }
.mission-panel .tricolor-bar { margin-bottom: 1.5rem; }
.mission-panel h3 { font-size: 2rem; letter-spacing: -.035em; }
.mission-panel .lead { color: var(--dark-muted); font-size: 1.05rem; }
.mission-panel .rich-content a { color: #c7d6ff; }
.mission-panel .button { margin-top: .75rem; }

.project-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2rem; align-items: stretch; }
.project-card { min-width: 0; overflow: hidden; background: #fff; border-radius: 24px; box-shadow: var(--shadow-card); transition: box-shadow .4s var(--ease); }
.project-card:hover { box-shadow: var(--shadow-glow); }
.project-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-image-placeholder { display: grid; place-items: center; background: #e9edf3; }
.project-image-placeholder span { color: #6b7a91; font-size: 3rem; font-weight: 600; letter-spacing: -.06em; }
.project-body { min-width: 0; padding: 2rem; }
.project-number { display: inline-block; color: var(--muted); font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: .75rem; }
.project-body h2, .project-body h3 { font-size: 1.75rem; letter-spacing: -.035em; }
.project-body > p { color: var(--muted); font-size: .96rem; }
.project-image-link { display: block; }
.project-body h2 a, .project-body h3 a { color: var(--ink); text-decoration: none; }
.project-body h2 a:hover, .project-body h3 a:hover { color: var(--blue); }
.projects-archive-action { text-align: center; margin-top: 2.5rem; }
.project-contact { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .9rem; }
.project-contact p { margin-bottom: .3rem; }
.project-contact a { overflow-wrap: anywhere; }
.project-page-header { padding-block: clamp(4rem, 8vw, 7rem); text-align: center; background: #fff; }
.project-page-header .tricolor-bar { margin: 0 auto 1.75rem; }
.project-page-header h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); text-wrap: balance; }
.project-intro { color: var(--muted); font-size: 1.15rem; margin: 1.5rem auto 0; white-space: pre-line; }
.breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; font-size: .8rem; margin-bottom: 2rem; }
.breadcrumbs a { text-decoration: none; }
.project-cover { overflow: hidden; border-radius: 26px; margin-bottom: 3rem; }
.project-cover img { width: 100%; max-height: 580px; object-fit: cover; }
.single-project-layout { max-width: 800px; margin-inline: auto; }
.single-project-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 4rem; max-width: none; }
.project-copy { min-width: 0; font-size: 1.05rem; }
.project-copy > .button { margin-top: 2rem; }
.project-sidebar { min-width: 0; padding: 2rem; border-radius: 20px; background: var(--paper); }
.project-sidebar .button { width: 100%; margin-bottom: 1.5rem; }
.project-sidebar .project-contact h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.navigation.pagination { display: block; margin-top: 3rem; min-height: 0; }
.pagination .nav-links { justify-content: center; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--blue); text-decoration: none; }
.pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.project-copy .rich-content > :first-child { margin-top: 0; }

.team-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1.75rem; }
.team-card { flex: 0 1 calc((100% - 3.5rem) / 3); min-width: 0; padding: 1rem 1.5rem; text-align: center; }
.team-photo { width: 144px; height: 144px; border-radius: 50%; overflow: hidden; background: var(--paper); margin: 0 auto 2rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { display: grid; place-items: center; height: 100%; font-size: 1.8rem; font-weight: 750; color: var(--blue); background: #edf1fc; }
.team-body .eyebrow { margin-bottom: .6rem; font-size: .7rem; letter-spacing: .08em; }
.team-body h3 { font-size: 1.4rem; letter-spacing: -.025em; margin-bottom: .8rem; }
.member-bio, .address { white-space: pre-line; }
.member-bio { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.partner-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .25rem; padding: .5rem .25rem 1rem; margin: 0; list-style: none; }
.partner-card { display: grid; place-items: center; flex: 0 0 min(210px, 85%); scroll-snap-align: start; min-width: 0; min-height: 132px; padding: 1.75rem; background: #fff; border: 1px solid transparent; border-radius: 16px; text-align: center; font-weight: 500; transition: border-color .3s; }
.partner-card:hover { border-color: var(--line); }
.partner-card img { width: auto; max-height: 64px; object-fit: contain; }
.partner-card a { text-decoration: none; }
.partner-card { overflow-wrap: anywhere; }
.partner-card:first-child { margin-inline-start: auto; }
.partner-card:last-child { margin-inline-end: auto; }
.partner-controls { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }
.partner-controls[hidden] { display: none; }
.partner-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--blue); font: inherit; cursor: pointer; }
.partner-controls button:disabled { opacity: .4; cursor: default; }

.cta { background: var(--paper); padding-top: 0; }
.cta-panel { overflow: hidden; padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem); border-radius: 24px; background: var(--dark); color: var(--dark-text); text-align: center; }
.cta h2 { max-width: 740px; margin: 0 auto 2rem; text-wrap: balance; }
.cta .eyebrow { color: var(--dark-muted); }
.cta .button { background: #fff; color: var(--blue-dim); }
.cta .button:hover { background: #edf1fc; }
.contact-intro { max-width: 640px; margin: 0 auto 2rem; color: var(--dark-muted); font-size: 1rem; white-space: pre-line; }
.contact-form { max-width: 640px; margin-inline: auto; text-align: left; font-size: 1rem; }
.contact-field { margin-bottom: 1.25rem; }
.contact-field label { display: block; margin-bottom: .5rem; }
.contact-field input:not([type="checkbox"]), .contact-field textarea, .contact-field select { width: 100%; min-width: 0; min-height: 48px; padding: .8rem 1rem; border: 1px solid #c1c8d4; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.contact-field textarea { resize: vertical; }
.contact-field input[type="checkbox"], .contact-consent input { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }
.contact-consent { display: flex; align-items: flex-start; gap: .75rem; margin: 1.5rem 0 1rem; font-size: .9rem; }
.site-footer .contact-consent a { color: var(--gold); text-decoration: underline; }
.site-footer .contact-consent a:hover { color: #fff; }
.contact-help { color: var(--dark-muted); font-size: .8rem; }
.contact-notice { max-width: 640px; margin: 0 auto 2rem; padding: 1rem; border: 1px solid var(--dark-muted); border-radius: 12px; font-size: 1rem; white-space: pre-line; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .button { margin-top: .5rem; }
.cta :focus-visible, .mission-card :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.site-footer { color: var(--muted); background: var(--paper); font-size: .85rem; }
.site-footer::before { content: ""; display: block; width: 48px; height: 2px; margin-inline: auto; background: linear-gradient(90deg, var(--blue) 0 33.33%, var(--gold) 33.33% 66.66%, var(--red) 66.66%); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--blue); }
.site-footer .cta :focus-visible { outline-color: var(--gold); }
.national-links { padding-block: 4rem; }
.national-heading { max-width: 640px; margin-bottom: 2rem; }
.national-heading h2 { color: var(--ink); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.national-heading > p:last-child { font-size: 1rem; }
.national-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem; }
.site-footer .national-support { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .75rem; padding: 2rem; padding-right: 4rem; border-radius: 20px; background: var(--blue); color: #fff; overflow-wrap: anywhere; }
.site-footer .national-support:hover { background: var(--blue-dim); color: #fff; text-decoration: none; }
.national-support-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.national-support-title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; font-weight: 600; }
.national-arrow { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
.site-footer .national-support:focus-visible { outline-color: var(--gold); }
.national-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.national-resources a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; font-size: 1rem; overflow-wrap: anywhere; }
.national-resources a span { flex-shrink: 0; color: var(--blue); }
.values-band { border-bottom: 1px solid var(--line); padding-block: 2rem; }
.values-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; padding: 0; list-style: none; }
.values-list li { font-size: .75rem; font-weight: 400; letter-spacing: .02em; }
.footer-grid { display: flex; justify-content: space-between; gap: 3rem; padding-block: 3.5rem; }
.footer-grid > div { min-width: 0; }
.footer-brand { color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: flex-end; align-content: flex-start; max-width: 520px; }
.footer-links p { flex-basis: 100%; text-align: right; margin-top: .5rem; }

.reading-width { max-width: 800px; }
.faq-reading { max-width: 900px; }
.faq-page-heading { margin-bottom: 2.5rem; }
.faq-page-heading .text-link { margin: 0 0 2rem; }
.faq-page-heading h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.faq-page .rich-content h2 { margin: 3.5rem 0 1.5rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.faq-page .wp-block-details { margin: 0 0 .75rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-page .wp-block-details summary { padding: 1.25rem 1.5rem; font-weight: 600; cursor: pointer; line-height: 1.5; }
.faq-page .wp-block-details summary::marker { color: var(--blue); }
.faq-page .wp-block-details[open] { background: var(--paper); }
.faq-page .wp-block-details[open] summary { border-bottom: 1px solid var(--line); }
.faq-page .wp-block-details > p { margin: 1.25rem 1.5rem; }
.faq-page .wp-block-details > ul { margin: 1.25rem 1.5rem; padding-left: 1.5rem; }
.faq-page .wp-block-details li + li { margin-top: .5rem; }
.faq-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 3rem; }
.faq-page-actions .text-link { margin: 0; }
.faq-preview { padding-block: 4rem; }
.faq-preview-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.faq-preview-panel > div { max-width: 650px; }
.faq-preview h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.faq-preview p:last-child { color: var(--muted); margin-bottom: 0; }
.faq-preview .button { flex-shrink: 0; }
.faq-explainer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.faq-explainer-card { padding: 2rem; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.faq-explainer-card .eyebrow { display: block; margin-bottom: 2rem; }
.faq-explainer-card h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 1rem; }
.faq-explainer-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.editions-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.edition-preview-card { display: block; min-width: 0; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.edition-preview-card:hover { border-color: var(--blue); }
.edition-preview-image { aspect-ratio: 16 / 9; background: #fff; border-bottom: 1px solid var(--line); }
.edition-preview-image img { width: 100%; height: 100%; object-fit: contain; }
.edition-preview-body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.75rem; }
.edition-preview-body h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.3; }
.edition-preview-body > span { color: var(--blue); font-size: 1.5rem; }
.editions-preview-action { text-align: center; margin-top: 2.5rem; }
.editions-page-heading { max-width: 900px; margin-bottom: 3rem; }
.editions-page-heading h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.editions-page-heading .tricolor-bar { margin-top: 2rem; }
.editions-content > p { max-width: 780px; color: var(--muted); }
.editions-content h2 { margin-top: 4rem; font-size: clamp(1.75rem, 4vw, 2.75rem); scroll-margin-top: 8rem; }
.editions-content .wp-block-image { margin: 2rem 0 3rem; padding: clamp(.5rem, 2vw, 1.25rem); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.editions-content .wp-block-image img { width: 100%; height: auto; border-radius: 12px; }
.content-page { min-height: 60vh; }
.content-page article + article { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 3rem; }
.rich-content { overflow-wrap: anywhere; }
.rich-content h2, .rich-content h3 { margin-top: 2rem; }
.rich-content iframe, .rich-content video { max-width: 100%; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; }
.alignwide, .alignfull { width: 100%; margin-inline: 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }

@media (max-width: 1000px) {
  .single-project-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; }
  .navigation { flex-wrap: wrap; gap: 1rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; }
  .navigation.is-enhanced .menu-toggle { display: inline-flex; }
  .navigation.is-enhanced .nav-links { display: none; width: 100%; }
  .navigation.is-enhanced .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; padding-top: .75rem; border-top: 1px solid var(--line); }
  .admin-bar .navigation.is-enhanced .nav-links.is-open { max-height: calc(100vh - 166px); max-height: calc(100dvh - 166px); }
  .navigation.is-enhanced .nav-links a { display: block; padding: .7rem 1rem; border-radius: 12px; }
  .navigation.is-enhanced .nav-links .button { border-radius: 999px; }
  .team-grid { gap: 1rem; }
  .team-card { flex-basis: calc((100% - 2rem) / 3); padding: 1rem; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
  .editions-preview-grid, .faq-explainer-grid { grid-template-columns: 1fr; }
  .edition-preview-body, .faq-explainer-card { padding: 1.5rem; }
  .faq-preview-panel { flex-direction: column; align-items: flex-start; }
  .faq-page .wp-block-details summary { padding: 1rem; }
  .faq-page .wp-block-details > p, .faq-page .wp-block-details > ul { margin: 1rem; }
  .national-grid, .national-resources { grid-template-columns: 1fr; }
  .national-links { padding-block: 3rem; }
  .single-project-layout.has-sidebar { grid-template-columns: 1fr; gap: 2rem; }
  .project-cover { border-radius: 18px; margin-bottom: 2rem; }
  .container { width: calc(100% - 2rem); }
  .admin-bar .site-header { top: 0; }
  .navigation { min-height: 74px; padding-block: .85rem; }
  .brand { gap: .65rem; flex: 1; }
  .brand-local { padding-left: .65rem; font-size: .6rem; letter-spacing: .06em; max-width: 140px; }
  .brand-logo { max-width: 82px; height: 31px; }
  .brand-logo.fr-logo-default { height: 38px; padding: 5px 8px; max-width: 100px; }
  .hero { padding-block: 3.5rem; }
  .hero-logo { margin-bottom: 1.75rem; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-actions { gap: .75rem; }
  .hero-actions .button { width: 100%; max-width: 320px; }
  .hero::before, .hero::after { width: 16px; height: 16px; top: 2rem; }
  .hero-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "primary secondary" "first second"; gap: .75rem; margin-top: 2.5rem; }
  .hero-collage-0 { grid-template-areas: "first second"; }
  .hero-collage-1 { grid-template-areas: "primary primary" "first second"; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 5; border-radius: 16px; }
  .hero-collage-1 .hero-photo { aspect-ratio: 16 / 9; }
  .hero-message { padding: 1.25rem; border-radius: 16px; }
  .hero-message p { font-size: 1.15rem; }
  .hero-message-photo { width: 60px; height: 60px; }
  .value-pillars { margin-top: 2.5rem; }
  .value-card { flex-direction: column; padding: .5rem .25rem; gap: .65rem; }
  .value-card svg { width: 24px; height: 24px; }
  .value-card span { font-size: .75rem; }
  .mission-card { border-radius: 20px; }
  .mission-card.has-image { grid-template-columns: 1fr; }
  .mission-image { min-height: 0; aspect-ratio: 4 / 3; }
  .mission-panel { min-height: 0; padding: 2rem; }
  .project-card { border-radius: 20px; }
  .project-body { padding: 1.5rem; }
  .team-grid { gap: 3rem; }
  .team-card { flex-basis: 100%; max-width: 380px; padding: .5rem 1rem; }
  .partner-card { flex-basis: calc((100% - 1.25rem) / 2); padding: 1.25rem; }
  .cta-panel { border-radius: 22px; }
  .footer-grid { flex-direction: column; gap: 2rem; padding-block: 2.5rem; }
  .footer-links { justify-content: flex-start; }
  .footer-links p { text-align: left; }
  .values-list { gap: 1rem 1.5rem; }
  .values-list li { font-size: .75rem; }
}
@media (max-width: 359px) {
  .brand-local { display: none; }
  .value-card span { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
