/*
Theme Name: SunuCulture Premium – Personnalisable
Theme URI: https://sunuculture.com/
Author: SunuCulture
Author URI: https://sunuculture.com/
Description: Thème WordPress premium et responsive pour SunuCulture, média culturel sénégalais. Accueil éditorial, rubriques, articles, module People, agenda, vidéo et newsletter.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: sunuculture-premium
*/
:root {
  --violet: #6b1f8c;
  --violet-deep: #4b0082;
  --violet-accent: #8b008b;
  --ink: #17131c;
  --muted: #6b6670;
  --soft: #f7f5f8;
  --line: #e9e4ec;
  --footer: #11091d;
  --white: #fff;
  --green: #538b28;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 14px 45px rgba(32, 14, 42, .10);
  --shadow-soft: 0 8px 28px rgba(32, 14, 42, .07);
  --container: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
.sr-only { 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: fixed; left: 16px; top: -60px; z-index: 9999; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

/* TOP BAR */
.topbar { background: linear-gradient(90deg, #3f075e, #72128d 55%, #4b006f); color: #fff; font-size: 12px; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar p { margin: 0; opacity: .92; letter-spacing: .02em; }
.topbar-right, .micro-links, .social-mini { display: flex; align-items: center; gap: 11px; }
.micro-links a, .social-mini a { opacity: .9; transition: .2s; }
.micro-links a:hover, .social-mini a:hover { opacity: 1; color: #f0c8ff; }
.social-mini a { font-weight: 700; min-width: 16px; text-align: center; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(31,12,42,.08); }
.header-inner { min-height: 92px; display: grid; grid-template-columns: 205px 1fr 235px; align-items: center; gap: 26px; }
.brand img { width: 190px; height: 78px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.45vw, 25px); height: 100%; }
.main-nav a { position: relative; font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .015em; padding: 36px 0 31px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; height: 3px; left: 50%; right: 50%; bottom: 20px; background: linear-gradient(90deg, var(--violet-deep), var(--violet-accent)); border-radius: 999px; transition: .25s; }
.main-nav a:hover::after, .main-nav a.active::after { left: 0; right: 0; }
.main-nav a.active { color: var(--violet); }
.header-search { position: relative; display: flex; height: 40px; background: #f8f6fa; border: 1px solid #e7e0eb; border-radius: 999px; overflow: hidden; }
.header-search input { min-width: 0; width: 100%; padding: 0 12px 0 15px; border: 0; outline: none; background: transparent; font-size: 12px; }
.header-search button { width: 44px; border: 0; color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-accent)); font-size: 20px; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 8px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: .25s; }

/* HERO */
.hero { position: relative; height: 560px; overflow: hidden; background: #21052f; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transform: scale(1.015); }
.hero-slide:first-child .hero-bg { object-position: 68% 32%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,3,31,.96) 0%, rgba(67,4,88,.88) 33%, rgba(75,0,130,.47) 57%, rgba(27,5,43,.35) 100%), linear-gradient(0deg, rgba(14,4,19,.35), transparent 45%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-copy { width: min(680px, 62%); color: #fff; padding-bottom: 30px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; text-transform: uppercase; font-size: 12px; letter-spacing: .17em; font-weight: 700; opacity: .95; margin-bottom: 18px; }
.hero-kicker i { display: inline-block; width: 4px; height: 4px; background: #d79fe8; border-radius: 50%; }
.hero h1 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(50px, 5.5vw, 82px); line-height: .94; font-weight: 400; letter-spacing: -.025em; }
.hero h1 em { color: #f5d9ff; font-style: normal; }
.hero-copy p { max-width: 580px; font-size: 18px; color: rgba(255,255,255,.87); margin: 22px 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #8e1eb7, #65088c); box-shadow: 0 10px 26px rgba(89,0,125,.3); border: 1px solid rgba(255,255,255,.16); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(89,0,125,.43); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.04); }
.btn-light { background: #fff; color: var(--violet-deep); box-shadow: 0 8px 24px rgba(18,0,27,.2); }
.hero-side-links { position: absolute; right: 0; top: 50%; transform: translateY(-58%); display: grid; gap: 11px; text-align: right; }
.hero-side-links a { color: rgba(255,255,255,.78); font-size: 13px; transition: .2s; }
.hero-side-links a:hover { color: #fff; transform: translateX(-4px); }
.hero-signature { position: absolute; right: 20px; bottom: 84px; color: #fff; font-family: "DM Serif Display", serif; font-style: italic; font-size: 27px; line-height: 1.05; text-align: right; transform: rotate(-5deg); text-shadow: 0 4px 15px rgba(0,0,0,.22); }
.hero-controls { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hero-dots, .hero-arrows { display: flex; gap: 8px; pointer-events: auto; }
.hero-dots button { width: 30px; height: 4px; border: 0; border-radius: 999px; background: rgba(255,255,255,.38); padding: 0; transition: .25s; }
.hero-dots button.active { width: 55px; background: #fff; }
.hero-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(18,4,28,.24); backdrop-filter: blur(8px); }
.hero-arrows button:hover { background: rgba(255,255,255,.14); }

/* CATEGORIES */
.category-strip { position: relative; z-index: 10; margin-top: -1px; background: #fff; box-shadow: 0 14px 35px rgba(23,9,34,.06); }
.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); }
.category-card { min-height: 110px; display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-right: 1px solid var(--line); transition: .25s; position: relative; }
.category-card:first-child { border-left: 1px solid var(--line); }
.category-card:hover { background: #fcf9fd; transform: translateY(-4px); box-shadow: 0 10px 30px rgba(84,24,110,.08); z-index: 2; }
.cat-icon { font-family: Georgia, serif; font-size: 31px; color: var(--violet-accent); line-height: 1; min-width: 29px; transition: .25s; }
.category-card:hover .cat-icon { transform: rotate(-7deg) scale(1.08); }
.category-card.green .cat-icon { color: var(--green); }
.category-card strong { display: block; font-family: "Oswald", sans-serif; font-size: 15px; }
.category-card small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; line-height: 1.35; }

/* GLOBAL SECTIONS */
.section { padding: 78px 0; }
.section-soft { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2, .newsletter h2, .video-copy h2 { margin: 0; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: clamp(32px, 3vw, 46px); letter-spacing: -.02em; color: var(--violet-deep); line-height: 1; }
.section-heading h2::after { content: ""; display: inline-block; width: 44px; height: 3px; background: var(--violet-accent); margin-left: 14px; vertical-align: middle; border-radius: 999px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .14em; color: var(--violet); font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.section-heading > a, .heading-actions > a:first-child { color: var(--violet); font-size: 13px; font-weight: 700; }
.section-heading > a:hover { text-decoration: underline; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid #eee9f0; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; color: #fff; background: var(--violet); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.badge-purple { background: #7a159d; }.badge-blue { background: #4964c7; }.badge-amber { background: #a96a21; }.badge-magenta { background: #a71d78; }.badge-green { background: #417c35; }

/* A LA UNE */
.news-layout { display: grid; grid-template-columns: 1.56fr .95fr 1fr; gap: 24px; align-items: start; }
.featured-article { overflow: hidden; }
.featured-media { position: relative; display: block; height: 330px; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.featured-media:hover img { transform: scale(1.04); }
.featured-media .badge { position: absolute; left: 18px; bottom: 18px; }
.featured-body { padding: 24px 25px 22px; }
.featured-body h3 { font-family: "DM Serif Display", serif; font-size: 30px; line-height: 1.05; margin: 0 0 13px; font-weight: 400; }
.featured-body h3 a:hover, .compact-story h4 a:hover, .people-card a:hover { color: var(--violet); }
.featured-body p { color: var(--muted); margin: 0 0 19px; }
.article-meta { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 11px; }
.article-meta span::before { content: "·"; color: var(--violet); margin-right: 6px; }
.stacked-news { display: grid; gap: 14px; }
.compact-story { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.compact-story:last-child { border-bottom: 0; }
.compact-story img { width: 118px; height: 86px; object-fit: cover; border-radius: 10px; }
.compact-story h4 { margin: 5px 0 3px; font-size: 15px; line-height: 1.18; }
time { color: var(--muted); font-size: 10.5px; }
.people-card { padding: 18px; }
.module-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 2px solid #eee8f0; margin-bottom: 14px; }
.module-title h3 { margin: 0; color: var(--violet-deep); font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 27px; }
.module-title a { color: var(--violet); font-size: 11px; font-weight: 700; }
.people-lead { margin-bottom: 16px; }
.people-lead img { width: 100%; height: 165px; object-fit: cover; border-radius: 10px; }
.people-lead h4 { font-family: "Oswald", sans-serif; font-size: 18px; line-height: 1.15; margin: 10px 0 4px; }
.people-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.people-item img { width: 64px; height: 53px; object-fit: cover; border-radius: 7px; }
.people-item h5 { font-size: 12px; line-height: 1.18; margin: 0 0 3px; }

/* FOCUS */
.universe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.universe-card { position: relative; height: 164px; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow-soft); }
.universe-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.universe-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,4,23,.88), rgba(18,4,23,.05) 72%); transition: .3s; }
.universe-card div { position: absolute; z-index: 2; left: 16px; right: 12px; bottom: 13px; color: #fff; }
.universe-card strong { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 18px; display: block; }
.universe-card span { font-size: 11px; opacity: .9; }
.universe-card:hover img { transform: scale(1.07); }
.universe-card:hover::after { background: linear-gradient(0deg, rgba(75,0,130,.92), rgba(18,4,23,.08) 75%); }

/* EDITORIAL */
.editorial-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; min-height: 460px; }
.editorial-main { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 460px; }
.editorial-main > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transform: scale(1.25); filter: saturate(1.07); }
.editorial-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,4,20,.92), rgba(14,4,20,.08) 72%); }
.editorial-overlay { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 28px; color: #fff; }
.editorial-overlay h3 { font-family: "DM Serif Display", serif; font-size: 35px; line-height: 1.08; margin: 13px 0 8px; font-weight: 400; }
.editorial-overlay p { max-width: 620px; color: rgba(255,255,255,.82); margin: 0 0 14px; }
.editorial-overlay a { font-weight: 700; font-size: 13px; }
.editorial-side { display: grid; gap: 22px; }
.editorial-side article { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 219px; background: var(--footer); }
.editorial-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.editorial-side article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,4,25,.88), rgba(17,4,25,.15)); }
.editorial-side article div { position: relative; z-index: 2; color: #fff; padding: 32px; width: 80%; }
.editorial-side article span { text-transform: uppercase; font-size: 10px; letter-spacing: .12em; color: #e9baff; font-weight: 700; }
.editorial-side h4 { font-family: "DM Serif Display", serif; font-size: 24px; line-height: 1.12; margin: 8px 0 16px; font-weight: 400; }
.editorial-side a { font-size: 12px; font-weight: 700; }

/* VIDEO */
.video-section { background: radial-gradient(circle at 85% 30%, #6e168f 0, #341047 32%, #160821 72%); color: #fff; overflow: hidden; }
.video-wrap { display: grid; grid-template-columns: .78fr 1.4fr; gap: 55px; align-items: center; }
.video-copy h2 { color: #fff; text-transform: none; font-family: "DM Serif Display", serif; font-weight: 400; font-size: clamp(38px, 4vw, 58px); line-height: 1.02; }
.eyebrow.light { color: #eac9f7; }
.video-copy p { color: rgba(255,255,255,.76); max-width: 480px; margin: 20px 0 26px; }
.video-card { min-height: 390px; border-radius: 24px; overflow: hidden; position: relative; box-shadow: 0 22px 55px rgba(0,0,0,.35); }
.video-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,3,11,.83), rgba(8,3,11,.08) 65%); }
.play { position: absolute; z-index: 2; left: 50%; top: 47%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--violet); font-size: 26px; padding-left: 5px; box-shadow: 0 12px 30px rgba(0,0,0,.3); transition: .25s; }
.video-card:hover .play { transform: translate(-50%,-50%) scale(1.08); }
.video-card div { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: grid; grid-template-columns: 1fr auto; gap: 3px 15px; align-items: end; color: #fff; }
.video-card small { grid-column: 1 / -1; text-transform: uppercase; letter-spacing: .12em; color: #ddacf0; font-weight: 700; }
.video-card strong { font-family: "DM Serif Display", serif; font-size: 26px; font-weight: 400; }
.video-card div > span { font-size: 12px; background: rgba(0,0,0,.48); border-radius: 999px; padding: 5px 9px; }

/* EVENTS */
.heading-actions { display: flex; align-items: center; gap: 14px; }
.mini-pill { color: #fff !important; background: var(--violet); padding: 8px 13px; border-radius: 999px; }
.events-layout { display: grid; grid-template-columns: 2fr .84fr; gap: 22px; }
.event-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.event-item { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 14px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 26px rgba(26,11,35,.05); transition: .25s; }
.event-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.event-date { display: grid; place-items: center; align-content: center; width: 68px; height: 78px; border: 1px solid #dfc9e9; border-radius: 11px; background: #fbf7fd; color: var(--violet); }
.event-date strong { font-family: "Oswald", sans-serif; font-size: 32px; line-height: 1; }
.event-date span { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.event-item h3 { margin: 0 0 5px; font-size: 15px; }
.event-item p { margin: 0; color: var(--muted); font-size: 11px; }
.event-cta { border-radius: 18px; padding: 27px; color: #fff; background: linear-gradient(135deg, #4b006f, #8b0ca5 60%, #53106f); display: flex; gap: 18px; align-items: center; box-shadow: 0 16px 40px rgba(87,17,112,.22); }
.calendar-icon { width: 56px; height: 56px; border: 2px solid rgba(255,255,255,.65); border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: 0 0 auto; }
.event-cta h3 { margin: 0; font-family: "DM Serif Display", serif; font-weight: 400; font-size: 25px; line-height: 1.05; }
.event-cta p { color: rgba(255,255,255,.78); font-size: 12px; margin: 8px 0 16px; }
.event-cta .btn { min-height: 40px; padding: 0 16px; font-size: 12px; }

/* NEWSLETTER */
.newsletter { color: #fff; padding: 46px 0; background: linear-gradient(105deg, #4b006f 0%, #7d1599 52%, #4f006f 100%); position: relative; overflow: hidden; }
.newsletter::before, .newsletter::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 45% 55% 60% 40%; width: 420px; height: 260px; transform: rotate(-16deg); }
.newsletter::before { left: -150px; top: -130px; }.newsletter::after { right: -180px; bottom: -160px; }
.newsletter-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr .42fr; gap: 35px; align-items: center; }
.newsletter h2 { color: #fff; text-transform: none; font-family: "DM Serif Display", serif; font-weight: 400; font-size: 34px; }
.newsletter p { margin: 8px 0 0; font-size: 12px; color: rgba(255,255,255,.8); max-width: 530px; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; background: #fff; min-height: 48px; padding: 4px; border-radius: 999px; position: relative; }
.newsletter-form input { border: 0; outline: 0; padding: 0 16px; min-width: 0; border-radius: 999px; font-size: 12px; }
.newsletter-form button { border: 0; color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-accent)); border-radius: 999px; padding: 0 20px; font-weight: 700; font-size: 12px; }
.newsletter-form small { position: absolute; left: 14px; top: calc(100% + 6px); font-size: 10px; color: #fff; }
.newsletter-signature { font-family: "DM Serif Display", serif; font-style: italic; font-size: 23px; line-height: 1.05; transform: rotate(-4deg); text-align: right; }

/* FOOTER */
.site-footer { background: var(--footer); color: #fff; padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .75fr 1fr .75fr; gap: 48px; padding-bottom: 40px; }
.footer-brand img { width: 180px; height: 92px; object-fit: contain; object-position: left center; filter: brightness(1.25); margin-bottom: 10px; }
.footer-brand p { color: #bdb3c5; max-width: 420px; font-size: 12px; line-height: 1.7; }
.site-footer h3 { font-size: 13px; margin: 13px 0 16px; }
.site-footer a { display: block; color: #bdb3c5; font-size: 12px; margin: 8px 0; transition: .2s; }
.site-footer a:hover { color: #fff; transform: translateX(2px); }
.footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-socials { display: flex; gap: 9px; flex-wrap: wrap; }
.footer-socials a { width: 36px; height: 36px; border: 1px solid #493955; border-radius: 50%; display: grid; place-items: center; margin: 0; color: #fff; }
.footer-bottom { border-top: 1px solid #31243b; padding-top: 19px; display: flex; justify-content: space-between; color: #8e8396; font-size: 10px; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* FOCUS */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #d39be5; outline-offset: 3px; }

/* RESPONSIVE */
@media (max-width: 1180px) {
  :root { --container: min(100% - 36px, 1100px); }
  .header-inner { grid-template-columns: 170px 1fr 46px; min-height: 82px; }
  .brand img { width: 160px; height: 68px; }
  .burger { display: block; justify-self: end; }
  .header-search { display: none; }
  .main-nav { position: fixed; z-index: 999; inset: 116px 0 auto 0; height: calc(100vh - 116px); background: rgba(18,8,28,.985); display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; padding: 24px max(22px, calc((100vw - 1000px)/2)); transform: translateY(-115%); opacity: 0; transition: .35s; overflow-y: auto; }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { color: #fff; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 20px; }
  .main-nav a::after { display: none; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .category-card:nth-child(4) { border-right: 0; }
  .category-card { border-bottom: 1px solid var(--line); }
  .news-layout { grid-template-columns: 1.4fr 1fr; }
  .people-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 14px; }
  .module-title { grid-column: 1 / -1; }
  .people-lead { margin: 0; }
  .people-item { display: block; border-top: 0; padding: 0; }
  .people-item img { width: 100%; height: 100px; margin-bottom: 8px; }
  .universe-grid { grid-template-columns: repeat(2, 1fr); }
  .events-layout { grid-template-columns: 1fr; }
  .event-cta { min-height: 180px; }
}

@media (max-width: 820px) {
  :root { --container: calc(100% - 28px); }
  .topbar-right .micro-links { display: none; }
  .hero { height: 610px; }
  .hero-copy { width: 84%; }
  .hero h1 { font-size: clamp(46px, 10vw, 72px); }
  .hero-side-links { display: none; }
  .hero-signature { right: 20px; bottom: 96px; font-size: 22px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card:nth-child(even) { border-right: 0; }
  .news-layout { grid-template-columns: 1fr; }
  .featured-media { height: 320px; }
  .people-card { display: block; }
  .people-item { display: grid; grid-template-columns: 74px 1fr; border-top: 1px solid var(--line); padding: 10px 0; }
  .people-item img { width: 74px; height: 58px; margin: 0; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-side { grid-template-columns: 1fr 1fr; }
  .video-wrap { grid-template-columns: 1fr; }
  .video-card { min-height: 340px; }
  .event-list { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .newsletter-signature { display: none; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .section { padding: 62px 0; }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 24px); }
  .topbar { display: none; }
  .header-inner { min-height: 76px; grid-template-columns: 155px 1fr; }
  .brand img { width: 150px; height: 64px; }
  .main-nav { inset: 76px 0 auto 0; height: calc(100vh - 76px); }
  .hero { height: 610px; }
  .hero-slide:first-child .hero-bg { object-position: 61% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(20,3,31,.96), rgba(67,4,88,.80) 67%, rgba(33,4,48,.45)); }
  .hero-content { align-items: end; padding-bottom: 110px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-kicker { font-size: 10px; }
  .hero h1 { font-size: 48px; }
  .hero-copy p { font-size: 15px; max-width: 95%; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 310px); }
  .btn { width: 100%; }
  .hero-signature { display: none; }
  .hero-controls { bottom: 22px; }
  .hero-arrows { display: none; }
  .category-card { min-height: 96px; padding: 14px 10px; gap: 8px; }
  .cat-icon { font-size: 25px; }
  .category-card strong { font-size: 13px; }
  .category-card small { font-size: 9px; }
  .section-heading { align-items: flex-start; }
  .section-heading > a { display: none; }
  .section-heading h2 { font-size: 31px; }
  .featured-media { height: 250px; }
  .featured-body { padding: 20px; }
  .featured-body h3 { font-size: 26px; }
  .compact-story { grid-template-columns: 105px 1fr; }
  .compact-story img { width: 105px; height: 79px; }
  .universe-grid { grid-template-columns: 1fr; }
  .universe-card { height: 145px; }
  .editorial-main { min-height: 430px; }
  .editorial-overlay { left: 20px; right: 20px; bottom: 20px; }
  .editorial-overlay h3 { font-size: 29px; }
  .editorial-side { grid-template-columns: 1fr; }
  .video-card { min-height: 310px; }
  .video-card strong { font-size: 21px; }
  .heading-actions a:first-child { display: none; }
  .event-item { grid-template-columns: 65px 1fr; padding: 12px; }
  .event-date { width: 59px; height: 68px; }
  .event-cta { align-items: flex-start; }
  .newsletter-form { grid-template-columns: 1fr; background: transparent; gap: 8px; border-radius: 0; }
  .newsletter-form input { min-height: 48px; background: #fff; border-radius: 999px; }
  .newsletter-form button { min-height: 48px; }
  .newsletter-form small { position: static; padding-left: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* ===== WordPress integration ===== */
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
.wp-site-content{padding:56px 0 80px;min-height:55vh;background:#fff}
.wp-site-content .content-shell{max-width:900px;margin:0 auto}
.wp-site-content .entry-title{font-family:var(--font-display,Oswald,sans-serif);font-size:clamp(2.2rem,5vw,4.5rem);line-height:1.05;margin:0 0 18px;color:#1a1a1a}
.wp-site-content .entry-meta{color:#6b6b6b;font-size:.9rem;margin-bottom:28px}
.wp-site-content .entry-thumbnail{width:100%;border-radius:18px;margin:0 0 32px;max-height:560px;object-fit:cover}
.wp-site-content .entry-content{font-size:1.06rem;line-height:1.8;color:#252525}
.wp-site-content .entry-content h2,.wp-site-content .entry-content h3{font-family:var(--font-display,Oswald,sans-serif);line-height:1.2;margin-top:1.7em}
.wp-site-content .entry-content img{max-width:100%;height:auto;border-radius:12px}
.wp-site-content .post-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.wp-site-content .post-card{border:1px solid #ece8ef;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 10px 28px rgba(30,15,45,.06)}
.wp-site-content .post-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.wp-site-content .post-card-body{padding:20px}
.wp-site-content .post-card h2{font-size:1.35rem;line-height:1.25;margin:8px 0 10px}
.wp-site-content .post-card a{color:inherit;text-decoration:none}
.pagination{display:flex;gap:8px;justify-content:center;margin-top:40px}
.pagination .page-numbers{padding:10px 14px;border-radius:999px;background:#f3edf6;color:#5d177e;text-decoration:none}
.pagination .current{background:#5d177e;color:#fff}
@media(max-width:900px){.wp-site-content .post-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.wp-site-content{padding-top:32px}.wp-site-content .post-list{grid-template-columns:1fr}}
