*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.75;color:#333;background:#f0f2f5}
.css-r4k0v0s{max-width:860px;margin:0 auto;padding:0 20px}
.css-gg6nstw{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.css-gg6nstw h1{font-size:22px;font-weight:700;margin-bottom:2px}
.css-gg6nstw p{font-size:14px;color:#666}
.css-gg6nstw a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.css-eetcja5{display:flex;flex-direction:column;gap:20px}
.css-gnmlb0p{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.css-gnmlb0p:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.css-gnmlb0p h2{font-size:19px;margin-bottom:6px}
.css-gnmlb0p h2 a{color:#1a1a1a;text-decoration:none}
.css-gnmlb0p .css-e7yoxj3{font-size:12px;color:#999;margin-bottom:8px}
.css-gnmlb0p p{font-size:14px;color:#555;margin-bottom:12px}
.css-bj4akdr{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.css-bj4akdr:hover{background:#4752c4}
.css-szgx728{padding-bottom:60px}
.css-szgx728 h1{font-size:30px;font-weight:700;margin-bottom:8px}
.css-szgx728 time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.css-szgx728 h2{font-size:22px;margin:32px 0 12px}
.css-szgx728 h3{font-size:18px;margin:24px 0 8px}
.css-szgx728 p{margin-bottom:16px}
.css-szgx728 ul,.css-szgx728 ol{margin:0 0 16px 24px}
.css-szgx728 a{color:#5865f2}
.css-szgx728 img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.css-vhab0zs{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.css-vhab0zs a{color:#999;text-decoration:none}
.css-7o56vz4{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.css-rp27xtl{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.css-mf5r341{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.css-5gwl2i8{text-align:center;margin:0 0 24px}
.css-jfrcxf4{max-width:100%;height:auto;border-radius:12px}
.css-mgnrd7z{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.css-mgnrd7z h3{font-size:16px;font-weight:700;margin-bottom:12px}
.crd-related-list{display:flex;flex-direction:column;gap:8px}
.crd-related-link{display:block;background:#fff;border-radius:8px;padding:10px 14px;color:#333;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:14px}
.crd-related-link:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
.css-rxzviw0{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.css-lmkyhmc{display:block;background:#fff;border-radius:8px;padding:10px 16px;color:#1a1a1a;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.05);font-size:15px}
.css-lmkyhmc:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#1E2535;--accent:#5E7A3C;--bg:#F0EDE6;--fg:#1A1916;--border:#A8A89E;--moment:#8B2E2E;--r:0px;--fb:'Spectral';--fh:'DM Mono'}
/* === Custom === */
/* Design reference: 1960s–1980s IUCN/FAO field survey documentation sheets — Andean botanical fieldwork */
/* Typed annotations, hand-ruled specimen boxes, zero ornament, information-dense but never crowded */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Spectral:ital,wght@0,400;0,600;1,400&display=swap');

/* === Base === */

body {
  font-family: var(--fb), 'Times New Roman', serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.72;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: var(--bg);
}

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

/* === Header — form-header datum style === */

:root header {
  background: transparent;
  border-bottom: 1px solid var(--primary);
  padding: 40px 0 22px;
  margin-bottom: 44px;
  position: relative;
}

:root header::before {
  content: 'REGISTRO DE CAMPO / DIARIO DE PROGRESION';
  display: block;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--border);
  text-transform: uppercase;
  margin-bottom: 10px;
}

:root header h1,
:root header span a {
  font-family: var(--fh), 'Courier New', monospace;
  color: var(--primary);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: block;
}

:root header span a {
  font-size: 1.75rem;
}

:root header p {
  color: var(--fg);
  opacity: 0.62;
  font-size: 13px;
  font-style: italic;
  font-family: var(--fb), serif;
  margin-top: 7px;
  letter-spacing: 0.01em;
}

/* === Main layout === */

:root main {
  padding-bottom: 88px;
}

/* === Article page — title and datestamp === */

:root main > h1 {
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 28px;
  line-height: 1.26;
  color: var(--primary);
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

:root main > time {
  display: block;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

/* === Article body === */

:root main > article > p {
  margin-bottom: 17px;
  font-size: 16.5px;
  line-height: 1.72;
}

:root main > article > h2 {
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  margin: 40px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:root main > article > h3 {
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin: 28px 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:root main > article ul,
:root main > article ol {
  margin: 0 0 17px 24px;
  padding: 0;
}

:root main > article li {
  margin-bottom: 6px;
  font-size: 16.5px;
}

:root main > article blockquote {
  border-left: 2px solid var(--accent);
  padding: 10px 0 10px 20px;
  margin: 28px 0;
  font-style: italic;
  color: var(--primary);
  background: transparent;
  font-family: var(--fb), serif;
  font-size: 16px;
  opacity: 0.88;
}

:root main > article > p a,
:root main > article > p a:visited {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}

:root main > article > p a:hover {
  color: var(--accent);
  text-decoration-color: var(--primary);
}

:root main > article > p a[href^="/ref/"],
:root main > article > p a[href^="/try/"],
:root main > article > p a[href^="/check/"],
:root main > article > p a[href^="/top/"] {
  display: inline-block;
  background: var(--accent);
  color: #F5EFE1;
  padding: 6px 16px 6px 18px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(30, 37, 53, 0.14);
}

:root main > article > p a[href^="/ref/"]::after,
:root main > article > p a[href^="/try/"]::after,
:root main > article > p a[href^="/check/"]::after,
:root main > article > p a[href^="/top/"]::after {
  content: ' \2192';
  font-weight: 500;
}

:root main > article > p a[href^="/ref/"]:hover,
:root main > article > p a[href^="/try/"]:hover,
:root main > article > p a[href^="/check/"]:hover,
:root main > article > p a[href^="/top/"]:hover {
  background: var(--primary);
  color: #F5EFE1;
}

:root main > article p strong {
  color: var(--primary);
  font-weight: 600;
}

/* Article images */

:root article > div[role="img"] {
  margin: 0 0 28px;
}

:root article > div[role="img"] > img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

/* YMYL disclaimer strip */

:root article > section {
  border: 1px solid var(--border);
  border-left: 2px solid var(--primary);
  padding: 12px 16px;
  margin-top: 36px;
  font-size: 13px;
  color: var(--fg);
  font-family: var(--fh), 'Courier New', monospace;
  opacity: 0.72;
  letter-spacing: 0.02em;
}

:root article > section b {
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.18em;
  display: inline-block;
  margin-right: 6px;
}

/* === Homepage cards — outlined, form-field style === */

:root main > div:has(> h2) {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  margin-bottom: 20px;
  transition: border-color 0.12s ease;
}

:root main > div:has(> h2):hover {
  border-color: var(--primary);
}

:root main > div:has(> h2) > p:first-child {
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-weight: 400;
}

:root main > div:has(> h2) > h2 {
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

:root main > div:has(> h2) > h2 a {
  color: var(--primary);
  text-decoration: none;
}

:root main > div:has(> h2) > h2 a:hover {
  color: var(--accent);
}

:root main > div:has(> h2) > p:not(:first-child) {
  font-size: 14.5px;
  color: var(--fg);
  opacity: 0.80;
  margin-bottom: 12px;
  font-family: var(--fb), serif;
  line-height: 1.62;
}

:root main > div:has(> h2) > a:last-child {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 12px;
  font-weight: 400;
  padding: 3px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* === Related posts === */

:root main > div:has(> ul) {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

:root main > div:has(> ul) > h3 {
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--border);
  margin-bottom: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

:root main > div:has(> ul) > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

:root main > div:has(> ul) > ul > li {
  border-bottom: 1px solid var(--border);
}

:root main > div:has(> ul) > ul > li:last-child {
  border-bottom: none;
}

:root main > div:has(> ul) > ul > li > a {
  display: block;
  padding: 10px 4px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--fb), serif;
  transition: color 0.12s ease;
}

:root main > div:has(> ul) > ul > li > a:hover {
  color: var(--primary);
}

/* === Footer === */

:root footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  margin-top: 60px;
  text-align: left;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 11px;
  color: var(--fg);
  opacity: 0.50;
  letter-spacing: 0.08em;
}

:root footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

:root footer a:hover {
  color: var(--primary);
  opacity: 1;
}

/* === Responsive === */

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root header h1,
  :root header span a { font-size: 1.4rem; }
  :root main > h1 { font-size: 22px; }
  :root main > div:has(> h2) { padding: 16px 16px; }
  :root main > article > h2 { font-size: 14px; }
}

/* === R2 fixes (2026-06-24T22:30:27.474597+00:00) === */

/* Fix 1: CTA button — warm earth brown instead of fintech purple */
.css-bj4akdr {
  background-color: #7A5C3E;
  color: #FAF7F0;
}

/* Fix 2: Article body text — proportional serif for readability; monospace kept in headers */
.css-szgx728 article p,
.css-szgx728 p {
  font-family: Georgia, Cambria, 'Times New Roman', serif;
  line-height: 1.8;
}

/* Fix 3: Affiliate disclosure — warm left-border callout, visually distinct from narrative */
.css-7o56vz4 {
  border-left: 3px solid #B89870;
  padding: 0.5em 0.8em 0.5em 1em;
  margin: 1em 0 1.5em;
  background-color: rgba(184, 152, 112, 0.07);
  font-size: 0.875em;
  color: #5A5248;
}

/* Fix 4: Author-page sections — left-border journal style, remove institutional full-box */
.css-szgx728 section {
  border: none;
  border-left: 3px solid #B89870;
  padding: 1em 1em 1em 1.4em;
  margin-bottom: 2em;
  background: rgba(235, 230, 220, 0.4);
}

/* Fix 5: H2 top margin — clear section break on fast scroll */
.css-szgx728 h2 {
  margin-top: 2.2em;
  margin-bottom: 0.5em;
}

/* === R3 fixes (2026-06-24T23:10:27.831505+00:00) === */

/* Fix 1: Header pseudo-element — hide unreadable 9px stamp in top corner */
:root header::before {
  display: none;
}

/* Fix 2: Author-page sections — remove inherited card border-radius, complete notebook-block feel */
.css-szgx728 section {
  border-radius: 0;
}

/* Fix 3: Legal aside at article end — discrete left-border callout distinct from narrative prose */
.css-rp27xtl {
  border-left: 2px solid #B89870;
  padding: 0.5em 0.8em 0.5em 1em;
  margin: 2em 0 0.5em;
  background: rgba(184, 152, 112, 0.06);
  font-size: 0.875em;
  color: #6B6258;
}

/* === R4 fixes (2026-06-24T23:50:26.858463+00:00) === */

/* Fix 1: Author-page sections — child combinator wins specificity over base.css full-border rule */
.css-szgx728 > article > section {
  border: none;
  border-left: 3px solid #B89870;
  padding: 1.2em 1em 1.2em 1.4em;
  margin-bottom: 2em;
  background: rgba(235, 230, 220, 0.35);
  border-radius: 0;
}

/* v.73e160 — layout revision */
/* Editorial pass: the field-survey identity kept for article internals + the typewriter
   masthead wordmark (both QA-praised). The homepage — previously an unstyled stack because
   the base card selector never matched the nested grid — is rebuilt as a photographic
   masthead → typographic hero → photo-banner second entry → closing strip. Moment red
   (#8B2E2E) used in exactly two places: masthead underline + hero drop cap. */

/* ---- Homepage masthead: Cusco field photo + stamped wordmark ---- */

body:not(:has(main > article)) header {
  background-image:
    linear-gradient(rgba(18, 22, 30, 0.60), rgba(18, 22, 30, 0.44)),
    url("/theme-assets/cover.jpg");
  background-size: cover;
  background-position: center 42%;
  border-bottom: 3px solid var(--moment);
  padding: 76px 0 44px;
  margin-bottom: 0;
}

body:not(:has(main > article)) header > div {
  position: relative;
}

body:not(:has(main > article)) header > div::before {
  content: 'REGISTRO DE CAMPO · 3399 MSNM';
  display: block;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 10.5px;
  letter-spacing: 0.30em;
  color: rgba(240, 237, 230, 0.82);
  text-transform: uppercase;
  margin-bottom: 14px;
}

body:not(:has(main > article)) header h1 {
  color: #F4F1EA;
  font-size: 2.35rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(10, 12, 18, 0.55);
}

body:not(:has(main > article)) header p {
  color: rgba(244, 241, 234, 0.88);
  opacity: 1;
  font-size: 15px;
  font-style: italic;
  max-width: 60ch;
  line-height: 1.55;
  margin-top: 12px;
  text-shadow: 0 1px 8px rgba(10, 12, 18, 0.45);
}

/* Article masthead stays a compact typed bar (no photo — the article hero image follows) */
body:has(main > article) header {
  padding: 26px 0 18px;
  margin-bottom: 40px;
}

/* ---- Homepage: section label above the journal (full-row, outside frames) ---- */

body:not(:has(main > article)) main {
  padding-top: 8px;
}

body:not(:has(main > article)) main::before {
  content: 'EL CUADERNO — EN ORDEN DE ESCRITURA';
  display: block;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 12px;
  margin: 40px 0 34px;
  border-bottom: 1px solid var(--border);
}

/* ---- Homepage grid wrapper (the ONLY div child of homepage main) ---- */

body:not(:has(main > article)) main > div {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* ---- Homepage cards — soft editorial frames, warm paper, never white ---- */

body:not(:has(main > article)) main > div > div {
  background: #FAF6EE !important;
  border: 1px solid rgba(30, 37, 53, 0.10);
  border-radius: 9px;
  box-shadow: 0 1px 5px rgba(30, 37, 53, 0.05);
  padding: 34px 38px 32px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

body:not(:has(main > article)) main > div > div:hover {
  border-color: rgba(94, 122, 60, 0.45);
  box-shadow: 0 3px 14px rgba(30, 37, 53, 0.09);
}

/* Date kicker (mono, tracked) — shared */
body:not(:has(main > article)) main > div > div > p:first-child {
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Card titles — serif display voice */
body:not(:has(main > article)) main > div > div > h2 {
  font-family: var(--fb), 'Times New Roman', serif;
  letter-spacing: 0;
  margin-bottom: 14px;
}

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

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

body:not(:has(main > article)) main > div > div > p:not(:first-child) {
  font-family: var(--fb), 'Times New Roman', serif;
  color: var(--fg);
  opacity: 0.86;
  max-width: 64ch;
}

/* ---- HERO (first / newest entry): the loud voice ---- */

body:not(:has(main > article)) main > div > div:first-child {
  padding: 42px 44px 40px;
  border-top: 3px solid var(--accent);
}

body:not(:has(main > article)) main > div > div:first-child > p:first-child::before {
  content: 'ÚLTIMO APUNTE · POR MILAGROS SOSA · 6 MIN';
  display: block;
  color: var(--primary);
  opacity: 0.65;
  margin-bottom: 6px;
}

body:not(:has(main > article)) main > div > div:first-child > h2 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 600;
  margin-bottom: 18px;
}

body:not(:has(main > article)) main > div > div:first-child > p:not(:first-child) {
  font-size: 19.5px;
  line-height: 1.55;
}

/* Drop cap — moment red (place 2 of 2) */
body:not(:has(main > article)) main > div > div:first-child > p:not(:first-child)::first-letter {
  font-family: var(--fb), 'Times New Roman', serif;
  font-weight: 600;
  font-size: 3.15em;
  line-height: 0.82;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--moment);
}

/* Hero CTA — the one filled button */
body:not(:has(main > article)) main > div > div:first-child > a:last-child {
  display: inline-block;
  margin-top: 22px;
  background: var(--accent) !important;
  color: #F5EFE1;
  border: none;
  border-radius: 7px;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 0;
  padding: 11px 22px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(30, 37, 53, 0.16);
  transition: background 0.15s ease;
}

body:not(:has(main > article)) main > div > div:first-child > a:last-child::after {
  content: 'Leer el apunte \2192';
  font-size: 12.5px;
  font-weight: 600;
}

body:not(:has(main > article)) main > div > div:first-child > a:last-child:hover {
  background: var(--primary) !important;
}

/* ---- Second / older entry: quiet supporting, photo banner ---- */

body:not(:has(main > article)) main > div > div:last-child {
  padding-top: 0;
  overflow: hidden;
}

body:not(:has(main > article)) main > div > div:nth-child(2)::before {
  content: 'MÁS ABAJO';
  display: flex;
  align-items: flex-end;
  height: 168px;
  margin: 0 -38px 26px;
  padding: 0 38px 16px;
  background-image:
    linear-gradient(rgba(20, 24, 28, 0.52), rgba(20, 24, 28, 0.24)),
    url("/theme-assets/hero-photo.jpg");
  background-size: cover;
  background-position: center 30%;
  color: #F4F1EA;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(10, 12, 18, 0.6);
}

body:not(:has(main > article)) main > div > div:last-child > h2 {
  font-size: 24px;
  line-height: 1.24;
  font-weight: 600;
}

/* Older-entry CTA — quiet underline, not a filled button (reserves the loud one for hero) */
body:not(:has(main > article)) main > div > div:last-child > a:last-child {
  display: inline-block;
  margin-top: 4px;
  background: transparent !important;
  border: none;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  color: var(--accent);
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 0;
  padding: 2px 0;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

body:not(:has(main > article)) main > div > div:last-child > a:last-child::after {
  content: 'Leer el apunte \2192';
  font-size: 12px;
  font-weight: 500;
}

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

/* ---- Closing strip: second photo band before the footer ---- */

body:not(:has(main > article)) main > div::after {
  content: 'VER MÁS';
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 200px;
  margin-top: 8px;
  padding: 0 38px 22px;
  border-radius: 9px;
  background-image:
    linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.25)),
    url("/theme-assets/hero-photo.jpg");
  background-size: cover;
  background-position: center 70%;
  color: #F4F1EA;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(10, 12, 18, 0.6);
}

/* ---- Article page: byline / reading signal under the title ---- */

body:has(main > article) main > time {
  font-size: 12px;
  color: var(--primary);
  opacity: 0.9;
}

body:has(main > article) main > time::before {
  content: 'POR MILAGROS SOSA  ·  ';
  color: var(--accent);
  font-weight: 500;
}

body:has(main > article) main > time::after {
  content: '  ·  6 MIN DE LECTURA';
  color: var(--primary);
  opacity: 0.6;
}

/* Article title a touch larger for editorial presence */
body:has(main > article) main > h1 {
  font-size: 31px;
  margin-bottom: 10px;
}

/* Related-posts block (article) — warm frame, readable index; kill any inherited white */
body:has(main > article) main > div:last-child {
  margin-top: 52px;
  padding: 24px 28px 20px;
  background: #FAF6EE !important;
  border: 1px solid rgba(30, 37, 53, 0.10);
  border-radius: 9px;
}

body:has(main > article) main > div:last-child > h3 {
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

body:has(main > article) main > div:last-child a {
  display: block;
  padding: 12px 22px;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--fb), 'Times New Roman', serif;
  font-size: 15.5px;
  background: #F5EFE1 !important;
  border: 1px solid rgba(30, 37, 53, 0.10);
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(30, 37, 53, 0.04);
  margin-bottom: 8px;
}

body:has(main > article) main > div:last-child a:last-child {
  margin-bottom: 0;
}

body:has(main > article) main > div:last-child a:hover {
  color: var(--accent);
  border-color: rgba(94, 122, 60, 0.45);
  box-shadow: 0 3px 12px rgba(30, 37, 53, 0.08);
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  body:not(:has(main > article)) header { padding: 52px 0 32px; }
  body:not(:has(main > article)) header h1 { font-size: 1.7rem; }
  body:not(:has(main > article)) main > div > div { padding: 26px 24px; }
  body:not(:has(main > article)) main > div > div:first-child { padding: 28px 24px; }
  body:not(:has(main > article)) main > div > div:first-child > h2 { font-size: 30px; }
  body:not(:has(main > article)) main > div > div:first-child > p:not(:first-child) { font-size: 17.5px; }
  body:not(:has(main > article)) main > div > div:nth-child(2)::before { margin: 0 -24px 22px; padding: 0 24px 14px; height: 140px; }
  /* Article H2 scan-anchors must not shrink below body text on mobile */
  :root main > article > h2 { font-size: 16px; }
  /* Touch targets ≥ 44px */
  body:not(:has(main > article)) main > div > div:first-child > a:last-child { padding: 13px 22px; }
}


/* 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: M6/M7 homepage photo breaks and archive index */
:root main:not(:has(> h1)):not(:has(> article))::before {
  content: "EDITOR'S PICKS — LEE ESTO PRIMERO";
}

:root main:not(:has(> h1)):not(:has(> article)) > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 16px;
  align-items: stretch;
}

:root main:not(:has(> h1)):not(:has(> article)) > div > div {
  height: 100%;
  box-sizing: border-box;
}

:root main:not(:has(> h1)):not(:has(> article)) > div > div:first-child {
  grid-column: 1 / -1;
  order: 1;
}

:root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(n+2) {
  grid-column: span 3;
  order: 3;
}

:root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(2)::before {
  content: none;
  display: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > div::before,
:root main:not(:has(> h1)):not(:has(> article)) > div::after {
  grid-column: 1 / -1;
  min-height: 205px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  background-image:
    linear-gradient(rgba(20, 24, 28, 0.62), rgba(20, 24, 28, 0.34)),
    url("/theme-assets/hero-photo.jpg");
  background-size: cover;
  color: #F4F1EA;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.32em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 7px rgba(10, 12, 18, 0.68);
}

:root main:not(:has(> h1)):not(:has(> article)) > div::before {
  content: 'MÁS ABAJO';
  order: 2;
  background-position: center 30%;
}

:root main:not(:has(> h1)):not(:has(> article)) > div::after {
  content: 'VER MÁS';
  order: 4;
  margin-top: 0;
  background-position: center 70%;
}

:root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(n+7),
:root main:not(:has(> h1)):not(:has(> article)) > div > div:has(> h2):not(:has(> p:not(:first-child))) {
  grid-column: span 2;
  order: 5;
  min-height: 118px;
  padding: 20px 22px;
  background: #FAF6EE;
  border: 1px solid rgba(30, 37, 53, 0.10);
  border-radius: 9px;
  box-shadow: 0 1px 5px rgba(30, 37, 53, 0.05);
}

:root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(n+7):hover,
:root main:not(:has(> h1)):not(:has(> article)) > div > div:has(> h2):not(:has(> p:not(:first-child))):hover {
  border-color: rgba(94, 122, 60, 0.45);
  box-shadow: 0 3px 14px rgba(30, 37, 53, 0.09);
}

:root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(n+7) > h2,
:root main:not(:has(> h1)):not(:has(> article)) > div > div:has(> h2):not(:has(> p:not(:first-child))) > h2 {
  font-family: var(--fb), 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.34;
  margin: 0;
}

:root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(n+7) > p,
:root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(n+7) > a:last-child,
:root main:not(:has(> h1)):not(:has(> article)) > div > div:has(> h2):not(:has(> p:not(:first-child))) > p,
:root main:not(:has(> h1)):not(:has(> article)) > div > div:has(> h2):not(:has(> p:not(:first-child))) > a:last-child {
  display: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul),
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul) {
  display: block;
  width: 100%;
  margin-top: 32px;
}

:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul)::before,
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul)::before {
  content: 'VER MÁS';
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 205px;
  margin-bottom: 28px;
  border-radius: 9px;
  padding: 0 32px;
  background-image:
    linear-gradient(rgba(20, 24, 28, 0.62), rgba(20, 24, 28, 0.34)),
    url("/theme-assets/hero-photo.jpg");
  background-size: cover;
  background-position: center 70%;
  color: #F4F1EA;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.32em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 7px rgba(10, 12, 18, 0.68);
}

:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul,
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul) > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}

:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul > li,
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul) > ul > li {
  min-height: 118px;
  padding: 20px 22px;
  background: #FAF6EE;
  border: 1px solid rgba(30, 37, 53, 0.10);
  border-radius: 9px;
  box-shadow: 0 1px 5px rgba(30, 37, 53, 0.05);
}

:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul > li:hover,
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul) > ul > li:hover {
  border-color: rgba(94, 122, 60, 0.45);
  box-shadow: 0 3px 14px rgba(30, 37, 53, 0.09);
}

:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul > li > a,
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul) > ul > li > a {
  color: var(--primary);
  display: block;
  font-family: var(--fb), 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.34;
  text-decoration: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul > li > a:hover,
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul) > ul > li > a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  :root main:not(:has(> h1)):not(:has(> article)) > div {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  :root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(n+2),
  :root main:not(:has(> h1)):not(:has(> article)) > div > div:nth-child(n+7),
  :root main:not(:has(> h1)):not(:has(> article)) > div > div:has(> h2):not(:has(> p:not(:first-child))) {
    grid-column: 1 / -1;
  }

  :root main:not(:has(> h1)):not(:has(> article)) > div::before,
  :root main:not(:has(> h1)):not(:has(> article)) > div::after,
  :root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul)::before,
  :root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul)::before {
    min-height: 180px;
    padding: 0 22px;
    font-size: 12px;
    letter-spacing: 0.24em;
  }

  :root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul,
  :root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul) > ul {
    grid-template-columns: 1fr;
  }
}

/* refix iter1: enforce two centered homepage strips and boxed archive index */
:root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type > div:nth-child(2)::before {
  content: none;
  display: none;
}

:root main:not(:has(> h1)):not(:has(> article)):has(> div + div > ul) > div:first-of-type::after,
:root main:not(:has(> h1)):not(:has(> article)):has(> div + section > ul) > div:first-of-type::after,
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul)::after,
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul)::after {
  content: none;
  display: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type::before,
:root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type::after,
:root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul)::before,
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul)::before {
  align-items: center;
  justify-content: center;
  min-height: 205px;
  padding: 0 32px;
  background-image:
    linear-gradient(rgba(20, 24, 28, 0.72), rgba(20, 24, 28, 0.54)),
    url("/theme-assets/hero-photo.jpg");
  color: #FAF6EE;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 2px 10px rgba(10, 12, 18, 0.78);
}

:root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type > div:nth-child(n+7),
:root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type > div:has(> h2):not(:has(> p:not(:first-child))) {
  grid-column: span 2;
  order: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 118px;
  height: auto;
  padding: 20px 22px;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):has(> ul),
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) {
  display: block;
  width: 100%;
  margin-top: 32px;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):has(> ul) > ul,
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  columns: auto;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):has(> ul) > ul > li,
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul > li {
  display: flex;
  min-height: 118px;
  height: 100%;
  box-sizing: border-box;
  padding: 20px 22px;
  background: #FAF6EE;
  border: 1px solid rgba(30, 37, 53, 0.10);
  border-radius: 9px;
  box-shadow: 0 1px 5px rgba(30, 37, 53, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):has(> ul) > ul > li:hover,
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul > li:hover {
  border-color: rgba(94, 122, 60, 0.45);
  box-shadow: 0 3px 14px rgba(30, 37, 53, 0.09);
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):has(> ul) > ul > li > a,
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul > li > a {
  display: block;
  width: 100%;
  color: var(--primary);
  font-family: var(--fb), 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.34;
  text-decoration: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):has(> ul) > ul > li > a:hover,
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul > li > a:hover {
  color: var(--accent);
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  width: 100%;
  margin-top: 32px;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul)) > :is(a, p) {
  display: block;
  min-height: 118px;
  box-sizing: border-box;
  padding: 20px 22px;
  background: #FAF6EE;
  border: 1px solid rgba(30, 37, 53, 0.10);
  border-radius: 9px;
  box-shadow: 0 1px 5px rgba(30, 37, 53, 0.05);
  color: var(--primary);
  font-family: var(--fb), 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.34;
  text-decoration: none;
}

@media (max-width: 640px) {
  :root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type::before,
  :root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type::after,
  :root main:not(:has(> h1)):not(:has(> article)) > div:has(> ul)::before,
  :root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul)::before {
    min-height: 180px;
    padding: 0 22px;
    font-size: 12px;
    letter-spacing: 0.24em;
  }

  :root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type > div:nth-child(n+7),
  :root main:not(:has(> h1)):not(:has(> article)) > div:first-of-type > div:has(> h2):not(:has(> p:not(:first-child))) {
    grid-column: 1 / -1;
  }

  :root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):has(> ul) > ul,
  :root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > ul,
  :root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul)) {
    grid-template-columns: 1fr;
  }
}

/* refix iter1: direct-anchor archive tail variant */
:root main:not(:has(> h1)):not(:has(> article)):has(> div + div) > div:first-of-type::after {
  content: none;
  display: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul))::before {
  content: 'VER MÁS';
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 205px;
  margin-bottom: 18px;
  border-radius: 9px;
  padding: 0 32px;
  background-image:
    linear-gradient(rgba(20, 24, 28, 0.72), rgba(20, 24, 28, 0.54)),
    url("/theme-assets/hero-photo.jpg");
  background-size: cover;
  background-position: center 70%;
  color: #FAF6EE;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 10px rgba(10, 12, 18, 0.78);
  text-transform: uppercase;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul))::after {
  content: none;
  display: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):has(> ul) > :is(h2, h3),
:root main:not(:has(> h1)):not(:has(> article)) > section:has(> ul) > :is(h2, h3),
:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul)) > :is(h2, h3) {
  grid-column: 1 / -1;
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  :root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul))::before {
    min-height: 180px;
    padding: 0 22px;
    font-size: 12px;
    letter-spacing: 0.24em;
  }
}

/* refix iter1: direct-anchor archive ordering and hover */
:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul))::before {
  order: -1;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul)) > :is(a, p):hover {
  border-color: rgba(94, 122, 60, 0.45);
  box-shadow: 0 3px 14px rgba(30, 37, 53, 0.09);
  color: var(--accent);
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul)) > p > a {
  color: var(--primary);
  text-decoration: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:not(:first-of-type):not(:has(> ul)) > p:hover > a {
  color: var(--accent);
}

/* refix iter2: M10 article affiliate CTA pills */
:root main:has(> h1) > article a:is(
  [href^="/try/"],
  [href^="/ref/"],
  [href^="/go/"],
  [href^="/out/"],
  [href^="/top/"],
  [href*="hotmart"],
  [href*="kiwify"],
  [href*="clickbank"],
  [href*="go.hotmart.com"]
) {
  display: inline-block;
  margin: 4px 3px;
  padding: 8px 17px 8px 19px;
  border: 1px solid rgba(122, 92, 62, 0.34);
  border-radius: 999px;
  background: #7A5C3E;
  color: #F5EFE1;
  box-shadow: 0 1px 4px rgba(30, 37, 53, 0.14);
  font-family: var(--fh), 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  vertical-align: baseline;
}

:root main:has(> h1) > article a:is(
  [href^="/try/"],
  [href^="/ref/"],
  [href^="/go/"],
  [href^="/out/"],
  [href^="/top/"],
  [href*="hotmart"],
  [href*="kiwify"],
  [href*="clickbank"],
  [href*="go.hotmart.com"]
)::after {
  content: ' \2192';
  font-weight: 500;
}

:root main:has(> h1) > article a:is(
  [href^="/try/"],
  [href^="/ref/"],
  [href^="/go/"],
  [href^="/out/"],
  [href^="/top/"],
  [href*="hotmart"],
  [href*="kiwify"],
  [href*="clickbank"],
  [href*="go.hotmart.com"]
):hover {
  background: var(--primary);
  border-color: rgba(94, 122, 60, 0.46);
  color: #F5EFE1;
  text-decoration: none;
}

@media (max-width: 640px) {
  :root main:has(> h1) > article a:is(
    [href^="/try/"],
    [href^="/ref/"],
    [href^="/go/"],
    [href^="/out/"],
    [href^="/top/"],
    [href*="hotmart"],
    [href*="kiwify"],
    [href*="clickbank"],
    [href*="go.hotmart.com"]
  ) {
    margin: 5px 2px;
    padding: 8px 14px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=The-Sill-botanical overlay=25% grid=asymmetric scale=dramatic family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 25%) ── */
:root main:not(:has(> h1)) > div:has(> div)::before {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-1.webp") center 40% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}
:root main:not(:has(> h1)) > div:has(> div)::after {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}


/* ── 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:has(> div) > 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:has(> div) > 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:has(> div) > 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:has(> div) > 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;
}

/* ── 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:has(> div) > 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:has(> div) > 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:has(> div) > 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:has(> div) > 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)) > div:has(> div)::before,
  :root main:not(:has(> h1)) > div:has(> div)::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}


/* premium-upgrade v4 */
/* premium-upgrade v4 — surgical bundle. Applied 2026-08-30.
   Fixes: M10 CTA / M11 dinkus leak / M4 heights / M9 typography / M5 frames.
   Kills v2 "LATEST" label (proven counterproductive from v2 diagnosis). */

/* ── Kill v2 counterproductive homepage label ── */
:root main:not(:has(> h1))::before { content: none !important; }

/* ── M10: affiliate CTA visibility on article body ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
}

/* ── M11: prevent dinkus leaking onto article page's first h2 ── */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}

/* ── M4: force equal-height cards via grid stretch + card fill ── */
:root main:not(:has(> h1)) > div:has(> div) {
  align-items: stretch !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
:root main:not(:has(> h1)) > div > article {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
/* also for flat-divs family */
:root main:not(:has(> h1)) > div {
  height: 100% !important;
}

/* ── M9: cap small-title weight so Bebas/Anton counters don't fill in ── */
:root main:not(:has(> h1)) > div > div > h2,
:root main:not(:has(> h1)) > div > div > h2 a,
:root main:not(:has(> h1)) > section > ul > li > a,
:root main:not(:has(> h1)) > div > p > a {
  font-weight: 500 !important;
}

/* ── M5: universal soft frame fallback for card-like elements ── */
:root main:not(:has(> h1)) > div > div,
:root main:not(:has(> h1)) > div > article,
:root main:not(:has(> h1)) > article {
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05) !important;
}


/* premium-upgrade v5 */
/* premium-upgrade v5 — big M2 band + wider M10 CTA net + M8 breathing. 2026-08-31. */

/* ── M2: PROMINENT full-row label, not the small word v2 tried ── */
:root main:not(:has(> h1))::before {
  content: "◆ LATEST FEATURES ◆" !important;
  display: block !important;
  font-family: var(--fh, "PT Sans"), Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 16px 24px 20px !important;
  margin: 0 0 40px !important;
  border-top: 3px solid var(--primary, #333) !important;
  border-bottom: 1px solid var(--border, #ccc) !important;
  color: var(--primary, #333) !important;
  background: transparent !important;
}

/* ── M10: broaden CTA net (Amazon, aff/ path, [target=_blank] product-shaped) ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href^="/aff/"],
:root main:has(> h1) a[href^="/product/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"],
:root main:has(> h1) a[href*="amazon."],
:root main:has(> h1) a[href*="/track/"],
:root main:has(> h1) a[href*="/link/"],
:root main:has(> h1) a[href*="lstrk.net"],
:root main:has(> h1) a[href*="thrivecart"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  margin: 4px 2px !important;
}

/* ── M8: article body breathing ── */
:root main:has(> h1) > article > p {
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
}
:root main:has(> h1) > article > h2 {
  margin-top: 48px !important;
  margin-bottom: 18px !important;
}
:root main:not(:has(> h1)) > div:has(> div) {
  gap: 40px 32px !important;
}

