*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Palatino Linotype',Palatino,'Book Antiqua',serif;line-height:1.9;color:#2a2a2a;background:#fefefe}
.sc-SUbMvS{max-width:640px;margin:0 auto;padding:0 20px}
.sc-vinvdq{padding:60px 0 40px;border-bottom:1px solid #ccc;margin-bottom:48px}
.sc-vinvdq h1{font-size:24px;font-weight:400;letter-spacing:-.5px}
.sc-vinvdq p{font-size:14px;color:#777;margin-top:6px;font-style:italic}
.sc-vinvdq a{color:#2a2a2a;text-decoration:none;font-size:24px;font-weight:400;letter-spacing:-.5px}
.sc-JfeNEn{padding:20px 0}
.sc-JfeNEn h2{font-size:18px;font-weight:400;margin-bottom:4px}
.sc-JfeNEn h2 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.sc-JfeNEn h2 a:hover{border-bottom-color:#2a2a2a}
.sc-JfeNEn .sc-CbMiCD{font-size:12px;color:#aaa;margin-bottom:6px}
.sc-JfeNEn p{font-size:14px;color:#666}
.sc-JLgVcP{color:#888;font-size:13px;text-decoration:none}
.sc-JLgVcP:hover{color:#2a2a2a}
.sc-lOBzUX{padding-bottom:60px}
.sc-lOBzUX h1{font-size:28px;font-weight:400;margin-bottom:8px}
.sc-lOBzUX .sc-CbMiCD{font-size:12px;color:#aaa;display:block;margin-bottom:32px}
.sc-lOBzUX h2{font-size:21px;font-weight:400;margin:40px 0 12px;border-bottom:1px solid #eee;padding-bottom:6px}
.sc-lOBzUX h3{font-size:17px;margin:28px 0 8px}
.sc-lOBzUX p{margin-bottom:18px;font-size:16px}
.sc-lOBzUX ul,.sc-lOBzUX ol{margin:0 0 18px 20px}
.sc-lOBzUX a{color:#555;border-bottom:1px solid #ccc}
.sc-lOBzUX a:hover{color:#000;border-bottom-color:#000}
.sc-lOBzUX img{max-width:100%;height:auto;margin:24px 0}
.sc-vfFXYN{border-top:1px solid #ddd;padding:20px 0;margin-top:48px;text-align:center;font-size:12px;color:#aaa}
.sc-vfFXYN a{color:#aaa;text-decoration:none}
.sc-SSGles{padding:0 0 16px;margin-bottom:24px;font-size:12px;color:#aaa;font-style:italic;border-bottom:1px solid #eee}
.sc-qEcrqj{padding:16px 0 0;margin-top:32px;font-size:11px;color:#999;border-top:1px solid #eee}
.sc-hrFZXk{font-size:12px;color:#aaa;margin:-26px 0 32px;font-weight:300}
.sc-eNNXrF{margin:0 auto 32px;max-width:720px}
.sc-tmyMNj{width:100%;height:auto}
.sc-pcCsoR{margin-top:40px;padding-top:20px;border-top:1px solid #eee;font-size:14px;color:#888}
.sc-pcCsoR em{color:#aaa}
.sc-pcCsoR a{color:#555;border-bottom:1px solid #ddd;text-decoration:none}
.sc-pZHwtH{padding:24px 0 0;border-top:1px solid #eee;margin-top:24px}
.sc-pZHwtH p{padding:3px 0;margin:0;font-size:15px}
.sc-pZHwtH a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.sc-pZHwtH a:hover{border-bottom-color:#2a2a2a}
/* === Theme === */
:root{--primary:#7B5E6E;--accent:#C29347;--bg:#E9E7E4;--fg:#2B2420;--border:#C6BFB9;--r:6px;--fb:'Jost';--fh:'Fraunces'}
/* === Custom === */
/*
  cb-equino-es — custom.css — Diario del Jinete
  Design: Planeta Editorial paperback (warm stock, roman type, one honey accent, generous leading)
  + Querétaro hacienda afternoon (dusty mauve, honey gold, cool off-white). A personal diary, not
  Instagram-equestrian: a worn notebook left on a tack room shelf.
*/

/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Jost:wght@400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --primary: #7B5E6E;
  --accent:  #C29347;
  --bg:      #E9E7E4;
  --fg:      #2B2420;
  --border:  #C6BFB9;
  --r:       6px;
  --fb:      'Jost';
  --fh:      'Fraunces';

  --primary-light: #9C7E8F;
  --accent-light:  #D4AE74;
  --bg-card:       #EDEAE7;
  --bg-hero:       #6E5262;
  --muted:         #7A6E69;
  --line-height-body: 1.75;
  --line-height-heading: 1.25;
  --max-width: 72rem;
  --content-width: 48rem;
}

/* ─── Base Reset / Box Model ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fb), system-ui, sans-serif;
  font-size: 1rem;
  line-height: var(--line-height-body);
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

::selection {
  background-color: var(--accent-light);
  color: var(--fg);
}

/* ─── Typography Scale ──────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fh), serif;
  font-weight: 600;
  line-height: var(--line-height-heading);
  color: var(--primary);
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; font-style: italic; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

p {
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

strong { font-weight: 600; }

em { font-style: italic; }

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--r) - 2px);
  padding: 0.15em 0.4em;
  color: var(--primary);
}

pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
  line-height: var(--line-height-body);
}

/* ─── Link Styles ───────────────────────────────────────────────────────────── */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary-light);
}

a:visited {
  color: var(--primary-light);
}

/* ─── Navigation ────────────────────────────────────────────────────────────── */
.mn-nav {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
}

.mn-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mn-site-name {
  font-family: var(--fh), serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mn-site-name:hover {
  color: var(--accent);
  text-decoration: none;
}

.mn-site-name:visited {
  color: var(--primary);
}

.mn-nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

.mn-nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.mn-nav-links a:hover {
  color: var(--primary);
}

.mn-nav-links a:visited {
  color: var(--muted);
}

/* ─── Hero Section ──────────────────────────────────────────────────────────── */
.mn-hero {
  background-color: var(--bg-hero);
  color: #EDE8E3;
  padding: 4rem 1.5rem 3.5rem;
  border-bottom: 3px solid var(--accent);
}

.mn-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.mn-hero h1 {
  font-family: var(--fh), serif;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  color: #EDE8E3;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.mn-hero p {
  font-size: 1.05rem;
  color: rgba(237, 232, 227, 0.8);
  max-width: 55ch;
  margin-bottom: 0;
  line-height: 1.65;
}

.mn-hero a {
  color: var(--accent-light);
}

.mn-hero a:hover {
  color: #EDE8E3;
}

/* ─── Article Grid / List ───────────────────────────────────────────────────── */
.mn-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.mn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.75rem;
}

/* ─── Article Cards ─────────────────────────────────────────────────────────── */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 3px 12px rgba(123, 94, 110, 0.1);
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.card h2 {
  font-family: var(--fh), serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.card h2 a {
  color: var(--fg);
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card h2 a:visited {
  color: var(--muted);
}

.card p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  max-width: none;
}

.read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: auto;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.read-more:hover {
  color: var(--primary);
  border-bottom-color: var(--primary-light);
  text-decoration: none;
}

.read-more:visited {
  color: var(--accent);
}

/* ─── Post / Article Content ────────────────────────────────────────────────── */
.mn-article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--fh), serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-byline {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h1 { font-family: var(--fh), serif; color: var(--primary); margin-top: 2rem; }
.article-content h2 { font-family: var(--fh), serif; color: var(--primary); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.article-content h3 { font-family: var(--fh), serif; color: var(--primary); margin-top: 1.75rem; }

.article-content p { max-width: none; margin-bottom: 1.5rem; }

.article-content a {
  color: var(--accent);
}

.article-content a:hover {
  color: var(--primary);
}

.article-content img {
  border-radius: var(--r);
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
}

/* ─── Blockquote Styling ────────────────────────────────────────────────────── */
blockquote {
  border-left: 3px solid var(--accent);
  background-color: var(--bg-card);
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.6rem;
  border-radius: 0 var(--r) var(--r) 0;
}

blockquote p {
  font-family: var(--fh), serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: none;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  font-family: var(--fb), system-ui, sans-serif;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.sc-vfFXYN {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.mn-foot-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.sc-vfFXYN p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  max-width: none;
}

.sc-vfFXYN a {
  color: var(--muted);
  font-size: 0.85rem;
}

.sc-vfFXYN a:hover {
  color: var(--primary);
}

/* ─── Responsive Adjustments ────────────────────────────────────────────────── */
/* === R2 fixes (2026-06-16T17:30:19.581061+00:00) === */

/* Fix 4 — header site-name link legible as marca/home, not generic watermark */
header a {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Fix 5 — related-articles nav block: visible separator so readers notice it before leaving */
.sc-pcCsoR {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .mn-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .mn-hero {
    padding: 2.5rem 1.25rem 2.25rem;
  }

  .mn-main {
    padding: 1.75rem 1.25rem 3rem;
  }

  .mn-article {
    padding: 1.75rem 1.25rem 3rem;
  }

  .mn-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* === R3 fixes (2026-06-16T18:10:19.015813+00:00) === */

/* Fix R3-1 — article h2: corrected selector (article h2 vs .article-content h2) so section headings
   get breathing room above them when the reader scans for entry points */
article h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--fh), serif;
  color: var(--primary);
}

/* Fix R3-2 — article p: corrected selector so paragraphs breathe enough for long-prose rhythm */
article p {
  margin-bottom: 1.5rem;
  max-width: none;
}

/* Fix R3-3 — article img: corrected selector so stable-cat and horse-eye photos keep their own
   narrative moment with vertical margin */
/* R4: max-width 88% so photos read as field-notebook inserts, not full-bleed editorial spreads */
article img {
  max-width: 88%;
  margin: 2rem auto;
  display: block;
  border-radius: var(--r);
}

/* Fix R3-4 — article a: override gold link color to mauve so in-body links read as Regina's voice
   rather than triggering the 'this is an ad' reflex */
article a {
  color: var(--primary);
}

article a:hover {
  color: var(--primary-light);
}

/* Fix R3-5 / R4 — .sc-qEcrqj disclaimer block: marginal italic note with solid mauve left border
   (R4: primary instead of primary-light, tighter font-size, added display:block, wider padding) */
.sc-qEcrqj {
  display: block;
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--muted);
  border-left: 3px solid var(--primary);
  padding-left: 0.875rem;
  background: transparent;
  margin-top: 2rem;
}

/* === R4 fixes (2026-06-16T18:50:19.491263+00:00) === */

/* Fix R4-1 — .sc-JLgVcP read-more link: primary color + weight so it registers as a door,
   not the last line of a paragraph */
.sc-JLgVcP {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* Fix R4-2 — .sc-CbMiCD date: italic marginal annotation so it evokes a Saturday caballeriza
   diary entry rather than a database timestamp */
.sc-CbMiCD {
  font-style: italic;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Fix R4-5 — .sc-JfeNEn article list entries: translucent mauve hairline separator so the eye
   reads entry boundaries as diary page turns without breaking the minimal layout */
.sc-JfeNEn {
  border-bottom: 1px solid rgba(123, 94, 110, 0.15);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   v.0f7b85 — layout revision
   EDITORIAL SIGNATURE PASS — Diario del Jinete
   Live DOM is styled-components (stable sc-* hashes). Homepage <main> holds a flat
   list of card <div>s + one tail <div> (last). Article <main> holds <h1><span>
   <article>. Homepage-only rules are scoped with :not(:has(> article)); article-only
   with :has(> article). One display voice (Fraunces italic) + one text voice (Jost)
   + one meta voice (Jost tracked caps). Moment colour #8C4A00 used in exactly two
   places: hero drop cap + the editor's-pick top rule.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --moment: #8C4A00;
  --paper:  #faf5ec;
  --paper-2:#f8f2e6;
  --paper-3:#f5efe1;
}

/* ─── Masthead: photo + gradient + serif-italic wordmark + monogram ─────────── */
body > header {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(2.75rem, 5vw, 4rem);
  text-align: center;
  background:
    linear-gradient(rgba(43, 33, 39, 0.74), rgba(43, 33, 39, 0.52)),
    url("/theme-assets/top-image.jpg") center 42% / cover no-repeat,
    linear-gradient(160deg, #5A4451, #3E2E38);   /* solid fallback if photo 404s at deploy */
  border-bottom: 3px solid var(--accent);
}

body > header::before {   /* horseshoe monogram — the signature mark */
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23D4AE74' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M15 7 C6 14 6 31 15 41 M33 7 C42 14 42 31 33 41'/%3E%3Ccircle cx='15' cy='42' r='2.1' fill='%23D4AE74' stroke='none'/%3E%3Ccircle cx='33' cy='42' r='2.1' fill='%23D4AE74' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.95;
}

body > header h1 {
  font-family: var(--fh), serif;
  font-style: italic;
  font-weight: 600;
  color: #F3ECE4;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 auto 0.7rem;
  max-width: 20ch;
}

body > header p {   /* manifesto line */
  font-family: var(--fh), serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.98rem, 1.9vw, 1.12rem);
  line-height: 1.62;
  color: rgba(243, 236, 228, 0.82);
  max-width: 46ch;
  margin: 0 auto;
}

body > header::after {   /* small centred rule under manifesto */
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin: 1.35rem auto 0;
  background: var(--accent);
}

/* ─── Homepage grid ─────────────────────────────────────────────────────────── */
main:not(:has(> article)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 2.5rem;
  align-items: stretch;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.75rem) 1.5rem 5rem;
}

/* base card — applies to every direct div, then hero/pick/tail override below */
main:not(:has(> article)) > div {
  background: var(--paper);
  border: 1px solid rgba(123, 94, 110, 0.16);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 1.7rem 2rem 1.55rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

main:not(:has(> article)) > div:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 147, 71, 0.38);
  box-shadow: 0 6px 18px rgba(123, 94, 110, 0.12);
}

/* card date — meta voice */
main:not(:has(> article)) > div > p:first-child {
  font-family: var(--fb), sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin: 0 0 0.15rem;
}

/* card title */
main:not(:has(> article)) > div > h2 {
  font-family: var(--fh), serif;
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.28;
  margin: 0;
  color: var(--fg);
}

main:not(:has(> article)) > div > h2 a {
  color: var(--fg);
  text-decoration: none;
}

main:not(:has(> article)) > div > h2 a:hover {
  color: var(--primary);
}

/* card excerpt — clamped so row heights stay even */
main:not(:has(> article)) > div > h2 + p {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--muted);
  margin: 0.15rem 0 0;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* read-more door */
main:not(:has(> article)) > div > a:last-child {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 0.9rem;
  font-family: var(--fb), sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

main:not(:has(> article)) > div > a:last-child:hover {
  color: var(--primary);
  border-bottom-color: var(--primary-light);
}

/* ─── HERO (first card) — the loud voice ────────────────────────────────────── */
main:not(:has(> article)) > div:first-child {
  grid-column: 1 / -1;
  background: var(--paper-2);
  border: 1px solid rgba(194, 147, 71, 0.28);
  padding: clamp(2.25rem, 4.5vw, 3.25rem) clamp(2rem, 5vw, 3.5rem);
  gap: 0.7rem;
}

main:not(:has(> article)) > div:first-child::before {
  content: "ÚLTIMO EN EL DIARIO";
  font-family: var(--fb), sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

main:not(:has(> article)) > div:first-child > p:first-child {
  color: var(--primary-light);
}

main:not(:has(> article)) > div:first-child > p:first-child::after {
  content: "  ·  POR REGINA  ·  6 MIN DE LECTURA";
  color: var(--muted);
}

main:not(:has(> article)) > div:first-child > h2 {
  font-family: var(--fh), serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
  color: var(--primary);
  margin: 0.1rem 0;
}

main:not(:has(> article)) > div:first-child > h2 a {
  color: var(--primary);
}

main:not(:has(> article)) > div:first-child > h2 + p {
  display: block;   /* reset from base line-clamp so ::first-letter drop cap renders */
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--fg);
  max-width: 62ch;
  overflow: visible;
}

/* drop cap — moment colour #1 */
main:not(:has(> article)) > div:first-child > h2 + p::first-letter {
  font-family: var(--fh), serif;
  font-weight: 700;
  font-size: 3.1rem;
  line-height: 0.82;
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--moment);
}

/* ─── EDITOR'S PICK (second card) — full-width lead + strip 1 below ──────────── */
main:not(:has(> article)) > div:nth-child(2) {
  grid-column: 1 / -1;
  position: relative;
  margin-top: 3.75rem;
  background: var(--paper-3);
  border: 1px solid rgba(123, 94, 110, 0.16);
  border-top: 3px solid var(--moment);   /* moment colour #2 */
  padding: 2.4rem 2.25rem;
  gap: 0.6rem;
}

/* full-width section label ABOVE the frame */
main:not(:has(> article)) > div:nth-child(2)::before {
  content: "SELECCIÓN DE REGINA · EMPIEZA POR AQUÍ";
  position: absolute;
  top: -2.35rem;
  left: 0;
  right: 0;
  font-family: var(--fb), sans-serif;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(123, 94, 110, 0.28);
}

main:not(:has(> article)) > div:nth-child(2) > h2 {
  font-size: 1.55rem;
  font-style: italic;
}

main:not(:has(> article)) > div:nth-child(2) > h2 + p {
  -webkit-line-clamp: 3;
  font-size: 1.02rem;
}

/* STRIP 1 — EL DIARIO — MÁS RECIENTES (between pick and journal) */
main:not(:has(> article)) > div:nth-child(2)::after {
  content: "EL DIARIO — MÁS RECIENTES";
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 2.4rem -2.25rem -2.4rem;
  min-height: 195px;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/story-cover.jpg") center 30% / cover no-repeat,
    linear-gradient(120deg, #3A2E2C, #574047);   /* solid fallback if photo 404s */
  border-radius: 0 0 8px 8px;
  color: #F3ECE4;
  font-family: var(--fb), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* ─── COMPACT TAIL (last card) — full-width magazine index + strip 2 above ───── */
main:not(:has(> article)) > div:last-child {
  grid-column: 1 / -1;
  columns: 2;
  column-gap: 2.75rem;
  background: var(--paper);
  border: 1px solid rgba(123, 94, 110, 0.14);
  border-radius: 8px;
  padding: 0 2rem 2.25rem;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

main:not(:has(> article)) > div:last-child:hover {
  transform: none;
}

/* STRIP 2 — LEER MÁS (between journal grid and tail) */
main:not(:has(> article)) > div:last-child::before {
  content: "LEER MÁS";
  column-span: all;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 -2rem 1.85rem;
  min-height: 210px;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(28, 22, 20, 0.55), rgba(28, 22, 20, 0.28)),
    url("/theme-assets/story-cover.jpg") center 70% / cover no-repeat,
    linear-gradient(120deg, #574047, #3A2E2C);   /* solid fallback if photo 404s */
  border-radius: 8px 8px 0 0;
  color: #F3ECE4;
  font-family: var(--fb), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

main:not(:has(> article)) > div:last-child > p {
  break-inside: avoid;
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.14);
  font-size: 0.95rem;
  line-height: 1.4;
  text-transform: none;      /* reset: first row inherits the card-date meta rule otherwise */
  letter-spacing: normal;
  color: var(--fg);
}

main:not(:has(> article)) > div:last-child > p a {
  color: var(--primary);
  text-decoration: none;
}

main:not(:has(> article)) > div:last-child > p a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── ARTICLE PAGE — feature images + Nota callout + CTA pill ────────────────── */

/* hero image at top of article: full-measure feature frame */
main:has(> article) article > img:first-of-type {
  width: 100%;
  max-width: 100%;
  margin: 0.5rem 0 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(43, 33, 39, 0.12);
}

/* inline images: framed editorial insert, not clip-art thumbnail */
main:has(> article) article img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2.5rem auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(43, 33, 39, 0.1);
}

/* Nota callout — distinct tinted aside with note icon */
.sc-qEcrqj {
  display: block;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--paper-3);
  border: 1px solid rgba(123, 94, 110, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.15rem 1.3rem 1.15rem 3rem;
  margin: 2.75rem 0 0;
  position: relative;
}

.sc-qEcrqj::before {
  content: "✎";
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--accent);
}

.sc-qEcrqj strong {
  font-style: normal;
  font-family: var(--fb), sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

/* affiliate CTA pill — full element path beats the `article a` body-link rule */
main:has(> article) article p a[href^="/link/"],
main:has(> article) article li a[href^="/link/"] {
  display: inline-block;
  background: var(--accent);
  color: #FBF6EE;
  font-family: var(--fb), sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.5rem 1.05rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(194, 147, 71, 0.28);
  transition: background 0.18s ease, transform 0.18s ease;
}

main:has(> article) article p a[href^="/link/"]:hover,
main:has(> article) article li a[href^="/link/"]:hover {
  background: var(--primary);
  color: #FBF6EE;
  transform: translateY(-1px);
}

/* dinkus divider between article H2 sections */
main:has(> article) article h2::before {
  content: "✷  ✷  ✷";
  display: block;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  color: var(--accent-light);
  margin: 0 auto 1.75rem;
  font-weight: 400;
}

/* ─── Footer polish ─────────────────────────────────────────────────────────── */
body > footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 2.25rem 1.5rem;
  text-align: center;
}

body > footer small {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

body > footer a {
  color: var(--primary);
  text-decoration: none;
}

body > footer a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Responsive: collapse homepage to single column ────────────────────────── */
@media (max-width: 640px) {
  main:not(:has(> article)) {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.15rem 3.5rem;
  }
  main:not(:has(> article)) > div:nth-child(2) {
    margin-top: 3.25rem;
  }
  main:not(:has(> article)) > div:last-child {
    columns: 1;
  }
  main:not(:has(> article)) > div:first-child > h2 + p::first-letter {
    font-size: 2.6rem;
  }
}


/* related-articles-nav-fix v1 */
:root main > nav p,
:root main > section p {
  line-height: 1.85;
  margin: 0;
}
:root main > nav a,
:root main > section a {
  display: inline-block;
  margin: 0 4px;
  padding: 0 2px;
}


/* mobile-overflow-fix v1 */
:root html, :root body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  :root main > * { max-width: 100%; }
  :root main { overflow-x: hidden; }
}


/* mobile-overflow-fix v2 */
@media (max-width: 640px) {
  :root main,
  :root main > article,
  :root main > div,
  :root main > section,
  :root main > nav {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  :root main > article > *,
  :root main > div > *,
  :root main > section > *,
  :root main > nav > * {
    max-width: 100%;
  }
  :root main h1,
  :root main h2,
  :root main h3,
  :root main h4 {
    overflow-wrap: break-word;
    word-break: normal;
  }
  /* Any 3+ col grid inside main → 1 col on mobile */
  :root main :is(ul, ol, section, div, nav)[style*="grid-template-columns"],
  :root main > section > ul,
  :root main > nav > ul,
  :root main > div > ul {
    grid-template-columns: 1fr !important;
  }
  /* Any CSS multi-column layout → 1 col on mobile */
  :root main :is(ul, ol, section, div, p) {
    columns: 1;
  }
  /* Article body images stay inside viewport */
  :root main img,
  :root main figure {
    max-width: 100%;
    height: auto;
  }
}


/* mobile-padding-fix v1 */
@media (max-width: 640px) {
  :root main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* refix iter1: masthead full bleed + boxed archive tail */
:root > body > header:has(h1) {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

:root > body > header:has(h1) > h1,
:root > body > header:has(h1) > p {
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

:root main:not(:has(> article)) > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  columns: auto;
  column-gap: normal;
}

:root main:not(:has(> article)) > div:last-child::before {
  grid-column: 1 / -1;
  column-span: none;
}

:root main:not(:has(> article)) > div:last-child > p {
  display: flex;
  align-items: stretch;
  min-height: 100%;
  margin: 0;
  padding: 0;
  break-inside: auto;
  background: var(--paper-2);
  border: 1px solid rgba(123, 94, 110, 0.16);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  line-height: 1.48;
  text-transform: none;
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

:root main:not(:has(> article)) > div:last-child > p:hover {
  transform: translateY(-1px);
  border-color: rgba(194, 147, 71, 0.34);
  box-shadow: 0 5px 14px rgba(123, 94, 110, 0.1);
}

:root main:not(:has(> article)) > div:last-child > p a {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 100%;
  padding: 1.15rem 1.25rem;
  color: var(--primary);
  font-family: var(--fh), serif;
  font-weight: 600;
  text-decoration: none;
}

:root main:not(:has(> article)) > div:last-child > p a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  :root main:not(:has(> article)) > div:last-child {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    columns: auto;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  :root main:not(:has(> article)) > div:last-child::before {
    margin-right: -1rem;
    margin-left: -1rem;
  }

  :root main:not(:has(> article)) > div:last-child > p a {
    padding: 1.05rem 1.1rem;
  }
}

/* refix iter1: article persona line */
:root main:has(> article) > h1 + span::after {
  content: " · POR REGINA · 6 MIN DE LECTURA · QUERÉTARO";
}

/* refix iter2: recent journal card padding + article masthead full bleed */
:root > body > header {
  max-width: none;
  max-inline-size: none;
  width: 100vw;
  inline-size: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

:root > body > header > :is(a, h1, p) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

:root main:not(:has(> article)) > div:nth-child(n+3):not(:last-child) {
  padding: 2rem 2.25rem 2.1rem;
  gap: 0.7rem;
}

:root main:not(:has(> article)) > div:nth-child(n+3):not(:last-child) > a:last-child {
  padding-top: 1rem;
}

@media (max-width: 640px) {
  :root main:not(:has(> article)) > div:nth-child(n+3):not(:last-child) {
    padding: 1.75rem 2rem 2rem;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Monocle-Swiss overlay=55% grid=mixed scale=balanced family=flat-divs */


/* ── CARD 1: featured full-row with 300px photo header (via card-own background, NOT ::before —
    leaves ::before free for existing site's M2 label / meta content). ── */
:root main:not(:has(> h1)) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;      /* anchor for existing site's ::before label if it uses absolute */
  overflow: visible;       /* let above-card labels render without clipping */
  padding: 320px 44px 40px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 300px,
    var(--bg) !important;
  margin-top: 60px !important;  /* room for above-card M2 label (existing site convention) */
}

/* ── CARDS 2-4: medium with 180px photo header (background technique, ::before untouched) ── */
:root main:not(:has(> h1)) > div:nth-of-type(2) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(3) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(4) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── flat-divs family: cards 5 & 6 also get photo headers ── */
:root main:not(:has(> h1)) > div:nth-of-type(5) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-1.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(6) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── Article page: drop cap + dinkus dividers ── */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-size: 76px; line-height: 0.9; color: var(--primary);
  float: left; margin: 6px 12px 0 0; padding: 0; font-weight: 400;
}
:root main:has(> h1) > article > h2 + p ~ h2::before {
  content: "✦ ✦ ✦";
  display: block; text-align: center; color: var(--accent);
  font-size: 12px; letter-spacing: 0.3em; margin-bottom: 24px;
  font-weight: 400;
}

/* ── Mobile responsive: adjust photo heights via background-size on the card itself ── */
@media (max-width: 720px) {
  :root main:not(:has(> h1)) > div:nth-of-type(1) {
    padding: 240px 22px 28px !important;
    background:
      url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 220px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(2) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(3) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(4) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1))::before,
  :root main:not(:has(> h1))::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

