*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Palatino Linotype',Palatino,'Book Antiqua',serif;line-height:1.9;color:#2a2a2a;background:#fefefe}
.content-8edcf8{max-width:640px;margin:0 auto;padding:0 20px}
.frame-e83bd3{padding:60px 0 40px;border-bottom:1px solid #ccc;margin-bottom:48px}
.frame-e83bd3 h1{font-size:24px;font-weight:400;letter-spacing:-.5px}
.frame-e83bd3 p{font-size:14px;color:#777;margin-top:6px;font-style:italic}
.frame-e83bd3 a{color:#2a2a2a;text-decoration:none;font-size:24px;font-weight:400;letter-spacing:-.5px}
.footer-01f8ac{padding:20px 0}
.footer-01f8ac h2{font-size:18px;font-weight:400;margin-bottom:4px}
.footer-01f8ac h2 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.footer-01f8ac h2 a:hover{border-bottom-color:#2a2a2a}
.footer-01f8ac .page-eacc1d{font-size:12px;color:#aaa;margin-bottom:6px}
.footer-01f8ac p{font-size:14px;color:#666}
.content-3e17f8{color:#888;font-size:13px;text-decoration:none}
.content-3e17f8:hover{color:#2a2a2a}
.outer-9c8ab1{padding-bottom:60px}
.outer-9c8ab1 h1{font-size:28px;font-weight:400;margin-bottom:8px}
.outer-9c8ab1 .page-eacc1d{font-size:12px;color:#aaa;display:block;margin-bottom:32px}
.outer-9c8ab1 h2{font-size:21px;font-weight:400;margin:40px 0 12px;border-bottom:1px solid #eee;padding-bottom:6px}
.outer-9c8ab1 h3{font-size:17px;margin:28px 0 8px}
.outer-9c8ab1 p{margin-bottom:18px;font-size:16px}
.outer-9c8ab1 ul,.outer-9c8ab1 ol{margin:0 0 18px 20px}
.outer-9c8ab1 a{color:#555;border-bottom:1px solid #ccc}
.outer-9c8ab1 a:hover{color:#000;border-bottom-color:#000}
.outer-9c8ab1 img{max-width:100%;height:auto;margin:24px 0}
.nav-b3fde7{border-top:1px solid #ddd;padding:20px 0;margin-top:48px;text-align:center;font-size:12px;color:#aaa}
.nav-b3fde7 a{color:#aaa;text-decoration:none}
.sidebar-eee6ea{padding:0 0 16px;margin-bottom:24px;font-size:12px;color:#aaa;font-style:italic;border-bottom:1px solid #eee}
.inner-73cebc{padding:16px 0 0;margin-top:32px;font-size:11px;color:#999;border-top:1px solid #eee}
.inner-0f01a0{font-size:12px;color:#aaa;margin:-26px 0 32px;font-weight:300}
.region-4755ab{margin:0 auto 32px;max-width:720px}
.main-39876f{width:100%;height:auto}
.nav-4f2d38{margin-top:40px;padding-top:20px;border-top:1px solid #eee;font-size:14px;color:#888}
.nav-4f2d38 em{color:#aaa}
.nav-4f2d38 a{color:#555;border-bottom:1px solid #ddd;text-decoration:none}
.nav-4f7dd7{padding:24px 0 0;border-top:1px solid #eee;margin-top:24px}
.nav-4f7dd7 p{padding:3px 0;margin:0;font-size:15px}
.nav-4f7dd7 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.nav-4f7dd7 a:hover{border-bottom-color:#2a2a2a}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');
body{font-family:'Inter',sans-serif;color:#2D2D2D;background:#F9F7F2}
.frame-e83bd3{background:#1B3022;color:#fff}
.frame-e83bd3 h1{font-family:'Playfair Display',serif;color:#fff}
.frame-e83bd3 p{color:rgba(255,255,255,.75)}
.frame-e83bd3 a{color:#fff;text-decoration:none}
.card h2{font-family:'Playfair Display',serif}
.card h2 a{color:#1B3022}
.card h2 a:hover{color:#C5A059}
.read-more{color:#C5A059}
.article-content h1{font-family:'Playfair Display',serif}
.article-content h2{font-family:'Playfair Display',serif}
.article-content a{color:#C5A059}
.article-content img{border-radius:4px}
.affiliate-disclosure{border-radius:4px}
.ymyl-disclaimer{border-radius:4px}
/* === Custom === */
/* im-immo-fr — custom.css v1 · minimal template */
/* Romain Delattre · palette bleu-papier (#304A62) + ocre (#9C7E1A) */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Fira+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ─── Design tokens ─── */
:root {
  --color-primary:        #304A62;
  --color-primary-dark:   #1C2E3E;
  --color-primary-light:  #DCE8F2;
  --color-accent:         #9C7E1A;
  --color-accent-dark:    #705A0E;
  --color-accent-light:   #F2E9CC;
  --color-bg:             #F6F4EF;
  --color-bg-alt:         #EBE8E0;
  --color-text:           #1A1918;
  --color-text-secondary: #484643;
  --color-text-muted:     #76746F;
  --color-border:         #CCC9C0;
  --color-border-light:   #DEDAD3;
  --color-link:           #304A62;
  --color-link-hover:     #9C7E1A;
  --font-heading:         'Zilla Slab', Georgia, serif;
  --font-body:            'Fira Sans', system-ui, sans-serif;
  --font-size-base:       17px;
  --font-size-sm:         15px;
  --font-size-lg:         19px;
  --font-size-xl:         22px;
  --font-size-2xl:        28px;
  --font-size-3xl:        36px;
  --line-height-body:     1.74;
  --line-height-heading:  1.20;
  --radius:               4px;
  --space:                8px;
  --content-width:        68ch;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ─── Links ─── */
a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-link-hover); }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Headings ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-heading);
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: calc(var(--space) * 2);
}
h1 { font-size: var(--font-size-3xl); font-weight: 700; }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); font-weight: 500; }
h5, h6 { font-size: var(--font-size-base); font-weight: 500; }

/* ─── Prose ─── */
p {
  margin-top: 0;
  margin-bottom: calc(var(--space) * 2);
  max-width: var(--content-width);
}
ul, ol {
  margin-top: 0;
  margin-bottom: calc(var(--space) * 2);
  padding-left: calc(var(--space) * 3);
  max-width: var(--content-width);
}
li { margin-bottom: var(--space); line-height: var(--line-height-body); }
li ul, li ol { margin-top: var(--space); margin-bottom: 0; }

blockquote {
  margin: calc(var(--space) * 3) 0;
  padding: calc(var(--space) * 2) calc(var(--space) * 3);
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--color-text-secondary);
  max-width: var(--content-width);
}
blockquote p { margin-bottom: 0; }
blockquote cite {
  display: block;
  margin-top: var(--space);
  font-size: var(--font-size-sm);
  font-style: normal;
  color: var(--color-text-muted);
}

/* ─── Minimal header ─── */
.frame-e83bd3 {
  background-color: var(--color-primary);
  color: #fff;
  padding: calc(var(--space) * 3) calc(var(--space) * 2.5);
}
.frame-e83bd3 h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-2xl);
  color: #fff;
  margin-bottom: calc(var(--space) / 2);
  letter-spacing: -0.01em;
}
.frame-e83bd3 p {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  max-width: none;
}
.frame-e83bd3 a { color: #fff; text-decoration: none; }
.frame-e83bd3 a:hover { color: rgba(255, 255, 255, 0.85); }

/* ─── Navigation ─── */
nav { background-color: var(--color-primary-dark); border-top: 1px solid rgba(255, 255, 255, 0.08); }
nav a {
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--space) calc(var(--space) * 1.5);
  display: inline-block;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background-color 0.15s ease;
}
nav a:hover { color: #fff; background-color: rgba(255, 255, 255, 0.08); }

/* ─── Cards ─── */
.card {
  background-color: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.card:hover { box-shadow: 0 2px 10px rgba(48, 74, 98, 0.10); }
.card h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space);
}
.card h2 a { color: var(--color-text); text-decoration: none; }
.card h2 a:hover { color: var(--color-primary); }
.card-excerpt { font-size: var(--font-size-sm); color: var(--color-text-secondary); line-height: 1.65; }
.read-more {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.read-more:hover { color: var(--color-accent-dark); }

/* ─── Article content ─── */
.article-content { max-width: 72ch; }
.article-content h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.16;
}
.article-content h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-top: calc(var(--space) * 5);
  padding-bottom: var(--space);
  border-bottom: 2px solid var(--color-border-light);
}
.article-content h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-top: calc(var(--space) * 4);
}
.article-content p { font-size: var(--font-size-base); line-height: var(--line-height-body); max-width: var(--content-width); }
.article-content a { color: var(--color-primary); text-underline-offset: 3px; }
.article-content a:hover { color: var(--color-accent); }
.article-content ul, .article-content ol { max-width: var(--content-width); }
.article-content img { border-radius: var(--radius); display: block; }
.article-content strong { font-weight: 600; }

/* ─── Post meta ─── */
.post-meta {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: calc(var(--space) * 3);
}
.post-meta a { color: var(--color-text-secondary); text-decoration: none; }
.post-meta a:hover { color: var(--color-primary); }

/* ─── Footer ─── */
footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.70);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  padding: calc(var(--space) * 4) calc(var(--space) * 2.5);
  margin-top: calc(var(--space) * 6);
}
footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
footer a:hover { color: #fff; }

/* === QA round-1 fixes (2026-07-26T05:27:34+0800) === */
/* Editorial signature pass for Clef Pierre / Romain — targets the LIVE
   obfuscated DOM via element + structural selectors only.
   Homepage main = main WITHOUT a direct <h1>; article main = main WITH one. */

:root {
  --color-rust: #B34F2A;          /* the one "moment" colour — hero only */
  --home-max: 1120px;
}

/* neutralise the old width hacks so the two page layouts can diverge */
main { max-width: none; margin: 0 auto; width: auto; }

/* ─────────────────────────────────────────────────────────────
   MASTHEAD — photo + navy gradient + serif-italic wordmark + key monogram
   ───────────────────────────────────────────────────────────── */
body > header {
  background-image:
    linear-gradient(178deg, rgba(28,46,62,0.80) 0%, rgba(28,46,62,0.92) 100%),
    url("/theme-assets/hero-masthead.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: clamp(2.4rem, 6vw, 4.6rem) 1.5rem clamp(2rem, 5vw, 3.6rem);
  border-bottom: 3px solid var(--color-accent);
}
body > header::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A93A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Cpath d='M11.6 11.6 L21 21'/%3E%3Cpath d='M17.5 17.5 l2.2 -2.2'/%3E%3Cpath d='M14.6 14.6 l2 -2'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.95;
}
body > header > h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  font-size: clamp(2rem, 5.5vw, 3.3rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
body > header > h1 a { color: inherit; text-decoration: none; }
body > header > p {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 48ch;
  margin: 0.5rem auto 0;
}
/* article masthead: header holds only a wordmark link */
body > header > a {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  text-decoration: none;
}
body > header > a:hover { color: var(--color-accent-light); }

/* ─────────────────────────────────────────────────────────────
   READ-MORE — hide raw "read more", show French label (all pages)
   ───────────────────────────────────────────────────────────── */
a[class*="content-"] {
  font-size: 0;
  color: transparent;
  text-decoration: none;
}
a[class*="content-"]::after {
  content: "Lire l’article →";
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
a[class*="content-"]:hover::after { color: var(--color-primary); }

/* ═════════════════════════════════════════════════════════════
   HOMEPAGE  (main without a direct <h1>) — hero → picks band → grid
   ═════════════════════════════════════════════════════════════ */
main:not(:has(> h1)) {
  max-width: var(--home-max);
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.6rem;
  align-items: start;
}

/* default chronological card — 2-up */
main:not(:has(> h1)) > div {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.7rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
main:not(:has(> h1)) > div:hover {
  box-shadow: 0 6px 22px rgba(48,74,98,0.12);
  transform: translateY(-2px);
}
main:not(:has(> h1)) > div > p:first-child {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent-dark);
  margin: 0 0 0.5rem;
}
main:not(:has(> h1)) > div > h2 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  line-height: 1.22;
  margin: 0 0 0.55rem;
}
main:not(:has(> h1)) > div > h2 a { color: var(--color-primary); text-decoration: none; }
main:not(:has(> h1)) > div > h2 a:hover { color: var(--color-accent-dark); }
main:not(:has(> h1)) > div > p:nth-child(3) {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 1.1rem;
  max-width: none;
}
main:not(:has(> h1)) > div > a { margin-top: auto; align-self: flex-start; }

/* ── HERO — featured, full width, the loud voice ── */
main:not(:has(> h1)) > div:first-child {
  grid-column: 1 / -1;
  display: block;
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3.8rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-rust);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF9F3 100%);
}
main:not(:has(> h1)) > div:first-child:hover { transform: none; box-shadow: 0 8px 30px rgba(48,74,98,0.10); }
main:not(:has(> h1)) > div:first-child::before {
  content: "À la une · dernier comparatif";
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-rust);
  margin-bottom: 1rem;
}
main:not(:has(> h1)) > div:first-child > p:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 1.1rem;
}
main:not(:has(> h1)) > div:first-child > h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0 auto;
}
main:not(:has(> h1)) > div:first-child > h2 a { color: var(--color-primary-dark); text-decoration: none; }
main:not(:has(> h1)) > div:first-child > h2 a:hover { color: var(--color-rust); }
main:not(:has(> h1)) > div:first-child > h2::after {
  content: "par Romain · lecture 6 min";
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-dark);
  margin-top: 1rem;
}
main:not(:has(> h1)) > div:first-child > p:nth-child(3) {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin: 1.4rem auto 1.7rem;
}
/* outlined pill CTA */
main:not(:has(> h1)) > div:first-child > a {
  align-self: center;
  display: inline-block;
  margin: 0 auto;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  padding: 0.72rem 1.9rem;
  transition: background 0.18s ease;
}
main:not(:has(> h1)) > div:first-child > a::after { color: var(--color-primary); }
main:not(:has(> h1)) > div:first-child > a:hover { background: var(--color-primary); }
main:not(:has(> h1)) > div:first-child > a:hover::after { color: #fff; }

/* ── EDITOR'S PICKS band — cards 2–4, navy, 3-up (second gear) ── */
main:not(:has(> h1)) > div:nth-child(2),
main:not(:has(> h1)) > div:nth-child(3),
main:not(:has(> h1)) > div:nth-child(4) {
  grid-column: span 2;
  margin-top: clamp(2.6rem, 4vw, 3.2rem);
  background: var(--color-primary);
  border: 1px solid var(--color-primary-dark);
}
main:not(:has(> h1)) > div:nth-child(2):hover,
main:not(:has(> h1)) > div:nth-child(3):hover,
main:not(:has(> h1)) > div:nth-child(4):hover {
  box-shadow: 0 8px 24px rgba(28,46,62,0.30);
}
main:not(:has(> h1)) > div:nth-child(2) > p:first-child,
main:not(:has(> h1)) > div:nth-child(3) > p:first-child,
main:not(:has(> h1)) > div:nth-child(4) > p:first-child { color: var(--color-accent-light); }
main:not(:has(> h1)) > div:nth-child(2) > h2 a,
main:not(:has(> h1)) > div:nth-child(3) > h2 a,
main:not(:has(> h1)) > div:nth-child(4) > h2 a { color: #fff; }
main:not(:has(> h1)) > div:nth-child(2) > h2 a:hover,
main:not(:has(> h1)) > div:nth-child(3) > h2 a:hover,
main:not(:has(> h1)) > div:nth-child(4) > h2 a:hover { color: var(--color-accent-light); }
main:not(:has(> h1)) > div:nth-child(2) > p:nth-child(3),
main:not(:has(> h1)) > div:nth-child(3) > p:nth-child(3),
main:not(:has(> h1)) > div:nth-child(4) > p:nth-child(3) { color: rgba(255,255,255,0.82); }
main:not(:has(> h1)) > div:nth-child(2) > a::after,
main:not(:has(> h1)) > div:nth-child(3) > a::after,
main:not(:has(> h1)) > div:nth-child(4) > a::after { color: var(--color-accent-light); }
main:not(:has(> h1)) > div:nth-child(2) > a:hover::after,
main:not(:has(> h1)) > div:nth-child(3) > a:hover::after,
main:not(:has(> h1)) > div:nth-child(4) > a:hover::after { color: #fff; }
/* band label above the picks */
main:not(:has(> h1)) > div:nth-child(2) { position: relative; }
main:not(:has(> h1)) > div:nth-child(2)::before {
  content: "La sélection — à lire en premier";
  position: absolute;
  top: -2.5rem;
  left: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}

/* ── chronological grid label (before card 5) ── */
main:not(:has(> h1)) > div:nth-child(5),
main:not(:has(> h1)) > div:nth-child(6) { margin-top: clamp(2.6rem, 4vw, 3.2rem); }
main:not(:has(> h1)) > div:nth-child(5) { position: relative; }
main:not(:has(> h1)) > div:nth-child(5)::before {
  content: "Tous les comparatifs";
  position: absolute;
  top: -2.5rem;
  left: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}

/* ── homepage responsive ── */
@media (max-width: 980px) {
  main:not(:has(> h1)) { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  main:not(:has(> h1)) > div { grid-column: span 1; }
  main:not(:has(> h1)) > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  main:not(:has(> h1)) { grid-template-columns: 1fr; }
  main:not(:has(> h1)) > div,
  main:not(:has(> h1)) > div:first-child { grid-column: 1 / -1; }
}

/* ═════════════════════════════════════════════════════════════
   ARTICLE  (main with a direct <h1>)
   ═════════════════════════════════════════════════════════════ */
main:has(> h1) {
  max-width: 760px;
  padding: clamp(1.6rem, 4vw, 2.6rem) 1.4rem clamp(2rem, 5vw, 3.5rem);
}
main:has(> h1) > h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 0.5rem;
}
main:has(> h1) > span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent-dark);
  margin-bottom: 1.8rem;
}
main:has(> h1) > article > img {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.8rem 0;
  display: block;
}
main:has(> h1) > article > img:first-child { margin-top: 0; margin-bottom: 2rem; }
/* drop cap on the opening paragraph */
main:has(> h1) > article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.82;
  color: var(--color-primary);
  margin: 0.12rem 0.5rem 0 0;
}
main:has(> h1) > article > h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  margin-top: 2.8rem;
  padding: 0;
  border: none;
}
/* dinkus divider before each section */
main:has(> h1) > article > h2::before {
  content: "✦ ✦ ✦";
  display: block;
  text-align: center;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  opacity: 0.75;
  margin: 0 0 1.6rem;
}
main:has(> h1) > article > h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
}
/* affiliate / offer links → distinct chip CTA (internal .html links stay plain) */
main:has(> h1) > article p a[href^="/r/"] {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 0.08em 0.45em;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(156,126,26,0.35);
  transition: background 0.15s ease, color 0.15s ease;
}
main:has(> h1) > article p a[href^="/r/"]:hover { background: var(--color-accent); color: #fff; }
main:has(> h1) > article p a[href^="/r/"]::after { content: " ↗"; font-size: 0.85em; }
/* disclaimer / note box */
main:has(> h1) > article > div {
  margin-top: 2.6rem;
  padding: 1.2rem 1.4rem;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
main:has(> h1) > article > div em { font-style: normal; font-weight: 600; color: var(--color-text); }

/* ── ARTICLES CONNEXES — the dark strip fix: light panel, legible list ── */
main:has(> h1) > nav {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  margin-top: 3.5rem;
  padding: 1.6rem 1.8rem;
}
main:has(> h1) > nav p { max-width: none; margin: 0; line-height: 2.1; }
main:has(> h1) > nav em {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent-dark);
  margin-bottom: 0.8rem;
}
main:has(> h1) > nav a {
  background: none;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(48,74,98,0.28);
  padding: 0;
}
main:has(> h1) > nav a:hover { color: var(--color-accent-dark); border-bottom-color: var(--color-accent); }


/* === QA tail polish (2026-07-28T16:10:01.167314+00:00) — style Lambda [SB-20] compact tail across templates === */
/* The tail wrapper is always the LAST block child of <main> on the homepage,
   containing title-only rows of older articles. Various templates use different
   inner structures (ul>li / p / direct <a>) — this handles all three. */

:root main > *:last-child:not(:has(h2)):not(:has(h1)):not(:has(article)) {
  grid-column: 1 / -1;
  max-width: min(720px, 92vw);
  margin: 88px auto 0;
  padding: 40px 0 32px;
  border-top: 2px double rgba(0, 0, 0, .16);
  background: transparent;
  box-shadow: none;
}

:root main > *:last-child:not(:has(h2)):not(:has(h1)):not(:has(article))::before {
  content: "\2014  MORE FROM THE ARCHIVE  \2014";
  display: block;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 36px;
}

/* Any list / paragraph rows: 2-col on desktop, single on mobile */
:root main > *:last-child ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 48px;
}
@media (max-width: 899px) {
  :root main > *:last-child ul { columns: 1; }
}

:root main > *:last-child li,
:root main > *:last-child > p,
:root main > *:last-child > a {
  padding: 10px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.4;
  border-bottom: 1px dotted rgba(0, 0, 0, .12);
  break-inside: avoid;
  display: block;
}

:root main > *:last-child li a,
:root main > *:last-child p a,
:root main > *:last-child > a {
  text-decoration: none;
  font-weight: 600;
}

:root main > *:last-child li a:hover,
:root main > *:last-child p a:hover,
:root main > *:last-child > a:hover {
  text-decoration: underline;
}

/* dates (first inline child of li/p) — subtle mono */
:root main > *:last-child p > :first-child,
:root main > *:last-child li > :first-child:not(a) {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .5;
  margin-right: 10px;
}
