*{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-qyvzxgy{max-width:860px;margin:0 auto;padding:0 20px}
.css-oyv6mra{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.css-oyv6mra h1{font-size:22px;font-weight:700;margin-bottom:2px}
.css-oyv6mra p{font-size:14px;color:#666}
.css-oyv6mra a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.css-v6kchrq{display:flex;flex-direction:column;gap:20px}
.css-ehjkti6{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-ehjkti6:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.css-ehjkti6 h2{font-size:19px;margin-bottom:6px}
.css-ehjkti6 h2 a{color:#1a1a1a;text-decoration:none}
.css-ehjkti6 .css-wg1wcjp{font-size:12px;color:#999;margin-bottom:8px}
.css-ehjkti6 p{font-size:14px;color:#555;margin-bottom:12px}
.css-12z2v9z{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.css-12z2v9z:hover{background:#4752c4}
.css-4s51p1a{padding-bottom:60px}
.css-4s51p1a h1{font-size:30px;font-weight:700;margin-bottom:8px}
.css-4s51p1a time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.css-4s51p1a h2{font-size:22px;margin:32px 0 12px}
.css-4s51p1a h3{font-size:18px;margin:24px 0 8px}
.css-4s51p1a p{margin-bottom:16px}
.css-4s51p1a ul,.css-4s51p1a ol{margin:0 0 16px 24px}
.css-4s51p1a a{color:#5865f2}
.css-4s51p1a img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.css-9c4se6g{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.css-9c4se6g a{color:#999;text-decoration:none}
.css-9bw5005{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.css-y56r5mh{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.css-n2nqawk{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.css-o9swvg5{text-align:center;margin:0 0 24px}
.css-bank5du{max-width:100%;height:auto;border-radius:12px}
.css-uj3ijjm{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.css-uj3ijjm 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-ojvd459{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.css-gx636lm{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-gx636lm:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#A85F2D;--accent:#3E5A3F;--bg:#ECE4D0;--fg:#1F1A14;--border:#C5BBA8;--r:9px;--fb:'Newsreader';--fh:'Fraunces';--fm:'Archivo';--moment:#5E3A5C}
/* === Custom === */
@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;1,9..144,700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Archivo:wght@500;600;700&display=swap');

/* v.5e7910 — layout revision */
/* Gummy Wellness Lab — editorial signature pass.
   Type system: Fraunces italic (display) + Newsreader (body) + Archivo (tracked meta).
   Palette: rust #A85F2D primary · sage #3E5A3F accent · plum #5E3A5C moment (2 uses only:
   masthead manifesto rule + hero drop cap). Warm paper #F6F0E2 — never pure white. */

:root {
  --fh: 'Fraunces'; --fb: 'Newsreader'; --fm: 'Archivo';
  --moment: #5E3A5C;
  --paper: #F6F0E2; --paper-hi: #F8F3E7;
  --line: rgba(31,26,20,.11);
}

:root body { font-family: var(--fb), Georgia, 'Times New Roman', serif; color: var(--fg); background: var(--bg); line-height: 1.78; font-size: 17px; }
::selection { background: var(--primary); color: var(--paper); }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }

/* ============ MASTHEAD ============ */
:root header { position: relative; overflow: hidden; background: #2a231b url("/theme-assets/front-image.jpg") center 38% / cover no-repeat; color: var(--paper); padding: 58px 0 42px; margin-bottom: 68px; border-bottom: 4px solid var(--primary); }
:root header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(26,22,16,.74), rgba(42,34,24,.62)); }
:root header::after { content: ""; position: absolute; top: 24px; right: 26px; width: 46px; height: 46px; opacity: .92; background: no-repeat center / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><circle cx="24" cy="24" r="21" fill="none" stroke="%23F6F0E2" stroke-width="2"/><path d="M15 24 l6 6 l12 -15" fill="none" stroke="%23F6F0E2" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>'); }
:root header > div { position: relative; z-index: 1; }
:root header > div::before { content: "THE GUMMY REPORT CARD"; display: block; font-family: var(--fm); font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #E0A877; margin-bottom: 12px; }
:root header h1, :root header span a { font-family: var(--fh), Georgia, serif; font-style: italic; color: var(--paper); text-decoration: none; }
:root header h1 { font-size: 42px; font-weight: 600; line-height: 1.04; letter-spacing: -.01em; }
:root header span a { font-size: 27px; font-weight: 600; }
:root header p { font-family: var(--fb), Georgia, serif; font-style: italic; color: rgba(246,240,226,.9); font-size: 15.5px; line-height: 1.55; max-width: 58ch; margin-top: 16px; padding-left: 15px; border-left: 3px solid var(--moment); }

/* ============ ARTICLE PAGE ============ */
:root main { padding-bottom: 84px; }
:root main > h1 { font-family: var(--fh), Georgia, serif; font-style: italic; font-size: 40px; line-height: 1.12; color: var(--primary); margin: 6px 0 10px; font-weight: 600; letter-spacing: -.01em; }
:root main > time { display: block; font-family: var(--fm), sans-serif; font-size: 12px; color: var(--accent); margin-bottom: 6px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
/* persona anchor under the H1, not only near the tail (S6) */
:root main:has(> article) > time::after { content: " · BY KELLY ABRAMSON · 6 MIN READ"; color: var(--primary); }

/* byline pill (first div before <article>) — kill base near-white, warm it */
:root main:has(> article) > div:first-of-type { display: inline-block; background: var(--paper-hi); border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px; margin: 4px 0 30px; font-family: var(--fm), sans-serif; font-size: 12px; letter-spacing: .04em; color: var(--accent); }
:root main:has(> article) > div:first-of-type time { text-transform: none; letter-spacing: .02em; color: var(--primary); font-weight: 600; }
:root main:has(> article) > div:first-of-type::after { content: " · BY KELLY ABRAMSON · LAKEWOOD, CO"; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

:root main > article > p { margin-bottom: 20px; font-size: 1.14rem; line-height: 1.8; }
:root main > article > h2 { font-family: var(--fh), Georgia, serif; font-size: 27px; font-weight: 600; color: var(--primary); margin: 1.9em 0 .5em; padding-bottom: 8px; border-bottom: 1px solid var(--accent); }
:root main > article > h2::before { content: "✷ ✷ ✷"; display: block; text-align: center; color: var(--accent); font-size: 13px; letter-spacing: .55em; margin: 0 0 .9em; opacity: .8; font-weight: 400; }
:root main > article > h3 { font-family: var(--fh), Georgia, serif; font-size: 20px; font-weight: 600; color: var(--accent); margin: 1.6em 0 .4em; }
:root main > article ul, :root main > article ol { margin: 0 0 20px 22px; }
:root main > article li { margin-bottom: 8px; font-size: 1.14rem; line-height: 1.78; }
:root main > article blockquote { position: relative; border-left: 4px solid var(--accent); padding: 10px 0 10px 46px; margin: 30px 0; font-style: italic; color: var(--primary); background: rgba(62,90,63,.07); border-radius: 0 9px 9px 0; }
:root main > article blockquote::before { content: "\201C"; position: absolute; left: 12px; top: 2px; font-family: var(--fh), Georgia, serif; font-size: 54px; line-height: 1; color: var(--accent); opacity: .55; }

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

/* affiliate CTA pills — full path + attribute so they strictly beat body-link rule (Rule J).
   Live outbound affiliate hrefs use the /see/ prefix (/see/main, /see/alt-1, /see/alt-2);
   also catch other outbound prefixes and any external http(s) product URL so every
   in-prose affiliate mention renders as a distinct button, never an inline chip (M10). */
:root main > article > p a[href^="/see/"], :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^="/go/"], :root main > article > p a[href^="/out/"], :root main > article > p a[href^="http"],
:root main > article > ul > li a[href^="/see/"], :root main > article > ul > li a[href^="/ref/"], :root main > article > ul > li a[href^="/try/"], :root main > article > ul > li a[href^="/check/"], :root main > article > ul > li a[href^="/go/"], :root main > article > ul > li a[href^="/out/"], :root main > article > ul > li a[href^="http"] { display: inline-block; background: transparent; color: var(--primary); border: 1.5px solid var(--primary); padding: 3px 14px; border-radius: 9px; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: .82em; letter-spacing: .1em; font-family: var(--fm), sans-serif; }
:root main > article > p a[href^="/see/"]:hover, :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^="/go/"]:hover, :root main > article > p a[href^="/out/"]:hover, :root main > article > p a[href^="http"]:hover,
:root main > article > ul > li a[href^="/see/"]:hover, :root main > article > ul > li a[href^="/ref/"]:hover, :root main > article > ul > li a[href^="/try/"]:hover, :root main > article > ul > li a[href^="/check/"]:hover, :root main > article > ul > li a[href^="/go/"]:hover, :root main > article > ul > li a[href^="/out/"]:hover, :root main > article > ul > li a[href^="http"]:hover { background: var(--primary); color: var(--paper); }

:root article > div[role="img"] { margin: 4px 0 30px; }
:root article > div[role="img"] > img { width: 100%; height: auto; display: block; border-radius: 9px; box-shadow: 0 3px 14px rgba(31,26,20,.13); }

:root article > section { background: rgba(168,95,45,.07); border-left: 4px solid var(--primary); border-radius: 0 9px 9px 0; padding: 16px 20px; margin-top: 34px; font-size: 14px; color: var(--fg); font-family: var(--fb), serif; font-style: italic; }
:root article > section b { color: var(--primary); font-weight: 700; font-style: normal; text-transform: uppercase; font-size: 10px; letter-spacing: .18em; display: inline-block; margin-right: 8px; font-family: var(--fm), sans-serif; }

/* related-articles footer (last div after <article>) */
:root main > div:has(> .crd-related-list) { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--accent); }
:root main > div:has(> .crd-related-list) > h3 { font-family: var(--fm), sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .22em; color: var(--primary); margin-bottom: 16px; font-weight: 600; }
:root .crd-related-list { display: flex; flex-direction: column; gap: 9px; }
:root .crd-related-link { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 12px 16px; color: var(--fg); text-decoration: none; font-size: 15px; font-family: var(--fb), serif; display: block; transition: border-color .15s ease, background .15s ease; }
:root .crd-related-link:hover { border-color: var(--primary); background: rgba(168,95,45,.05); }

/* ============ HOMEPAGE FEED ============ */
/* HOME = main with no <article>. First div = card grid, last div = archive tail. */
:root main:not(:has(> article)) > div:first-of-type { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 32px; align-items: stretch; margin-top: 8px; }

/* section label above the featured/picks region (Rule B: full-width via parent ::before) */
:root main:not(:has(> article)) > div:first-of-type::before { content: "EDITOR'S PICKS · READ THESE FIRST"; grid-column: 1 / -1; font-family: var(--fm), sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--primary); padding-bottom: 13px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }

/* base card */
:root main:not(:has(> article)) > div:first-of-type > div { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 26px 34px 30px; box-shadow: 0 1px 4px rgba(31,26,20,.05); transition: transform .15s ease, box-shadow .15s ease; }
:root main:not(:has(> article)) > div:first-of-type > div:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(168,95,45,.12); }
:root main:not(:has(> article)) > div:first-of-type > div > p:first-child { font-family: var(--fm), sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 13px; line-height: 1.4; }
:root main:not(:has(> article)) > div:first-of-type > div > h2 { font-family: var(--fh), Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1.22; margin-bottom: 14px; }
:root main:not(:has(> article)) > div:first-of-type > div > h2 a { color: var(--fg); text-decoration: none; }
:root main:not(:has(> article)) > div:first-of-type > div > h2 a:hover { color: var(--primary); }
:root main:not(:has(> article)) > div:first-of-type > div > p:not(:first-child) { font-family: var(--fb), serif; font-size: 15.5px; line-height: 1.6; color: rgba(31,26,20,.82); margin-bottom: 20px; max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:root main:not(:has(> article)) > div:first-of-type > div > a:last-child { margin-top: auto; align-self: flex-start; font-family: var(--fm), sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); background: transparent; border: 1.5px solid var(--primary); padding: 8px 20px; border-radius: 9px; text-decoration: none; transition: background .15s ease, color .15s ease; }
:root main:not(:has(> article)) > div:first-of-type > div > a:last-child:hover { background: var(--primary); color: var(--paper); }

/* HERO — the one loud voice (card 1, full width) */
:root main:not(:has(> article)) > div:first-of-type > div:first-child { grid-column: 1 / -1; background: var(--paper-hi); border-top: 4px solid var(--primary); padding: 42px 48px 46px; }
:root main:not(:has(> article)) > div:first-of-type > div:first-child::before { content: "LATEST ESSAY · TOP OF THE CLASS"; font-family: var(--fm), sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-child { font-size: 12px; }
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:first-child::before { content: "FEATURED REVIEW — "; }
:root main:not(:has(> article)) > div:first-of-type > div:first-child > h2 { font-size: 40px; font-style: italic; line-height: 1.08; margin-bottom: 18px; }
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:not(:first-child) { font-size: 20px; line-height: 1.52; max-width: 60ch; margin-bottom: 24px; display: block; -webkit-line-clamp: initial; overflow: visible; }
:root main:not(:has(> article)) > div:first-of-type > div:first-child > p:not(:first-child)::first-letter { font-family: var(--fh), Georgia, serif; font-weight: 700; font-size: 60px; line-height: .82; float: left; padding: 8px 12px 0 0; color: var(--moment); }
:root main:not(:has(> article)) > div:first-of-type > div:first-child > a:last-child { font-size: 13px; padding: 11px 26px; }

/* Editor's picks pair (cards 2-3) — subtle sage lift */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(2), :root main:not(:has(> article)) > div:first-of-type > div:nth-child(3) { border-top: 3px solid var(--accent); }

/* Card 4 — full-bleed photo "chapter opener" = Strip 1, doubles as journal divider */
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) { grid-column: 1 / -1; min-height: 250px; border: none; box-shadow: 0 3px 14px rgba(31,26,20,.16); background: linear-gradient(rgba(20,24,28,.30), rgba(20,24,28,.74)), url("/theme-assets/feature-photo.jpg") center 30% / cover; padding: 32px 42px 36px; margin: 24px 0 8px; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4):hover { transform: none; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4)::before { content: "IN ORDER OF WRITING"; font-family: var(--fm), sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) > p:first-child { color: rgba(246,240,226,.82); }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) > h2 { font-size: 30px; font-style: italic; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) > h2 a { color: var(--paper); }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) > h2 a:hover { color: #F0C9A0; }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) > p:not(:first-child) { color: rgba(246,240,226,.92); }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) > a:last-child { color: var(--paper); border-color: rgba(246,240,226,.7); }
:root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) > a:last-child:hover { background: rgba(246,240,226,.16); color: var(--paper); }

/* ============ ARCHIVE TAIL (last div of home) — Strip 2 + 2-col index ============ */
/* display:block cancels the base theme's flex on this div (.css-ojvd459) so multicol takes effect */
:root main:not(:has(> article)) > div:last-of-type { display: block; position: relative; margin-top: 88px; padding-top: 236px; columns: 2; column-gap: 44px; }
:root main:not(:has(> article)) > div:last-of-type::before { content: "THE ARCHIVE"; position: absolute; top: 0; left: 0; right: 0; height: 206px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.30)), url("/theme-assets/feature-photo.jpg") center 70% / cover; color: var(--paper); font-family: var(--fm), sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
:root main:not(:has(> article)) > div:last-of-type > a { display: block; break-inside: avoid; background: var(--paper); box-shadow: none; border: 0; border-bottom: 1px dotted rgba(31,26,20,.2); border-radius: 0; padding: 12px 6px; margin: 0; color: var(--fg); text-decoration: none; font-family: var(--fb), serif; font-size: 15px; line-height: 1.42; transition: color .15s ease; }
:root main:not(:has(> article)) > div:last-of-type > a:hover { color: var(--primary); box-shadow: none; }

/* ============ FOOTER ============ */
:root footer { background: transparent; border-top: 1px solid var(--accent); padding: 28px 0 38px; margin-top: 64px; text-align: center; font-family: var(--fb), serif; font-size: 12.5px; color: var(--fg); opacity: .62; letter-spacing: .04em; font-style: italic; }
:root footer a { color: var(--fg); text-decoration: none; border-bottom: 1px dotted var(--border); font-style: normal; }
:root footer a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ============ MOBILE ============ */
/* Two-up journal cards squeeze to ~half of a 390px viewport, so their text hugged the
   frame edges. Stack to a single column so the 34px card padding reads as real breathing
   room (M3). Archive index drops to one column for the same reason. */
@media (max-width: 640px) {
  :root main:not(:has(> article)) > div:first-of-type { grid-template-columns: 1fr; gap: 26px; }
  :root main:not(:has(> article)) > div:first-of-type > div { padding: 26px 32px 28px; }
  :root main:not(:has(> article)) > div:first-of-type > div:first-child { padding: 34px 32px 36px; }
  :root main:not(:has(> article)) > div:first-of-type > div:nth-child(4) { padding: 30px 32px 34px; }
  :root main:not(:has(> article)) > div:last-of-type { columns: 1; }
}


/* 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;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=NYT-Cooking-warm overlay=25% grid=equal scale=balanced 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;
}

