/*
Theme Name:   GeneratePress Child - El Arte de Regalar
Theme URI:    http://31.220.108.23
Description:  Child theme Blogzine para El Arte de Regalar
Author:       Isai Lopez
Template:     generatepress
Version:      1.0.0
Text Domain:  generatepress-child
*/

/* ===================================================
   IMPORT PADRE
=================================================== */
@import url("../generatepress/style.css");

/* ===================================================
   FUENTES
=================================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,700;1,400&display=swap");

/* ===================================================
   VARIABLES GLOBALES
=================================================== */
:root {
  --color-hero:       #0b0b0b;
  --color-footer:     #0b0b0b;
  --color-bg:         #ffffff;
  --color-title:      #212529;
  --color-body:       #747579;
  --color-header:     #ffffff;
  --color-accent:     #4f77ff;
  --color-tag-red:    #d6293e;
  --color-tag-green:  #0cbc87;
  --color-tag-blue:   #4f77ff;
  --color-tag-dark:   #212529;
  --radius:           8px;
  --shadow-card:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover:     0 8px 28px rgba(0,0,0,0.15);
  --font-sans:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif:       "Merriweather", Georgia, serif;
  --container-width:  1200px;
}

/* ===================================================
   RESET BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-title);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===================================================
   HEADER STICKY
=================================================== */
.site-header {
  background: var(--color-header);
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled,
.site-header:focus-within {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* Logo */
.site-branding .site-title a {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-title);
  letter-spacing: -0.5px;
}

/* Navegación */
.main-navigation a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-title);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Ancho de contenedor header */
.inside-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================
   HERO — POST DESTACADO (FULL WIDTH)
=================================================== */
.hero-section {
  background: var(--color-hero);
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-inner .hero-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.hero-inner .hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content { color: #ffffff; }

.hero-content .category-tag {
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content h2 a { color: #ffffff; }
.hero-content h2 a:hover { color: var(--color-accent); text-decoration: none; }

.hero-content .hero-excerpt {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero-content .hero-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-content .hero-meta .separator { opacity: 0.4; }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
  margin-top: 1.25rem;
}

.hero-btn:hover {
  background: #3a62e8;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* ===================================================
   CATEGORY TAGS / PILLS
=================================================== */
.category-tag {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
  line-height: 1;
}

.category-tag:hover { text-decoration: none; opacity: 0.88; }

/* Categorías por slug */
.category-tag.cat-regalos,
.cat-tag-regalos       { background: var(--color-tag-red); }

.category-tag.cat-envolver,
.cat-tag-envolver      { background: var(--color-tag-green); }

.category-tag.cat-consejos,
.cat-tag-consejos      { background: var(--color-tag-blue); }

.category-tag.cat-ocasiones,
.cat-tag-ocasiones     { background: var(--color-tag-dark); }

/* Fallback genérico */
.category-tag.cat-default,
a.category-tag         { background: var(--color-tag-blue); }

/* Tags WP nativos en listas de categorías */
.entry-categories a,
.post-categories a {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: var(--color-tag-blue);
  margin-right: 0.3rem;
  transition: opacity 0.2s;
}

.entry-categories a:hover,
.post-categories a:hover { opacity: 0.85; text-decoration: none; }

/* Categorías por nombre/slug en entradas */
.term-regalos   a { background: var(--color-tag-red) !important; }
.term-envolver  a { background: var(--color-tag-green) !important; }
.term-consejos  a { background: var(--color-tag-blue) !important; }
.term-ocasiones a { background: var(--color-tag-dark) !important; }

/* ===================================================
   GRID DE POSTS (2 COLUMNAS)
=================================================== */
.posts-grid {
  max-width: var(--container-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* ===================================================
   CARD DE POST
=================================================== */
.post-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.post-card .card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f0f0;
}

.post-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .card-image img { transform: scale(1.04); }

.post-card .card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card .card-body .category-tag { margin-bottom: 0.65rem; }

.post-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.post-card .card-title a { color: inherit; }
.post-card .card-title a:hover { color: var(--color-accent); text-decoration: none; }

.post-card .card-excerpt {
  font-size: 0.88rem;
  color: var(--color-body);
  line-height: 1.6;
  margin-bottom: 0.9rem;
  flex: 1;
  /* Limitar a 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .card-meta {
  font-size: 0.78rem;
  color: #aaaaaa;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.post-card .card-meta .author-name { font-weight: 600; color: #888; }

/* ===================================================
   HOMEPAGE — SECCIÓN DE GRID (encabezado + grid)
=================================================== */
.section-heading {
  max-width: var(--container-width);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-heading h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-title);
  margin: 0;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

/* ===================================================
   NEWSLETTER CTA
=================================================== */
.newsletter-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  margin: 3rem 0 0;
}

.newsletter-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.newsletter-cta p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.newsletter-cta .btn-newsletter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(79,119,255,0.4);
}

.newsletter-cta .btn-newsletter:hover {
  background: #3a62e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(79,119,255,0.5);
  text-decoration: none;
  color: #fff;
}

/* ===================================================
   FOOTER OSCURO 3 COLUMNAS
=================================================== */
.site-footer {
  background: var(--color-footer);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 0;
  margin-top: 0;
}

.site-footer .inside-footer {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.site-footer a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.site-footer a:hover { color: #ffffff; text-decoration: none; }

.footer-bottom {
  background: #000000;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* Widget en footer */
.site-footer .widget { margin-bottom: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 0.3rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-footer ul li:last-child { border-bottom: none; }

/* ===================================================
   PÁGINA DE ARTÍCULO INDIVIDUAL
=================================================== */

/* Layout con sidebar derecha */
.single-post .content-area {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Drop cap primer párrafo */
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-accent);
  float: left;
  line-height: 0.75;
  margin: 0.1em 0.12em 0 0;
  padding: 0.05em 0.05em 0 0;
}

/* Contenido del artículo */
.single .entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3d3d3d;
}

.single .entry-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.single .entry-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

/* Meta del artículo (encabezado) */
.single .entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.single .entry-header .entry-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-title);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.single .entry-meta {
  font-size: 0.85rem;
  color: #aaaaaa;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ===================================================
   SIDEBAR
=================================================== */
.sidebar-widget-area .widget {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget-area .widget-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-title);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.sidebar-widget-area ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget-area ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}
.sidebar-widget-area ul li:last-child { border-bottom: none; }

/* Bio autor en sidebar */
.author-bio-widget {
  text-align: center;
}

.author-bio-widget .author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--color-accent);
  overflow: hidden;
}

.author-bio-widget .author-name {
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 0.4rem;
}

.author-bio-widget .author-desc {
  font-size: 0.85rem;
  color: var(--color-body);
  line-height: 1.55;
}

/* ===================================================
   POSTS RELACIONADOS (3 EN FILA)
=================================================== */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
}

.related-posts h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-title);
  margin-bottom: 1.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-post-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafafa;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
}

.related-post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.related-post-card .rpc-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8e8e8;
}

.related-post-card .rpc-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.related-post-card:hover .rpc-image img { transform: scale(1.05); }

.related-post-card .rpc-body { padding: 0.9rem 1rem 1rem; }

.related-post-card .rpc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.related-post-card .rpc-title a { color: inherit; }
.related-post-card .rpc-title a:hover { color: var(--color-accent); text-decoration: none; }

.related-post-card .rpc-meta { font-size: 0.75rem; color: #aaa; }

/* ===================================================
   LISTADO NATIVO DE POSTS (archive/blog)
=================================================== */
.blog .site-main article,
.archive .site-main article {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1.75rem;
  transition: box-shadow 0.28s, transform 0.28s;
}

.blog .site-main article:hover,
.archive .site-main article:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ===================================================
   CONTENEDOR GENERAL (sobrescribir GP)
=================================================== */
.grid-container {
  max-width: var(--container-width) !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===================================================
   PAGINACIÓN
=================================================== */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-title);
  border: 1px solid #e5e5e5;
  margin: 0 0.2rem;
  transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  text-decoration: none;
}

/* ===================================================
   RESPONSIVE — TABLET (≤ 900px)
=================================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
    gap: 1.75rem;
  }

  .hero-inner .hero-image-wrap {
    order: -1;
  }

  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer .inside-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================
   RESPONSIVE — MÓVIL (≤ 600px)
=================================================== */
@media (max-width: 600px) {
  .hero-inner { padding: 2rem 1rem; }

  .hero-content h2 { font-size: 1.5rem; }

  .posts-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .related-posts-grid { grid-template-columns: 1fr; }

  .site-footer .inside-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-heading { margin: 1.5rem auto 0; }

  .newsletter-cta { padding: 2.5rem 1rem; }

  /* Drop cap más pequeño en móvil */
  .single .entry-content > p:first-of-type::first-letter {
    font-size: 3rem;
    line-height: 0.8;
  }
}

/* ===================================================
   STICKY HEADER JS HOOK
=================================================== */
.header-scrolled .site-header {
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}


/* ===================================================
   SINGLE POST LAYOUT: CONTENIDO + SIDEBAR
=================================================== */
.single-post-layout {
  max-width: 100%;
}

.single-post-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.single-main {
  min-width: 0; /* previene overflow en grid */
}

.single-sidebar {
  position: sticky;
  top: 80px; /* bajo el header sticky */
}

/* Imagen destacada del artículo */
.entry-featured-image {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Entry header categoría tag */
.entry-header .category-tag {
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Footer de entrada */
.entry-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.85rem;
  color: #aaa;
}

/* Drop cap refinado */
.single-main .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-accent);
  float: left;
  line-height: 0.75;
  margin: 0.08em 0.12em 0 0;
  padding: 0.05em 0.05em 0 0;
}

/* ── Responsive single ── */
@media (max-width: 900px) {
  .single-post-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1.5rem;
  }
  .single-sidebar { position: static; }
}

@media (max-width: 600px) {
  .single-post-inner { padding: 1rem; gap: 1.5rem; }
}

/* ===================================================
   FIX: Full-width breakout for homepage
   Override GeneratePress container constraints
=================================================== */

/* Remove GP container constraints on homepage */
.home .site.grid-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.home .site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.home #primary.content-area {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.home #main.site-main {
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero section — already full-width dark bg */
.hero-section {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Posts grid — contained at 1200px but centered */
.section-heading {
  max-width: 1200px;
  margin: 3rem auto 1.5rem;
  padding: 0 2rem;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-title);
}

.posts-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Newsletter CTA — full-width dark */
.newsletter-cta {
  background: var(--color-hero);
  width: 100%;
  margin: 0;
  padding: 0;
}

.newsletter-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  color: #ffffff;
}

.newsletter-cta-inner h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.newsletter-cta-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Remove footer top margin on homepage (GP adds it) */
.home .footer-widgets-container {
  margin-top: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
    gap: 1.5rem;
  }
  .posts-grid {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 2rem;
  }
  .section-heading {
    padding: 0 1.25rem;
  }
}


/* ===================================================
   FIX: Single post full-width layout
   Override GeneratePress constraints on article pages
=================================================== */

/* Remove GP container constraints on singles */
.single .site.grid-container,
.single .site-content {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Allow content area to use full width */
.single .content-area,
.single-post-layout {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Inner grid: content + sidebar, centered at 1200px */
.single-post-inner.grid-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 2.5rem 2rem 3rem !important;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* Sidebar sticky */
.single-sidebar {
  position: sticky;
  top: 80px;
}

/* Force full-width for entry content */
.single .entry-content {
  width: 100% !important;
}

/* Remove GP right-sidebar padding on single (we handle layout ourselves) */
.single.right-sidebar #primary {
  width: 100% !important;
}

/* Drop cap styling */
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--color-accent);
  float: left;
  line-height: 0.75;
  margin: 0.08em 0.12em 0 0;
}

/* Image in article */
.entry-featured-image {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-featured-image img {
  width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .single-post-inner.grid-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.25rem !important;
  }
  .single-sidebar {
    position: static;
  }
}

