/*
Theme Name: POP Editorial by ZASITO
Theme URI: https://zasito.com/pop-editorial
Author: ZASITO
Author URI: https://zasito.com
Description: POP Editorial by ZASITO is the refined, black-and-white editorial alternate of POP by ZASITO — a calm, whitespace-driven culture magazine in the spirit of readthecloud.com. Centered logo, full-bleed hero, "Most Popular" carousel, clean Latest grid with Load More, and a category letters band. Keeps every Main-theme feature: Elementor & Theme Builder, Celebrities/Shows/Reviews CPTs, site-wide ad slots, customizer, Tailwind layer and Thai typography.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pop-by-zasito
Tags: entertainment, news, magazine, blog, elementor, custom-post-types, editorial, minimalist, custom-logo, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* =========================================================================
   POP Editorial — Design Tokens (black & white, minimal)
   ========================================================================= */
:root {
  --ed-ink: #111111;
  --ed-ink-soft: #3a3a3a;
  --ed-muted: #8c8c8c;
  --ed-line: #e6e4df;
  --ed-line-strong: #111111;
  --ed-bg: #ffffff;
  --ed-bg-soft: #f5f4f1;
  --ed-dark: #0d0d0d;
  --ed-on-dark: #d8d6d1;

  --ed-serif: "Trirong", Georgia, "Times New Roman", serif;
  --ed-sans: "Trirong", Georgia, "Times New Roman", serif;

  --ed-container: 1200px;
  --ed-wide: 1360px;
  --ed-gap: 40px;
  --ed-transition: 0.3s cubic-bezier(.2,.6,.2,1);

  /* keep main-theme variable names alive for reused parts */
  --pop-red: #111111;
  --pop-black: #111111;
  --pop-ink: #111111;
  --pop-gold: #111111;
  --pop-radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ed-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ed-ink);
  background: var(--ed-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ed-ink); text-decoration: none; transition: opacity var(--ed-transition), color var(--ed-transition); }
a:hover { opacity: 0.62; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ed-serif);
  font-weight: 600;
  line-height: 1.32;
  margin: 0 0 0.5em;
  color: var(--ed-ink);
  letter-spacing: 0;
}
h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.22; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.26; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.3em; }

blockquote {
  margin: 2em 0;
  padding: 0.4em 0 0.4em 1.6rem;
  border-left: 2px solid var(--ed-ink);
  font-family: var(--ed-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
}

hr { border: 0; border-top: 1px solid var(--ed-line); margin: 2.6rem 0; }
::selection { background: var(--ed-ink); color: #fff; }

code, pre { font-family: "SFMono-Regular", Consolas, monospace; background: var(--ed-bg-soft); }
code { padding: 0.15em 0.4em; font-size: 0.9em; }
pre { padding: 1rem 1.2rem; overflow: auto; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.pop-container,
.ed-container {
  width: 100%;
  max-width: var(--ed-container);
  margin: 0 auto;
  padding: 0 28px;
}
.ed-container--wide { max-width: var(--ed-wide); }
.pop-site-main { padding: 0 0 90px; }
.home .pop-site-main, .blog .pop-site-main { padding-top: 0; }
/* Homepage: category letters band sits flush against the footer */
.home .pop-site-main { padding-bottom: 0; }
.home .pop-footer { margin-top: 0; }
.home .ed-letters { margin-bottom: 0; }
/* Homepage vertical rhythm */
.ed-thumbstrip { margin: 0 0 0; }
.home .ed-container--wide { padding-top: 26px; }
/* top gap matches the hero -> thumbnail-strip gap (.pop-hero margin-bottom) */
.home .ed-popular { margin: 14px 0 90px; }
.home .pop-section__head { margin-bottom: 50px; }

.pop-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 64px;
  align-items: start;
}
.pop-layout.no-sidebar { grid-template-columns: minmax(0,1fr); }

.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;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ed-ink); color: #fff; padding: 12px 20px; z-index: 100000; }
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================================
   Buttons & eyebrow
   ========================================================================= */
.pop-btn, .ed-btn {
  display: inline-block;
  background: var(--ed-ink);
  color: #fff;
  font-family: var(--ed-sans);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 15px 34px;
  border: 1px solid var(--ed-ink);
  border-radius: 0;
  cursor: pointer;
  transition: background var(--ed-transition), color var(--ed-transition);
}
.pop-btn:hover, .ed-btn:hover { background: #fff; color: var(--ed-ink); opacity: 1; }
.ed-btn--ghost { background: transparent; color: var(--ed-ink); }
.ed-btn--ghost:hover { background: var(--ed-ink); color: #fff; }

.pop-pill, .ed-eyebrow {
  display: inline-block;
  font-family: var(--ed-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ed-muted);
  background: none;
  padding: 0;
  border-radius: 0;
}
.pop-pill { color: var(--ed-ink); }
.pop-pill::before { content: ""; }

/* =========================================================================
   Top utility bar (slim) + optional trending ticker
   ========================================================================= */
.pop-topbar {
  background: var(--ed-bg);
  border-bottom: 1px solid var(--ed-line);
  color: var(--ed-muted);
  font-size: 0.78rem;
}
.pop-topbar .pop-container {
  display: flex; align-items: center; gap: 22px; height: 40px; overflow: hidden;
}
.pop-topbar__label {
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ed-ink); flex: 0 0 auto;
}
.pop-ticker { overflow: hidden; flex: 1 1 auto; white-space: nowrap; }
.pop-ticker__track { display: inline-flex; gap: 40px; animation: ed-ticker 95s linear infinite; }
.pop-ticker a { color: var(--ed-muted); }
.pop-ticker a:hover { color: var(--ed-ink); }
.pop-topbar:hover .pop-ticker__track { animation-play-state: paused; }
@keyframes ed-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pop-topbar__social { display: flex; gap: 16px; flex: 0 0 auto; }
.pop-topbar__social a { color: var(--ed-muted); }
.pop-topbar__social a:hover { color: var(--ed-ink); }

/* =========================================================================
   Header — centered logo + tagline (The Cloud style)
   ========================================================================= */
.pop-header {
  background: var(--ed-bg);
  border-bottom: 1px solid var(--ed-line);
  position: sticky; top: 0; z-index: 200;
}
.pop-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
}
.pop-header__left { display: flex; align-items: center; gap: 18px; }
.pop-header__right { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.pop-branding { text-align: center; }
.pop-branding a { display: inline-block; }
.custom-logo { max-height: 64px; width: auto; margin: 0 auto; }
.pop-logo-text {
  font-family: var(--ed-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ed-ink);
  line-height: 1;
}
.pop-logo-text .accent { color: var(--ed-ink); }
.pop-tagline {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ed-muted);
}

.pop-icon-btn {
  background: none; border: 0; cursor: pointer;
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ed-ink); padding: 8px; line-height: 1; font-family: var(--ed-sans); font-weight: 600;
}
.pop-icon-btn svg { width: 20px; height: 20px; display: block; }

/* Overlay navigation */
.pop-nav {
  position: fixed; inset: 0;
  background: var(--ed-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--ed-transition), visibility var(--ed-transition);
  z-index: 300;
  padding: 80px 24px;
  overflow-y: auto;
}
.pop-nav.is-open { opacity: 1; visibility: visible; }
.pop-nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.pop-nav li { margin: 2px 0; }
.pop-nav a {
  font-family: var(--ed-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--ed-ink);
  display: inline-block;
  padding: 6px 10px;
}
.pop-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 8px; }
.pop-nav .sub-menu { margin-bottom: 10px; }
.pop-nav .sub-menu a { font-size: 1.05rem; font-family: var(--ed-sans); color: var(--ed-muted); }
.pop-nav__close {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  top: auto; right: auto;
  background: none; cursor: pointer;
  border: 1px solid var(--ed-ink);
  padding: 14px 30px;
  font-family: var(--ed-sans); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; font-size: 0.8rem; color: var(--ed-ink);
  transition: background var(--ed-transition), color var(--ed-transition);
}
.pop-nav__close:hover { background: var(--ed-ink); color: #fff; }
.pop-menu-toggle { display: inline-flex; }

/* Header search drawer */
.pop-search-drawer { max-height: 0; overflow: hidden; background: var(--ed-bg-soft); transition: max-height var(--ed-transition); border-bottom: 1px solid var(--ed-line); }
.pop-search-drawer.is-open { max-height: 130px; }
.pop-search-drawer .pop-container { padding-top: 22px; padding-bottom: 22px; }
.pop-search-drawer form { display: flex; gap: 12px; }
.pop-search-drawer input[type="search"] { flex: 1; border: 0; border-bottom: 1px solid var(--ed-ink); background: transparent; padding: 14px 4px; font-size: 1.2rem; font-family: var(--ed-serif); }
.pop-search-drawer input:focus { outline: none; }

/* =========================================================================
   Search form
   ========================================================================= */
.pop-search-form { display: flex; gap: 10px; }
.pop-search-field { flex: 1; border: 1px solid var(--ed-line); background: transparent; padding: 13px 16px; font-family: inherit; }
.pop-search-field:focus { outline: none; border-color: var(--ed-ink); }

/* =========================================================================
   Hero — full-bleed editorial
   ========================================================================= */
.pop-hero { margin: 0 0 14px; }
.ed-hero {
  position: relative;
  min-height: clamp(440px, 70vh, 720px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  background: #0d0d0d;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;          /* let the page scroll vertically; we handle horizontal swipe */
  -webkit-user-select: none;
  user-select: none;
}
.ed-hero:active { cursor: grabbing; }
.ed-hero__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease;
}
.ed-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.ed-hero__media { position: absolute; inset: 0; }
.ed-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.ed-hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.58) 100%);
}
.ed-hero__body { position: relative; z-index: 2; max-width: 820px; padding: 40px 28px; }
.ed-hero__body .ed-eyebrow, .ed-hero__body .pop-pill { color: rgba(255,255,255,0.85); }
.ed-hero__title { color: #fff; font-size: clamp(1.4rem, 3.2vw, 2.6rem); line-height: 1.22; margin: 12px 0 12px; }
.ed-hero__title a { color: #fff; }
.ed-hero__title a:hover { opacity: 0.85; }
.ed-hero__excerpt { color: rgba(255,255,255,0.85); font-size: 0.98rem; max-width: 600px; margin: 0 auto 16px; }
.ed-hero__meta { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; }
.ed-hero__meta a { color: #fff; }
.ed-hero__meta a:hover { color: #fff; opacity: 0.8; }
.ed-hero__dots { position: absolute; z-index: 4; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.ed-hero__dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.ed-hero__dots button.is-active { background: #fff; }
.ed-hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.6); background: transparent;
  color: #fff; cursor: pointer; font-size: 1rem; opacity: 0;
  transition: opacity var(--ed-transition), background var(--ed-transition);
}
.ed-hero:hover .ed-hero__arrow { opacity: 1; }
.ed-hero__arrow:hover { background: #fff; color: #111; }
.ed-hero__arrow--prev { left: 22px; }
.ed-hero__arrow--next { right: 22px; }
@media (hover:none){ .ed-hero__arrow{opacity:1;} }

/* Thumbnail strip under hero */
.ed-thumbstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ed-line);
}
.ed-thumb {
  position: relative; min-height: 248px; display: flex; align-items: flex-end;
  color: #fff; background: #111; overflow: hidden;
}
.ed-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity var(--ed-transition), transform var(--ed-transition); }
.ed-thumb:hover img { opacity: 1; transform: scale(1.04); }
/* gradient only along the bottom so the full title stays readable
   without dimming the whole featured image */
.ed-thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.74) 100%);
}
.ed-thumb span {
  position: relative; z-index: 2; padding: 22px;
  font-family: var(--ed-serif);
  font-size: 1.08rem; font-weight: 600; line-height: 1.38;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.ed-thumb a { position: absolute; inset: 0; z-index: 3; }

/* =========================================================================
   Section heading (centered, editorial)
   ========================================================================= */
.pop-section { margin: 80px 0; }
.pop-section__head, .ed-sec-head { text-align: center; margin-bottom: 44px; }
.pop-section__title, .ed-sec-title {
  font-family: var(--ed-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
.pop-section__title::before { content: none; }
.pop-section__title::after, .ed-sec-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--ed-ink);
}
.pop-section__more, .ed-sec-more {
  display: inline-block; margin-top: 14px;
  font-family: var(--ed-sans); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ed-ink);
}

/* =========================================================================
   Article cards / grid
   ========================================================================= */
.pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
.pop-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pop-grid--4 { grid-template-columns: repeat(4, 1fr); }

.pop-card { background: none; display: flex; flex-direction: column; }
.pop-card__media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--ed-bg-soft); }
.pop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ed-transition); }
.pop-card:hover .pop-card__media img { transform: scale(1.05); }
.pop-card__cat { position: absolute; top: 0; left: 0; }
.pop-card__cat .pop-pill { background: #fff; color: var(--ed-ink); padding: 7px 12px; font-size: 0.64rem; letter-spacing: 2px; }
.pop-card__body { padding: 18px 2px 0; }
.pop-card__eyebrow { display: block; margin-bottom: 8px; }
.pop-card__eyebrow .pop-pill { color: var(--ed-muted); }
.pop-card__title { font-family: var(--ed-serif); font-size: 1.3rem; line-height: 1.36; margin: 6px 0 10px; font-weight: 600; }
.pop-card__title a { color: var(--ed-ink); }
.pop-card__title a:hover { opacity: 0.6; }
.pop-card__meta { font-size: 0.74rem; color: var(--ed-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.pop-card__excerpt { color: var(--ed-ink-soft); font-size: 0.97rem; margin-top: 10px; line-height: 1.7; }

.pop-listcard { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--ed-line); }
.pop-listcard:last-child { border-bottom: 0; }
.pop-listcard__media { flex: 0 0 92px; aspect-ratio: 1/1; overflow: hidden; background: var(--ed-bg-soft); }
.pop-listcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pop-listcard__title { font-family: var(--ed-serif); font-size: 1.02rem; line-height: 1.4; margin: 4px 0; font-weight: 600; }
.pop-rank { font-family: var(--ed-serif); font-size: 1.6rem; color: var(--ed-muted); width: 34px; flex: 0 0 auto; }

/* =========================================================================
   Most Popular — numbered carousel
   ========================================================================= */
.ed-popular { background: var(--ed-dark); color: #fff; padding: 80px 0; margin: 80px 0; }
.ed-popular .ed-sec-title { color: #fff; }
.ed-popular .ed-sec-title::after { background: #fff; }
.ed-popular .pop-pill { color: rgba(255,255,255,0.65); }
.ed-pop-viewport { overflow: hidden; }
.ed-pop-track { display: flex; gap: 28px; transition: transform .6s var(--ed-transition); }
/* equal 3-up with uniform column gap (same as the earlier version) */
.ed-pop-card { flex: 0 0 calc((100% - 56px) / 3); position: relative; }
.ed-pop-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #111; }
.ed-pop-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ed-transition), filter .4s var(--ed-transition);
}
/* Darken via a filter ON THE IMAGE itself, so the dimming zooms and
   moves together with the photo (no mismatched / un-darkened strip),
   and there is NO layer above the title — text is always on top. */
.ed-pop-card:hover .ed-pop-card__media img,
.ed-pop-card:focus-within .ed-pop-card__media img {
  transform: scale(1.05);
  filter: brightness(0.42);
}
.ed-pop-card__hover {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end;
  padding: 26px;
  color: #fff;
  background: none;
  opacity: 0;
  transition: opacity var(--ed-transition);
  pointer-events: none;
}
.ed-pop-card:hover .ed-pop-card__hover,
.ed-pop-card:focus-within .ed-pop-card__hover { opacity: 1; }
.ed-pop-card__hover-title {
  color: #fff;
  font-family: var(--ed-serif); font-weight: 600;
  font-size: 1.25rem; line-height: 1.34; margin: 0;
  text-shadow: 0 1px 20px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.5);
  transform: translateY(10px);
  transition: transform var(--ed-transition);
}
.ed-pop-card:hover .ed-pop-card__hover-title,
.ed-pop-card:focus-within .ed-pop-card__hover-title { transform: translateY(0); }
/* The image is wrapped in <a>; the global `a:hover{opacity:.62}` was
   fading the whole link (incl. the white title → looked grey). Cancel
   it here so the title stays pure #fff on hover. */
.ed-pop-card__media,
.ed-pop-card__media:hover,
.ed-pop-card__media:focus-within { opacity: 1; }
.ed-pop-card__hover-title,
.ed-popular .ed-pop-card__title a:hover { opacity: 1; }
.ed-pop-card__body { padding: 22px 4px 0; }
.ed-pop-card__title { font-family: var(--ed-serif); font-size: 1.18rem; line-height: 1.4; margin: 6px 0 0; font-weight: 600; }
.ed-pop-card__title a { color: #fff; }
.ed-pop-nav { display: flex; justify-content: center; gap: 14px; margin-top: 44px; }
.ed-pop-nav button { width: 50px; height: 50px; border: 1px solid #fff; background: transparent; cursor: pointer; font-size: 1rem; color: #fff; transition: background var(--ed-transition), color var(--ed-transition); }
.ed-pop-nav button:hover { background: #fff; color: var(--ed-dark); }
.ed-pop-nav button[disabled] { opacity: .3; cursor: default; }

/* Latest + Load More */
.ed-loadmore-wrap { text-align: center; margin-top: 64px; margin-bottom: 110px; }
.ed-loadmore[hidden] { display: none; }
.ed-loadmore.is-loading { opacity: .5; pointer-events: none; }

/* =========================================================================
   Categories letters band
   ========================================================================= */
.ed-letters { display: grid; grid-template-columns: repeat(6, 1fr); }
.ed-letter {
  position: relative; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: #111; overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.12);
}
.ed-letter:last-child { border-right: 0; }
.ed-letter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; transition: opacity var(--ed-transition), transform var(--ed-transition); }
.ed-letter:hover img { opacity: .58; transform: scale(1.06); }
.ed-letter__big { position: relative; z-index: 2; font-family: var(--ed-serif); font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: 1; }
.ed-letter__name { position: absolute; z-index: 3; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 0.76rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.ed-letter a { position: absolute; inset: 0; z-index: 4; }

/* =========================================================================
   Single post
   ========================================================================= */
.pop-breadcrumbs {
  font-family: var(--ed-sans); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ed-muted);
  padding: 30px 0 0; margin: 0 0 26px;
}
.pop-breadcrumbs a { color: var(--ed-muted); }
.pop-breadcrumbs a:hover { color: var(--ed-ink); }
.pop-breadcrumbs span { margin: 0 6px; }

.pop-article-head { max-width: 820px; margin: 12px auto 36px; text-align: center; }
.pop-article-head h1 { margin: 14px 0 18px; }
.pop-article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--ed-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; }
.pop-featured-image { margin: 0 auto 44px; text-align: center; }
.pop-featured-image img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.pop-featured-image figcaption, .wp-element-caption, .wp-caption-text { color: var(--ed-muted); font-size: 0.84rem; text-align: center; margin-top: 10px; }

.pop-entry-content { max-width: 720px; margin: 0 auto; font-size: 1.18rem; line-height: 1.95; font-family: var(--ed-sans); }
.pop-entry-content p { margin: 0 0 1.5em; }
.pop-entry-content h2 { margin-top: 1.9em; }
.pop-entry-content h2, .pop-entry-content h3 { font-family: var(--ed-serif); }
.pop-entry-content img { margin: 2em 0; }
.pop-entry-content figure { margin: 2em 0; }
.pop-entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.pop-single-layout { margin-top: 10px; align-items: start; }
.pop-single-layout .pop-entry-content,
.pop-single-layout .pop-share,
.pop-single-layout .pop-tags,
.pop-single-layout .pop-author-box,
.pop-single-layout .pop-postnav,
.pop-single-layout .pop-comments { max-width: 100%; margin-left: 0; margin-right: 0; }
.pop-single-layout .pop-entry-content { margin-top: 0; }

.pop-share { max-width: 720px; margin: 44px auto; display: flex; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid var(--ed-ink); border-bottom: 1px solid var(--ed-ink); }
.pop-share span { font-family: var(--ed-sans); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.78rem; }
.pop-share a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ed-ink); color: var(--ed-ink); border-radius: 50%; font-size: 0.85rem; }
.pop-share a:hover { background: var(--ed-ink); color: #fff; opacity: 1; }

.pop-tags { max-width: 720px; margin: 26px auto; }
.pop-tags a { display: inline-block; border: 1px solid var(--ed-line); padding: 6px 14px; margin: 0 8px 8px 0; font-size: 0.82rem; }
.pop-tags a:hover { background: var(--ed-ink); color: #fff; opacity: 1; }

.pop-author-box { max-width: 720px; margin: 40px auto; display: flex; gap: 22px; background: var(--ed-bg-soft); padding: 30px; }
.pop-author-box img { border-radius: 50%; width: 78px; height: 78px; }
.pop-author-box h4 { margin: 0 0 6px; font-family: var(--ed-serif); }

.pop-postnav { max-width: 720px; margin: 40px auto; display: flex; justify-content: space-between; gap: 24px; }
.pop-postnav a { font-family: var(--ed-serif); font-size: 1.05rem; }
.pop-postnav small { display: block; color: var(--ed-muted); font-family: var(--ed-sans); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem; margin-bottom: 4px; }

/* CPT extras */
.pop-profile { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }
.pop-profile__photo { overflow: hidden; }
.pop-factsheet { margin-top: 24px; border-top: 1px solid var(--ed-ink); }
.pop-factsheet dt { font-family: var(--ed-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.74rem; color: var(--ed-muted); padding: 14px 0 0; }
.pop-factsheet dd { margin: 0; padding: 2px 0 14px; border-bottom: 1px solid var(--ed-line); }
.pop-rating { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ed-ink); font-family: var(--ed-serif); font-size: 1.3rem; padding: 10px 22px; }
.pop-stars { letter-spacing: 3px; font-size: 1.2rem; }

/* =========================================================================
   Sidebar / widgets
   ========================================================================= */
.pop-sidebar .widget { margin-bottom: 44px; }
.pop-widget-title, .pop-sidebar .widget-title, .pop-sidebar .widgettitle {
  font-family: var(--ed-sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 2.5px; text-transform: uppercase;
  border-bottom: 1px solid var(--ed-ink); padding-bottom: 12px; margin: 0 0 20px;
}
.pop-sidebar ul { list-style: none; padding: 0; margin: 0; }
.pop-sidebar .widget li { padding: 10px 0; border-bottom: 1px solid var(--ed-line); }
.pop-sidebar .widget li:last-child { border-bottom: 0; }
.pop-sidebar a:hover { opacity: .6; }
.pop-sticky-block { background: var(--ed-dark); color: #fff; padding: 34px 28px; text-align: center; }
.pop-sticky-block h3 { color: #fff; font-family: var(--ed-serif); }
.pop-sticky-block p { color: var(--ed-on-dark); }
.pop-sticky-block input[type="email"] { width: 100%; padding: 13px 14px; border: 0; margin: 14px 0; }

/* =========================================================================
   Comments / pagination
   ========================================================================= */
.pop-comments { max-width: 720px; margin: 60px auto 0; }
.pop-comments .comment-list { list-style: none; padding: 0; }
.pop-comments .comment-body { border-bottom: 1px solid var(--ed-line); padding: 24px 0; }
.pop-comments .avatar { border-radius: 50%; float: left; margin-right: 18px; }
.pop-comments .children { list-style: none; padding-left: 42px; }
.pop-comments .comment-form input[type="text"],
.pop-comments .comment-form input[type="email"],
.pop-comments .comment-form input[type="url"],
.pop-comments .comment-form textarea { width: 100%; padding: 14px; border: 1px solid var(--ed-line); font-family: inherit; margin-bottom: 14px; }

.pop-pagination { display: flex; justify-content: center; gap: 8px; margin: 60px 0 0; }
.pop-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--ed-line); font-family: var(--ed-serif); }
.pop-pagination .page-numbers.current, .pop-pagination .page-numbers:hover { background: var(--ed-ink); color: #fff; border-color: var(--ed-ink); }

/* =========================================================================
   Footer — dark, centered logo + subscribe
   ========================================================================= */
.pop-footer { background: var(--ed-dark); color: var(--ed-on-dark); margin-top: 90px; }
.pop-footer a { color: var(--ed-on-dark); }
.pop-footer a:hover { color: #fff; opacity: 1; }
.ed-footer-top { text-align: center; padding: 70px 0 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ed-footer-logo { display: inline-block; }
.ed-footer-logo .pop-logo-text { color: #fff; }
.pop-footer-logo__img, .ed-footer-top .custom-logo { max-height: 60px; width: auto; margin: 0 auto; }
.ed-footer-tagline { margin-top: 12px; font-size: 0.74rem; letter-spacing: 3px; text-transform: uppercase; color: var(--ed-muted); }
.ed-subscribe { max-width: 460px; margin: 30px auto 0; display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,.4); }
.ed-subscribe input[type="email"] { flex: 1; background: transparent; border: 0; color: #fff; padding: 14px 4px; font-family: var(--ed-sans); }
.ed-subscribe input::placeholder { color: var(--ed-muted); }
.ed-subscribe input:focus { outline: none; }
.ed-subscribe button { background: none; border: 0; color: #fff; cursor: pointer; font-family: var(--ed-sans); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.76rem; padding: 0 6px; }
.ed-footer-mid { display: flex; flex-direction: column; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.pop-footer__menu, .ed-footer-mid nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin: 0; padding: 0; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; }
.ed-footer-mid nav { width: 100%; }
.pop-footer__social { display: flex; gap: 16px; }
.pop-footer__social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8rem; }
.pop-footer__social a:hover { background: #fff; color: var(--ed-dark); }
.ed-footer-bottom { padding: 22px 0; font-size: 0.76rem; color: var(--ed-muted); text-align: center; }
.pop-footer__top { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; padding: 60px 0; }
.pop-footer h4 { color: #fff; font-family: var(--ed-serif); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 8px; margin-bottom: 16px; }
.pop-footer ul { list-style: none; padding: 0; margin: 0; }
.pop-footer li { padding: 6px 0; }
.pop-footer__brand p { margin-top: 14px; }

/* =========================================================================
   Ads
   ========================================================================= */
.pop-ad { margin: 60px auto; text-align: center; max-width: 100%; }
.pop-ad--home_sidebar { margin: 0 0 40px; }
.pop-ad-band { width: 100%; }
.pop-ad-band .pop-ad { margin: 50px auto; }
.pop-ad__label { display: block; font-family: var(--ed-sans); font-weight: 600; font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ed-muted); margin-bottom: 8px; }
.pop-ad__img { display: inline-block; max-width: 100%; height: auto; }

/* =========================================================================
   Archive hero / 404 / none
   ========================================================================= */
.pop-archive-hero { position: relative; min-height: clamp(440px, 70vh, 720px); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: #0d0d0d; overflow: hidden; margin: 0; width: 100%; }
.pop-archive-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pop-archive-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.pop-archive-hero__body { position: relative; z-index: 2; max-width: 760px; padding: 40px 28px; }
.pop-archive-hero__kicker { font-family: var(--ed-sans); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 0.78rem; color: rgba(255,255,255,.85); }
.pop-archive-hero__title { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.22; margin: 16px 0 10px; }
.pop-archive-hero__title a { color: #fff; }
.pop-archive-hero__meta { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; }
.pop-archive-hero__meta a { color: #fff; }
.pop-archive-hero__meta a:hover { color: #fff; opacity: 0.8; }
.pop-archive-hero__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pop-archive-hero__sub a { color: #fff; font-family: var(--ed-serif); font-size: 1rem; line-height: 1.4; border-top: 1px solid rgba(255,255,255,.4); padding-top: 12px; }
.pop-archive-desc { text-align: center; max-width: 680px; margin: -30px auto 50px; color: var(--ed-ink-soft); }

.pop-404 { text-align: center; padding: 110px 0; }
.pop-404 .code { font-family: var(--ed-serif); font-size: clamp(5rem,16vw,12rem); line-height: .9; }
.pop-no-results { max-width: 620px; margin: 80px auto; text-align: center; }

/* =========================================================================
   WP core
   ========================================================================= */
.alignleft { float: left; margin: 0 2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 2rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide { margin-left: -60px; margin-right: -60px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.sticky .pop-card { outline: 2px solid var(--ed-ink); outline-offset: 6px; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.elementor-button { font-family: var(--ed-sans) !important; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--ed-serif); }
.elementor-page .pop-site-main { padding: 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .pop-layout { grid-template-columns: 1fr; }
  .pop-sidebar { margin-top: 50px; }
  .pop-grid, .pop-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ed-pop-card, .ed-pop-card:nth-child(3n+2) { flex-basis: calc((100% - 28px) / 2); }
  .ed-letters { grid-template-columns: repeat(3, 1fr); }
  .ed-thumbstrip { grid-template-columns: repeat(2, 1fr); }
  .pop-profile { grid-template-columns: 1fr; }
  .pop-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .pop-header__inner { grid-template-columns: auto 1fr auto; }
  .pop-grid, .pop-grid--2, .pop-grid--4 { grid-template-columns: 1fr; }
  .ed-pop-card, .ed-pop-card:nth-child(3n+2) { flex-basis: 100%; }
  .ed-letters { grid-template-columns: repeat(2, 1fr); }
  .ed-thumbstrip { grid-template-columns: repeat(2, 1fr); }
  /* Mobile: shrink the thumb title so it can't bury the photo —
     capped to ~40% of the box height, smaller font, no ellipsis. */
  .ed-thumb { min-height: 0; height: 200px; }
  .ed-thumb span {
    font-size: 0.78rem;
    line-height: 1.3;
    padding: 12px 14px;
    max-height: 40%;
    overflow: hidden;
  }
  .ed-thumb::after {
    background: linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,0.7) 100%);
  }
  .ed-letter { min-height: 200px; }
  .pop-footer__top { grid-template-columns: 1fr; }
  .ed-footer-mid { flex-direction: column; text-align: center; }
  .pop-postnav { flex-direction: column; }
  .pop-archive-hero__sub { grid-template-columns: 1fr; }
  .pop-entry-content { font-size: 1.06rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pop-ticker__track { animation: none; }
  .ed-pop-track { transition: none; }
  html { scroll-behavior: auto; }
}
