/*
Theme Name: YOP L-FRII
Theme URI: https://yop.l-frii.com/
Author: L-FRII
Author URI: https://yop.l-frii.com/
Description: Theme editorial WordPress natif de YOP L-FRII.
Version: 1.0.5
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: yop
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: news, blog, custom-logo, featured-images, responsive-layout
*/

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --brand-red: #d10014;
  --ink: #111827;
  --muted: #5f6875;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --paper: #fff;
  --font-sans: "Inter", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --container: 1440px;
  --section-accent: var(--brand-red);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: #1f2937;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body.menu-is-open, body.search-is-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.container-wide { width: min(100%, var(--container)); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 5rem); }
.container-narrow { width: min(100%, 900px); margin-inline: auto; padding-inline: 1rem; }
.site-main { min-height: 48vh; }
.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 1000; top: 1rem; left: 1rem; padding: .75rem 1rem; background: #fff; border: 2px solid var(--brand-red); }
.eyebrow { color: var(--brand-red); font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; }
.header-accent { display: none; height: 4px; background: var(--brand-red); }
.desktop-header { position: relative; display: flex; min-height: 105px; align-items: flex-end; justify-content: space-between; padding-top: 2.5rem; padding-bottom: 1rem; }
.local-info { display: flex; align-items: center; gap: 1rem; color: #5b6470; font-family: var(--font-sans); font-size: .78rem; }
.local-location { text-decoration: underline; text-underline-offset: 3px; }
.header-logo { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); }
.site-logo { display: inline-block; }
.site-logo img, .custom-logo { width: auto; height: 48px; object-fit: contain; }
.search-trigger { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem 0; border: 0; background: transparent; color: #59616d; cursor: pointer; font-family: var(--font-sans); font-size: .75rem; text-transform: uppercase; transition: color .2s ease; }
.search-trigger:hover { color: #111; }
.search-trigger span { font-size: 1.4rem; line-height: .5; }
.mobile-header { display: none; }
.desktop-nav-wrap { background: #fff; }
.desktop-nav { display: flex; height: 53px; align-items: center; gap: clamp(1.35rem, 2.5vw, 2.4rem); overflow: hidden; border-bottom: 1px solid #f0f1f3; font-family: var(--font-sans); font-size: clamp(.64rem, .85vw, .8rem); font-weight: 600; white-space: nowrap; text-transform: uppercase; }
.nav-link { position: relative; display: inline-flex; height: 100%; align-items: center; transition: color .2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--nav-color, var(--brand-red)); }
.nav-link.is-active::after { display: none; }
.mobile-nav-wrap { display: none; }
.global-ad { padding-top: 1rem; }

/* Menu mobile et recherche */
.mobile-menu, .search-overlay { position: fixed; inset: 0; z-index: 250; visibility: hidden; background: rgba(8, 10, 14, .96); color: #fff; opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.mobile-menu.is-open, .search-overlay.is-open { visibility: visible; opacity: 1; }
.menu-close, .search-close { position: fixed; top: 1.2rem; right: 1.2rem; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 2rem; line-height: 1; }
.mobile-menu__inner { width: min(100%, 720px); min-height: 100%; margin: 0 auto; padding: 5rem 1.5rem 3rem; }
.mobile-menu .site-logo img { filter: brightness(0) invert(1); }
.mobile-menu__eyebrow { margin: 3rem 0 .75rem; color: rgba(255,255,255,.5); font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.mobile-menu__nav { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.2); }
.mobile-menu__nav .nav-link { display: flex; height: auto; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.15); font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; }
.mobile-menu__nav .nav-link::after { content: "→"; position: static; width: auto; height: auto; background: transparent; color: rgba(255,255,255,.35); }
.search-overlay { display: grid; place-items: center; }
.search-overlay__inner { width: min(90%, 850px); }
.search-overlay__inner > p { margin: 0 0 1rem; color: rgba(255,255,255,.6); font-family: var(--font-sans); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.search-form { display: flex; gap: .75rem; }
.search-field { min-width: 0; flex: 1; padding: 1rem 1.15rem; border: 0; border-bottom: 2px solid rgba(255,255,255,.45); outline: 0; background: transparent; color: #fff; font-family: var(--font-serif); font-size: clamp(1.35rem, 4vw, 2.8rem); }
.search-field::placeholder { color: rgba(255,255,255,.32); }
.search-submit { align-self: stretch; padding: 0 1.25rem; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; font-family: var(--font-sans); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.search-discover { margin-top: 2.5rem; }
.search-discover h2 { margin: 0 0 1rem; color: rgba(255,255,255,.55); font-family: var(--font-sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.search-discover .post-card { padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.search-discover .post-card__title, .search-discover .post-card__meta { color: #fff; }

/* Publicités */
.ad-slot { display: flex; width: 100%; min-height: 90px; align-items: center; justify-content: center; flex-direction: column; gap: .2rem; overflow: hidden; border: 1px dashed #9ca3af; background: repeating-linear-gradient(-45deg, #f7f7f8 0, #f7f7f8 10px, #fff 10px, #fff 20px); color: #6b7280; font-family: var(--font-sans); text-align: center; }
.ad-slot span { font-size: .58rem; font-weight: 700; letter-spacing: .16em; }
.ad-slot strong { font-size: .72rem; letter-spacing: .03em; }
.section-space { margin-block: 3rem 4rem; }
.article-ad { margin-block: 2rem; }
.ad-slot--article { min-height: 250px; margin-block: 2.5rem; }

/* Cartes et accueil */
.home-main { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.top-stories { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 3.5rem; margin-bottom: 3rem; }
.top-stories__stack { display: flex; flex-direction: column; justify-content: center; gap: 1.15rem; padding-left: .5rem; }
.top-stories__stack > .post-card + .post-card { padding-top: 1.15rem; border-top: 1px solid #f0f1f2; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 3rem; margin-bottom: 5rem; }
.post-card { min-width: 0; }
.post-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #f2f3f5; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, #f4f4f5, #e8e9ec); }
.post-card__placeholder span { color: #c7c9ce; font-family: var(--font-sans); font-size: clamp(1.6rem, 4vw, 4rem); font-weight: 800; letter-spacing: -.08em; }
.post-card__content { padding-top: .8rem; }
.post-card__category { display: inline-block; margin-bottom: .35rem; color: var(--section-accent); font-family: var(--font-sans); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-card__title { margin: 0; color: #161b22; font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; line-height: 1.18; }
.post-card__title a { transition: color .2s ease; }
.post-card__title a:hover { color: var(--section-accent); }
.post-card__excerpt { margin: .65rem 0 0; color: #5b6470; font-size: 1rem; line-height: 1.5; }
.post-card__meta { margin-top: .6rem; color: #89909a; font-family: var(--font-sans); font-size: .63rem; text-transform: uppercase; }
.post-card--hero .post-card__media { aspect-ratio: 16 / 9; }
.post-card--hero .post-card__title { font-size: clamp(2rem, 3.4vw, 3.7rem); line-height: .98; letter-spacing: -.025em; }
.post-card--hero .post-card__content { padding-top: 1rem; }
.post-card--hero .post-card__category { font-size: .72rem; }
.post-card--hero .post-card__excerpt { max-width: 740px; font-size: 1.08rem; }
.post-card--horizontal { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1rem; align-items: center; }
.post-card--horizontal .post-card__media { aspect-ratio: 1 / 1; }
.post-card--horizontal .post-card__content { padding: 0; }
.post-card--horizontal .post-card__title { font-size: 1.08rem; }
.post-card--horizontal .post-card__meta { margin-top: .35rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.section-header h2 { margin: 0; color: var(--section-accent); font-family: var(--font-sans); font-size: 1.35rem; font-weight: 600; }
.section-header a { color: #9ca3af; font-size: 1.4rem; }
.section-header--dark h2 { color: var(--ink); font-weight: 700; text-transform: uppercase; }
.editorial-section { margin-bottom: 4rem; }
.cards-without-categories .post-card__category { display: none; }
.opportunity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; }
.opportunity-grid > .post-card { min-height: 128px; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.opportunity-grid .post-card__content { display: flex; height: 100%; flex-direction: column; justify-content: center; padding: 0; }
.card-grid { display: grid; gap: 2.5rem 2rem; }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid__full { grid-column: 1 / -1; }
.empty-state { grid-column: 1 / -1; padding: 2rem; background: var(--soft); color: var(--muted); text-align: center; }
.empty-state--large { margin-block: 3rem 6rem; padding: 4rem 2rem; }
.empty-state h2 { margin: 0 0 .5rem; color: var(--ink); font-size: 2rem; }
.short-formats { margin-bottom: 4rem; }
.short-formats__rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.short-card { position: relative; display: block; min-width: 0; aspect-ratio: 9 / 16; overflow: hidden; background: #18181b; color: #fff; }
.short-card img, .short-card__placeholder { width: 100%; height: 100%; object-fit: cover; }
.short-card::after { position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); content: ""; }
.short-card__placeholder { display: grid; place-items: center; background: linear-gradient(155deg, #25262a, #5c0c15); color: rgba(255,255,255,.32); font-family: var(--font-sans); font-size: 1.8rem; font-weight: 800; }
.short-card__play { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 46px; height: 46px; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(209,0,20,.92); font-size: .8rem; }
.short-card strong { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; left: 1rem; font-family: var(--font-sans); font-size: .78rem; line-height: 1.25; text-transform: uppercase; }

/* Listings */
.listing-main, .archive-main { padding-top: 2.25rem; padding-bottom: 4rem; }
.listing-heading { margin-bottom: 2.25rem; border-bottom: 3px solid var(--section-accent); }
.listing-heading p { margin: 0 0 .2rem; color: var(--section-accent); font-family: var(--font-sans); font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.listing-heading h1 { margin: 0 0 .75rem; color: var(--ink); font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: .9; }
.listing-featured { margin-bottom: 0; }
.listing-grid .post-card__title { font-size: 1rem; }
.popular-tags { display: flex; gap: .75rem; overflow-x: auto; margin: 0 0 2rem; padding: .25rem 0 .75rem; color: #5f6875; font-family: var(--font-sans); font-size: .72rem; font-weight: 600; white-space: nowrap; scrollbar-width: thin; }
.popular-tags a { flex: 0 0 auto; transition: color .2s ease; }
.popular-tags a:hover { color: var(--section-accent); }
.pagination { display: flex; justify-content: center; gap: .45rem; margin-top: 2.5rem; font-family: var(--font-sans); }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 .8rem; border: 1px solid #d5d8dd; color: #4b5563; font-size: .72rem; font-weight: 600; }
.pagination .current, .pagination a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Article */
.article-main { padding-top: 2rem; padding-bottom: 4rem; }
.article-layout { width: min(100%, 1240px); margin: 0 auto; }
.article-header { max-width: 950px; margin: 0 auto 2rem; }
.article-category { color: var(--section-accent); font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.article-header h1 { margin: .65rem 0 1rem; color: var(--ink); font-size: clamp(2.5rem, 6vw, 5.3rem); font-weight: 600; letter-spacing: -.035em; line-height: .95; }
.article-deck { max-width: 800px; margin: 0 0 1.5rem; color: #515b67; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; }
.article-byline { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
.article-author { display: flex; align-items: center; gap: .75rem; }
.article-author__avatar { width: 42px; height: 42px; border-radius: 50%; filter: grayscale(1); }
.article-author span { display: flex; flex-direction: column; }
.article-author strong { color: var(--ink); font-family: var(--font-sans); font-size: .78rem; }
.article-author small { color: #7b8490; font-family: var(--font-sans); font-size: .66rem; text-transform: uppercase; }
.share-buttons { display: flex; gap: .45rem; }
.share-buttons button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d6d9de; border-radius: 50%; background: #fff; cursor: pointer; font-family: var(--font-sans); font-size: .7rem; font-weight: 700; transition: background .2s, color .2s; }
.share-buttons button:hover { background: var(--ink); color: #fff; }
.article-featured-image { margin: 0 0 1rem; }
.article-featured-image img { width: 100%; max-height: 720px; object-fit: cover; }
.article-featured-image figcaption { margin-top: .45rem; color: #7b8490; font-family: var(--font-sans); font-size: .65rem; }
.article-page-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 3.5rem; margin-top: 2.5rem; }
.article-page-grid .article-content { min-width: 0; }
.article-sidebar { min-width: 0; }
.article-sidebar__sticky { position: sticky; top: 120px; }
.sidebar-posts > .post-card { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.sidebar-posts .post-card__content { padding: 0; }
.sidebar-posts .post-card__title { font-size: .98rem; }
.article-sidebar__ad { margin-top: 2rem; }
.article-body-grid { display: grid; grid-template-columns: 120px minmax(0, 760px); gap: 2rem; justify-content: center; margin-top: 3rem; }
.article-side-label { padding-top: .5rem; border-top: 2px solid var(--section-accent); }
.article-side-label span { color: var(--section-accent); font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.entry-content { color: #303843; font-size: 1.08rem; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.5em 0 .55em; color: var(--ink); line-height: 1.1; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.55rem; }
.entry-content a { color: var(--section-accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 4px solid var(--section-accent); color: #111; font-size: 1.35rem; font-style: italic; }
.entry-content img { margin-block: 1.5rem; }
.article-tags { display: flex; max-width: 760px; flex-wrap: wrap; gap: .5rem; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: .68rem; }
.article-tags > span { margin-right: .5rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-tags a { padding: .3rem .6rem; background: var(--soft); }
.related-posts { margin-top: 5rem; }

/* Auteur, pages, recherche, vidéos, erreur */
.author-main { padding-top: 2.5rem; padding-bottom: 4rem; }
.author-profile { display: flex; align-items: flex-start; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid #cfd3d8; }
.author-profile__avatar { flex: 0 0 192px; overflow: hidden; border-radius: 50%; }
.author-profile__avatar img { width: 192px; height: 192px; object-fit: cover; filter: grayscale(1); }
.author-profile h1 { margin: .2rem 0 .8rem; color: var(--ink); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.author-profile > div:last-child > p:last-child { max-width: 750px; margin: 0; color: #626b77; font-size: 1.15rem; }
.author-posts { padding-top: 3rem; }
.archive-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; padding-bottom: .75rem; border-bottom: 1px solid #cfd3d8; }
.archive-title-row h2 { margin: 0; color: var(--ink); font-family: var(--font-sans); font-size: 1.1rem; text-transform: uppercase; }
.archive-title-row span { color: #7b8490; font-family: var(--font-sans); font-size: .7rem; }
.page-main { padding-top: 3.5rem; padding-bottom: 5rem; }
.standard-page__header { margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.standard-page__header h1 { margin: .25rem 0 0; color: var(--ink); font-size: clamp(2.7rem, 7vw, 5rem); line-height: .95; }
.search-main { padding-top: 3rem; padding-bottom: 5rem; }
.search-heading { margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.search-heading h1 { margin: .25rem 0; color: var(--ink); font-size: clamp(2.3rem, 5vw, 4rem); }
.search-results-list { display: grid; gap: 1.75rem; width: min(100%, 900px); }
.search-results-list .post-card--horizontal { grid-template-columns: 240px minmax(0, 1fr); padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.search-results-list .post-card__media { aspect-ratio: 3 / 2; }
.search-results-list .post-card__title { font-size: 1.55rem; }
.search-main > .empty-state .search-form { max-width: 700px; margin: 2rem auto 0; }
.search-main > .empty-state .search-field { border: 1px solid #d5d8dd; color: var(--ink); font-size: 1.2rem; }
.search-main > .empty-state .search-field::placeholder { color: #9ca3af; }
.search-main > .empty-state .search-submit { border-color: var(--ink); background: var(--ink); }
.videos-main { padding-top: 3rem; padding-bottom: 5rem; }
.videos-heading { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.videos-heading h1 { margin: 0; color: var(--ink); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; }
.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.error-main { padding-top: 5rem; padding-bottom: 7rem; text-align: center; }
.error-code { color: #edeef0; font-family: var(--font-sans); font-size: clamp(7rem, 24vw, 15rem); font-weight: 800; letter-spacing: -.09em; line-height: .75; }
.error-main h1 { margin: .5rem 0 1rem; color: var(--ink); font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1; }
.error-main > p:not(.eyebrow) { color: #626b77; font-size: 1.15rem; }
.error-actions { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .75rem 1.2rem; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; font-family: var(--font-sans); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.button--dark { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { margin-top: 0; border-top: 4px solid #9ca3af; background: #fff; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 4fr 6fr 2fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3rem; }
.footer-brand p { max-width: 360px; margin: 1.25rem 0 0; color: #626b77; font-size: 1.08rem; line-height: 1.6; }
.footer-nav h2, .footer-social h2 { margin: 0 0 1.25rem; color: #626b77; font-family: var(--font-sans); font-size: .67rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.footer-nav__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; font-family: var(--font-sans); font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.footer-nav__links a:hover { color: var(--brand-red); }
.footer-social > div { display: flex; gap: .55rem; }
.footer-social a { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #d2d6dc; border-radius: 50%; color: #5f6875; font-family: var(--font-sans); font-size: .7rem; font-weight: 700; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--ink); color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); color: #7b8490; font-family: var(--font-sans); font-size: .65rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--ink); }

@media (max-width: 1023px) {
  .container-wide { padding-inline: clamp(1rem, 3.5vw, 2.5rem); }
  .desktop-header, .desktop-nav-wrap { display: none; }
  .header-accent, .mobile-header, .mobile-nav-wrap { display: block; }
  .mobile-header { display: grid; height: 74px; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 1rem; border-bottom: 1px solid #dfe2e6; }
  .mobile-logo { justify-self: center; }
  .mobile-logo .site-logo img, .mobile-logo .custom-logo { height: 40px; }
  .menu-trigger { display: flex; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .menu-trigger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
  .menu-trigger span:first-child { width: 24px; }
  .menu-trigger span:nth-child(2) { width: 18px; }
  .menu-trigger span:last-child { width: 12px; }
  .search-trigger--mobile { display: block; justify-self: end; width: 40px; height: 40px; color: var(--ink); font-size: 1.6rem; }
  .mobile-strip-nav { display: flex; height: 54px; align-items: center; gap: 1.75rem; overflow-x: auto; padding-inline: 1rem; scrollbar-width: none; font-family: var(--font-sans); font-size: .83rem; font-weight: 700; text-transform: uppercase; }
  .mobile-strip-nav::-webkit-scrollbar { display: none; }
  .mobile-strip-nav .nav-link { flex: 0 0 auto; }
  .mobile-strip-nav .nav-link.is-active::before { width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: var(--nav-color, var(--brand-red)); content: ""; }
  .mobile-nav-progress { height: 9px; padding: 0 1rem 7px; border-bottom: 1px solid var(--line); }
  .mobile-nav-progress::before { display: block; width: 100%; height: 2px; border-radius: 2px; background: #e2e4e7; content: ""; }
  .mobile-nav-progress span { display: block; width: 22%; height: 2px; margin-top: -2px; border-radius: 2px; background: var(--brand-red); transform-origin: left; transition: transform .1s linear; }
  .global-ad { padding-top: .75rem; }
  .top-stories { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .top-stories__stack { display: none; }
  .post-card--hero .post-card__title { font-size: clamp(2rem, 6.8vw, 3.8rem); }
  .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opportunity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .short-formats__rail, .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .short-formats__rail > :nth-child(n+5) { display: none; }
  .article-page-grid { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  .container-wide { padding-inline: 1rem; }
  .global-ad .ad-slot { min-height: 90px; }
  .ad-slot { min-height: 250px; }
  .home-main { padding-top: 1rem; }
  .top-stories { margin-bottom: 2.5rem; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-bottom: 4rem; }
  .featured-grid .post-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .85rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
  .featured-grid .post-card__media { aspect-ratio: 1 / 1; }
  .featured-grid .post-card__content { padding-top: 0; }
  .post-card--hero .post-card__media { aspect-ratio: 3 / 2; }
  .post-card--hero .post-card__title { font-size: 2rem; line-height: 1; }
  .post-card--hero .post-card__excerpt { font-size: .98rem; }
  .card-grid, .card-grid--four { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .opportunity-grid { grid-template-columns: minmax(0, 1fr); }
  .home-main .opportunity-grid > .post-card:nth-of-type(n+5) { display: none; }
  .mobile-stacked-cards .card-grid .post-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .85rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
  .mobile-stacked-cards .card-grid .post-card__media { aspect-ratio: 1 / 1; }
  .mobile-stacked-cards .card-grid .post-card__content { padding-top: 0; }
  .mobile-stacked-cards .card-grid .post-card__title { font-size: 1.02rem; line-height: 1.15; }
  .mobile-stacked-cards .card-grid .post-card__category { font-size: .58rem; }
  .mobile-stacked-cards .card-grid .post-card__meta { font-size: .56rem; }
  .editorial-section { margin-bottom: 3rem; }
  .section-header h2 { font-size: 1.2rem; }
  .short-formats__rail { display: flex; gap: 1rem; overflow-x: auto; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .short-card { width: 210px; flex: 0 0 210px; scroll-snap-align: start; }
  .short-formats__rail > :nth-child(n) { display: block; }
  .listing-main, .archive-main { padding-top: 1.5rem; }
  .listing-heading { margin-bottom: 1.5rem; }
  .listing-heading h1 { font-size: 3rem; }
  .listing-grid .post-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .85rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
  .listing-grid .post-card__media { aspect-ratio: 1 / 1; }
  .listing-grid .post-card__content { padding-top: 0; }
  .card-grid__full { display: flex !important; min-height: 250px; }
  .article-main { padding-top: 1.25rem; }
  .article-header h1 { font-size: 2.6rem; }
  .article-deck { font-size: 1.1rem; }
  .article-byline { align-items: flex-end; }
  .article-body-grid { display: block; margin-top: 2rem; }
  .article-side-label { display: none; }
  .entry-content { font-size: 1rem; line-height: 1.7; }
  .related-posts .post-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .85rem; align-items: center; }
  .related-posts .post-card__content { padding: 0; }
  .article-tags { margin-top: 1.5rem; }
  .author-profile { align-items: center; flex-direction: column; gap: 1.5rem; text-align: center; }
  .author-profile__avatar { flex-basis: 128px; }
  .author-profile__avatar img { width: 128px; height: 128px; }
  .archive-title-row { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .search-results-list .post-card--horizontal { grid-template-columns: 112px minmax(0, 1fr); gap: .85rem; }
  .search-results-list .post-card__media { aspect-ratio: 1 / 1; }
  .search-results-list .post-card__title { font-size: 1rem; }
  .search-results-list .post-card__excerpt { display: none; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .video-grid .short-card { width: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); padding-top: 2.5rem; }
  .footer-brand { grid-column: auto; }
  .footer-nav__links { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .search-form { flex-direction: column; }
  .search-submit { min-height: 46px; }
  .error-actions { align-items: stretch; flex-direction: column; }
}
