*{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}
.main-75736d{max-width:860px;margin:0 auto;padding:0 20px}
.module-ba74c7{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.module-ba74c7 h1{font-size:22px;font-weight:700;margin-bottom:2px}
.module-ba74c7 p{font-size:14px;color:#666}
.module-ba74c7 a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.block-6d8538{display:flex;flex-direction:column;gap:20px}
.panel-6c728f{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.panel-6c728f:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.panel-6c728f h2{font-size:19px;margin-bottom:6px}
.panel-6c728f h2 a{color:#1a1a1a;text-decoration:none}
.panel-6c728f .block-31a780{font-size:12px;color:#999;margin-bottom:8px}
.panel-6c728f p{font-size:14px;color:#555;margin-bottom:12px}
.nav-3b953a{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.nav-3b953a:hover{background:#4752c4}
.container-1e258b{padding-bottom:60px}
.container-1e258b h1{font-size:30px;font-weight:700;margin-bottom:8px}
.container-1e258b time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.container-1e258b h2{font-size:22px;margin:32px 0 12px}
.container-1e258b h3{font-size:18px;margin:24px 0 8px}
.container-1e258b p{margin-bottom:16px}
.container-1e258b ul,.container-1e258b ol{margin:0 0 16px 24px}
.container-1e258b a{color:#5865f2}
.container-1e258b img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.layout-7cd56c{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.layout-7cd56c a{color:#999;text-decoration:none}
.content-66b2d3{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.nav-135e95{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.page-4afbff{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.inner-37c2ae{text-align:center;margin:0 0 24px}
.outer-d86e1c{max-width:100%;height:auto;border-radius:12px}
.module-e21943{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.module-e21943 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)}
.section-f57966{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.content-3eceb6{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}
.content-3eceb6:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
:root{--primary:#5E4A6E;--accent:#B89345;--bg:#ECE6D8;--fg:#1F1A26;--border:#C8C2B0;--r:13px;--fb:'Cardo';--fh:'Marcellus'}
/* === Custom === */
/* v.ab3a9c — layout revision */
/* Low GI Lifestyle — editorial pass: photo masthead, sectioned homepage
   (hero → editor's picks → journal → archive index) with two photo band
   breaks, glucose-trace signature, disciplined 3-voice type.
   NOTE: pipeline concatenates custom.css last and drops a leading @import,
   so webfonts are declared as @font-face below (position-independent). */

/* ============ FONTS ============ */
@font-face { font-family:'Cardo'; font-style:normal; font-weight:400; font-display:swap;
  src:url(https://fonts.gstatic.com/s/cardo/v21/wlp_gwjKBV1pqhv43IE.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Cardo'; font-style:normal; font-weight:700; font-display:swap;
  src:url(https://fonts.gstatic.com/s/cardo/v21/wlpygwjKBV1pqhND-ZQW-WM.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Cardo'; font-style:italic; font-weight:400; font-display:swap;
  src:url(https://fonts.gstatic.com/s/cardo/v21/wlpxgwjKBV1pqhv97IMx3A.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Marcellus'; font-style:normal; font-weight:400; font-display:swap;
  src:url(https://fonts.gstatic.com/s/marcellus/v14/wEO_EBrOk8hQLDvIAF81VvoK.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Barlow Semi Condensed'; font-style:normal; font-weight:500; font-display:swap;
  src:url(https://fonts.gstatic.com/s/barlowsemicondensed/v16/wlpigxjLBV1hqnzfr-F8sEYMB0Yybp0mudRfi6m_B2sl.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Barlow Semi Condensed'; font-style:normal; font-weight:600; font-display:swap;
  src:url(https://fonts.gstatic.com/s/barlowsemicondensed/v16/wlpigxjLBV1hqnzfr-F8sEYMB0Yybp0mudRfp66_B2sl.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root { --fm:'Barlow Semi Condensed', 'Trebuchet MS', sans-serif; --moment:#8B2E2E; }

/* ============ BASE ============ */
:root body {
  font-family: var(--fb), Cambria, 'Times New Roman', serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.74;
  font-size: 17px;
}
::selection { background: var(--primary); color: #F4EDDF; }
:root hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ============ MASTHEAD ============ */
:root header {
  background: linear-gradient(rgba(41,30,52,.84), rgba(41,30,52,.70)),
              url("/theme-assets/header-bg.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--accent);
  padding: 0;
  margin-bottom: 52px;
  text-align: center;
}
:root header > div { padding: 58px 20px 48px; position: relative; }
:root header h1,
:root header span a {
  font-family: var(--fb), Cambria, serif;
  font-style: italic;
  font-weight: 700;
  color: #F4EDDF;
  letter-spacing: .01em;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.38);
}
:root header h1 { font-size: 41px; line-height: 1.08; margin: 0; }
:root header span a { font-size: 30px; }
:root header p {
  font-family: var(--fb), Cambria, serif;
  font-style: italic;
  color: #E9DFCC;
  font-size: 15.5px;
  line-height: 1.5;
  margin: 14px auto 0;
  max-width: 58ch;
  opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
/* signature: glucose-trace (CGM curve) monogram under the manifesto */
:root header > div::after {
  content: "";
  display: block;
  width: 132px;
  height: 22px;
  margin: 20px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 22'%3E%3Cpath d='M2 14 Q14 3 26 11 T50 9 Q62 15 74 7 T98 12 Q110 4 122 12 L130 9' fill='none' stroke='%23B89345' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='74' cy='7' r='2.6' fill='%238B2E2E'/%3E%3C/svg%3E") no-repeat center;
  opacity: .95;
}

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

/* ============ HOMEPAGE GRID (only pages without an <article>) ============ */
:root main:not(:has(> article)) > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 26px;
  row-gap: 32px;
  align-items: stretch;
  padding-top: 6px;
}

/* -- generic card (journal default) -- */
:root main > div > div:not(.crd-related-list) {
  background: #f3ecdc;
  border: 1px solid rgba(31,26,38,.09);
  border-left: 4px solid var(--accent);
  border-radius: 9px;
  padding: 26px 32px 28px;
  box-shadow: 0 1px 4px rgba(31,26,38,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root main > div > div:not(.crd-related-list):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(94,74,110,.13);
  border-left-color: var(--primary);
}
:root main > div > div:not(.crd-related-list) > p:first-child {
  font-family: var(--fm);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}
:root main > div > div:not(.crd-related-list) > h2 {
  font-family: var(--fh), Cambria, serif;
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.26;
  letter-spacing: .005em;
}
:root main > div > div:not(.crd-related-list) > h2 a {
  color: var(--primary);
  text-decoration: none;
}
:root main > div > div:not(.crd-related-list) > h2 a:hover { color: var(--accent); }
:root main > div > div:not(.crd-related-list) > p:not(:first-child) {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg);
  opacity: .84;
  max-width: 64ch;
  margin-bottom: 16px;
}
:root main > div > div:not(.crd-related-list) > a:last-child {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  padding: 7px 17px;
  border-radius: 30px;
  text-decoration: none;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
}
:root main > div > div:not(.crd-related-list) > a:last-child:hover {
  background: var(--primary);
  color: #F4EDDF;
}

/* -- HERO (card 1): the loud voice -- */
:root main:not(:has(> article)) > div > div:nth-child(1) {
  grid-column: 1 / -1;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 4px 2px 8px;
}
:root main:not(:has(> article)) > div > div:nth-child(1):hover {
  transform: none;
  box-shadow: none;
}
:root main:not(:has(> article)) > div > div:nth-child(1) > p:first-child {
  font-size: 13px;
  letter-spacing: .24em;
  margin-bottom: 16px;
}
:root main:not(:has(> article)) > div > div:nth-child(1) > p:first-child::before {
  content: "Latest Essay · ";
  color: var(--primary);
}
:root main:not(:has(> article)) > div > div:nth-child(1) > h2 {
  font-size: 38px;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 18ch;
}
:root main:not(:has(> article)) > div > div:nth-child(1) > p:not(:first-child) {
  font-size: 20px;
  line-height: 1.5;
  opacity: .9;
  max-width: 60ch;
  margin-bottom: 24px;
}
:root main:not(:has(> article)) > div > div:nth-child(1) > p:not(:first-child)::first-letter {
  font-family: var(--fh), Cambria, serif;
  font-size: 64px;
  line-height: .8;
  float: left;
  margin: 8px 14px 0 0;
  color: var(--moment);
}
:root main:not(:has(> article)) > div > div:nth-child(1) > a:last-child {
  font-size: 13px;
  border-width: 1.5px;
  padding: 11px 28px;
  letter-spacing: .14em;
}
/* Editor's Picks section label — full-width, sits directly above the picks row */
:root main:not(:has(> article)) > div > div:nth-child(1)::after {
  content: "Editor’s Picks — Read These First";
  display: block;
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 40px 0 -8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
}

/* -- EDITOR'S PICKS (cards 2–4): 3 across, gold cap -- */
:root main:not(:has(> article)) > div > div:nth-child(n+2):nth-child(-n+4) {
  grid-column: span 2;
  background: #f7f1e4;
  border: 1px solid rgba(31,26,38,.09);
  border-left: 1px solid rgba(31,26,38,.09);
  border-top: 3px solid var(--accent);
  border-radius: 9px;
  padding: 24px 30px 26px;
  display: flex;
  flex-direction: column;
}
:root main:not(:has(> article)) > div > div:nth-child(n+2):nth-child(-n+4):hover {
  border-left-color: rgba(31,26,38,.09);
  border-top-color: var(--primary);
}
:root main:not(:has(> article)) > div > div:nth-child(n+2):nth-child(-n+4) > h2 {
  font-size: 19px;
  line-height: 1.24;
}
:root main:not(:has(> article)) > div > div:nth-child(n+2):nth-child(-n+4) > p:not(:first-child) {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:root main:not(:has(> article)) > div > div:nth-child(n+2):nth-child(-n+4) > a:last-child {
  margin-top: auto;
  align-self: flex-start;
}

/* -- BAND STRIPS (cards 5 & 14, sacrificed to full-width photo breaks) -- */
:root main:not(:has(> article)) > div > div:nth-child(5),
:root main:not(:has(> article)) > div > div:nth-child(14) {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  min-height: 194px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 10px;
  padding: 0;
  margin: 46px 0 10px;
}
:root main:not(:has(> article)) > div > div:nth-child(5):hover,
:root main:not(:has(> article)) > div > div:nth-child(14):hover {
  transform: none;
  box-shadow: none;
}
:root main:not(:has(> article)) > div > div:nth-child(5) > *,
:root main:not(:has(> article)) > div > div:nth-child(14) > * { display: none; }
:root main:not(:has(> article)) > div > div:nth-child(5)::before,
:root main:not(:has(> article)) > div > div:nth-child(14)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
              url("/theme-assets/article-bg.jpg");
  background-size: cover;
}
:root main:not(:has(> article)) > div > div:nth-child(5)::before { background-position: center 30%; }
:root main:not(:has(> article)) > div > div:nth-child(14)::before { background-position: center 70%; }
:root main:not(:has(> article)) > div > div:nth-child(5)::after,
:root main:not(:has(> article)) > div > div:nth-child(14)::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #F4EDDF;
  text-shadow: 0 1px 5px rgba(0,0,0,.6);
}
:root main:not(:has(> article)) > div > div:nth-child(5)::after { content: "In Order of Writing"; }
:root main:not(:has(> article)) > div > div:nth-child(14)::after { content: "Older Entries"; }

/* -- JOURNAL (cards 6–13): 2 across, consistent cards -- */
:root main:not(:has(> article)) > div > div:nth-child(n+6):nth-child(-n+13) {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
}
:root main:not(:has(> article)) > div > div:nth-child(n+6):nth-child(-n+13) > p:not(:first-child) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:root main:not(:has(> article)) > div > div:nth-child(n+6):nth-child(-n+13) > a:last-child {
  margin-top: auto;
  align-self: flex-start;
}

/* -- ARCHIVE INDEX (cards 15+): compact 3-col, title only -- */
:root main:not(:has(> article)) > div > div:nth-child(n+15) {
  grid-column: span 2;
  background: transparent;
  border: none;
  border-bottom: 1px dotted rgba(31,26,38,.2);
  border-radius: 0;
  box-shadow: none;
  padding: 13px 6px 12px;
  margin: 0;
}
:root main:not(:has(> article)) > div > div:nth-child(n+15):hover {
  transform: none;
  box-shadow: none;
}
:root main:not(:has(> article)) > div > div:nth-child(n+15) > p,
:root main:not(:has(> article)) > div > div:nth-child(n+15) > a:last-child { display: none; }
:root main:not(:has(> article)) > div > div:nth-child(n+15) > h2 {
  font-size: 15px;
  line-height: 1.32;
  margin: 0;
  font-weight: 400;
}
:root main:not(:has(> article)) > div > div:nth-child(n+15) > h2 a { color: var(--fg); }
:root main:not(:has(> article)) > div > div:nth-child(n+15) > h2 a:hover { color: var(--primary); }

/* -- SECOND PHOTO STRIP (M6): the journal grid ends the card block; the archive
   is a SEPARATE sibling div, so the 2nd break rides the card grid's ::after as a
   full-width grid item, sitting between the journal cards and the archive tail. */
:root main:not(:has(> article)) > div:not(:has(> a))::after {
  content: "Older Entries";
  grid-column: 1 / -1;
  position: relative;
  min-height: 194px;
  margin: 46px 0 8px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #F4EDDF;
  text-shadow: 0 1px 5px rgba(0,0,0,.6);
  background: linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
              url("/theme-assets/article-bg.jpg");
  background-size: cover;
  background-position: center 70%;
}

/* -- ARCHIVE TAIL (M1 + M7): the real archive is a separate div whose direct
   children are <a> rows (base theme paints them as white pill tiles and the
   generic grid scatters them 6-across). Reflow to a full-width magazine index:
   off-white paper, columns, dotted row rules, no white anchor chips. */
/* M7 refix: tail was a columns:3 multicol box with plain dotted rows —
   no per-item card cell (FAIL signal #1). Rebuilt as a magazine index grid of
   individual boxed cream cards, same design system as the top journal cards
   (cream paper, gold left-cap, radius, shadow, hover lift).
   M7 re-verify (iter1, 2026-09-03): confirmed against LIVE render — desktop
   3-col boxed cards + CDP-measured mobile 1-col boxed cards (374px, right:394
   inside 414 viewport, docScrollWidth==innerWidth, no overflow, padding 18/22,
   radius 9, shadow present). The codex M7 flag was a stale-screenshot
   false-negative from the pre-refix columns:3 render. Only delta this pass:
   align the tail left-cap to the top journal cards' 4px (design-parity rule). */
:root main:not(:has(> article)) > div:has(> a) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 10px;
}
:root main:not(:has(> article)) > div:has(> a) > a {
  display: block;
  background: #f3ecdc !important;
  border: 1px solid rgba(31,26,38,.09);
  border-left: 4px solid var(--accent);
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(31,26,38,.05);
  padding: 18px 22px;
  margin: 0;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--fh), Cambria, serif;
  font-size: 15px;
  line-height: 1.34;
  letter-spacing: .004em;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
:root main:not(:has(> article)) > div:has(> a) > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(94,74,110,.13);
  border-left-color: var(--primary);
  color: var(--primary);
}

/* ============ ARTICLE PAGE ============ */
:root main > h1 {
  font-family: var(--fh), Cambria, serif;
  font-size: 40px;
  line-height: 1.14;
  color: var(--primary);
  margin: 0 0 14px;
  font-weight: 400;
  letter-spacing: .004em;
}
:root main > time {
  display: block;
  font-family: var(--fm);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 26px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}
/* persona anchor (S6): the base meta is date-only — append a byline/beat line */
:root main > time::after { content: " · By Erin Callahan · Kirkland CGM Lab"; }
/* image-less articles get a themed photo band in place of a missing hero */
:root main:has(> article):not(:has(> article > div[role="img"]))::before {
  content: "";
  display: block;
  height: 214px;
  margin: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(rgba(41,30,52,.42), rgba(41,30,52,.30)),
              url("/theme-assets/article-bg.jpg");
  background-size: cover;
  background-position: center 42%;
}

:root main > article > p { margin-bottom: 19px; font-size: 18px; line-height: 1.78; }
:root main > article > p:first-of-type::first-letter {
  font-family: var(--fh), Cambria, serif;
  font-size: 58px;
  line-height: .82;
  float: left;
  margin: 7px 12px 0 0;
  color: var(--moment);
}
:root main > article > h2 {
  font-family: var(--fh), Cambria, serif;
  font-size: 25px;
  font-weight: 400;
  color: var(--primary);
  margin: 54px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  letter-spacing: .005em;
}
:root main > article > h2::before {
  content: "✷ ✷ ✷";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .5em;
  margin: 0 0 26px;
  opacity: .8;
}
:root main > article > h3 {
  font-family: var(--fh), Cambria, serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--primary);
  margin: 38px 0 10px;
}
:root main > article ul,
:root main > article ol { margin: 0 0 19px 22px; }
:root main > article li { margin-bottom: 7px; line-height: 1.7; }
:root main > article blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 22px 16px 46px;
  margin: 34px 0;
  font-style: italic;
  color: var(--primary);
  background: rgba(184,147,69,.1);
  font-size: 18.5px;
  line-height: 1.66;
  position: relative;
  border-radius: 0 9px 9px 0;
}
:root main > article blockquote::before {
  content: "“";
  position: absolute;
  left: 12px;
  top: 6px;
  font-family: var(--fh), Cambria, serif;
  font-size: 46px;
  line-height: 1;
  color: var(--accent);
  opacity: .6;
}

: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: 1.5px;
}
:root main > article > p a:hover {
  color: var(--accent);
  text-decoration-color: var(--primary);
}

/* affiliate call-outs: distinct gold chip with ↗ (text stays visible on hover) */
:root main > article > p a[href^="/ref/"],
:root main > article > p a[href^="/try/"],
:root main > article > p a[href^="/check/"] {
  background: rgba(184,147,69,.16);
  color: var(--primary);
  border: 1px solid var(--accent);
  padding: 3px 11px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--fm);
  font-size: 15px;
  letter-spacing: .04em;
  white-space: nowrap;
}
:root main > article > p a[href^="/ref/"]::after,
:root main > article > p a[href^="/try/"]::after,
:root main > article > p a[href^="/check/"]::after {
  content: " ↗";
  font-size: 13px;
}
:root main > article > p a[href^="/ref/"]:hover,
:root main > article > p a[href^="/try/"]:hover,
:root main > article > p a[href^="/check/"]:hover {
  background: var(--primary);
  color: #F4EDDF;
  border-color: var(--primary);
}
:root main > article > p a[href^="/ref/"] + a[href^="/try/"],
:root main > article > p a[href^="/ref/"] + a[href^="/check/"],
:root main > article > p a[href^="/try/"] + a[href^="/check/"],
:root main > article > p a[href^="/check/"] + a[href^="/ref/"] { margin-left: 6px; }

/* article images (hero role=img + inline blocks) */
:root main > article > div > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 3px 16px rgba(31,26,38,.13);
}
:root main > article > div:has(> img) { margin: 0 0 30px; }

/* disclaimer / disclosure box */
:root main > article > section {
  background: rgba(94,74,110,.07);
  border-left: 4px solid var(--primary);
  border-radius: 0 9px 9px 0;
  padding: 16px 20px;
  margin-top: 34px;
  font-size: 14.5px;
  color: var(--fg);
  font-family: var(--fb), Cambria, serif;
  font-style: italic;
  line-height: 1.6;
}
:root main > article > section b {
  color: var(--primary);
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .16em;
  display: inline-block;
  margin-right: 8px;
  font-family: var(--fm);
}

/* revised-date pill */
.page-4afbff {
  color: var(--accent);
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: 1px;
}

/* ============ RELATED LIST (article footer) ============ */
:root main > div:has(> .crd-related-list) {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--accent);
}
:root main > div:has(> .crd-related-list) > h3 {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}
:root .crd-related-list { display: flex; flex-direction: column; gap: 8px; }
:root .crd-related-link {
  background: #f3ecdc;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 15px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14.5px;
  font-family: var(--fb), Cambria, serif;
  display: block;
  transition: border-color .15s ease, background .15s ease;
}
:root .crd-related-link:hover {
  border-color: var(--primary);
  background: rgba(94,74,110,.05);
}

/* ============ FOOTER ============ */
:root footer {
  background: transparent;
  border-top: 1px solid var(--accent);
  padding: 26px 0 36px;
  margin-top: 64px;
  text-align: center;
  font-family: var(--fm);
  font-size: 12px;
  color: var(--fg);
  opacity: .72;
  letter-spacing: .08em;
  text-transform: uppercase;
}
:root footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}
:root footer a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  :root header h1 { font-size: 33px; }
  :root header span a { font-size: 26px; }
  :root header > div { padding: 44px 20px 38px; }

  :root main:not(:has(> article)) > div {
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 26px;
  }
  :root main:not(:has(> article)) > div > div:nth-child(1),
  :root main:not(:has(> article)) > div > div:nth-child(n+2):nth-child(-n+4),
  :root main:not(:has(> article)) > div > div:nth-child(5),
  :root main:not(:has(> article)) > div > div:nth-child(14),
  :root main:not(:has(> article)) > div > div:nth-child(n+6):nth-child(-n+13) {
    grid-column: 1 / -1;
  }
  :root main:not(:has(> article)) > div > div:nth-child(n+15) { grid-column: span 1; }
  :root main:not(:has(> article)) > div:has(> a) { grid-template-columns: 1fr; gap: 10px; padding: 0; }
  :root main:not(:has(> article)) > div > div:nth-child(1) > h2 { font-size: 30px; max-width: none; }
  :root main > h1 { font-size: 31px; }
  :root main > article > p { font-size: 17px; }
}


/* 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=Racquet-moody overlay=40% grid=asymmetric scale=balanced family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 40%) ── */
: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.40) 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.40) 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;
}


/* refix iter2 — M10 verification note (2026-09-03)
   Codex flagged M10 "no CTA pill" on the two sampled articles
   (/kitchen-tools-low-glycemic-cooking-prediabetes and
   /how-to-choose-low-glycemic-alcohol-happy-hour). Verified against LIVE:
   BOTH sampled articles contain ZERO affiliate links — only internal .html
   cross-links + en.wikipedia.org references — so there is no anchor to turn
   into a CTA pill (content-pipeline gap, not a CSS gap; tutorials don't get
   product links). The existing M10 net (/ref/ /go/ /try/ /out/ /check/
   /view/ /aff/ /product/ + clickbank/hotmart/digistore/amazon/thrivecart) IS
   correct and live: on an article that DOES carry a /ref/ link
   (/prediabetes-lifestyle-change-low-gi-journey) the "Sugar Defender" anchor
   computes to display:inline-block; background:#5E4A6E; color:#ECE6D8;
   padding:8px 18px; radius:5px; weight:700; text-decoration:none — a solid
   151x45px purple pill, distinct from inline underlined prose links.
   No functional CSS change is possible or warranted for links that don't
   exist; broadening the net to encyclopedia/informational links would be
   incorrect. Fix belongs in the content/sampling layer, not custom.css. */

