/*
Theme Name: Editorial WP
Theme URI: https://github.com/editorial-wp
Author: Editorial WP
Author URI: #
Description: Tema editorial moderno y minimalista para medios de noticias culturales y locales. Diseño tipográfico refinado, SEO optimizado, 100% responsive. Basado en Cormorant Garamond + DM Sans.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: editorial-wp
Tags: news, blog, magazine, minimal, clean, custom-menu, featured-images, editor-style, responsive-layout, two-columns, three-columns
*/

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --ink:        #111110;
  --ink-2:      #3d3d3a;
  --ink-3:      #7a7a75;
  --ink-4:      #b5b5ae;
  --paper:      #FAF9F6;
  --paper-2:    #F1F0EB;
  --paper-3:    #E5E4DC;
  --accent:     #C4572A;
  --accent-2:   #E8916A;
  --accent-bg:  #FDF3EE;
  --white:      #FFFFFF;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  --max:     1280px;
  --gutter:  clamp(1rem, 4vw, 2.5rem);

  --ease: cubic-bezier(.22,.68,0,1.2);
  --fast: 0.18s;
  --med:  0.35s;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font-family: inherit; }

/* ================================================================
   UTILITIES
   ================================================================ */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Tags / Category badges */
.ew-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-body);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--fast);
}
.ew-tag:hover { color: var(--ink); }
.ew-tag--filled {
  background: var(--accent);
  color: var(--white);
  padding: .15em .7em;
  line-height: 1.8;
}
.ew-tag--filled:hover { background: var(--ink); color: var(--white); }

/* Reading progress */
#ew-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* Fade-in animation */
.ew-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.ew-fade.visible { opacity: 1; transform: translateY(0); }
.ew-fade:nth-child(2) { transition-delay: .08s; }
.ew-fade:nth-child(3) { transition-delay: .16s; }
.ew-fade:nth-child(4) { transition-delay: .24s; }

/* Section header */
.ew-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: .875rem;
  border-bottom: 2px solid var(--ink);
}
.ew-section-title {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.ew-section-all {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color var(--fast);
  flex-shrink: 0;
}
.ew-section-all:hover { color: var(--accent); }

/* ================================================================
   HEADER DATE BAR
   ================================================================ */
.ew-datebar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--paper-3);
  padding: .4rem 0;
}
.ew-datebar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ew-datebar-date {
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.ew-ticker-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  overflow: hidden;
  flex: 1;
  max-width: 65%;
}
.ew-ticker-label {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: .2em .6em;
  flex-shrink: 0;
}
.ew-ticker-track { overflow: hidden; flex: 1; }
.ew-ticker-items {
  display: flex;
  gap: 3rem;
  animation: ew-ticker 30s linear infinite;
  white-space: nowrap;
}
.ew-ticker-items a {
  font-size: .6875rem;
  color: var(--ink-2);
  transition: color var(--fast);
}
.ew-ticker-items a:hover { color: var(--accent); }
@keyframes ew-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   SITE HEADER
   ================================================================ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-3);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--med), transform var(--med);
}
.site-header.scrolled { box-shadow: 0 1px 20px rgba(17,17,16,.07); }
.site-header.hidden { transform: translateY(-100%); }

.ew-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
}

/* Left nav */
.ew-primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.ew-primary-nav a {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
  position: relative;
  transition: color var(--fast);
}
.ew-primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--fast);
}
.ew-primary-nav a:hover,
.ew-primary-nav .current-menu-item > a { color: var(--accent); }
.ew-primary-nav a:hover::after,
.ew-primary-nav .current-menu-item > a::after { width: 100%; }

/* Center wordmark */
.ew-wordmark {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-title,
.ew-wordmark .site-title {
  font-family: var(--f-display) !important;
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  line-height: 1 !important;
  color: var(--ink) !important;
  margin: 0 !important;
}
.site-title a { color: inherit !important; transition: color var(--fast); }
.site-title a:hover { color: var(--accent) !important; }
.site-description, .ew-wordmark .site-description {
  font-family: var(--f-body) !important;
  font-size: .65rem !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--ink-3) !important;
  margin-top: .25rem !important;
}

/* Right actions */
.ew-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.ew-btn-search {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--ink-2);
  transition: color var(--fast);
}
.ew-btn-search:hover { color: var(--accent); }
.ew-btn-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ew-btn-subscribe {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55em 1.2em;
  background: var(--ink);
  color: var(--white) !important;
  transition: background var(--fast);
  display: inline-block;
}
.ew-btn-subscribe:hover { background: var(--accent); color: var(--white); }

/* Mobile menu toggle */
.ew-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  color: var(--ink);
}
.ew-menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform var(--fast), opacity var(--fast);
}
.ew-menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ew-menu-toggle.open span:nth-child(2) { opacity: 0; }
.ew-menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay nav */
.ew-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  padding: 5rem var(--gutter) 2rem;
  flex-direction: column;
  overflow-y: auto;
}
.ew-mobile-nav.open { display: flex; }
.ew-mobile-nav a {
  font-family: var(--f-display);
  font-size: 2.25rem;
  font-weight: 600;
  padding: .65rem 0;
  border-bottom: 1px solid var(--paper-3);
  color: var(--ink);
  transition: color var(--fast), padding-left var(--fast);
}
.ew-mobile-nav a:hover { color: var(--accent); padding-left: .5rem; }

/* Search overlay */
.ew-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,16,.92);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.ew-search-overlay.open { display: flex; }
.ew-search-box { width: 100%; max-width: 640px; padding: 0 var(--gutter); }
.ew-search-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--white);
}
.ew-search-input {
  flex: 1;
  padding: 1rem 0;
  background: transparent;
  border: none; outline: none;
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
}
.ew-search-input::placeholder { color: rgba(255,255,255,.3); }
.ew-search-close {
  color: rgba(255,255,255,.5);
  padding: .5rem;
  transition: color var(--fast);
}
.ew-search-close:hover { color: var(--white); }
.ew-search-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ew-search-hint { margin-top: .75rem; font-size: .75rem; color: rgba(255,255,255,.3); letter-spacing: .06em; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.ew-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--paper-3);
}
.ew-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2.5rem;
}

/* Main hero */
.ew-hero-image-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-3);
  display: block;
  position: relative;
}
.ew-hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.ew-hero-image-wrap:hover img { transform: scale(1.03); }
.ew-hero-image-wrap:not(:has(img))::before {
  content: '';
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2C3E50, #3498db 40%, #C4572A);
}
.ew-hero-photo-credit {
  position: absolute;
  bottom: .75rem; left: 1rem;
  font-size: .65rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .06em;
  z-index: 1;
}

.ew-hero-content { padding: 1.5rem 0 0; }
.ew-hero-tag { margin-bottom: .75rem; }
.ew-hero-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.ew-hero-title a:hover { color: var(--accent); }
.ew-hero-excerpt {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 56ch;
}
.ew-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
  font-size: .75rem;
  color: var(--ink-3);
}
.ew-hero-meta .author { font-weight: 500; color: var(--ink-2); }
.ew-hero-meta .dot { opacity: .4; }

/* Hero sidebar stack */
.ew-hero-stack {
  border-left: 1px solid var(--paper-3);
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
}
.ew-stack-article {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--paper-3);
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 1rem;
  align-items: start;
}
.ew-stack-article:first-child { padding-top: 0; }
.ew-stack-article:last-child { border-bottom: none; padding-bottom: 0; }
.ew-stack-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-3);
}
.ew-stack-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ew-stack-thumb:not(:has(img)) {
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
}
.ew-stack-tag { margin-bottom: .35rem; }
.ew-stack-title {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.ew-stack-title a:hover { color: var(--accent); }
.ew-stack-meta { font-size: .7rem; color: var(--ink-3); margin-top: .4rem; }

/* ================================================================
   CONTENT LAYOUT (main + sidebar)
   ================================================================ */
.ew-content-area { padding: 3.5rem 0; }
.ew-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
}

/* ================================================================
   ARTICLE CARDS (3-col)
   ================================================================ */
.ew-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}
.ew-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ew-card { display: flex; flex-direction: column; }
.ew-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 1rem;
  display: block;
}
.ew-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.ew-card:hover .ew-card-image img { transform: scale(1.04); }
.ew-card-image:not(:has(img)) { background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); }

.ew-card-tag { margin-bottom: .5rem; }
.ew-card-title {
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
  flex: 1;
}
.ew-card-title a:hover { color: var(--accent); }
.ew-card-excerpt {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 300;
  margin-bottom: .875rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ew-card-meta {
  font-size: .7rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}
.ew-card-meta .dot { opacity: .4; }

/* Horizontal card (list) */
.ew-card-h {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--paper-3);
  align-items: start;
}
.ew-card-h:first-child { padding-top: 0; }
.ew-card-h:last-child { border-bottom: none; }
.ew-card-h-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-3);
}
.ew-card-h-image img { width: 100%; height: 100%; object-fit: cover; }
.ew-card-h-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: .3rem 0 .5rem;
}
.ew-card-h-title a:hover { color: var(--accent); }
.ew-card-h-meta { font-size: .7rem; color: var(--ink-3); }

/* ================================================================
   FEATURED DARK BAND
   ================================================================ */
.ew-featured-band {
  background: var(--ink);
  color: var(--white);
  padding: 3.5rem 0;
}
.ew-featured-band .ew-section-header { border-bottom-color: rgba(255,255,255,.15); }
.ew-featured-band .ew-section-title { color: var(--white); }
.ew-featured-band .ew-section-all { color: rgba(255,255,255,.35); }
.ew-featured-band .ew-section-all:hover { color: var(--accent-2); }
.ew-featured-band .ew-tag { color: var(--accent-2); }

.ew-featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ew-featured-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}
.ew-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.ew-featured-image:not(:has(img)) {
  background: linear-gradient(135deg, #1a1a2e, #16213e 40%, #0f3460 70%, #C4572A);
}
.ew-featured-image::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 30px,
    rgba(255,255,255,.015) 30px, rgba(255,255,255,.015) 31px
  );
  pointer-events: none;
}

.ew-featured-eyebrow {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.ew-featured-title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.ew-featured-title a:hover { color: var(--accent-2); }
.ew-featured-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  font-weight: 300;
  margin-bottom: 1.75rem;
}
.ew-featured-meta {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.ew-featured-meta .author { color: rgba(255,255,255,.7); font-weight: 500; }
.ew-btn-read {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  padding: .7em 1.4em;
  transition: background var(--fast), border-color var(--fast);
}
.ew-btn-read:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.ew-btn-read svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.ew-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.ew-widget-title {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--paper-3);
  margin-bottom: 1.25rem;
}

/* Most read */
.ew-most-read-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: .75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--paper-3);
  align-items: start;
}
.ew-most-read-item:last-child { border-bottom: none; }
.ew-read-num {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--paper-3);
  line-height: 1;
  margin-top: .1rem;
}
.ew-read-title {
  font-family: var(--f-display);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  margin: .3rem 0 .3rem;
}
.ew-read-title a:hover { color: var(--accent); }
.ew-read-date { font-size: .68rem; color: var(--ink-3); }

/* Newsletter widget */
.ew-newsletter-widget {
  background: var(--accent-bg);
  padding: 1.5rem;
  border: 1px solid #f0d5c8;
}
.ew-newsletter-widget .ew-widget-title { color: var(--accent); border-bottom-color: #f0d5c8; }
.ew-newsletter-headline {
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: .625rem;
}
.ew-newsletter-desc {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}
.ew-newsletter-form { display: flex; flex-direction: column; gap: .5rem; }
.ew-newsletter-form input {
  padding: .7rem .9rem;
  border: 1px solid #d4b9ad;
  background: var(--white);
  font-size: .875rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--fast);
}
.ew-newsletter-form input:focus { border-color: var(--accent); }
.ew-newsletter-form input::placeholder { color: var(--ink-4); }
.ew-newsletter-form button {
  padding: .75rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background var(--fast);
}
.ew-newsletter-form button:hover { background: var(--ink); }

/* Tags cloud */
.ew-tags-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.ew-tags-cloud a {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35em .8em;
  border: 1px solid var(--paper-3);
  color: var(--ink-2);
  transition: all var(--fast);
}
.ew-tags-cloud a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ================================================================
   OPINION SECTION
   ================================================================ */
.ew-opinion-section {
  padding: 3rem 0;
  border-top: 1px solid var(--paper-3);
}
.ew-opinion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.ew-opinion-card {
  padding: 1.5rem;
  background: var(--paper-2);
  border-top: 3px solid var(--paper-3);
  transition: border-color var(--fast);
}
.ew-opinion-card:hover { border-top-color: var(--accent); }
.ew-opinion-author-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.ew-opinion-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-3);
  flex-shrink: 0;
}
.ew-opinion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ew-opinion-author-name { font-size: .8125rem; font-weight: 500; line-height: 1.2; }
.ew-opinion-author-role { font-size: .7rem; color: var(--ink-3); margin-top: .1rem; }
.ew-opinion-title {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .75rem;
}
.ew-opinion-title a:hover { color: var(--accent); }
.ew-opinion-excerpt {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   AGENDA / EVENTS
   ================================================================ */
.ew-agenda-section {
  padding: 3rem 0;
  background: var(--paper-2);
  border-top: 1px solid var(--paper-3);
  border-bottom: 1px solid var(--paper-3);
}
.ew-agenda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.ew-event-card {
  background: var(--paper);
  padding: 1.25rem;
  border: 1px solid var(--paper-3);
  transition: box-shadow var(--fast), transform var(--fast);
}
.ew-event-card:hover {
  box-shadow: 0 8px 24px rgba(17,17,16,.08);
  transform: translateY(-2px);
}
.ew-event-day {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.ew-event-month {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.ew-event-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.ew-event-title a:hover { color: var(--accent); }
.ew-event-meta { font-size: .7rem; color: var(--ink-3); display: flex; flex-direction: column; gap: .2rem; }
.ew-event-type {
  display: inline-flex;
  margin-top: .75rem;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25em .7em;
  border: 1px solid var(--paper-3);
  color: var(--ink-3);
}

/* ================================================================
   SINGLE POST
   ================================================================ */
.ew-post-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--paper-3);
}
.ew-breadcrumb {
  font-size: .75rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ew-breadcrumb a { transition: color var(--fast); }
.ew-breadcrumb a:hover { color: var(--accent); }
.ew-breadcrumb .sep { opacity: .4; }

.ew-post-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  max-width: 820px;
  margin: .75rem 0 1rem;
}
.ew-post-subtitle {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 680px;
  margin-bottom: 1.5rem;
}
.ew-post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.ew-post-author-wrap { display: flex; align-items: center; gap: .75rem; }
.ew-post-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-3);
}
.ew-post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ew-post-author-name { font-size: .875rem; font-weight: 600; }
.ew-post-author-date { font-size: .75rem; color: var(--ink-3); }
.ew-post-reading { font-size: .75rem; color: var(--ink-3); display: flex; align-items: center; gap: .35rem; }
.ew-post-reading svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Post featured image */
.ew-post-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-3);
}
.ew-post-image img { width: 100%; height: 100%; object-fit: cover; }
.ew-post-image-caption {
  font-size: .75rem;
  color: var(--ink-3);
  font-style: italic;
  text-align: center;
  padding: .5rem 0 1.5rem;
  border-bottom: 1px solid var(--paper-3);
}

/* Post content */
.ew-post-content {
  font-size: 1.125rem;
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 680px;
  margin: 2.5rem 0;
}
.ew-post-content p { margin-bottom: 1.5rem; }
.ew-post-content p:last-child { margin-bottom: 0; }
.ew-post-content h2 { font-family: var(--f-display); font-size: 1.75rem; color: var(--ink); letter-spacing: -.02em; margin: 2.5rem 0 1rem; }
.ew-post-content h3 { font-family: var(--f-display); font-size: 1.375rem; color: var(--ink); letter-spacing: -.01em; margin: 2rem 0 .75rem; }
.ew-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-bg);
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
}
.ew-post-content blockquote cite { display: block; font-size: .875rem; font-style: normal; font-family: var(--f-body); color: var(--ink-3); margin-top: .75rem; }
.ew-post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ew-post-content a:hover { color: var(--ink); }
.ew-post-content ul, .ew-post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.ew-post-content ul { list-style: disc; }
.ew-post-content ol { list-style: decimal; }
.ew-post-content li { margin-bottom: .5rem; }
.ew-post-content img { width: 100%; margin: 2rem 0; }
.ew-post-content figcaption { font-size: .8125rem; color: var(--ink-3); font-style: italic; text-align: center; margin-top: .5rem; }

/* Post share + tags */
.ew-post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  margin: 2rem 0;
}
.ew-post-share__label { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ew-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 500;
  padding: .45em 1em;
  transition: all var(--fast);
  color: var(--white);
}
.ew-share-btn--x { background: #000; }
.ew-share-btn--x:hover { background: #333; color: var(--white); }
.ew-share-btn--fb { background: #1877F2; }
.ew-share-btn--fb:hover { background: #1060d0; color: var(--white); }
.ew-share-btn--wa { background: #25D366; }
.ew-share-btn--wa:hover { background: #1fb355; color: var(--white); }

.ew-post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0; }
.ew-post-tag {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35em .8em;
  border: 1px solid var(--paper-3);
  color: var(--ink-2);
  transition: all var(--fast);
}
.ew-post-tag:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Author box */
.ew-author-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  margin: 2.5rem 0;
}
.ew-author-box-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-3);
  flex-shrink: 0;
}
.ew-author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ew-author-box-name { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.ew-author-box-role { font-size: .75rem; color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin: .2rem 0 .75rem; }
.ew-author-box-bio { font-size: .875rem; color: var(--ink-2); line-height: 1.6; }

/* ================================================================
   PAGINATION
   ================================================================ */
.ew-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--paper-3);
}
.ew-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--paper-3);
  color: var(--ink-2);
  transition: all var(--fast);
}
.ew-pagination .page-numbers:hover,
.ew-pagination .page-numbers.current {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.ew-pagination .dots { border: none; cursor: default; }

/* Archive header */
.ew-archive-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--paper-3);
  margin-bottom: 3rem;
}
.ew-archive-eyebrow {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .75rem;
}
.ew-archive-title {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.ew-archive-desc {
  font-size: 1.0625rem;
  color: var(--ink-2);
  margin-top: .75rem;
  max-width: 580px;
  line-height: 1.6;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 2rem;
}
.ew-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ew-footer-brand .wordmark-title-f {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--white);
  display: block;
  margin-bottom: .3rem;
}
.ew-footer-brand .wordmark-sub-f {
  font-family: var(--f-body);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.ew-footer-desc {
  font-size: .875rem;
  line-height: 1.65;
  color: rgba(255,255,255,.4);
  margin: 1rem 0 1.5rem;
}
.ew-footer-socials { display: flex; gap: .5rem; }
.ew-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  transition: all var(--fast);
}
.ew-footer-social:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.ew-footer-social svg { width: 14px; height: 14px; fill: currentColor; }

.ew-footer-col h4 {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ew-footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.ew-footer-col a { font-size: .875rem; color: rgba(255,255,255,.45); transition: color var(--fast); }
.ew-footer-col a:hover { color: var(--white); }

.ew-footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .75rem;
  color: rgba(255,255,255,.25);
}
.ew-footer-bottom a { color: rgba(255,255,255,.35); transition: color var(--fast); }
.ew-footer-bottom a:hover { color: rgba(255,255,255,.7); }
.ew-footer-bottom-links { display: flex; gap: 1.5rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .ew-hero-grid { grid-template-columns: 1fr; }
  .ew-hero-stack {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--paper-3); padding-top: 2rem;
    display: grid; grid-template-columns: repeat(2,1fr);
  }
  .ew-stack-article:first-child { padding-top: 1.25rem; }
  .ew-content-grid { grid-template-columns: 1fr; }
  .ew-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ew-featured-article { grid-template-columns: 1fr; gap: 2rem; }
  .ew-opinion-grid { grid-template-columns: repeat(2,1fr); }
  .ew-agenda-grid { grid-template-columns: repeat(2,1fr); }
  .ew-footer-top { grid-template-columns: 1fr 1fr; }
  .ew-cards-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .ew-primary-nav { display: none; }
  .ew-menu-toggle { display: flex; }
  .ew-header-inner { grid-template-columns: auto 1fr auto; }
  .ew-ticker-wrap { display: none; }
  .ew-cards-grid { grid-template-columns: 1fr; }
  .ew-cards-grid--2 { grid-template-columns: 1fr; }
  .ew-hero-stack { grid-template-columns: 1fr; }
  .ew-opinion-grid { grid-template-columns: 1fr; }
  .ew-agenda-grid { grid-template-columns: 1fr 1fr; }
  .ew-sidebar { grid-template-columns: 1fr; }
  .ew-footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .ew-footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
  .ew-footer-bottom-links { justify-content: center; }
  .ew-featured-article { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ew-agenda-grid { grid-template-columns: 1fr; }
  .ew-post-share { gap: .5rem; }
}
