/* =========================================================
   Korea, But Why? — Modern editorial magazine
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-pure: #ffffff;
  --ink: #111111;
  --ink-soft: #111111;
  --muted: #686868;
  --muted-2: #686868;
  --line: #d8d8d8;
  --line-strong: #d8d8d8;
  --soft: #f7f7f5;
  --accent: #f15b3d;
  --accent-deep: #d94a2e;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: 1400px;
  --gutter: clamp(1.25rem, 3.2vw, 4rem);
  --radius-card: 8px;
  --radius-soft: 6px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;

  /* Forced editorial type scale (px) — must feel boldly larger */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 17px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 34px;
  --text-3xl: 46px;
  --text-hero: clamp(64px, 6vw, 92px);
  --text-display: clamp(38px, 4vw, 58px);
  --text-section: 15px;
  --text-nav: 15px;
  --text-cat: 20px;
  --text-cat-desc: 14px;
  --text-card: clamp(22px, 1.6vw, 26px);
  --text-card-sm: clamp(20px, 1.4vw, 24px);
  --text-body: 17px;
  --text-meta: 12px;
  --text-label: 12px;

  /* Back-compat aliases used in rules below */
  --type-hero: var(--text-hero);
  --type-display: var(--text-display);
  --type-section: var(--text-section);
  --type-nav: var(--text-nav);
  --type-card-title: var(--text-card);
  --type-card-title-sm: var(--text-card-sm);
  --type-body: var(--text-body);
  --type-meta: var(--text-meta);
  --type-label: var(--text-label);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; }

::selection { background: var(--ink); color: var(--bg-pure); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container.narrow { width: min(100% - (var(--gutter) * 2), 760px); }

.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg-pure);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 1.05rem 1.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-dark { background: var(--ink); color: var(--bg-pure); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-hero { background: #fff; color: var(--ink); }
.btn-hero:hover { background: var(--bg-pure); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }

.btn-newsletter-nav {
  background: var(--ink);
  color: var(--bg-pure);
  padding: 0.62rem 1.05rem;
  font-size: 0.66rem;
}

.btn-newsletter-nav:hover { background: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--header-h);
  background: var(--bg-pure);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

body.ke-front .site-header {
  background: var(--bg-pure);
  color: var(--ink);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(110px, 168px) 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand-link { display: inline-flex; align-items: center; }
.brand-link .custom-logo { max-height: 40px; width: auto; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.primary-nav { justify-self: center; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.65rem;
  justify-content: center;
}

.nav-list a {
  position: relative;
  font-size: var(--text-nav);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0;
  transition: color 0.25s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--ink); }

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.35rem; }

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.25s var(--ease);
}

.icon-btn:hover { background: var(--soft); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header-search,
.mobile-nav {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.2rem;
  background: var(--bg-pure);
}

.header-search[hidden],
.mobile-nav[hidden] { display: none; }

.search-field,
.header-search input[type="search"],
.content-none-search input[type="search"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
  padding: 0.88rem 1.2rem;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.search-field:focus,
.header-search input[type="search"]:focus {
  border-color: var(--ink);
  background: var(--bg-pure);
}

.mobile-nav-list { display: grid; gap: 0.85rem; padding: 0.35rem 0 1.15rem; }

.mobile-nav-list a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mobile-newsletter { width: 100%; }

/* ---------- Hero ---------- */
.hero-magazine {
  position: relative;
  min-height: clamp(620px, 86vh, 920px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(12, 10, 8, 0.58) 0%, rgba(12, 10, 8, 0.22) 42%, rgba(12, 10, 8, 0.05) 72%, rgba(12, 10, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.12) 0%, transparent 34%, rgba(12, 10, 8, 0.38) 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: end;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  width: min(100% - (var(--gutter) * 2), var(--container));
  padding: clamp(5rem, 11vh, 8rem) 0 clamp(2.4rem, 5vw, 3.6rem);
}

.hero-copy { max-width: 52rem; }

.hero-eyebrow {
  margin: 0 0 1.1rem;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-dot { color: var(--accent); }

.hero-lead {
  margin: 1.5rem 0 2.1rem;
  max-width: 32rem;
  font-size: var(--text-base);
  line-height: 1.55;
  color: rgba(255, 253, 249, 0.88);
}

.btn-hero {
  font-size: 14px;
  padding: 1.1rem 1.75rem;
}

.trending-panel {
  background: rgba(20, 17, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.35rem 1.3rem;
  color: #fff;
}

.trending-label {
  margin: 0 0 1rem;
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.trending-list { display: grid; gap: 0.92rem; }

.trending-list li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.trending-rank {
  font-size: var(--type-meta);
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.22rem;
  font-variant-numeric: tabular-nums;
}

.trending-list a,
.trending-list span:not(.trending-rank) {
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.trending-list a:hover { color: rgba(255, 255, 255, 0.72); }

.trending-more {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.trending-more:hover { color: #fff; }

/* ---------- Category bar ---------- */
.category-bar { padding: 0; background: var(--bg-pure); }

.category-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-band > li { border-right: 1px solid var(--line); }
.category-band > li:last-child { border-right: 0; }

.category-band-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  min-height: 140px;
  padding: 1.55rem 1.4rem;
  transition: background 0.3s var(--ease);
}

.category-band-item:hover { background: var(--soft); }

.category-band-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
}

.category-band-icon svg { width: 28px; height: 28px; stroke-width: 1.55; }
.category-band-copy { display: grid; gap: 0.35rem; min-width: 0; }

.category-band-label {
  font-size: var(--text-cat);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-band-short {
  font-size: var(--text-cat-desc);
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-band-arrow {
  font-size: 22px;
  color: var(--muted-2);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.category-band-item:hover .category-band-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 5.5vw, 5.5rem) 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-section);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-eyebrow {
  margin: 0 0 0.95rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.section-link:hover { color: var(--accent); }

/* ---------- Editor's picks ---------- */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.pick-card {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.picks-grid .pick-card:nth-child(-n + 2) { min-height: 600px; }
.pick-card-link { display: block; height: 100%; color: #fff; }

.pick-media,
.pick-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pick-media img {
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.pick-card:hover .pick-media img { transform: scale(1.06); }

.pick-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
}

.pick-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 6rem 1.4rem 1.6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 10, 8, 0.28) 28%, rgba(12, 10, 8, 0.9) 100%);
}

.pick-cat {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.pick-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: var(--text-card);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.pick-excerpt,
.pick-meta {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 253, 249, 0.78);
}

.pick-meta {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: var(--text-meta);
  color: rgba(255, 253, 249, 0.58);
}

/* ---------- Why + Week ---------- */
.why-week { padding-top: clamp(2.8rem, 5.5vw, 4.6rem); }

.why-week-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: start;
}

.why-title {
  margin: 0 0 1.85rem;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.why-list { display: grid; border-top: 1px solid var(--line-strong); }

.why-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.why-q {
  font-size: var(--text-lg);
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.why-arrow {
  flex: none;
  color: var(--muted-2);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.why-item:hover .why-q { color: var(--accent-deep); }
.why-item:hover .why-arrow { color: var(--accent); transform: translateX(5px); }
.why-more { display: inline-block; margin-top: 1.15rem; }

.week-panel {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.3rem 1.15rem;
}

.week-list { display: grid; gap: 1rem; margin-top: 1.15rem; }

.week-item {
  display: grid;
  grid-template-columns: 72px 1.7rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.week-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
}

.week-rank {
  font-size: var(--type-meta);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.week-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.week-item:hover .week-title { color: var(--accent-deep); }

/* ---------- Newsletter ---------- */
.newsletter { padding: 0; }

.newsletter-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 2.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  padding: clamp(2.5rem, 4.5vw, 3.6rem) clamp(1.5rem, 3.5vw, 2.8rem);
}

.newsletter-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.newsletter-text { margin: 0; font-size: var(--text-base); color: rgba(255, 253, 249, 0.72); }
.newsletter-row { display: flex; gap: 0.55rem; }

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.1);
  color: #fff;
  padding: 0.92rem 1.15rem;
  outline: none;
}

.newsletter-form input[type="email"]::placeholder { color: rgba(255, 253, 249, 0.48); }
.newsletter-form input[type="email"]:focus { background: rgba(255, 253, 249, 0.16); }

.newsletter-note {
  margin: 0.7rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 253, 249, 0.42);
}

.newsletter-ornament {
  position: absolute;
  right: -2rem;
  bottom: -3.5rem;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 253, 249, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-ornament::before,
.newsletter-ornament::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(228, 87, 46, 0.22);
  border-radius: 50%;
}

.newsletter-ornament::after {
  inset: 46px;
  border-color: rgba(255, 253, 249, 0.08);
}

/* ---------- Deep dives ---------- */
.deep-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.deep-headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.deep-text { margin: 0 0 1.6rem; color: var(--muted); max-width: 22rem; font-size: var(--text-base); }
.deep-track-wrap { position: relative; min-width: 0; }

.deep-track,
.story-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 2.6rem 0.4rem 0.1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.deep-track::-webkit-scrollbar,
.story-track::-webkit-scrollbar { display: none; }

.deep-card {
  scroll-snap-align: start;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.deep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 17, 15, 0.08);
}

.deep-card-link { display: grid; color: inherit; }

.deep-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.deep-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.deep-card:hover .deep-media img { transform: scale(1.05); }

.deep-num {
  position: absolute;
  top: 0.8rem;
  left: 0.85rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.deep-body { padding: 1.15rem 1.15rem 1.3rem; }

.deep-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.deep-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: var(--text-card-sm);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.deep-excerpt { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }

.carousel-next {
  position: absolute;
  right: 0;
  top: 38%;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-pure);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 17, 15, 0.1);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.carousel-next:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Latest / story cards ---------- */
.latest-grid,
.story-grid { display: grid; gap: 1.7rem 1.25rem; }

.latest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.story-card { min-width: 0; }
.story-card-link { display: grid; gap: 0.95rem; color: inherit; }

.story-media {
  position: relative;
  aspect-ratio: 4 / 3.05;
  overflow: hidden;
  border-radius: var(--radius-soft);
  background: var(--soft);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.story-card:hover .story-media img { transform: scale(1.05); }
.story-body { display: grid; gap: 0.4rem; }

.story-cat {
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-card-sm);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.story-card:hover .story-title { color: var(--accent-deep); }

.story-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: var(--text-meta);
  color: var(--muted-2);
}

.related-stories .story-track { grid-auto-columns: minmax(240px, 1fr); }

/* ---------- Archive ---------- */
.archive-main { padding: 2.75rem 0 4.5rem; }
.archive-header { margin-bottom: 2.1rem; max-width: 40rem; }

.archive-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-title,
.search-query-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.archive-desc { margin: 0.8rem 0 0; color: var(--muted); font-size: 1.02rem; }

.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem 1.1rem; }

.archive-card {
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.archive-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.archive-card:hover .archive-thumb img { transform: scale(1.05); }

.archive-cat {
  display: block;
  padding: 0.95rem 1.1rem 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.archive-title {
  margin: 0.4rem 0 0.45rem;
  padding: 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.18;
}

.archive-card p { margin: 0 0 1.2rem; padding: 0 1.1rem; color: var(--muted); font-size: 0.9rem; }

.editorial-pagination,
.pagination { margin-top: 2.6rem; display: flex; justify-content: center; }

.editorial-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.editorial-pagination a,
.editorial-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-pure);
  font-size: 0.85rem;
  font-weight: 600;
}

.editorial-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 253, 249, 0.78);
  padding: clamp(2.8rem, 5vw, 4.2rem) 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.site-footer .brand-text { color: #fff; }
.footer-tagline { margin: 0.75rem 0 0; max-width: 16rem; color: rgba(255, 253, 249, 0.55); font-size: 0.92rem; }

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.42);
}

.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255, 253, 249, 0.78); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: #fff; }

.social-links { display: flex; gap: 0.55rem; }

.social-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 253, 249, 0.14);
  border-radius: 50%;
  color: #fff;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.social-links a:hover { background: rgba(255, 253, 249, 0.08); border-color: rgba(255, 253, 249, 0.3); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 253, 249, 0.1);
  color: rgba(255, 253, 249, 0.4);
  font-size: 0.78rem;
}

/* ---------- Article / single ---------- */
.single-main { padding: 1.75rem 0 4.5rem; }

.single-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.single-breadcrumb a:hover { color: var(--ink); }
.crumb-sep { opacity: 0.45; }
.crumb-current { color: var(--ink-soft); }
.single-header { margin-bottom: 1.75rem; }

.single-cats {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.single-cats a { color: var(--accent); }
.single-cats a:hover { color: var(--accent-deep); }

.single-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.single-meta { margin: 1rem 0 0; font-size: 0.86rem; color: var(--muted); }
.single-meta-sep { margin: 0 0.35rem; color: var(--muted-2); }

.single-hero {
  position: relative;
  margin: 0 0 2.2rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px;
  background: var(--soft);
}

.single-hero img { width: 100%; height: 100%; object-fit: cover; }
.single-hero-caption { margin-top: 0.65rem; font-size: 0.8rem; color: var(--muted); text-align: center; }

.single-intro {
  margin: 0 0 2rem;
  padding-bottom: 1.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  width: min(100% - (var(--gutter) * 2), 1100px);
}

.single-main-col { min-width: 0; max-width: 720px; }
.single-sidebar { display: grid; gap: 1.2rem; }
.sticky-ad { position: sticky; top: calc(var(--header-h) + 16px); }

.ad-slot {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-soft);
  background: var(--soft);
}

.ad-slot-inner {
  display: grid;
  place-content: center;
  gap: 0.3rem;
  min-height: 250px;
  padding: 1.25rem;
  text-align: center;
}

.ad-slot-tall { min-height: 600px; }
.ad-slot-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.ad-slot-hint { font-size: 0.8rem; color: var(--muted); }
.ad-slot-inline { display: none; margin: 2.5rem 0 0; }

.sidebar-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--bg-pure);
  padding: 1.15rem 1.2rem 1.25rem;
}

.sidebar-note-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}

.sidebar-cat-list { display: grid; gap: 0.55rem; }
.sidebar-cat-list a { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.sidebar-cat-list a:hover { color: var(--accent); }

.entry-content > * + * { margin-top: 1.15rem; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
  margin-top: 2.35rem;
  margin-bottom: 0.8rem;
}

.entry-content h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
.entry-content h3 { font-size: clamp(1.3rem, 2.4vw, 1.55rem); }
.entry-content h4 { font-size: 1.15rem; }
.entry-content p { margin: 0; }

.entry-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.entry-content a:hover { color: var(--accent-deep); }

.entry-content ul,
.entry-content ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.45rem; }

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { padding-left: 0.15rem; }

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.3rem 1.2rem 1.45rem;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.35;
}

.entry-content blockquote p { margin: 0; }

.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.entry-content thead th {
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 0.85rem 1rem; text-align: left; }

.entry-content tbody tr:nth-child(even) { background: var(--soft); }
.entry-content .wp-block-table,
.entry-content figure.wp-block-table { margin: 2rem 0; overflow-x: auto; }
.entry-content figure { margin: 2rem 0; }

.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content p img,
.entry-content img { width: 100%; height: auto; border-radius: 16px; }

.entry-content figcaption { margin-top: 0.65rem; font-size: 0.8rem; color: var(--muted); text-align: center; }
.entry-content .alignleft { float: left; margin: 0.4rem 1.25rem 1rem 0; max-width: 46%; }
.entry-content .alignright { float: right; margin: 0.4rem 0 1rem 1.25rem; max-width: 46%; }
.entry-content .aligncenter { margin-inline: auto; }

.page-links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }

.page-links a,
.page-links > span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-pure);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-nav-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-nav-item a {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.22;
}

.post-nav-item a:hover { color: var(--accent-deep); }
.post-nav-item.next { text-align: right; }
.related-stories { padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ---------- Empty states ---------- */
.content-none { padding: 1.4rem 0 2.4rem; text-align: center; }

.content-none-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

.content-none p { margin: 0; color: var(--muted); }
.content-none-search { max-width: 420px; margin: 1.25rem auto 0; }

.content-none-cats,
.category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2.2rem;
}

.category-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-pure);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.category-item:hover { border-color: var(--ink); transform: translateY(-2px); }
.category-icon { display: grid; place-items: center; width: 22px; height: 22px; color: var(--accent); }
.category-icon svg { width: 16px; height: 16px; }

.category-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks-grid .pick-card,
  .picks-grid .pick-card:nth-child(-n + 2) { min-height: 540px; }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }

  .hero-stage {
    grid-template-columns: 1fr;
    padding-top: clamp(3.5rem, 8vh, 5.5rem);
  }

  .trending-panel { max-width: 28rem; }

  .why-week-grid,
  .deep-layout,
  .newsletter-inner,
  .single-layout { grid-template-columns: 1fr; }

  .single-layout { width: min(100% - (var(--gutter) * 2), var(--container)); }
  .single-main-col { max-width: none; }
  .sticky-ad { position: static; }
  .ad-slot-tall { min-height: 280px; }
  .ad-slot-inline { display: grid; }
  .single-sidebar .ad-slot-rail { display: none; }
  .story-grid,
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-next { top: auto; bottom: 1.1rem; }
}

@media (max-width: 720px) {
  .btn-newsletter-nav { display: none; }
  .category-band { grid-template-columns: 1fr 1fr; }
  .category-band > li:nth-child(odd) { border-right: 1px solid var(--line); }
  .category-band > li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .category-band-item { min-height: 118px; padding: 1.2rem 1rem; }
  .category-band-label { font-size: 17px; }
  .category-band-short { display: none; }
  .hero-title { font-size: clamp(48px, 11vw, 56px); }
  .why-title,
  .deep-headline { font-size: clamp(34px, 8vw, 42px); }
  .trending-panel { max-width: none; }
  .newsletter-row { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .picks-grid,
  .latest-grid,
  .story-grid,
  .archive-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .picks-grid .pick-card,
  .picks-grid .pick-card:nth-child(-n + 2) { min-height: 460px; }
  .pick-title { font-size: 20px; }
  .story-title,
  .deep-title { font-size: 19px; }
  .category-band-label { font-size: 16px; }
  .hero-lead,
  .deep-text,
  .newsletter-text { font-size: 16px; }

  .section-head { align-items: flex-start; flex-wrap: wrap; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; }
  .single-hero { aspect-ratio: 4 / 3; border-radius: 16px; }
  .single-intro { font-size: 1.06rem; }
  .entry-content blockquote { font-size: 1.2rem; }
  .entry-content .alignleft,
  .entry-content .alignright { float: none; max-width: 100%; margin: 1rem 0; }
  .carousel-next { display: none; }
  .deep-track,
  .story-track { grid-auto-columns: min(78vw, 300px); padding-right: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   FORCE TYPOGRAPHY SCALE — homepage (last-wins, high specificity)
   Desktop values must feel boldly larger than previous rem scale.
   ========================================================= */
body.ke-front {
  font-size: 17px;
}

body.ke-front .brand-text {
  font-size: 16px;
}

body.ke-front .nav-list a {
  font-size: 15px;
  letter-spacing: 0.1em;
}

body.ke-front .hero-magazine .hero-title {
  font-size: clamp(64px, 6vw, 92px);
  font-weight: 650;
  line-height: 0.94;
}

body.ke-front .hero-magazine .hero-lead {
  font-size: 17px;
}

body.ke-front .hero-magazine .btn-hero {
  font-size: 14px;
}

body.ke-front .trending-list a,
body.ke-front .trending-list span:not(.trending-rank) {
  font-size: 16px;
}

body.ke-front .category-band-label {
  font-size: 20px;
  letter-spacing: 0.08em;
}

body.ke-front .category-band-short {
  font-size: 14px;
}

body.ke-front .category-band-item {
  min-height: 108px;
}

body.ke-front .category-band-arrow {
  font-size: 22px;
}

body.ke-front .section-title {
  font-size: 15px;
}

body.ke-front .why-title,
body.ke-front .deep-headline {
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 650;
  line-height: 0.94;
}

body.ke-front .why-q {
  font-size: clamp(18px, 1.4vw, 21px);
}

body.ke-front .pick-title {
  font-size: clamp(22px, 1.6vw, 26px);
  font-weight: 650;
  line-height: 1.08;
}

body.ke-front .pick-excerpt {
  font-size: 15px;
}

body.ke-front .pick-card {
  min-height: 520px;
}

body.ke-front .picks-grid .pick-card:nth-child(-n + 2) {
  min-height: 600px;
}

body.ke-front .story-title,
body.ke-front .deep-title,
body.ke-front .week-title {
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 650;
}

body.ke-front .story-excerpt,
body.ke-front .deep-excerpt {
  font-size: 15px;
}

body.ke-front .newsletter-title {
  font-size: clamp(34px, 3.6vw, 48px);
}

body.ke-front .newsletter-text,
body.ke-front .deep-text {
  font-size: 17px;
}

@media (max-width: 720px) {
  body.ke-front .hero-magazine .hero-title {
    font-size: clamp(48px, 11vw, 56px);
  }

  body.ke-front .why-title,
  body.ke-front .deep-headline {
    font-size: clamp(34px, 8vw, 42px);
  }

  body.ke-front .category-band-label {
    font-size: 17px;
  }

  body.ke-front .pick-title,
  body.ke-front .story-title,
  body.ke-front .deep-title {
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  body.ke-front .category-band-label {
    font-size: 16px;
  }

  body.ke-front .pick-title {
    font-size: 20px;
  }

  body.ke-front .story-title,
  body.ke-front .deep-title {
    font-size: 18px;
  }
}

/* =========================================================
   MID-SITE EDITORIAL v2.3 — white, dense, bold magazine
   Header + Hero kept. Overrides prior mid-section layouts.
   ========================================================= */

:root {
  --editorial-heading-xl: clamp(46px, 5vw, 68px);
  --editorial-heading-lg: clamp(30px, 3vw, 42px);
  --editorial-card-title: clamp(21px, 1.8vw, 26px);
  --editorial-card-title-sm: clamp(20px, 1.6vw, 25px);
  --editorial-body: clamp(15px, 1.1vw, 17px);
  --editorial-question: clamp(18px, 1.35vw, 21px);
  --section-space: clamp(3rem, 5.2vw, 5.5rem);
  --ed-gap: clamp(1rem, 1.6vw, 1.4rem);
}

body.ke-front .editors-picks,
body.ke-front .why-editorial,
body.ke-front .deep-editorial,
body.ke-front .latest-editorial,
body.ke-front .instagram-sheet {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

/* --- Editor's Picks asymmetric --- */
body.ke-front .editors-picks .section-title {
  font-size: 13px;
  letter-spacing: 0.12em;
}

body.ke-front .picks-asym {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: start;
}

body.ke-front .picks-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}

body.ke-front .ed-story-link {
  display: grid;
  color: inherit;
  height: 100%;
}

body.ke-front .ed-story-media {
  overflow: hidden;
  background: var(--soft);
  border-radius: 6px;
}

body.ke-front .ed-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

body.ke-front .ed-story:hover .ed-story-media img {
  transform: scale(1.03);
}

body.ke-front .ed-story-cat {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

body.ke-front .ed-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 12px;
  color: var(--muted);
}

body.ke-front .ed-story--main .ed-story-link {
  grid-template-rows: auto auto;
  gap: 0.95rem;
}

body.ke-front .ed-story--main .ed-story-media {
  min-height: 500px;
  height: clamp(500px, 46vh, 600px);
  aspect-ratio: auto;
}

body.ke-front .ed-story--main .ed-story-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

body.ke-front .ed-story--main .ed-story-excerpt {
  margin: 0;
  max-width: 40rem;
  font-size: var(--editorial-body);
  line-height: 1.45;
  color: var(--muted);
}

body.ke-front .ed-story--secondary .ed-story-link {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

body.ke-front .ed-story--secondary .ed-story-media {
  width: 170px;
  height: 128px;
  min-height: 128px;
  aspect-ratio: auto;
}

body.ke-front .ed-story--secondary .ed-story-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

body.ke-front .ed-story--secondary .ed-story-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.ke-front .ed-story--compact .ed-story-link {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding-top: 0.15rem;
}

body.ke-front .ed-story--compact .ed-story-media {
  width: 88px;
  height: 88px;
  border-radius: 6px;
}

body.ke-front .ed-story--compact .ed-story-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

body.ke-front .ed-story--compact .ed-story-excerpt {
  display: none;
}

body.ke-front .ed-story:hover .ed-story-title {
  color: var(--accent-deep);
}

/* --- Why Korea editorial --- */
body.ke-front .why-editorial {
  background: #f7f7f5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.ke-front .why-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

body.ke-front .why-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: var(--editorial-heading-xl);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

body.ke-front .why-lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: var(--editorial-body);
  line-height: 1.5;
  color: var(--muted);
}

body.ke-front .why-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

body.ke-front .why-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  min-height: 70px;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

body.ke-front .why-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

body.ke-front .why-q {
  font-size: var(--editorial-question);
  font-weight: 550;
  line-height: 1.28;
  letter-spacing: -0.015em;
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}

body.ke-front .why-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}

body.ke-front .why-row:hover .why-q {
  color: var(--accent);
  transform: translateX(6px);
}

body.ke-front .why-row:hover .why-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

body.ke-front .trend-column .section-eyebrow {
  margin-bottom: 0.85rem;
  font-size: 13px;
}

body.ke-front .trend-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

body.ke-front .trend-row {
  display: grid;
  grid-template-columns: 1.7rem 78px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 82px;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

body.ke-front .trend-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

body.ke-front .trend-thumb {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

body.ke-front .trend-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

body.ke-front .trend-row:hover .trend-title {
  color: var(--accent);
}

body.ke-front .week-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* --- Newsletter editorial --- */
body.ke-front .newsletter-editorial {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

body.ke-front .newsletter-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  min-height: 124px;
  background: #111111;
  color: #fff;
  border-radius: 6px;
  padding: 1.35rem clamp(1.25rem, 2.5vw, 2.25rem);
}

body.ke-front .newsletter-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

body.ke-front .newsletter-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  max-width: 18rem;
}

body.ke-front .newsletter-banner .newsletter-form {
  position: relative;
  z-index: 1;
}

body.ke-front .newsletter-banner .newsletter-row {
  align-items: stretch;
}

body.ke-front .newsletter-banner input[type="email"] {
  height: 50px;
  border-radius: 6px;
  padding: 0 1rem;
}

body.ke-front .newsletter-banner .btn-accent {
  height: 50px;
  border-radius: 6px;
  padding: 0 1.2rem;
}

body.ke-front .newsletter-banner .newsletter-note {
  margin-top: 0.4rem;
  font-size: 11px;
}

/* --- Deep Dives split + rail --- */
body.ke-front .deep-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

body.ke-front .deep-headline {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: var(--editorial-heading-xl);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

body.ke-front .deep-text {
  margin: 0 0 1rem;
  max-width: 20rem;
  font-size: var(--editorial-body);
  color: var(--muted);
}

body.ke-front .deep-explore {
  display: inline-block;
}

body.ke-front .deep-rail-col {
  position: relative;
  min-width: 0;
}

body.ke-front .deep-controls {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

body.ke-front .carousel-prev,
body.ke-front .carousel-next {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

body.ke-front .carousel-prev:hover,
body.ke-front .carousel-next:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

body.ke-front .deep-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, calc((100% - 2.4rem) / 3.35));
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 3.1rem 0 0;
}

body.ke-front .deep-rail::-webkit-scrollbar { display: none; }

body.ke-front .deep-rail .deep-card {
  scroll-snap-align: start;
  background: #fff;
  border: 0;
  border-radius: 0;
  min-width: 0;
}

body.ke-front .deep-rail .deep-card.is-lead,
body.ke-front .deep-rail .deep-card.is-lead .deep-card-link {
  width: auto;
}

body.ke-front .deep-rail .deep-media {
  position: relative;
  height: clamp(260px, 28vw, 340px);
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

body.ke-front .deep-rail .deep-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

body.ke-front .deep-rail .deep-card:hover .deep-media img {
  transform: scale(1.03);
}

body.ke-front .deep-rail .deep-num {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

body.ke-front .deep-rail .deep-body {
  padding: 0.85rem 0.1rem 0.2rem;
}

body.ke-front .deep-rail .deep-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

body.ke-front .deep-rail .deep-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.6vw, 26px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

body.ke-front .deep-rail .deep-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

body.ke-front .deep-rail .deep-card:hover .deep-title {
  color: var(--accent);
}

body.ke-front .deep-editorial .deep-layout {
  display: block;
}

body.ke-front .deep-editorial .deep-track-wrap .carousel-next {
  display: none;
}

/* --- Latest Stories rhythm --- */
body.ke-front .latest-rhythm {
  display: grid;
  gap: 1.5rem;
}

body.ke-front .latest-feature .ed-story--main .ed-story-link {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
  align-items: start;
}

body.ke-front .latest-feature .ed-story--main .ed-story-media {
  width: 100%;
  min-width: min(100%, 520px);
  min-height: 0;
  height: clamp(280px, 34vw, 420px);
}

body.ke-front .latest-standard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ed-gap);
}

body.ke-front .latest-standard .ed-story--secondary .ed-story-link {
  grid-template-columns: 1fr;
  gap: 0.7rem;
  border-bottom: 0;
  padding-bottom: 0;
}

body.ke-front .latest-standard .ed-story--secondary .ed-story-media {
  width: 100%;
  height: auto;
  min-height: 200px;
  aspect-ratio: 4 / 3;
}

body.ke-front .latest-standard .ed-story--secondary .ed-story-title {
  font-size: clamp(22px, 1.7vw, 28px);
}

body.ke-front .latest-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

body.ke-front .latest-compact .ed-story--compact {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

body.ke-front .latest-compact .ed-story--compact:nth-child(odd),
body.ke-front .latest-compact .ed-story--compact:nth-child(even) {
  padding-left: 0;
  padding-right: 0;
  border-right: 0;
}

/* --- Instagram contact sheet --- */
body.ke-front .ig-sheet {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.2fr 1fr 1.15fr 1.25fr 1fr 1.1fr;
  gap: 10px;
}

body.ke-front .ig-cell {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  background: var(--soft);
}

body.ke-front .ig-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

body.ke-front .ig-cell:hover img {
  transform: scale(1.04);
}

/* Responsive mid-site */
@media (max-width: 980px) {
  body.ke-front .picks-asym,
  body.ke-front .why-editorial-grid,
  body.ke-front .newsletter-banner,
  body.ke-front .deep-split,
  body.ke-front .latest-standard {
    grid-template-columns: 1fr;
  }

  body.ke-front .ed-story--main .ed-story-media {
    min-height: 280px;
    height: clamp(260px, 58vw, 420px);
  }

  body.ke-front .ed-story--secondary .ed-story-link {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  body.ke-front .deep-controls {
    position: static;
    justify-content: flex-end;
    margin-bottom: 0.65rem;
  }

  body.ke-front .deep-rail {
    padding-top: 0;
    grid-auto-columns: min(78vw, 300px);
  }

  body.ke-front .ig-sheet {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.ke-front {
    --section-space: clamp(3rem, 10vw, 4rem);
  }

  body.ke-front .ed-story--main .ed-story-title {
    font-size: clamp(26px, 7vw, 32px);
  }

  body.ke-front .why-title,
  body.ke-front .deep-headline {
    font-size: clamp(36px, 9vw, 48px);
  }

  body.ke-front .why-q {
    font-size: 18px;
  }

  body.ke-front .ed-story--secondary .ed-story-link {
    grid-template-columns: 1fr;
  }

  body.ke-front .ed-story--secondary .ed-story-media {
    width: 100%;
    height: auto;
    min-height: 180px;
    aspect-ratio: 16 / 10;
  }

  body.ke-front .newsletter-banner {
    min-height: 0;
    padding: 1.4rem 1.1rem;
  }

  body.ke-front .ig-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.ke-front .deep-editorial .carousel-next,
  body.ke-front .deep-editorial .carousel-prev {
    display: grid;
    place-items: center;
  }
}

/* --- Automation: text cards, empty states, 404 --- */
.ed-story-media.is-text,
.story-media.is-text,
.archive-thumb.is-text,
.pick-media-inner.is-text,
.deep-media-inner.is-text,
.trend-thumb-wrap.is-text,
.single-hero-placeholder {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
  min-height: 100%;
}

.ed-story-placeholder {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.ke-front .trend-thumb-wrap {
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 6px;
}

body.ke-front .trend-thumb-wrap img {
  width: 78px;
  height: 78px;
  object-fit: cover;
}

body.ke-front .trend-empty,
body.ke-front .trending-empty {
  padding: 0.85rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

body.ke-front .trend-column .trend-empty {
  color: var(--muted);
}

body.ke-front .section-empty {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 16px;
}

.why-demo-flag {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ig-note {
  margin: 0 0 1rem;
  font-size: 13px;
  color: var(--muted);
}

.ig-disclaimer {
  cursor: default;
}

.error-404-header {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0 1.75rem;
}

.error-404-search {
  max-width: 28rem;
}

.single-hero-placeholder {
  min-height: clamp(220px, 32vw, 420px);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ---------- Quote block styles (core/quote) ---------- */
.wp-block-quote.is-style-ke-magazine,
.wp-block-quote.is-style-ke-culture-note,
.wp-block-quote.is-style-ke-fact {
  box-shadow: none;
  overflow-wrap: anywhere;
}

.entry-content blockquote.wp-block-quote.is-style-ke-magazine,
.editor-styles-wrapper .wp-block-quote.is-style-ke-magazine,
.wp-block-quote.is-style-ke-magazine {
  margin: 2.6rem 0;
  padding: 2rem 0.15rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: left;
}

.wp-block-quote.is-style-ke-magazine p {
  margin: 0;
}

.wp-block-quote.is-style-ke-magazine cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry-content figure.wp-block-quote.is-style-ke-magazine > blockquote,
.entry-content figure.wp-block-quote.is-style-ke-culture-note > blockquote,
.entry-content figure.wp-block-quote.is-style-ke-fact > blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font: inherit;
  color: inherit;
}

.entry-content blockquote.wp-block-quote.is-style-ke-culture-note,
.editor-styles-wrapper .wp-block-quote.is-style-ke-culture-note,
.wp-block-quote.is-style-ke-culture-note {
  margin: 2.2rem 0;
  padding: 1.3rem 1.35rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.wp-block-quote.is-style-ke-culture-note::before {
  content: "CULTURE NOTE";
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

.wp-block-quote.is-style-ke-culture-note p {
  margin: 0;
}

.wp-block-quote.is-style-ke-culture-note cite {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.entry-content blockquote.wp-block-quote.is-style-ke-fact,
.editor-styles-wrapper .wp-block-quote.is-style-ke-fact,
.wp-block-quote.is-style-ke-fact {
  margin: 2.2rem 0;
  padding: 1.25rem 1.3rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wp-block-quote.is-style-ke-fact::before {
  content: "DID YOU KNOW?";
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

.wp-block-quote.is-style-ke-fact p {
  margin: 0;
}

.wp-block-quote.is-style-ke-fact cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 640px) {
  .wp-block-quote.is-style-ke-magazine {
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
    padding: 1.5rem 0;
    margin: 1.85rem 0;
  }

  .wp-block-quote.is-style-ke-culture-note,
  .wp-block-quote.is-style-ke-fact {
    padding: 1.1rem 1rem 1.05rem;
  }
}

/* ---------- Automatic editorial article (single only) ---------- */
body.ke-article .single-title {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
}

body.ke-article .single-main-col {
  max-width: 760px;
}

body.ke-article .ke-article-deck,
body.ke-article .single-intro {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

body.ke-article .ke-article-body {
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);
}

body.ke-article .ke-article-body > p:first-of-type,
body.ke-article .ke-article-body > .wp-block-paragraph:first-of-type,
body.ke-article .ke-article-body .ke-article-intro {
  font-size: 1.08em;
  line-height: 1.75;
}

body.ke-article .ke-article-body .ke-article-intro {
  color: var(--ink);
}

body.ke-article .ke-article-body .ke-image-placeholder {
  margin: 2.4rem 0;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  border: 1px dashed var(--line);
  background: var(--soft);
  border-radius: 6px;
}

body.ke-article .ke-article-body .ke-image-placeholder img[src=""],
body.ke-article .ke-article-body .ke-image-placeholder img:not([src]) {
  display: none;
}

body.ke-article .ke-article-body .ke-image-placeholder figcaption {
  padding: 1.25rem 1.1rem;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

body.ke-article .ke-article-body h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin-top: 2.75rem;
  margin-bottom: 0.95rem;
}

body.ke-article .ke-article-body h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-top: 2.1rem;
}

body.ke-article .ke-article-body > * + * {
  margin-top: 1.35rem;
}

body.ke-article .ke-article-body ul,
body.ke-article .ke-article-body ol {
  gap: 0.55rem;
  padding-left: 1.35rem;
  line-height: 1.75;
}

body.ke-article .ke-article-body .wp-block-quote:not(.is-style-ke-culture-note):not(.is-style-ke-fact) {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 2.75rem 0;
  padding: 2.1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.ke-article .ke-article-body .wp-block-quote.is-style-ke-magazine,
body.ke-article .ke-article-body .ke-editorial-quote {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 2.75rem 0;
  padding: 2.1rem 0;
}

body.ke-article .ke-section-label {
  margin: 0 0 0.45rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

body.ke-article .ke-note-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.ke-article .ke-culture-note,
body.ke-article .ke-fact,
body.ke-article .ke-takeaway {
  margin: 2.25rem 0;
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: 4px;
}

body.ke-article .ke-culture-note {
  border: 1px solid var(--line);
  background: var(--soft);
}

body.ke-article .ke-fact {
  border: 1px solid var(--ink);
  background: #fff;
}

body.ke-article .ke-takeaway {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

body.ke-article .ke-culture-note p,
body.ke-article .ke-fact p,
body.ke-article .ke-takeaway p {
  margin: 0;
}

body.ke-article .ke-culture-note p + p,
body.ke-article .ke-fact p + p,
body.ke-article .ke-takeaway p + p {
  margin-top: 0.65rem;
}

body.ke-article .ke-editorial-figure {
  margin: 2.4rem 0;
}

body.ke-article .ke-editorial-figure img,
body.ke-article .ke-article-body .wp-block-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

body.ke-article .ke-editorial-figure figcaption,
body.ke-article .ke-article-body .wp-block-image figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: left;
}

body.ke-article .ke-editorial-table-wrap,
body.ke-article .ke-article-body .wp-block-table {
  margin: 2.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.ke-article .ke-editorial-table,
body.ke-article .ke-article-body table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

body.ke-article .wp-block-separator {
  margin: 2.5rem auto;
  max-width: 4rem;
  border: 0;
  border-top: 1px solid var(--line);
}

body.ke-article .wp-block-pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

@media (max-width: 640px) {
  body.ke-article .single-title {
    font-size: clamp(42px, 10vw, 48px);
  }

  body.ke-article .ke-article-body {
    font-size: 17px;
    line-height: 1.8;
  }

  body.ke-article .ke-article-body h2 {
    font-size: clamp(1.75rem, 7vw, 2rem);
  }
}

/* ---------- Sticky TOC + reading progress (single only) ---------- */
body.ke-article .ke-read-progress {
  position: sticky;
  top: var(--header-h);
  z-index: 120;
  height: 2px;
  background: var(--line);
}

body.ke-article .ke-read-progress-bar {
  display: block;
  width: 0%;
  height: 2px;
  background: var(--accent);
}

body.ke-article .ke-article-body h2,
body.ke-article .ke-article-body h3 {
  scroll-margin-top: calc(var(--header-h) + 0.85rem);
}

body.ke-article .single-layout.has-ke-toc {
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  width: min(100% - (var(--gutter) * 2), 1320px);
  gap: 2rem;
}

body.ke-article .ke-toc-desktop-col {
  min-width: 0;
}

body.ke-article .ke-toc--desktop {
  position: sticky;
  top: calc(var(--header-h) + 1.15rem);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0.15rem 0 0.85rem;
  border-left: 1px solid var(--line);
}

body.ke-article .ke-toc-label,
body.ke-article .ke-toc-toggle {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.ke-article .ke-toc-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

body.ke-article .ke-toc-toggle::after {
  content: "+";
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

body.ke-article .ke-toc-toggle[aria-expanded="true"]::after {
  content: "–";
}

body.ke-article .ke-toc-list,
body.ke-article .ke-toc-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.ke-article .ke-toc-item--h2 + .ke-toc-item--h2 {
  margin-top: 0.55rem;
}

body.ke-article .ke-toc-sub {
  margin: 0.35rem 0 0.15rem;
  padding-left: 0.85rem;
}

body.ke-article .ke-toc-link {
  display: block;
  position: relative;
  padding: 0.22rem 0 0.22rem 0.15rem;
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-decoration: none;
  max-width: 100%;
}

body.ke-article .ke-toc-item--h2 > .ke-toc-link {
  font-weight: 500;
  color: var(--ink-soft);
}

body.ke-article .ke-toc-item--h3 > .ke-toc-link {
  font-size: 0.86rem;
}

body.ke-article .ke-toc-link:hover,
body.ke-article .ke-toc-link:focus-visible {
  color: var(--ink);
}

body.ke-article .ke-toc-item.is-active > .ke-toc-link {
  color: var(--accent);
  font-weight: 600;
}

body.ke-article .ke-toc--desktop .ke-toc-item.is-active > .ke-toc-link::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 2px;
  background: var(--accent);
}

body.ke-article .ke-toc--mobile {
  margin: 0 0 1.75rem;
}

body.ke-article .ke-toc-panel {
  padding-bottom: 0.5rem;
  overflow-x: hidden;
}

body.ke-article .ke-toc--desktop {
  display: none;
}

body.ke-article .ke-toc--mobile {
  display: block;
}

@media (min-width: 1120px) {
  body.ke-article .ke-toc--desktop {
    display: block;
  }

  body.ke-article .ke-toc--mobile {
    display: none;
  }
}

@media (max-width: 1119px) {
  body.ke-article .single-layout.has-ke-toc {
    grid-template-columns: minmax(0, 1fr) 300px;
    width: min(100% - (var(--gutter) * 2), 1100px);
  }

  body.ke-article .ke-toc-desktop-col {
    display: none;
  }
}

@media (max-width: 980px) {
  body.ke-article .single-layout.has-ke-toc {
    grid-template-columns: 1fr;
    width: min(100% - (var(--gutter) * 2), var(--container));
  }
}
