/*
Theme Name: Kashmir Impulse
Theme URI: https://kashmirimpulse.com/
Author: Kashmir Impulse
Author URI: https://kashmirimpulse.com/
Description: A responsive editorial news theme for Kashmir Impulse with dynamic hero stories, Weekly featured carousel, category blocks, breaking news, video, opinion, widgets, Gutenberg support and migration helpers.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kashmir-impulse
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* =========================================================
   Kashmir Impulse — Original editorial news portal
   Mobile-first, accessible, framework-free CSS
   ========================================================= */

:root {
  --midnight: #0f172a;
  --midnight-2: #172033;
  --indigo: #4338ca;
  --indigo-hover: #3730a3;
  --amber: #f59e0b;
  --amber-hover: #d97706;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --headline: #111827;
  --text: #475569;
  --text-muted: #64748b;
  --line: #e2e8f0;
  --success: #047857;
  --danger: #dc2626;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.17);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --container: 1240px;
  --header-offset: 140px;
  --transition: 180ms ease;
}

html[data-theme="dark"] {
  --background: #090e1a;
  --surface: #111827;
  --surface-muted: #172033;
  --headline: #f8fafc;
  --text: #cbd5e1;
  --text-muted: #94a3b8;
  --line: #263244;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.38);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

body.menu-open { overflow: hidden; }

img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3, h4 {
  color: var(--headline);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.15rem, 5vw, 4.35rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }

:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.75);
  outline-offset: 3px;
}

::selection { background: rgba(67, 56, 202, 0.2); }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section { padding: 62px 0; }

.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;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: #111827;
  font-weight: 800;
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

/* Loading skeleton */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: start center;
  padding-top: 170px;
  background: var(--background);
  transition: opacity 320ms ease, visibility 320ms ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-shell { width: min(100% - 32px, var(--container)); }
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-muted);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent);
  animation: shimmer 1.15s infinite;
}
.skeleton-line { height: 24px; width: 55%; margin-bottom: 24px; }
.skeleton-line--short { width: 32%; }
.skeleton-hero { height: 390px; margin-bottom: 20px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skeleton-card { height: 250px; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Header */
body.ki-header-without-topbar { --header-offset: 100px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.topbar {
  background: var(--midnight);
  color: #dbe5f4;
  font-size: .75rem;
}
.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar__meta, .topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.topbar__inner--single { justify-content: flex-start; }
.topbar__inner--single .topbar__actions { margin-left: auto; }
.topbar__divider { width: 1px; height: 14px; background: rgba(255,255,255,.24); }
.ticker { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; }
.ticker__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .16);
  color: #fbbf24;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }
.ticker__viewport { min-width: 0; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; gap: 64px; animation: ticker 34s linear infinite; }
.ticker__track span::after { content: "•"; margin-left: 64px; color: var(--amber); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.social-links { display: flex; gap: 5px; }
.social-links a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  transition: background-color var(--transition), transform var(--transition);
}
.social-links a:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.social-links svg { width: 15px; height: 15px; fill: currentColor; }
.language-switcher__list { display: flex; align-items: center; gap: 5px; list-style: none; margin: 0; padding: 0; }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 4px 7px; border-radius: 999px; color: #dbe5f4; font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.language-switcher a:hover, .language-switcher a.is-current { background: rgba(255,255,255,.12); color: #fff; }

.main-header__inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(260px, 640px) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 52px);
}
.main-header__inner.main-header__inner--no-search { grid-template-columns: 1fr auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand__logo-shell { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.brand__logo { display: block; width: auto; height: 58px; max-width: 154px; object-fit: contain; }
.brand__tagline { color: var(--text-muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; white-space: nowrap; }
.brand--header { gap: 10px; }

.header-search {
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.header-search:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(67,56,202,.11); background: var(--surface); }
.header-search svg { width: 20px; margin-left: 18px; fill: var(--text-muted); }
.header-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 13px 12px; background: transparent; color: var(--headline); }
.header-search button { border: 0; border-radius: 999px; background: var(--midnight); color: #fff; padding: 10px 20px; margin-right: 4px; font-weight: 700; transition: transform var(--transition), background-color var(--transition); }
.header-search button:hover { background: var(--indigo); transform: translateX(-2px); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 22px rgba(67,56,202,.23); }
.button--primary:hover { background: var(--indigo-hover); box-shadow: 0 12px 28px rgba(67,56,202,.28); }
.button--ghost { border-color: var(--line); background: var(--surface); color: var(--headline); }
.button--ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.button--amber { background: var(--amber); color: #111827; }
.button--amber:hover { background: #fbbf24; box-shadow: 0 12px 30px rgba(245,158,11,.25); }
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--headline);
}
.icon-button:hover { border-color: var(--indigo); color: var(--indigo); }
.mobile-search-toggle { display: none; }
.mobile-search-toggle svg { width: 20px; fill: currentColor; }
.theme-icon { width: 20px; fill: currentColor; }
.theme-icon--sun { display: none; }
html[data-theme="dark"] .theme-icon--moon { display: none; }
html[data-theme="dark"] .theme-icon--sun { display: block; }
.hamburger { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface-muted); padding: 11px; }
.hamburger span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 99px; background: var(--headline); transition: transform var(--transition), opacity var(--transition); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { border-top: 1px solid var(--line); }
.nav-scroll { display: flex; align-items: center; gap: 27px; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.primary-nav a { position: relative; flex: 0 0 auto; padding: 14px 0; color: var(--text); font-size: .86rem; font-weight: 700; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: 8px; width: 100%; height: 2px; border-radius: 2px; background: var(--indigo); transform: scaleX(0); transform-origin: right; transition: transform var(--transition); }
.primary-nav a:hover, .primary-nav a.active { color: var(--indigo); }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); transform-origin: left; }

/* Shared editorial components */
.breadcrumb { padding-top: 20px; }
.breadcrumb ol { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-size: .82rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #94a3b8; }
.breadcrumb a:hover { color: var(--indigo); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading--compact { align-items: center; margin-bottom: 30px; }
.section-heading h1, .section-heading h2 { margin-bottom: 0; }
.section-heading p { max-width: 560px; margin-bottom: 4px; color: var(--text-muted); }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--indigo); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--light { color: #fbbf24; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--indigo); font-size: .9rem; font-weight: 800; white-space: nowrap; }
.text-link span { transition: transform var(--transition); }
.text-link:hover span { transform: translateX(4px); }
.text-link--light { color: #f8fafc; }

.category-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.category-badge--kashmir { background: #0f766e; }
.category-badge--national { background: #4338ca; }
.category-badge--international { background: #7c3aed; }
.category-badge--politics { background: #be123c; }
.category-badge--business { background: #b45309; }
.category-badge--education { background: #0369a1; }
.category-badge--technology { background: #4f46e5; }
.category-badge--sports { background: #15803d; }
.category-badge--health { background: #be185d; }
.category-badge--entertainment { background: #c2410c; }
.category-badge--weekly { background: var(--amber); color: #111827; }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--text-muted); font-size: .74rem; }
.article-meta span:not(:first-child)::before { content: "•"; margin-right: 8px; color: #94a3b8; }
.article-meta--light { color: rgba(255,255,255,.78); }


/* Highlighted breaking-news section */
.breaking-news-highlight {
  position: relative;
  z-index: 20;
  padding: 14px 0;
  background: linear-gradient(110deg, #0b1120 0%, var(--midnight) 48%, #312e81 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}
.breaking-news-highlight__shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(12px);
}
.breaking-news-highlight__label { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.breaking-news-highlight__label strong { color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; }
.breaking-news-highlight__live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; background: var(--amber); color: #111827; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.breaking-news-highlight__live .pulse-dot { width: 7px; height: 7px; background: #b91c1c; box-shadow: 0 0 0 0 rgba(185,28,28,.55); }
.breaking-ticker { min-width: 0; overflow: hidden; }
.breaking-ticker__viewport { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }
.breaking-ticker__track { display: flex; align-items: center; width: max-content; gap: 48px; will-change: transform; animation: breakingTicker 42s linear infinite; }
.breaking-ticker__track.is-paused,
.breaking-news-highlight__shell:hover .breaking-ticker__track,
.breaking-news-highlight__shell:focus-within .breaking-ticker__track { animation-play-state: paused; }
.breaking-ticker__track a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.92); font-size: .84rem; white-space: nowrap; }
.breaking-ticker__track a::after { content: "◆"; margin-left: 38px; color: var(--amber); font-size: .48rem; }
.breaking-ticker__track time { color: #fbbf24; font-size: .72rem; font-weight: 800; }
.breaking-ticker__track a:hover span { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.breaking-ticker__toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: transform var(--transition), background-color var(--transition); }
.breaking-ticker__toggle:hover { transform: scale(1.06); background: rgba(245,158,11,.22); }
.breaking-ticker__toggle svg { grid-area: 1 / 1; width: 18px; fill: currentColor; }
.ticker-icon--play { opacity: 0; transform: scale(.75); }
.breaking-ticker__toggle[aria-pressed="true"] .ticker-icon--pause { opacity: 0; transform: scale(.75); }
.breaking-ticker__toggle[aria-pressed="true"] .ticker-icon--play { opacity: 1; transform: scale(1); }
.ticker-icon { transition: opacity var(--transition), transform var(--transition); }
@keyframes breakingTicker { to { transform: translate3d(-50%, 0, 0); } }

/* Hero */
.hero { padding-top: 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.92fr) minmax(310px, .95fr); gap: 18px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.hero-card { position: relative; min-height: 260px; overflow: hidden; border-radius: var(--radius-lg); background: #0f172a; box-shadow: var(--shadow-md); }
.hero-card--lead { min-height: 575px; }
.hero-card__link { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hero-card img { position: absolute; inset: 0; height: 100%; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.hero-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,8,18,.95) 0%, rgba(4,8,18,.68) 38%, rgba(4,8,18,.05) 75%); }
.hero-card__content { position: relative; z-index: 1; padding: clamp(22px, 4vw, 44px); color: #fff; }
.hero-card h2, .hero-card h3 { max-width: 920px; margin: 15px 0 12px; color: #fff; text-wrap: balance; }
.hero-card h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
.hero-card h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.hero-card p { max-width: 760px; margin-bottom: 18px; color: rgba(255,255,255,.82); }
.hero-card:hover img { transform: scale(1.055); }


/* Featured Weekly carousel */
.featured-layout { overflow: hidden; }
.featured-carousel { position: relative; --featured-gap: 22px; min-width: 0; }
.featured-carousel__viewport { overflow: hidden; padding: 7px 4px 18px; touch-action: pan-y; }
.featured-carousel__track { display: flex; align-items: stretch; gap: var(--featured-gap); will-change: transform; }
.featured-carousel__slide { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.featured-carousel.is-view-2 .featured-carousel__slide { flex-basis: calc((100% - 22px) / 2); }
.featured-carousel.is-view-1 .featured-carousel__slide { flex-basis: 100%; }
.featured-card { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.featured-card:hover { transform: translateY(-6px); border-color: rgba(245,158,11,.48); box-shadow: var(--shadow-md); }
.featured-card__link { display: flex; flex-direction: column; height: 100%; }
.featured-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--midnight), var(--indigo)); }
.featured-card__media img { height: 100%; object-fit: cover; transition: transform 520ms cubic-bezier(.2,.7,.2,1); }
.featured-card:hover .featured-card__media img { transform: scale(1.065); }
.featured-card__media .category-badge { position: absolute; left: 16px; top: 16px; box-shadow: 0 6px 18px rgba(15,23,42,.18); }
.featured-card__body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.featured-card__date { margin-bottom: 9px; color: var(--text-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.featured-card__title { display: -webkit-box; overflow: hidden; min-height: 3.5em; color: var(--headline); font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.18rem, 1.45vw, 1.48rem); font-weight: 700; line-height: 1.18; -webkit-box-orient: vertical; -webkit-line-clamp: 3; transition: color var(--transition); }
.featured-card:hover .featured-card__title { color: var(--indigo); }
.featured-card__excerpt { display: -webkit-box; overflow: hidden; min-height: 3.2em; margin-top: 12px; color: var(--text); font-size: .88rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-card__meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 16px; color: var(--text-muted); font-size: .72rem; }
.featured-card__meta span + span::before { content: "•"; margin-right: 9px; color: #94a3b8; }
.featured-card__button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; gap: 7px; margin-top: auto; padding: 10px 15px; border-radius: 999px; background: rgba(67,56,202,.09); color: var(--indigo); font-size: .78rem; font-weight: 800; transition: color var(--transition), background-color var(--transition), transform var(--transition); }
.featured-card__button span { transition: transform var(--transition); }
.featured-card:hover .featured-card__button { background: var(--indigo); color: #fff; }
.featured-card:hover .featured-card__button span { transform: translateX(3px); }
.featured-carousel__arrow { position: absolute; z-index: 4; top: calc(50% - 25px); width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--headline); box-shadow: 0 12px 30px rgba(15,23,42,.18); transition: transform var(--transition), background-color var(--transition), color var(--transition); }
.featured-carousel__arrow:hover { transform: scale(1.08); background: var(--indigo); color: #fff; }
.featured-carousel__arrow svg { width: 22px; fill: currentColor; }
.featured-carousel__arrow--prev { left: -23px; }
.featured-carousel__arrow--next { right: -23px; }
.featured-carousel__dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.featured-carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; transition: width var(--transition), background-color var(--transition), transform var(--transition); }
.featured-carousel__dot:hover { transform: scale(1.25); }
.featured-carousel__dot.is-active { width: 28px; background: var(--amber); }
.featured-empty { padding: 40px 24px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface); color: var(--text-muted); text-align: center; }
.featured-skeleton-card { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.featured-skeleton-card__image { aspect-ratio: 16/9; border-radius: 0; }
.featured-skeleton-card__body { padding: 21px; }
.featured-skeleton-card__badge { width: 72px; height: 23px; margin-bottom: 17px; border-radius: 999px; }
.featured-skeleton-card__title { width: 100%; height: 20px; margin-bottom: 10px; border-radius: 7px; }
.featured-skeleton-card__title--short { width: 76%; margin-bottom: 20px; }
.featured-skeleton-card__line { width: 92%; height: 13px; margin-bottom: 9px; border-radius: 6px; }
.featured-skeleton-card__line--short { width: 64%; }

/* Latest news and sidebar */
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.content-column { min-width: 0; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.news-card:hover { transform: translateY(-5px); border-color: rgba(67,56,202,.22); box-shadow: var(--shadow-md); }
.news-card__image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-muted); }
.news-card__image img { height: 100%; transition: transform 450ms ease; }
.news-card:hover .news-card__image img { transform: scale(1.055); }
.news-card__image .category-badge { position: absolute; left: 14px; bottom: 14px; }
.news-card__body { padding: 20px; }
.news-card h3 { margin: 0 0 10px; }
.news-card h3 a:hover { color: var(--indigo); }
.news-card p { display: -webkit-box; overflow: hidden; margin-bottom: 16px; color: var(--text); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.read-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--indigo); font-size: .82rem; font-weight: 800; }
.read-more::after { content: "→"; transition: transform var(--transition); }
.read-more:hover::after { transform: translateX(4px); }

.sidebar-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.sticky-sidebar { position: sticky; top: calc(var(--header-offset) + 22px); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tab { position: relative; border: 0; background: transparent; color: var(--text-muted); padding: 16px 8px; font-size: .76rem; font-weight: 800; }
.tab::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--indigo); transform: scaleX(0); transition: transform var(--transition); }
.tab.active { color: var(--indigo); }
.tab.active::after { transform: scaleX(1); }
.tab-panel { padding: 8px 20px 4px; }
.ranked-story { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ranked-story:last-child { border-bottom: 0; }
.ranked-story__number { color: transparent; font-family: "Playfair Display", serif; font-size: 2.1rem; font-weight: 800; line-height: 1; -webkit-text-stroke: 1px var(--indigo); }
.ranked-story h4 { margin: 0 0 7px; font-size: .98rem; line-height: 1.3; }
.ranked-story h4 a:hover { color: var(--indigo); }
.ranked-story time { color: var(--text-muted); font-size: .7rem; }
.popular-tags { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--surface-muted); }
.popular-tags h3 { margin-bottom: 13px; font-size: 1.05rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .72rem; font-weight: 700; transition: color var(--transition), border-color var(--transition), transform var(--transition); }
.tag-cloud a:hover { color: var(--indigo); border-color: var(--indigo); transform: translateY(-2px); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination__button { min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--headline); font-weight: 800; }
.pagination__button:hover:not(:disabled), .pagination__button.active { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.pagination__button:disabled { opacity: .4; cursor: not-allowed; }

/* =========================================================
   1.0.9 — Official logo and brand asset integration
   ========================================================= */

/* =========================================================
   1.0.8 — Alternating category sections and section palettes
   ========================================================= */
.category-section {
  --category-accent: #4338ca;
  --category-accent-dark: #3730a3;
  --category-accent-rgb: 67, 56, 202;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid transparent;
  background: var(--background);
}
.category-section--alternate {
  border-color: rgba(var(--category-accent-rgb), .12);
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--category-accent-rgb), .11), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--category-accent) 6%), color-mix(in srgb, var(--surface-muted) 88%, var(--category-accent) 12%));
}
.category-section--plain { background: var(--background); }

/* Position-based fallback palettes keep custom category selections colourful. */
.category-section--palette-1 { --category-accent: #be123c; --category-accent-dark: #9f1239; --category-accent-rgb: 190, 18, 60; }
.category-section--palette-2 { --category-accent: #b45309; --category-accent-dark: #92400e; --category-accent-rgb: 180, 83, 9; }
.category-section--palette-3 { --category-accent: #0369a1; --category-accent-dark: #075985; --category-accent-rgb: 3, 105, 161; }
.category-section--palette-4 { --category-accent: #15803d; --category-accent-dark: #166534; --category-accent-rgb: 21, 128, 61; }
.category-section--palette-5 { --category-accent: #be185d; --category-accent-dark: #9d174d; --category-accent-rgb: 190, 24, 93; }
.category-section--palette-6 { --category-accent: #0f766e; --category-accent-dark: #115e59; --category-accent-rgb: 15, 118, 110; }

/* Named palettes preserve the intended newsroom identity even when section order changes. */
.category-section--politics-government,
.category-section--politics { --category-accent: #be123c; --category-accent-dark: #9f1239; --category-accent-rgb: 190, 18, 60; }
.category-section--business-economy,
.category-section--business { --category-accent: #b45309; --category-accent-dark: #92400e; --category-accent-rgb: 180, 83, 9; }
.category-section--education { --category-accent: #0369a1; --category-accent-dark: #075985; --category-accent-rgb: 3, 105, 161; }
.category-section--sports { --category-accent: #15803d; --category-accent-dark: #166534; --category-accent-rgb: 21, 128, 61; }
.category-section--health { --category-accent: #be185d; --category-accent-dark: #9d174d; --category-accent-rgb: 190, 24, 93; }
.category-section--environment-climate,
.category-section--environment { --category-accent: #0f766e; --category-accent-dark: #115e59; --category-accent-rgb: 15, 118, 110; }
.category-section--technology { --category-accent: #4f46e5; --category-accent-dark: #4338ca; --category-accent-rgb: 79, 70, 229; }
.category-section--entertainment { --category-accent: #c2410c; --category-accent-dark: #9a3412; --category-accent-rgb: 194, 65, 12; }
.category-section--kashmir { --category-accent: #0f766e; --category-accent-dark: #115e59; --category-accent-rgb: 15, 118, 110; }
.category-section--national { --category-accent: #4338ca; --category-accent-dark: #3730a3; --category-accent-rgb: 67, 56, 202; }
.category-section--international { --category-accent: #7c3aed; --category-accent-dark: #6d28d9; --category-accent-rgb: 124, 58, 237; }

.category-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.category-title { display: flex; align-items: center; gap: 12px; }
.category-title::before {
  content: "";
  width: 6px;
  height: 38px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--category-accent), var(--category-accent-dark));
  box-shadow: 0 8px 18px rgba(var(--category-accent-rgb), .25);
}
.category-title h2 { margin: 0; }
.category-section .button--ghost {
  border-color: rgba(var(--category-accent-rgb), .26);
  background: color-mix(in srgb, var(--surface) 92%, var(--category-accent) 8%);
  color: var(--category-accent-dark);
}
.category-section .button--ghost:hover {
  border-color: var(--category-accent);
  background: var(--category-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--category-accent-rgb), .22);
}
.category-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 24px; }
.category-lead {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--category-accent-rgb), .12);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.category-lead::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--category-accent), color-mix(in srgb, var(--category-accent) 42%, transparent));
}
.category-lead__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.category-lead__image img { height: 100%; transition: transform 500ms ease; }
.category-lead:hover img { transform: scale(1.045); }
.category-lead__content { padding: 26px; }
.category-section .category-badge { background: var(--category-accent); color: #fff; }
.category-lead h3 { margin: 12px 0; font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
.category-lead h3 a:hover,
.category-section .mini-card h3 a:hover { color: var(--category-accent); }
.category-lead p { margin-bottom: 16px; }
.category-section .read-more { color: var(--category-accent-dark); }
.category-section .read-more:hover { color: var(--category-accent); }
.secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(var(--category-accent-rgb), .13);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--category-accent-rgb), .38);
  box-shadow: 0 14px 30px rgba(var(--category-accent-rgb), .12);
}
.mini-card__image { aspect-ratio: 16/9; overflow: hidden; }
.mini-card__image img { height: 100%; transition: transform 400ms ease; }
.mini-card:hover img { transform: scale(1.05); }
.mini-card__body { padding: 15px; }
.mini-card h3 { margin: 8px 0 10px; font-size: 1.05rem; }

html[data-theme="dark"] .category-section--alternate {
  border-color: rgba(var(--category-accent-rgb), .18);
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--category-accent-rgb), .13), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--category-accent) 8%), color-mix(in srgb, var(--background) 86%, var(--category-accent) 14%));
}
html[data-theme="dark"] .category-section .button--ghost {
  background: rgba(var(--category-accent-rgb), .10);
  color: color-mix(in srgb, #fff 76%, var(--category-accent) 24%);
}

/* Video */
.video-section { position: relative; overflow: hidden; background: var(--midnight); }
.video-section::before { content: ""; position: absolute; width: 480px; height: 480px; top: -250px; right: -130px; border-radius: 50%; background: rgba(67,56,202,.28); filter: blur(4px); }
.section-heading--inverse h2 { color: #fff; }
.video-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-card { overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); background: rgba(255,255,255,.055); color: #fff; transition: transform var(--transition), background-color var(--transition); }
.video-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.08); }
.video-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.video-card__media img { height: 100%; opacity: .88; transition: transform 450ms ease, opacity var(--transition); }
.video-card:hover img { transform: scale(1.05); opacity: 1; }
.play-button { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.46); border-radius: 50%; background: rgba(15,23,42,.65); backdrop-filter: blur(8px); transition: transform var(--transition), background-color var(--transition); }
.play-button svg { width: 23px; fill: #fff; transform: translateX(2px); }
.video-card:hover .play-button { transform: translate(-50%, -50%) scale(1.08); background: var(--indigo); }
.video-duration { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.74); color: #fff; font-size: .7rem; font-weight: 700; }
.video-card__body { padding: 18px; }
.video-card h3 { margin: 0 0 10px; color: #fff; font-size: 1.2rem; }
.video-card time { color: #aab7ca; font-size: .74rem; }

/* Gallery */
.masonry-gallery { columns: 3 300px; column-gap: 18px; }
.gallery-item { position: relative; display: inline-block; width: 100%; margin: 0 0 18px; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.gallery-item img { transition: transform 500ms ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__overlay { position: absolute; inset: auto 0 0; padding: 48px 18px 17px; background: linear-gradient(transparent, rgba(4,8,18,.88)); color: #fff; transform: translateY(12px); transition: transform var(--transition); }
.gallery-item:hover .gallery-item__overlay { transform: translateY(0); }
.gallery-item__overlay h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.gallery-item__overlay span { display: block; margin-top: 5px; color: rgba(255,255,255,.72); font-size: .72rem; }

/* Opinion */
.opinion-section { background: color-mix(in srgb, var(--surface-muted) 70%, transparent); }
.opinion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.opinion-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 26px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.opinion-card::before { content: "“"; position: absolute; right: 24px; top: 9px; color: rgba(67,56,202,.13); font-family: Georgia, serif; font-size: 6.2rem; line-height: 1; }
.opinion-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.author { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.author img { width: 54px; height: 54px; border-radius: 50%; }
.author strong { display: block; color: var(--headline); }
.author span { color: var(--text-muted); font-size: .75rem; }
.opinion-card h3 { position: relative; margin-bottom: 12px; }
.opinion-card h3 a:hover { color: var(--indigo); }
.opinion-card p { margin-bottom: 18px; }

/* Newsletter */
.newsletter { padding-top: 76px; }
.newsletter__card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding: clamp(30px, 6vw, 68px); border-radius: 24px; background: linear-gradient(135deg, var(--midnight), #22216a); color: #dbe5f4; box-shadow: var(--shadow-lg); }
.newsletter__card::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -100px; top: -150px; background: rgba(245,158,11,.2); }
.newsletter__copy, .newsletter__form { position: relative; z-index: 1; }
.newsletter h2 { margin-bottom: 14px; color: #fff; font-size: clamp(2rem, 4vw, 3.35rem); }
.newsletter p { margin-bottom: 0; }
.newsletter__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter__form input { min-width: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; padding: 14px 18px; outline: 0; }
.newsletter__form input::placeholder { color: #b7c2d3; }
.newsletter__form input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245,158,11,.14); }
.form-message { grid-column: 1 / -1; min-height: 22px; color: #fbbf24; font-size: .77rem; }

/* Footer */
.site-footer { margin-top: 62px; background: #080d19; color: #aab7ca; }
.site-footer--minimal { padding: 0; }
.footer-minimal { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 38px; padding-bottom: 38px; }
.footer-minimal__logo { flex: 0 0 auto; }
.brand--footer { display: inline-flex; align-items: center; flex-direction: row; gap: 0; }
.brand--footer .brand__logo-shell { padding: 8px 12px; border-radius: 13px; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.brand--footer .brand__logo { height: 64px; max-width: 176px; }
.footer-minimal__copyright { margin: 0; color: #aab7ca; font-size: .78rem; line-height: 1.7; text-align: right; }
.footer-minimal__copyright:only-child { width: 100%; text-align: center; }
.site-footer a:hover { color: #fff; }

/* Floating components */
.back-to-top { position: fixed; z-index: 900; right: 22px; bottom: 22px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--indigo); color: #fff; box-shadow: 0 12px 28px rgba(67,56,202,.34); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background-color var(--transition); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber-hover); }
.back-to-top svg { width: 24px; fill: currentColor; }
.toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translate(-50%, 130%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--midnight); color: #fff; box-shadow: var(--shadow-lg); font-size: .86rem; opacity: 0; transition: transform 260ms ease, opacity 260ms ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Search filtering */
.search-hidden { display: none !important; }
.search-summary { margin-bottom: 20px; padding: 14px 18px; border: 1px solid rgba(67,56,202,.18); border-radius: var(--radius-sm); background: rgba(67,56,202,.06); color: var(--headline); }

/* Responsive */
@media (max-width: 1080px) {
  :root { --header-offset: 126px; }
  .topbar__meta { display: none; }
  .main-header__inner { grid-template-columns: auto 1fr auto; gap: 20px; }
  .brand__tagline { display: none; }
  .brand__logo { height: 52px; max-width: 140px; }
  .content-with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .category-layout { grid-template-columns: 1fr; }
  .category-lead { display: grid; grid-template-columns: 1.05fr .95fr; }
  .category-lead__image { aspect-ratio: auto; min-height: 100%; }
}

@media (max-width: 860px) {
  .breaking-news-highlight { padding: 10px 0; }
  .breaking-news-highlight__shell { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding-left: 11px; }
  .breaking-news-highlight__label strong { display: none; }
  .breaking-ticker__track { gap: 34px; animation-duration: 36s; }
  .breaking-ticker__track a::after { margin-left: 24px; }
  .featured-carousel__arrow--prev { left: 9px; }
  .featured-carousel__arrow--next { right: 9px; }

  :root { --header-offset: 88px; }
  .section { padding: 48px 0; }
  .topbar { display: none; }
  .main-header__inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .header-search { position: absolute; left: 16px; right: 16px; top: 78px; z-index: 3; transform: translateY(-10px); opacity: 0; visibility: hidden; box-shadow: var(--shadow-md); }
  .header-search.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-search-toggle { display: grid; }
  .hamburger { display: block; }
  .primary-nav { position: fixed; inset: 72px 0 auto; max-height: calc(100vh - 72px); overflow-y: auto; border-top: 1px solid var(--line); background: var(--surface); transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform 260ms ease, opacity 260ms ease, visibility 260ms ease; box-shadow: var(--shadow-lg); }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-scroll { display: grid; gap: 0; overflow: visible; padding: 16px 0 24px; }
  .primary-nav a { padding: 12px 4px; }
  .primary-nav a::after { bottom: 8px; width: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card--lead { min-height: 510px; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
  .video-grid, .opinion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter__card { grid-template-columns: 1fr; gap: 28px; }
  .footer-minimal { min-height: 170px; }
}

@media (max-width: 640px) {
  .breaking-news-highlight__shell { min-height: 52px; border-radius: 13px; }
  .breaking-news-highlight__live { padding: 5px 7px; font-size: .58rem; }
  .breaking-ticker__track a { font-size: .78rem; }
  .breaking-ticker__toggle { width: 36px; height: 36px; }
  .featured-carousel { --featured-gap: 16px; }
  .featured-carousel__viewport { padding-inline: 2px; }
  .featured-carousel__arrow { top: 31%; width: 42px; height: 42px; }
  .featured-card__body { padding: 19px; }

  .container { width: min(100% - 24px, var(--container)); }
  .section { padding: 42px 0; }
  .brand__logo { height: 46px; max-width: 124px; }
  .section-heading, .section-heading--compact { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading p { font-size: .92rem; }
  .hero { padding-top: 20px; }
  .hero-card--lead { min-height: 460px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-card--indigo { min-height: 300px; }
  .hero-card__content { padding: 22px; }
  .hero-card h2 { font-size: 2.05rem; }
  .news-grid { grid-template-columns: 1fr; }
  .category-lead { display: block; }
  .category-lead__image { aspect-ratio: 16/10; }
  .secondary-grid { grid-template-columns: 1fr; }
  .mini-card { grid-template-columns: 120px 1fr; grid-template-rows: none; }
  .mini-card__image { aspect-ratio: auto; min-height: 100%; }
  .mini-card .article-meta { display: none; }
  .video-grid, .opinion-grid { grid-template-columns: 1fr; }
  .masonry-gallery { columns: 2 150px; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .newsletter__card { padding: 30px 22px; }
  .newsletter__form { grid-template-columns: 1fr; }
  .newsletter__form .button { width: 100%; }
  .footer-minimal { min-height: 0; align-items: center; flex-direction: column; padding-top: 34px; padding-bottom: 34px; text-align: center; }
  .footer-minimal__copyright { text-align: center; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .skeleton-grid .skeleton:nth-child(n+2) { display: none; }
}

@media (max-width: 420px) {
  .header-actions { gap: 5px; }
  .brand__logo { height: 42px; max-width: 112px; }
  .main-header__inner { min-height: 66px; }
  .primary-nav { inset: 66px 0 auto; max-height: calc(100vh - 66px); }
  .hero-card--lead { min-height: 430px; }
  .hero-card p { display: none; }
  .article-meta span:nth-child(3) { display: none; }
  .masonry-gallery { columns: 1; }
  .mini-card { grid-template-columns: 105px 1fr; }
  .mini-card h3 { font-size: .98rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Kashmir Impulse — Single article page
   ========================================================= */
.reading-progress {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), #fbbf24, var(--indigo));
  transition: width 80ms linear;
}

.single-post-page { overflow: clip; }
.post-breadcrumb { padding-block: 22px 12px; }
.post-breadcrumb ol { flex-wrap: wrap; }

.post-hero { padding-top: 34px; }
.post-hero__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 70px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, .13), transparent 31%),
    radial-gradient(circle at 4% 98%, rgba(67, 56, 202, .11), transparent 35%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.post-hero__inner::after {
  content: "KI";
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: -32px;
  color: color-mix(in srgb, var(--headline) 4%, transparent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 800;
  line-height: .8;
  pointer-events: none;
}
.post-hero__copy { position: relative; z-index: 1; max-width: 960px; }
.post-hero h1 {
  max-width: 930px;
  margin: 20px 0 22px;
  font-size: clamp(2.45rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  text-wrap: balance;
}
.post-deck {
  max-width: 840px;
  margin-bottom: 28px;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.16rem, 2.1vw, 1.55rem);
  line-height: 1.55;
}
.post-byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.post-byline img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.post-byline p { margin: 0 0 3px; color: var(--headline); font-weight: 700; }
.post-byline a { color: var(--indigo); }
.post-byline a:hover { text-decoration: underline; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--text-muted); font-size: .82rem; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.post-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--headline);
  font-size: .82rem;
  font-weight: 800;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}
.post-action svg { width: 17px; height: 17px; fill: currentColor; }
.post-action:hover { transform: translateY(-2px); border-color: var(--indigo); color: var(--indigo); }
.post-action--primary { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.post-action--primary:hover { background: var(--indigo-hover); color: #fff; }

.post-featured-media { margin-top: 30px; }
.post-featured-media__image { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 22px; background: var(--surface-muted); box-shadow: var(--shadow-md); }
.post-featured-media__image img { height: 100%; }
.post-featured-media figcaption,
.post-inline-media figcaption { margin-top: 11px; color: var(--text-muted); font-size: .78rem; line-height: 1.55; }
.post-featured-media figcaption span { color: var(--headline); font-weight: 600; }

.post-layout {
  display: grid;
  grid-template-columns: 54px minmax(0, 760px) minmax(260px, 330px);
  justify-content: center;
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  padding-block: 56px 72px;
}
.post-content { min-width: 0; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.07rem, 1.45vw, 1.19rem); line-height: 1.9; }
.post-content > *:first-child { margin-top: 0; }
.post-content p { margin-bottom: 26px; }
.post-content h2 {
  margin: 52px 0 20px;
  padding-top: 8px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  scroll-margin-top: calc(var(--header-offset) + 28px);
}
.post-lead { color: var(--headline); font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.56rem); line-height: 1.65; }
.post-content a { color: var(--indigo); }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote {
  position: relative;
  margin: 42px 0;
  padding: 32px 34px 30px 42px;
  border: 0;
  border-left: 5px solid var(--amber);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(135deg, rgba(245,158,11,.09), rgba(67,56,202,.06));
}
.post-content blockquote::before { content: "“"; position: absolute; top: 4px; left: 12px; color: rgba(245,158,11,.32); font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.post-content blockquote p { position: relative; margin-bottom: 12px; color: var(--headline); font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 1.68rem); font-weight: 700; line-height: 1.5; }
.post-content blockquote cite { color: var(--text-muted); font-family: "Inter", sans-serif; font-size: .82rem; font-style: normal; font-weight: 700; }

.article-key-points {
  margin: 38px 0 42px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: "Inter", sans-serif;
}
.article-key-points__heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.article-key-points__heading > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--midnight); color: var(--amber); font-size: .72rem; font-weight: 900; }
.article-key-points h2 { margin: 0; padding: 0; font-size: 1.35rem; }
.article-key-points ul { display: grid; gap: 10px; margin: 0; padding-left: 21px; color: var(--text); font-size: .91rem; line-height: 1.65; }
.article-key-points li::marker { color: var(--amber); }

.post-inline-media { margin: 42px 0; }
.post-inline-media img { aspect-ratio: 16 / 10; border-radius: 18px; box-shadow: var(--shadow-sm); }
.post-fact-card {
  margin: 40px 0;
  padding: 30px;
  border: 1px solid rgba(67,56,202,.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(67,56,202,.08), rgba(245,158,11,.06));
  font-family: "Inter", sans-serif;
}
.post-fact-card h3 { margin: 7px 0 10px; font-size: 1.45rem; }
.post-fact-card p { margin: 0; font-size: .96rem; line-height: 1.7; }
.post-update-note { margin-top: 38px; padding: 18px 20px; border-left: 4px solid var(--indigo); border-radius: 0 12px 12px 0; background: var(--surface-muted); color: var(--text); font-family: "Inter", sans-serif; font-size: .84rem; line-height: 1.65; }
.post-update-note strong { color: var(--headline); }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 34px 0; font-family: "Inter", sans-serif; font-size: .8rem; }
.post-tags > span { color: var(--headline); font-weight: 800; }
.post-tags a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 700; }
.post-tags a:hover { border-color: var(--amber); color: var(--headline); text-decoration: none; }

.post-share-rail { position: sticky; top: calc(var(--header-offset) + 22px); display: grid; justify-items: center; gap: 10px; }
.post-share-rail > span { color: var(--text-muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px; }
.post-share-rail a,
.post-share-rail button { display: grid; place-items: center; width: 39px; height: 39px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--headline); box-shadow: var(--shadow-sm); transition: transform var(--transition), color var(--transition), border-color var(--transition); }
.post-share-rail svg { width: 16px; height: 16px; fill: currentColor; }
.post-share-rail a:hover,
.post-share-rail button:hover { transform: translateY(-2px); border-color: var(--indigo); color: var(--indigo); }

.post-sidebar { display: grid; gap: 20px; }
.post-sidebar__card { overflow: hidden; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.post-sidebar__card h2 { margin: 5px 0 18px; font-size: 1.35rem; }
.post-toc { position: sticky; top: calc(var(--header-offset) + 20px); }
.post-toc nav { display: grid; gap: 5px; }
.post-toc a { position: relative; padding: 10px 10px 10px 20px; border-radius: 9px; color: var(--text); font-size: .82rem; font-weight: 700; transition: background var(--transition), color var(--transition); }
.post-toc a::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--line); transform: translateY(-50%); }
.post-toc a:hover,
.post-toc a.is-active { background: var(--surface-muted); color: var(--indigo); }
.post-toc a.is-active::before { background: var(--amber); }
.sidebar-card__heading h2 { margin-bottom: 10px; }
.sidebar-news-list { display: grid; }
.sidebar-news-list a { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sidebar-news-list a:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-news-list span { color: var(--amber-hover); font-size: .68rem; font-weight: 800; }
.sidebar-news-list strong { color: var(--headline); font-family: "Playfair Display", Georgia, serif; font-size: .96rem; line-height: 1.38; }
.sidebar-news-list a:hover strong { color: var(--indigo); }
.post-sidebar__newsletter { color: #dbe5f4; background: linear-gradient(145deg, var(--midnight), #27346d); border-color: rgba(255,255,255,.08); }
.post-sidebar__newsletter h2 { color: #fff; }
.post-sidebar__newsletter p { color: #cbd5e1; font-size: .83rem; }
.post-sidebar__newsletter .button { width: 100%; }

.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 22px; margin: 42px 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); font-family: "Inter", sans-serif; }
.author-box > img { width: 96px; height: 96px; border-radius: 50%; }
.author-box h2 { margin: 5px 0 7px; padding: 0; font-size: 1.55rem; }
.author-box p { margin-bottom: 10px; font-size: .87rem; line-height: 1.65; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 42px; font-family: "Inter", sans-serif; }
.post-navigation__item { display: grid; gap: 8px; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--headline) !important; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.post-navigation__item span { color: var(--text-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.post-navigation__item strong { align-self: end; font-family: "Playfair Display", Georgia, serif; line-height: 1.35; }
.post-navigation__item--next { text-align: right; }
.post-navigation__item:hover { transform: translateY(-3px); border-color: rgba(67,56,202,.36); box-shadow: var(--shadow-sm); text-decoration: none !important; }

.related-posts { border-top: 1px solid var(--line); background: var(--surface-muted); }
.related-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.related-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.related-card__image { overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-muted); }
.related-card__image img { height: 100%; transition: transform 450ms ease; }
.related-card:hover .related-card__image img { transform: scale(1.055); }
.related-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 19px; }
.related-card h3 { margin: 13px 0 18px; font-size: 1.22rem; }
.related-card h3 a:hover { color: var(--indigo); }
.related-card .article-meta { margin-top: auto; }

.comments-section { padding-top: 70px; }
.comments-shell { max-width: 920px; }
.comments-header { max-width: 680px; margin-bottom: 24px; }
.comments-header h2 { margin: 5px 0 8px; }
.comment-form { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.comment-form label { display: grid; gap: 7px; color: var(--headline); font-size: .78rem; font-weight: 800; }
.comment-form input,
.comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--background); color: var(--headline); outline: none; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.comment-form input { height: 46px; padding: 0 13px; }
.comment-form textarea { min-height: 135px; padding: 12px 13px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(67,56,202,.12); background: var(--surface); }
.comment-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.comment-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.comment-consent { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; color: var(--text) !important; font-weight: 600 !important; }
.comment-consent input { width: 17px; height: 17px; accent-color: var(--indigo); }
.comment-list { display: grid; gap: 14px; margin-top: 20px; }
.comment-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.comment-item__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--midnight); color: var(--amber); font-weight: 900; }
.comment-item h3 { margin: 0 0 3px; font-family: "Inter", sans-serif; font-size: .92rem; }
.comment-item time { color: var(--text-muted); font-size: .7rem; }
.comment-item p { margin: 8px 0 0; font-size: .87rem; }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 46px minmax(0, 1fr) 270px; gap: 25px; }
  .post-hero h1 { font-size: clamp(2.35rem, 6vw, 4.5rem); }
}

@media (max-width: 900px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); max-width: 790px; }
  .post-share-rail { position: static; display: flex; justify-content: flex-start; order: 2; }
  .post-share-rail > span { writing-mode: initial; transform: none; margin: 0 4px 0 0; align-self: center; }
  .post-content { order: 1; }
  .post-sidebar { order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-toc { position: static; }
  .post-sidebar__newsletter { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .post-hero { padding-top: 20px; }
  .post-hero__inner { padding: 26px 21px; border-radius: 18px; }
  .post-hero__inner::after { display: none; }
  .post-hero h1 { margin-top: 15px; font-size: clamp(2.05rem, 10.7vw, 3.35rem); }
  .post-deck { font-size: 1.08rem; }
  .post-byline { align-items: flex-start; }
  .post-meta { gap: 5px; }
  .post-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .post-action--primary { grid-column: 1 / -1; }
  .post-featured-media { width: 100%; margin-top: 22px; }
  .post-featured-media__image { border-radius: 0; }
  .post-featured-media figcaption { width: min(100% - 32px, var(--container)); margin-inline: auto; }
  .post-layout { padding-top: 38px; padding-bottom: 52px; }
  .post-content { font-size: 1.04rem; line-height: 1.82; }
  .post-content h2 { margin-top: 42px; }
  .post-content blockquote { padding: 28px 20px 25px 29px; }
  .article-key-points { padding: 22px 20px; }
  .author-box { grid-template-columns: 72px 1fr; padding: 21px; }
  .author-box > img { width: 72px; height: 72px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation__item--next { text-align: left; }
  .post-sidebar { grid-template-columns: 1fr; }
  .post-sidebar__newsletter { grid-column: auto; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .comment-form__grid { grid-template-columns: 1fr; }
  .comment-form__footer { align-items: stretch; flex-direction: column; }
  .comment-form__footer .button { width: 100%; }
}

@media (max-width: 430px) {
  .post-actions { grid-template-columns: 1fr; }
  .post-action--primary { grid-column: auto; }
  .post-byline img { width: 44px; height: 44px; flex-basis: 44px; }
  .author-box { grid-template-columns: 1fr; }
  .author-box > img { width: 82px; height: 82px; }
}

@media print {
  .site-header,
  .breaking-news-highlight,
  .post-actions,
  .post-share-rail,
  .post-sidebar,
  .related-posts,
  .comments-section,
  .newsletter,
  .site-footer,
  .back-to-top,
  .toast,
  .reading-progress,
  .post-navigation { display: none !important; }
  body { background: #fff; color: #111; }
  .container { width: 100%; max-width: none; }
  .post-hero__inner { padding: 0; border: 0; box-shadow: none; }
  .post-hero__inner::after { display: none; }
  .post-featured-media__image { box-shadow: none; }
  .post-layout { display: block; padding-top: 24px; }
  .post-content { max-width: none; color: #111; font-size: 11pt; }
  .post-content h2 { break-after: avoid; }
  .post-content img { max-height: 5in; }
}


/* WordPress integration */
html { scroll-behavior: smooth; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 64px; width: auto; }
.brand-wrap { min-width: 0; }
.brand-wrap img { image-rendering: auto; }
.primary-nav .menu { display: contents; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu-item { display: inline-flex; }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--amber); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; top: 8px; left: 8px; z-index: 100000; padding: .75rem 1rem; background: #fff; color: #111827; }
.entry-content > * { max-width: 100%; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.35rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2.2rem 0 1rem; }
.entry-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--amber); background: var(--surface-muted); border-radius: 0 12px 12px 0; }
.entry-content img { border-radius: 16px; height: auto; }
.entry-content .alignwide { margin-left: min(-8vw, -80px); margin-right: min(-8vw, -80px); max-width: calc(100% + min(16vw, 160px)); }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption, .gallery-caption { color: var(--text-muted); font-size: .875rem; }
.wp-block-embed iframe { max-width: 100%; }
.sticky { position: relative; }
.bypostauthor { outline: 0; }

.archive-shell { padding: 2.5rem 0 5rem; }
.archive-header { margin-bottom: 2rem; }
.archive-header h1 { margin: .25rem 0 .75rem; }
.archive-description { color: var(--text-muted); max-width: 760px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.news-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; min-height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card__image { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-muted); }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-card__image img { transform: scale(1.05); }
.news-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.news-card__body h2, .news-card__body h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: .7rem 0; }
.news-card__body h2 a, .news-card__body h3 a { color: var(--headline); text-decoration: none; }
.news-card__excerpt { color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__footer { margin-top: auto; padding-top: 1rem; }
.pagination { margin-top: 2.5rem; }
.pagination .page-numbers { display: flex; gap: .5rem; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: .5rem .75rem; border-radius: 10px; background: var(--surface); color: var(--headline); text-decoration: none; box-shadow: var(--shadow-sm); }
.pagination .current { background: var(--indigo); color: #fff; }

.single-post-page { position: relative; }
.single-post-shell { padding: 2.5rem 0 5rem; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.post-main { min-width: 0; }
.post-header { margin-bottom: 1.75rem; }
.post-header h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.05; margin: .85rem 0 1.25rem; }
.post-deck { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 850px; }
.post-hero-image { margin: 1.75rem 0 2rem; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.post-hero-image img { display: block; width: 100%; height: auto; }
.post-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin: 1rem 0 2rem; }
.post-action { border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem; background: var(--surface); color: var(--headline); display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.post-action svg { width: 18px; height: 18px; fill: currentColor; }
.post-action--primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.post-sidebar { position: sticky; top: 165px; }
.post-sidebar .widget + .widget { margin-top: 1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li + li { margin-top: .7rem; }
.widget a { color: var(--headline); text-decoration: none; }
.widget-title { font-size: 1.25rem; margin: 0 0 1rem; }
.post-toc a { display: block; padding: .4rem 0; color: var(--text-muted); text-decoration: none; }
.post-toc a:hover { color: var(--indigo); }
.author-box { margin-top: 2.5rem; padding: 1.5rem; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); display: flex; gap: 1rem; }
.author-box img { border-radius: 50%; width: 72px; height: 72px; }
.post-navigation { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; padding: 1.25rem; background: var(--surface); border-radius: 14px; color: var(--headline); text-decoration: none; box-shadow: var(--shadow-sm); }
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1.25rem; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; background: var(--surface); color: var(--text); }
.comment-form .submit { border: 0; border-radius: 999px; background: var(--indigo); color: #fff; padding: .85rem 1.25rem; font-weight: 700; cursor: pointer; }
.reading-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 9999; background: transparent; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--amber); }

.category-section .section-heading { margin-bottom: 1.25rem; }
.category-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; }
.category-lead { border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.category-lead__image { aspect-ratio: 16/10; overflow: hidden; }
.category-lead__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-lead:hover img { transform: scale(1.04); }
.category-lead__body { padding: 1.4rem; }
.category-lead__body h3 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: .75rem 0; }
.category-secondary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.category-mini { display: grid; grid-template-columns: 110px 1fr; gap: .9rem; align-items: center; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.category-mini img { width: 110px; height: 100%; min-height: 110px; object-fit: cover; }
.category-mini__body { padding: .85rem .85rem .85rem 0; }
.category-mini h4 { margin: .35rem 0; font-size: 1rem; }
.category-mini a { color: var(--headline); text-decoration: none; }

.footer-menu, .footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li + li { margin-top: .65rem; }
.footer-contact address { font-style: normal; }
.footer-contact a { color: inherit; }
.no-results { padding: 3rem; text-align: center; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); }

@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .category-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .category-secondary { grid-template-columns: 1fr; }
  .category-mini { grid-template-columns: 100px 1fr; }
  .author-box { flex-direction: column; }
}
@media (max-width: 420px) {
  .post-header h1 { font-size: 2.1rem; }
  .category-mini { grid-template-columns: 88px 1fr; }
  .category-mini img { width: 88px; }
}
.archive-search { display: flex; gap: .65rem; max-width: 620px; margin: 1.5rem auto; }
.archive-search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: .85rem 1.1rem; background: var(--surface); color: var(--headline); }
@media (max-width: 520px) { .archive-search { flex-direction: column; } }


/* Stories Shaping the Day — hardened layout repair */
.hero .container,
.hero-grid,
.hero-side,
.hero-card,
.hero-card__link,
.hero-card__content { min-width: 0; }

.hero-grid {
  align-items: stretch;
  grid-auto-rows: minmax(0, auto);
}

.hero-side {
  min-height: 0;
}

.hero-card {
  isolation: isolate;
  width: 100%;
}

.hero-card__link {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-card__link > img,
.hero-card > img,
.hero-card .wp-post-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center;
}

.hero-card__scrim {
  z-index: 1;
  pointer-events: none;
}

.hero-card__content {
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.hero-card__content h2,
.hero-card__content h3,
.hero-card__content p {
  overflow-wrap: anywhere;
}

@media (min-width: 861px) {
  .hero-grid { min-height: 575px; }
  .hero-card--lead { height: 100%; min-height: 575px; }
  .hero-side { height: 575px; }
  .hero-card--secondary { min-height: 0; height: 100%; }
}

@media (max-width: 860px) {
  .hero-grid { min-height: 0; }
  .hero-side { height: auto; }
  .hero-card--secondary { min-height: 280px; }
}

@media (max-width: 640px) {
  .hero-card--secondary { min-height: 300px; }
}

/* =========================================================
   Hero stability patch — dynamic/imported editorial content
   Prevent long headlines and restored media from stretching
   the "Stories shaping the day" grid beyond its columns.
   ========================================================= */
.hero-grid,
.hero-grid > *,
.hero-side,
.hero-side > *,
.hero-card,
.hero-card__link,
.hero-card__content {
  min-width: 0;
}

.hero-grid {
  align-items: stretch;
}

.hero-card__link {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-card__content {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-card h2,
.hero-card h3,
.hero-card p,
.hero-card .article-meta {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-card h2,
.hero-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.hero-card h2 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.hero-card h3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.hero-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.hero-card img,
.hero-card .wp-post-image {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 861px) {
  .hero-side {
    align-self: stretch;
    height: 100%;
  }

  .hero-card--secondary {
    min-height: 0;
  }

  .hero-card--secondary .hero-card__content {
    padding: 24px;
  }

  .hero-card--secondary h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  }
}

@media (max-width: 860px) {
  .hero-side,
  .hero-side > * {
    min-width: 0;
  }
}


/* =========================================================
   Stories shaping the day — media and grid stability fix
   Keeps the first/lead images inside their cards even when
   image optimization/CDN plugins add picture/span wrappers.
   ========================================================= */
.hero-grid,
.hero-grid > *,
.hero-side,
.hero-side > *,
.hero-card,
.hero-card__link,
.hero-card__media,
.hero-card__content {
  min-width: 0;
}

.hero-card__link {
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #0f172a;
  contain: paint;
}

.hero-card__media > :where(picture, span, div),
.hero-card__media picture,
.hero-card__media picture > :where(span, div) {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.hero-card__media img,
.hero-card__media .hero-card__image,
.hero-card__media .wp-post-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.hero-card__scrim { z-index: 1; }
.hero-card__content { z-index: 2; width: 100%; max-width: 100%; overflow: hidden; }

@media (min-width: 861px) {
  .hero-grid {
    grid-template-rows: 575px;
    min-height: 575px;
  }

  .hero-card--lead {
    height: 575px;
    min-height: 0;
  }

  .hero-side {
    height: 575px;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .hero-card--secondary {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-rows: none;
    min-height: 0;
  }

  .hero-card--lead {
    height: auto;
    min-height: 510px;
  }

  .hero-side {
    height: auto;
    grid-template-rows: none;
  }

  .hero-card--secondary {
    height: auto;
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .hero-card--lead { min-height: 460px; }
  .hero-card--secondary { min-height: 300px; }
}

@media (max-width: 420px) {
  .hero-card--lead { min-height: 430px; }
}

/* =========================================================
   Stories shaping the day — final content-flow containment
   The lead card can receive long restored headlines/excerpts
   and third-party CSS can alter child positioning. Anchor the
   editorial overlay to the bottom and reset direct children so
   the first story never starts above or outside the image card.
   ========================================================= */
.hero-card__link {
  display: block !important;
}

.hero-card__content {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: clamp(22px, 3vw, 36px) !important;
  overflow: hidden !important;
  transform: none !important;
}

.hero-card__content > .category-badge,
.hero-card__content > h2,
.hero-card__content > h3,
.hero-card__content > p,
.hero-card__content > .article-meta {
  position: static !important;
  inset: auto !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  transform: none !important;
}

.hero-card__content > .category-badge {
  display: inline-flex !important;
  margin: 0 0 12px !important;
  vertical-align: top;
}

.hero-card__content > h2,
.hero-card__content > h3 {
  display: -webkit-box !important;
  margin: 0 0 10px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  text-wrap: balance;
}

.hero-card--lead .hero-card__content > h2 {
  max-width: 760px !important;
  font-size: clamp(2rem, 3.15vw, 3.2rem) !important;
  line-height: 1.08 !important;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.hero-card--secondary .hero-card__content > h3 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.hero-card__content > p {
  display: -webkit-box !important;
  max-width: 680px !important;
  margin: 0 0 14px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.hero-card__content > .article-meta {
  display: flex !important;
  margin: 0 !important;
}

@media (max-width: 640px) {
  .hero-card__content {
    padding: 22px !important;
  }

  .hero-card--lead .hero-card__content > h2 {
    font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .hero-card--lead .hero-card__content > p {
    display: none !important;
  }
}

/* =========================================================
   Stories shaping the day — isolated editorial overlay v1.0.4
   Dedicated hero classes prevent generic article/page-builder
   rules from reordering or positioning the lead-card text.
   ========================================================= */
.hero-card.hero-card--lead .hero-card__link > .hero-card__content--lead,
.hero-card.hero-card--secondary .hero-card__link > .hero-card__content--secondary {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100% - 18px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  transform: none !important;
}

.hero-card.hero-card--lead .hero-card__content--lead {
  padding: 34px 36px 32px !important;
}

.hero-card.hero-card--secondary .hero-card__content--secondary {
  padding: 22px 24px !important;
}

.hero-card__content--lead > *,
.hero-card__content--secondary > * {
  position: static !important;
  inset: auto !important;
  float: none !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
}

.hero-card__badge-row {
  order: 1 !important;
  display: block !important;
  margin: 0 0 12px !important;
  line-height: 1 !important;
}

.hero-card__badge-row > .category-badge {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  margin: 0 !important;
  transform: none !important;
}

.hero-card__title {
  order: 2 !important;
  display: -webkit-box !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  overflow: hidden !important;
  color: #fff !important;
  font-family: "Playfair Display", Georgia, serif !important;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  transform: none !important;
}

.hero-card__title--lead {
  max-width: 790px !important;
  font-size: clamp(2.05rem, 2.8vw, 3.05rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -.032em !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
}

.hero-card__title--secondary {
  font-size: clamp(1.28rem, 1.55vw, 1.72rem) !important;
  line-height: 1.1 !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
}

.hero-card__excerpt {
  order: 3 !important;
  display: -webkit-box !important;
  max-width: 690px !important;
  margin: 0 0 14px !important;
  overflow: hidden !important;
  color: rgba(255,255,255,.84) !important;
  font-size: .96rem !important;
  line-height: 1.55 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
}

.hero-card__meta {
  order: 4 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px 14px !important;
  margin: 0 !important;
  color: rgba(255,255,255,.78) !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: .74rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.hero-card__meta > span {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap;
  transform: none !important;
}

.hero-card__meta > span:not(:first-child)::before {
  content: "•";
  margin-right: 9px;
  color: rgba(255,255,255,.55);
}

.hero-card__author { font-weight: 700 !important; }
.hero-card--lead .hero-card__scrim {
  background: linear-gradient(to top, rgba(4,8,18,.97) 0%, rgba(4,8,18,.74) 34%, rgba(4,8,18,.12) 72%) !important;
}

@media (max-width: 860px) {
  .hero-card.hero-card--lead .hero-card__content--lead {
    padding: 28px !important;
  }
  .hero-card__title--lead {
    font-size: clamp(2rem, 5.8vw, 2.75rem) !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
  }
}

@media (max-width: 640px) {
  .hero-card.hero-card--lead .hero-card__content--lead,
  .hero-card.hero-card--secondary .hero-card__content--secondary {
    padding: 22px !important;
  }
  .hero-card__title--lead {
    font-size: clamp(1.78rem, 8vw, 2.3rem) !important;
  }
  .hero-card__excerpt { display: none !important; }
}

/* =========================================================
   1.0.5 — Production single-post layout hardening
   ========================================================= */
.single-post-page {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

body.admin-bar .reading-progress { top: 32px; }

.single-post-page .breadcrumb {
  padding-top: clamp(18px, 3vw, 28px);
  padding-bottom: 0;
}

.single-post-page .breadcrumb ol {
  min-width: 0;
  flex-wrap: wrap;
}

.single-post-page .breadcrumb li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.single-post-page .breadcrumb li[aria-current="page"] {
  max-width: min(56ch, 100%);
  color: var(--text-muted);
}

.single-post-shell {
  padding-block: clamp(28px, 4vw, 52px) clamp(64px, 8vw, 96px);
}

.single-post-page .post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
  gap: clamp(32px, 4vw, 56px);
  padding: 0;
}

.single-post-page .post-main {
  min-width: 0;
  max-width: 100%;
}

.single-post-page .post-header {
  max-width: 930px;
  margin: 0 0 clamp(24px, 3vw, 36px);
}

.single-post-page .post-header h1 {
  max-width: 100%;
  margin: clamp(14px, 2vw, 20px) 0 clamp(16px, 2vw, 24px);
  color: var(--headline);
  font-size: clamp(2.35rem, 5.4vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.single-post-page .post-deck {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.08rem, 1.9vw, 1.38rem);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.single-post-page .post-header .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.5;
}

.single-post-page .post-header .article-meta span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  overflow-wrap: anywhere;
}

.single-post-page .post-header .article-meta span:not(:first-child)::before {
  content: "•";
  margin-right: 12px;
  color: var(--amber);
}

.single-post-page .post-header .article-meta a {
  color: var(--headline);
  font-weight: 700;
}

.single-post-page .post-hero-image {
  width: 100%;
  max-width: 100%;
  margin: 0 0 clamp(24px, 3vw, 36px);
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.single-post-page .post-hero-image__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 22px);
  background: var(--surface-muted);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.single-post-page .post-hero-image__media > :where(picture, span, div),
.single-post-page .post-hero-image__media picture,
.single-post-page .post-hero-image__media picture > :where(span, div) {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.single-post-page .post-hero-image__media img,
.single-post-page .post-hero-image__img,
.single-post-page .post-hero-image__media .wp-post-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.single-post-page .post-hero-image figcaption {
  max-width: 92%;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
}

.single-post-page .post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.single-post-page .post-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--headline);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.single-post-page .post-action:hover {
  transform: translateY(-2px);
  border-color: var(--indigo);
  color: var(--indigo);
  box-shadow: var(--shadow-sm);
}

.single-post-page .post-action:focus-visible {
  outline: 3px solid rgba(67, 56, 202, .25);
  outline-offset: 3px;
}

.single-post-page .post-action--primary,
.single-post-page .post-action--primary:hover {
  border-color: var(--indigo);
  background: var(--indigo);
  color: #fff;
}

.single-post-page .entry-content {
  min-width: 0;
  max-width: 820px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.86;
  overflow-wrap: anywhere;
}

.single-post-page .entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.single-post-page .entry-content > * {
  max-width: 100%;
}

.single-post-page .entry-content > *:first-child {
  margin-top: 0;
}

.single-post-page .entry-content p,
.single-post-page .entry-content ul,
.single-post-page .entry-content ol {
  margin-top: 0;
  margin-bottom: 1.45em;
}

.single-post-page .entry-content ul,
.single-post-page .entry-content ol {
  padding-left: 1.35em;
}

.single-post-page .entry-content li + li {
  margin-top: .48em;
}

.single-post-page .entry-content h2,
.single-post-page .entry-content h3,
.single-post-page .entry-content h4,
.single-post-page .entry-content h5,
.single-post-page .entry-content h6 {
  max-width: 100%;
  color: var(--headline);
  overflow-wrap: anywhere;
  scroll-margin-top: calc(var(--header-offset) + 28px);
  text-wrap: balance;
}

.single-post-page .entry-content h2 {
  margin: 2.15em 0 .75em;
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  line-height: 1.16;
}

.single-post-page .entry-content h3 {
  margin: 1.9em 0 .7em;
  font-size: clamp(1.42rem, 2.4vw, 1.95rem);
  line-height: 1.22;
}

.single-post-page .entry-content h4 {
  margin: 1.7em 0 .65em;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.28;
}

.single-post-page .entry-content a {
  color: var(--indigo);
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
}

.single-post-page .entry-content a:hover {
  text-decoration: underline;
}

.single-post-page .entry-content :where(img, video, audio) {
  max-width: 100%;
  height: auto;
}

.single-post-page .entry-content :where(figure, .wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video, .wp-block-audio, .wp-block-table) {
  max-width: 100%;
  margin-top: clamp(28px, 4vw, 42px);
  margin-bottom: clamp(28px, 4vw, 42px);
}

.single-post-page .entry-content figure {
  margin-left: 0;
  margin-right: 0;
}

.single-post-page .entry-content figure > :where(a, picture, span, div) {
  max-width: 100%;
}

.single-post-page .entry-content figure img,
.single-post-page .entry-content .wp-block-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: clamp(10px, 1.5vw, 16px);
}

.single-post-page .entry-content figcaption,
.single-post-page .entry-content .wp-caption-text,
.single-post-page .entry-content .gallery-caption {
  max-width: 92%;
  margin: 10px auto 0;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
}

.single-post-page .entry-content .alignwide,
.single-post-page .entry-content .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.single-post-page .entry-content .alignleft {
  float: left;
  max-width: min(46%, 360px);
  margin: .45rem 1.5rem 1rem 0;
}

.single-post-page .entry-content .alignright {
  float: right;
  max-width: min(46%, 360px);
  margin: .45rem 0 1rem 1.5rem;
}

.single-post-page .entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.single-post-page .entry-content blockquote,
.single-post-page .entry-content .wp-block-quote {
  position: relative;
  margin: clamp(32px, 5vw, 48px) 0;
  padding: clamp(24px, 4vw, 34px) clamp(24px, 4vw, 38px);
  border: 0;
  border-left: 5px solid var(--amber);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, .09), rgba(67, 56, 202, .06));
  color: var(--headline);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.16rem, 2vw, 1.48rem);
  font-weight: 700;
  line-height: 1.56;
}

.single-post-page .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.single-post-page .entry-content blockquote cite {
  display: block;
  margin-top: 14px;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: .78rem;
  font-style: normal;
  font-weight: 700;
}

.single-post-page .entry-content pre,
.single-post-page .entry-content .wp-block-code {
  max-width: 100%;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: .88rem;
  line-height: 1.65;
  tab-size: 2;
}

.single-post-page .entry-content code {
  padding: .12em .35em;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--headline);
  font-size: .9em;
}

.single-post-page .entry-content pre code,
.single-post-page .entry-content .wp-block-code code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.single-post-page .entry-content .wp-block-table,
.single-post-page .entry-content .table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.single-post-page .entry-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: .88rem;
}

.single-post-page .entry-content th,
.single-post-page .entry-content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.single-post-page .entry-content th {
  background: var(--surface-muted);
  color: var(--headline);
  font-weight: 800;
}

.single-post-page .entry-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.single-post-page .entry-content .wp-block-embed-youtube .wp-block-embed__wrapper,
.single-post-page .entry-content .wp-block-embed-vimeo .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.single-post-page .entry-content .wp-block-embed-youtube iframe,
.single-post-page .entry-content .wp-block-embed-vimeo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.single-post-page .entry-content .wp-block-gallery,
.single-post-page .entry-content .blocks-gallery-grid,
.single-post-page .entry-content .gallery {
  gap: 12px;
}

.single-post-page .entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-post-page .entry-content .gallery-columns-1 { grid-template-columns: 1fr; }
.single-post-page .entry-content .gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.single-post-page .entry-content .gallery-columns-4,
.single-post-page .entry-content .gallery-columns-5,
.single-post-page .entry-content .gallery-columns-6,
.single-post-page .entry-content .gallery-columns-7,
.single-post-page .entry-content .gallery-columns-8,
.single-post-page .entry-content .gallery-columns-9 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.single-post-page .entry-content .gallery-item {
  width: auto;
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
}

.single-post-page .entry-content hr,
.single-post-page .entry-content .wp-block-separator {
  margin: clamp(34px, 5vw, 52px) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.single-post-page .page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 36px 0;
  font-family: "Inter", system-ui, sans-serif;
}

.single-post-page .page-links__label {
  color: var(--headline);
  font-weight: 800;
}

.single-post-page .page-links a,
.single-post-page .page-links > span:not(.page-links__label) {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--headline);
  text-decoration: none;
}

.single-post-page .after-content-widgets {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-top: 34px;
}

.single-post-page .entry-footer {
  max-width: 820px;
  margin-top: 36px;
}

.single-post-page .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.single-post-page .tag-cloud__label {
  margin-right: 3px;
  color: var(--headline);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.single-post-page .author-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  max-width: 820px;
  margin: clamp(42px, 6vw, 60px) 0 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: "Inter", system-ui, sans-serif;
}

.single-post-page .author-box > img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.single-post-page .author-box h2 {
  margin: 5px 0 8px;
  padding: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}

.single-post-page .author-box p {
  margin: 0 0 10px;
  font-size: .88rem;
  line-height: 1.7;
}

.single-post-page .post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin-top: 34px;
  font-family: "Inter", system-ui, sans-serif;
}

.single-post-page .post-navigation__item {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--headline);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.single-post-page .post-navigation__item:only-child {
  grid-column: 1 / -1;
  max-width: 50%;
}

.single-post-page .post-navigation__item span {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.single-post-page .post-navigation__item strong {
  align-self: end;
  min-width: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.single-post-page .post-navigation__item--next {
  text-align: right;
}

.single-post-page .post-navigation__item:hover {
  transform: translateY(-3px);
  border-color: rgba(67, 56, 202, .36);
  box-shadow: var(--shadow-md);
}

.single-post-page .comments-area {
  max-width: 820px;
  margin-top: clamp(46px, 6vw, 66px);
}

.single-post-page .comments-title,
.single-post-page .comment-reply-title {
  margin: 0 0 20px;
  color: var(--headline);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.single-post-page .comment-list {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.single-post-page .comment-list .children {
  display: grid;
  gap: 14px;
  margin: 14px 0 0 clamp(16px, 5vw, 44px);
  padding: 0;
  list-style: none;
}

.single-post-page .comment-body {
  margin: 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.single-post-page .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-post-page .comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.single-post-page .comment-author .fn {
  color: var(--headline);
  font-style: normal;
  font-weight: 800;
}

.single-post-page .comment-metadata {
  margin: 6px 0 12px 54px;
  color: var(--text-muted);
  font-size: .72rem;
}

.single-post-page .comment-content p:last-child {
  margin-bottom: 0;
}

.single-post-page .reply {
  margin-top: 12px;
}

.single-post-page .reply a {
  color: var(--indigo);
  font-size: .76rem;
  font-weight: 800;
}

.single-post-page .comment-respond {
  margin-top: 30px;
}

.single-post-page .comment-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.single-post-page .comment-form p {
  margin: 0;
}

.single-post-page .comment-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--headline);
  font-size: .78rem;
  font-weight: 800;
}

.single-post-page .comment-form input:not([type="checkbox"]):not([type="submit"]),
.single-post-page .comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--background);
  color: var(--headline);
  font: inherit;
  outline: 0;
}

.single-post-page .comment-form input:not([type="checkbox"]):not([type="submit"]) {
  min-height: 46px;
  padding: 0 13px;
}

.single-post-page .comment-form textarea {
  min-height: 150px;
  padding: 12px 13px;
  resize: vertical;
}

.single-post-page .comment-form input:focus,
.single-post-page .comment-form textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, .12);
}

.single-post-page .comment-form-cookies-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.single-post-page .comment-form-cookies-consent label {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.single-post-page .comment-form .submit {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.single-post-page .post-sidebar {
  position: static;
  display: grid;
  min-width: 0;
  gap: 18px;
  align-self: start;
}

.single-post-page .post-sidebar .widget,
.single-post-page .post-sidebar .sidebar-card {
  min-width: 0;
  margin: 0;
  padding: 22px;
  overflow: hidden;
}

.single-post-page .post-sidebar .widget-title {
  margin: 0 0 14px;
  color: var(--headline);
  font-size: 1.28rem;
  line-height: 1.25;
}

.single-post-page .post-sidebar .post-toc {
  position: sticky;
  top: calc(var(--header-offset) + 20px);
  z-index: 2;
}

.single-post-page .post-sidebar ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-post-page .post-sidebar li {
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.single-post-page .post-sidebar li:last-child {
  border-bottom: 0;
}

.single-post-page .post-sidebar li > a {
  display: block;
  min-width: 0;
  padding: 11px 0;
  color: var(--headline);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.single-post-page .post-sidebar li > a:hover {
  color: var(--indigo);
}

.single-post-page .post-toc nav {
  display: grid;
  gap: 4px;
  max-height: min(52vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.single-post-page .post-toc a {
  position: relative;
  display: block;
  padding: 9px 10px 9px 20px;
  border-radius: 8px;
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.single-post-page .post-toc a::before {
  content: "";
  position: absolute;
  top: .95em;
  left: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

.single-post-page .post-toc a:hover,
.single-post-page .post-toc a.is-active {
  background: var(--surface-muted);
  color: var(--indigo);
}

.single-post-page .post-toc a.is-active::before {
  background: var(--amber);
}

.single-post-page .related-posts {
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.single-post-page .related-posts__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .single-post-page .post-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
    gap: 34px;
  }
}

@media (max-width: 960px) {
  .single-post-page .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-post-page .post-main,
  .single-post-page .entry-content,
  .single-post-page .after-content-widgets,
  .single-post-page .entry-footer,
  .single-post-page .author-box,
  .single-post-page .post-navigation,
  .single-post-page .comments-area {
    max-width: 100%;
  }

  .single-post-page .post-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-post-page .post-sidebar .post-toc {
    position: static;
    grid-column: 1 / -1;
  }

  .single-post-page .post-toc nav {
    max-height: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .reading-progress { top: 46px; }
}

@media (max-width: 700px) {
  .single-post-shell {
    padding-top: 24px;
  }

  .single-post-page .post-header h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
    line-height: 1.08;
  }

  .single-post-page .post-hero-image__media {
    aspect-ratio: 4 / 3;
  }

  .single-post-page .entry-content {
    font-size: 1.04rem;
    line-height: 1.78;
  }

  .single-post-page .entry-content .alignleft,
  .single-post-page .entry-content .alignright {
    float: none;
    max-width: 100%;
    margin: 28px 0;
  }

  .single-post-page .entry-content .gallery-columns-3,
  .single-post-page .entry-content .gallery-columns-4,
  .single-post-page .entry-content .gallery-columns-5,
  .single-post-page .entry-content .gallery-columns-6,
  .single-post-page .entry-content .gallery-columns-7,
  .single-post-page .entry-content .gallery-columns-8,
  .single-post-page .entry-content .gallery-columns-9 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-post-page .author-box {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
  }

  .single-post-page .author-box > img {
    width: 76px;
    height: 76px;
  }

  .single-post-page .post-navigation {
    grid-template-columns: 1fr;
  }

  .single-post-page .post-navigation__item:only-child {
    grid-column: auto;
    max-width: none;
  }

  .single-post-page .post-navigation__item--next {
    text-align: left;
  }

  .single-post-page .post-sidebar {
    grid-template-columns: 1fr;
  }

  .single-post-page .post-sidebar .post-toc {
    grid-column: auto;
  }

  .single-post-page .related-posts__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .single-post-page .post-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .single-post-page .post-action--primary {
    grid-column: 1 / -1;
  }

  .single-post-page .post-action {
    width: 100%;
  }

  .single-post-page .post-header .article-meta {
    display: grid;
    gap: 4px;
  }

  .single-post-page .post-header .article-meta span:not(:first-child)::before {
    display: none;
  }

  .single-post-page .author-box {
    grid-template-columns: 1fr;
  }

  .single-post-page .entry-content .gallery,
  .single-post-page .entry-content .gallery-columns-2,
  .single-post-page .entry-content .gallery-columns-3,
  .single-post-page .entry-content .gallery-columns-4,
  .single-post-page .entry-content .gallery-columns-5,
  .single-post-page .entry-content .gallery-columns-6,
  .single-post-page .entry-content .gallery-columns-7,
  .single-post-page .entry-content .gallery-columns-8,
  .single-post-page .entry-content .gallery-columns-9 {
    grid-template-columns: 1fr;
  }

  .single-post-page .comment-list .children {
    margin-left: 12px;
  }
}

@media print {
  .single-post-page .reading-progress,
  .single-post-page .breadcrumb,
  .single-post-page .post-actions,
  .single-post-page .post-sidebar,
  .single-post-page .entry-footer,
  .single-post-page .author-box,
  .single-post-page .post-navigation,
  .single-post-page .comments-area,
  .single-post-page .related-posts,
  .single-post-page + .newsletter,
  .single-post-page .newsletter {
    display: none !important;
  }

  .single-post-page,
  .single-post-shell,
  .single-post-page .post-layout,
  .single-post-page .post-main,
  .single-post-page .entry-content {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    overflow: visible;
    color: #111;
    background: #fff;
    box-shadow: none;
  }

  .single-post-page .post-hero-image__media {
    max-height: 5.5in;
    box-shadow: none;
  }

  .single-post-page .entry-content a {
    color: #111;
    text-decoration: underline;
  }

  .single-post-page .entry-content h2,
  .single-post-page .entry-content h3,
  .single-post-page .entry-content figure,
  .single-post-page .entry-content table {
    break-inside: avoid;
  }
}
.single-post-page .post-toc a.is-subheading {
  padding-left: 32px;
  color: var(--text-muted);
  font-size: .76rem;
}

.single-post-page .post-toc a.is-subheading::before {
  left: 19px;
  width: 4px;
  height: 4px;
}
.single-post-page .post-header .article-meta span:nth-child(3) {
  display: inline-flex;
}

/* =========================================================
   1.0.7 — Premium article presentation and editorial sidebar
   ========================================================= */
.single-post-page .post-header {
  position: relative;
  max-width: 100%;
  margin-bottom: clamp(26px, 3vw, 38px);
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(67, 56, 202, .13);
  border-radius: clamp(18px, 2.3vw, 28px);
  background:
    radial-gradient(circle at 100% 0, rgba(245, 158, 11, .14), transparent 30%),
    linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-muted) 56%, var(--surface)));
  box-shadow: 0 24px 60px rgba(15, 23, 42, .09);
  isolation: isolate;
}

.single-post-page .post-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--amber), var(--indigo));
}

.single-post-page .post-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -82px;
  bottom: -112px;
  width: 250px;
  height: 250px;
  border: 42px solid rgba(67, 56, 202, .045);
  border-radius: 50%;
}

.single-post-page .post-header__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.single-post-page .post-header__edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.single-post-page .post-header__edition::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--amber);
}

.single-post-page .post-header h1 {
  max-width: 980px;
}

.single-post-page .post-deck {
  max-width: 850px;
  color: color-mix(in srgb, var(--text) 88%, var(--headline));
}

.single-post-page .post-byline {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
}

.single-post-page .post-byline__avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .13);
}

.single-post-page .post-byline__details {
  min-width: 0;
}

.single-post-page .post-byline .article-meta {
  gap: 5px 13px;
  margin: 0;
}

.single-post-page .post-hero-image__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .13));
}

.single-post-page .post-actions {
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.single-post-page .post-actions__label {
  margin-right: auto;
  padding: 0 8px;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.single-post-page .article-reading-card {
  position: relative;
  max-width: 880px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: clamp(18px, 2.2vw, 26px);
  background: var(--surface);
  box-shadow: 0 20px 54px rgba(15, 23, 42, .07);
}

.single-post-page .article-reading-card__rule {
  width: 64px;
  height: 4px;
  margin: 0 0 clamp(28px, 4vw, 42px);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--indigo));
}

.single-post-page .article-reading-card .entry-content,
.single-post-page .article-reading-card .after-content-widgets,
.single-post-page .article-reading-card .entry-footer {
  max-width: 100%;
}

.single-post-page .entry-content > p:first-of-type::first-letter {
  float: left;
  margin: .08em .1em 0 0;
  color: var(--indigo);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.1em;
  font-weight: 800;
  line-height: .76;
}

.single-post-page .entry-content > p:first-of-type::after {
  content: "";
  display: table;
  clear: both;
}

.single-post-page .author-box {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(245, 158, 11, .5), rgba(67, 56, 202, .38)) border-box;
  border: 1px solid transparent;
}

.single-post-page .post-navigation__item {
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface-muted) 60%, var(--surface)));
}

.single-post-page .post-sidebar .sidebar-card {
  border: 1px solid rgba(67, 56, 202, .1);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .075);
}

.single-post-page .sidebar-card__heading {
  margin-bottom: 15px;
}

.single-post-page .sidebar-card__heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.single-post-page .sidebar-card__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--indigo);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.single-post-page .post-sidebar .sidebar-card__heading .widget-title {
  margin-bottom: 0;
}

.single-post-page .sidebar-card__all {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: var(--indigo);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}

.single-post-page .sidebar-card__all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-page .sidebar-story-list {
  display: grid;
  gap: 15px;
}

.single-post-page .sidebar-story {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.single-post-page .sidebar-story:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.single-post-page .sidebar-story__media {
  display: block;
  width: 88px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface-muted);
}

.single-post-page .sidebar-story__media > :where(picture, span, div),
.single-post-page .sidebar-story__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.single-post-page .sidebar-story__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.single-post-page .sidebar-story:hover .sidebar-story__image {
  transform: scale(1.045);
}

.single-post-page .sidebar-story__content {
  min-width: 0;
}

.single-post-page .sidebar-story__category {
  display: block;
  margin-bottom: 4px;
  color: var(--amber-hover);
  font-size: .61rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.single-post-page .sidebar-story h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--headline);
  font-family: "Playfair Display", Georgia, serif;
  font-size: .94rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.single-post-page .sidebar-story h3 a {
  color: inherit;
  text-decoration: none;
}

.single-post-page .sidebar-story h3 a:hover {
  color: var(--indigo);
}

.single-post-page .sidebar-story time {
  color: var(--text-muted);
  font-size: .65rem;
}

.single-post-page .sidebar-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-post-page .sidebar-categories li {
  border: 0;
}

.single-post-page .sidebar-categories li > a {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: .72rem;
  line-height: 1.2;
}

.single-post-page .sidebar-categories li > a:hover {
  border-color: rgba(67, 56, 202, .25);
  background: rgba(67, 56, 202, .07);
}

.single-post-page .widget_recent_comments,
.single-post-page [id^="recent-comments-"] {
  display: none !important;
}

@media (max-width: 960px) {
  .single-post-page .article-reading-card {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .single-post-page .post-header {
    padding: 24px 21px;
    border-radius: 18px;
  }

  .single-post-page .post-header::after {
    display: none;
  }

  .single-post-page .post-actions {
    padding: 11px;
  }

  .single-post-page .post-actions__label {
    flex-basis: 100%;
    width: 100%;
    margin: 0 0 2px;
    padding: 0 2px;
  }

  .single-post-page .article-reading-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .single-post-page .entry-content > p:first-of-type::first-letter {
    font-size: 3.5em;
  }
}

@media (max-width: 480px) {
  .single-post-page .post-byline {
    align-items: flex-start;
  }

  .single-post-page .post-byline .article-meta {
    display: grid;
    gap: 2px;
  }

  .single-post-page .post-byline .article-meta span::before {
    display: none !important;
  }

  .single-post-page .sidebar-story {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .single-post-page .sidebar-story__media {
    width: 78px;
  }
}


/* =========================================================
   Contact page — v1.1.0
   ========================================================= */
.contact-page { overflow: hidden; }
.contact-hero {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(5rem, 9vw, 8rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, .24), transparent 25rem),
    radial-gradient(circle at 10% 90%, rgba(67, 56, 202, .42), transparent 28rem),
    linear-gradient(135deg, #0f172a 0%, #111c36 55%, #18213a 100%);
}
.contact-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 84px;
  background: linear-gradient(177deg, transparent 49%, var(--background) 50%);
}
.contact-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 3rem; align-items: center; }
.contact-kicker,
.contact-page .eyebrow { display: block; margin: 0 0 .65rem; color: var(--amber); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.contact-hero h1 { max-width: 800px; margin: 0; color: #fff; font-family: "Playfair Display", serif; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
.contact-hero__copy > p { max-width: 690px; margin: 1.5rem 0 0; color: #dbe4f3; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.contact-hero__badge { justify-self: end; width: min(100%, 360px); padding: 1.4rem; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.07); box-shadow: 0 22px 70px rgba(0,0,0,.2); backdrop-filter: blur(16px); }
.contact-hero__badge span { display: block; margin-bottom: .35rem; color: #cbd5e1; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-hero__badge strong { color: #fff; font-family: "Playfair Display", serif; font-size: 1.45rem; line-height: 1.25; }
.contact-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: -2rem; padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact-form-card,
.contact-info-card,
.contact-response-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.contact-form-card { padding: clamp(1.4rem, 4vw, 3rem); border-radius: 24px; }
.contact-card-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.contact-card-heading h2,
.contact-info-card h2,
.contact-map-heading h2 { margin: 0; color: var(--headline); font-family: "Playfair Display", serif; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; }
.contact-card-heading .eyebrow { margin-bottom: .25rem; }
.contact-card-icon,
.contact-info-icon { display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, var(--indigo), #6d5dfc); box-shadow: 0 12px 28px rgba(67, 56, 202, .25); }
.contact-card-icon { width: 54px; height: 54px; border-radius: 16px; }
.contact-card-icon svg { width: 25px; fill: currentColor; }
.contact-alert { margin-bottom: 1.4rem; padding: 1rem 1.1rem; border: 1px solid; border-radius: 12px; font-weight: 650; }
.contact-alert--success { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.contact-alert--error { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; margin-bottom: .45rem; color: var(--headline); font-size: .86rem; font-weight: 750; }
.form-field label span { color: var(--danger); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: .78rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--headline);
  background: var(--surface-muted);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--indigo); background: var(--surface); box-shadow: 0 0 0 4px rgba(67, 56, 202, .12); }
.contact-consent { display: flex; gap: .7rem; align-items: flex-start; margin: .2rem 0 1.3rem; color: var(--text); font-size: .86rem; }
.contact-consent input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--indigo); }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-width: 185px; border: 0; cursor: pointer; }
.contact-submit svg { width: 19px; fill: currentColor; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-details { display: grid; align-content: start; gap: 1.25rem; }
.contact-info-card { padding: clamp(1.35rem, 3vw, 2rem); border-radius: 22px; }
.contact-info-list { display: grid; gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.contact-info-list li { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-info-list li:last-child { border-bottom: 0; }
.contact-info-icon { width: 39px; height: 39px; border-radius: 11px; }
.contact-info-icon svg { width: 19px; fill: currentColor; }
.contact-info-list strong { display: block; margin-bottom: .22rem; color: var(--headline); font-size: .83rem; }
.contact-info-list span,
.contact-info-list a { display: block; color: var(--text); font-size: .91rem; line-height: 1.55; overflow-wrap: anywhere; }
.contact-info-list a:hover { color: var(--indigo); }
.contact-directions { width: 100%; justify-content: center; }
.contact-response-card { padding: 1.3rem; border-radius: 18px; border-left: 4px solid var(--amber); }
.contact-response-card strong { color: var(--headline); }
.contact-response-card p { margin: .45rem 0 0; font-size: .9rem; }
.contact-map-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; background: var(--surface-muted); }
.contact-map-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.4rem; }
.contact-map-heading > p { max-width: 460px; margin: 0; text-align: right; }
.contact-map-frame { overflow: hidden; min-height: 460px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-md); }
.contact-map-frame iframe { display: block; width: 100%; height: 460px; border: 0; }
.footer-contact h2 a { color: inherit; }
.footer-contact h2 a:hover { color: var(--amber); }
html[data-theme="dark"] .contact-alert--success { color: #a7f3d0; border-color: #065f46; background: rgba(6,95,70,.22); }
html[data-theme="dark"] .contact-alert--error { color: #fecaca; border-color: #991b1b; background: rgba(153,27,27,.2); }
@media (max-width: 900px) {
  .contact-hero__inner,
  .contact-layout { grid-template-columns: 1fr; }
  .contact-hero__badge { justify-self: start; }
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .contact-hero { padding-top: 3.5rem; }
  .contact-hero__badge { display: none; }
  .contact-layout { margin-top: -1.2rem; }
  .contact-form-grid,
  .contact-details { grid-template-columns: 1fr; }
  .contact-map-heading { display: block; }
  .contact-map-heading > p { margin-top: .6rem; text-align: left; }
  .contact-map-frame,
  .contact-map-frame iframe { min-height: 350px; height: 350px; }
  .contact-submit { width: 100%; }
}


/* Contact page editor-managed content */
.contact-page__editor-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--container-pad, 1.25rem) clamp(3rem, 5vw, 4.5rem);
}
.contact-page__editor-content-inner {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.contact-page__editor-content-inner > :first-child { margin-top: 0; }
.contact-page__editor-content-inner > :last-child { margin-bottom: 0; }
[data-theme="dark"] .contact-page__editor-content-inner { background: var(--surface); border-color: rgba(148,163,184,.2); }

/* =========================================================
   1.1.4 — Complete single-post badge removal and pagination repair
   ========================================================= */

/* The single article header starts directly with the headline. The selectors
   below also suppress legacy cached markup or third-party category badge
   classes that may still be injected inside the article header. */
.single-post-page .post-header > .post-header__kicker,
.single-post-page .post-header > .category-badge,
.single-post-page .post-header > [class*="category-badge"],
.single-post-page .post-header > .post-categories {
  display: none !important;
}

/* WordPress paginate_links(type=list) returns a UL plus nested page-number
   links. Reset every native list style and make the component resilient to
   plugin/global CSS so it cannot collapse into a vertical or bulleted list. */
.archive-shell .pagination.pagination--posts {
  display: block;
  width: 100%;
  clear: both;
  margin: clamp(34px, 5vw, 52px) 0 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
}

.archive-shell .pagination.pagination--posts > ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-shell .pagination.pagination--posts > ul.page-numbers > li {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-shell .pagination.pagination--posts > ul.page-numbers > li::marker {
  content: "";
}

.archive-shell .pagination.pagination--posts .page-numbers > .page-numbers,
.archive-shell .pagination.pagination--posts li > a.page-numbers,
.archive-shell .pagination.pagination--posts li > span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--headline);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.archive-shell .pagination.pagination--posts li > a.page-numbers:hover {
  transform: translateY(-2px);
  border-color: var(--indigo);
  background: color-mix(in srgb, var(--surface) 88%, var(--indigo) 12%);
  color: var(--indigo);
  box-shadow: var(--shadow-sm);
}

.archive-shell .pagination.pagination--posts li > a.page-numbers:focus-visible {
  outline: 3px solid rgba(67, 56, 202, .24);
  outline-offset: 3px;
  border-color: var(--indigo);
}

.archive-shell .pagination.pagination--posts li > span.page-numbers.current {
  border-color: var(--indigo);
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 18px rgba(67, 56, 202, .22);
}

.archive-shell .pagination.pagination--posts li > span.page-numbers.dots {
  min-width: 26px;
  padding-inline: 2px;
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
}

.archive-shell .pagination.pagination--posts li > :is(.prev, .next).page-numbers {
  min-width: 112px;
  padding-inline: 15px;
}

/* Multipage article pagination uses a different WordPress markup. */
.single-post-page .page-links {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.single-post-page .page-links > a,
.single-post-page .page-links > .post-page-numbers,
.single-post-page .page-links > a > .post-page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--headline);
  font-family: "Inter", system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.single-post-page .page-links > a {
  padding: 0;
  border: 0;
  background: transparent;
}

.single-post-page .page-links > .post-page-numbers.current {
  border-color: var(--indigo);
  background: var(--indigo);
  color: #fff;
}

.single-post-page .page-links > a:hover > .post-page-numbers {
  border-color: var(--indigo);
  color: var(--indigo);
}

@media (max-width: 560px) {
  .archive-shell .pagination.pagination--posts > ul.page-numbers {
    gap: 6px;
  }

  .archive-shell .pagination.pagination--posts li > a.page-numbers,
  .archive-shell .pagination.pagination--posts li > span.page-numbers {
    min-width: 38px;
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: .76rem;
  }

  .archive-shell .pagination.pagination--posts li > :is(.prev, .next).page-numbers {
    min-width: 98px;
    padding-inline: 11px;
  }
}


/* =========================================================
   1.1.6 — Category archive spacing and card rhythm
   ========================================================= */

/* Category archive titles remain intentionally removed, but the breadcrumb now
   functions as a properly spaced page heading instead of colliding with the
   first row of cards. */
.archive-shell--category .breadcrumb {
  padding-top: clamp(24px, 3.5vw, 42px);
  padding-bottom: clamp(18px, 2.5vw, 28px);
  margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.archive-shell--category .breadcrumb ol {
  min-height: 24px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.archive-shell--category .archive-content--category {
  padding-top: 0;
}

.archive-shell--category .posts-grid {
  gap: clamp(22px, 2.4vw, 30px);
}

.archive-shell--category .news-card__body {
  padding: clamp(20px, 2vw, 26px);
}

@media (max-width: 640px) {
  .archive-shell--category .breadcrumb {
    padding-top: 20px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .archive-shell--category .posts-grid {
    gap: 20px;
  }

  .archive-shell--category .news-card__body {
    padding: 18px;
  }
}

/* =========================================================
   1.2.0 — Production SEO, performance and responsive hardening
   ========================================================= */

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  overflow-x: clip;
}

:where(main, section, article, aside, header, footer, nav, .container, .post-layout, .content-column, .entry-content) {
  min-width: 0;
}

:where(video, iframe, embed, object, svg) {
  max-width: 100%;
}

.entry-content :where(a, code, pre),
.archive-description,
.contact-page :where(a, p),
.post-navigation strong {
  overflow-wrap: anywhere;
}

/* Reserve space for the external map before it enters the viewport. */
.contact-map-frame {
  min-height: 350px;
  contain: layout paint;
}

/* Skip rendering work for substantial below-the-fold homepage regions while
   preserving a stable intrinsic block size and full crawlable HTML. */
@supports (content-visibility: auto) {
  .home #featuredSection,
  .home .category-section,
  .home .video-section,
  .home .opinion-section,
  .home .newsletter,
  .single-post-page .related-posts {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

/* Keep interactive controls comfortably tappable across compact devices. */
@media (pointer: coarse) {
  :where(button, .button, .post-action, .featured-carousel__arrow, .back-to-top) {
    min-height: 44px;
  }
}

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

/* Dynamic two-level WordPress navigation. */
@media (min-width: 861px) {
  .primary-nav {
    position: relative;
    z-index: 80;
  }

  .primary-nav .nav-scroll {
    overflow: visible;
  }

  .primary-nav .menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 27px;
    width: 100%;
  }

  .primary-nav .menu-item {
    position: relative;
    display: flex;
  }

  .primary-nav .sub-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: -18px;
    z-index: 100;
    display: grid;
    min-width: 220px;
    margin: 0;
    padding: 10px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .primary-nav .sub-menu a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: normal;
  }

  .primary-nav .sub-menu a::after {
    display: none;
  }

  .primary-nav .sub-menu a:hover,
  .primary-nav .sub-menu a:focus-visible {
    background: var(--surface-muted);
  }

  .primary-nav .menu-item-has-children:hover > .sub-menu,
  .primary-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .primary-nav .menu {
    display: grid;
    width: 100%;
    gap: 0;
  }

  .primary-nav .menu-item {
    display: block;
  }

  .primary-nav .sub-menu {
    display: grid;
    gap: 2px;
    margin: 0 0 4px;
    padding: 0 0 0 18px;
    list-style: none;
    border-left: 2px solid var(--line);
  }

  .primary-nav .sub-menu a {
    padding-block: 9px;
    color: var(--text-muted);
    font-size: .82rem;
  }
}
