/* ==========================================================================
   One blog article (circulegg-blog-<slug>.html), 13 Nov 2026. Built by
   build_articles.py from blog/articles.json.
   The layout of the REGGENERATE™ guide page (design/reggenerate/mockup,
   « Membrane d’œuf : le guide complet… »): crumb, big title, one line of
   date and reading time, the summary, the cover, then a narrow reading column
   with the contents pinned on its left; « À lire aussi » with the blog's own
   cards (blog.css), then the newsletter. Our tokens and Recoleta, nothing new.
   Contrast (computed, WCAG): ink on paper 16.19:1, on cream 15.21:1 ·
   #4E5652 on paper 7.32:1, on cream 6.88:1 · teal-txt #15695F on paper
   6.31:1, on cream 5.93:1 · #36403C on paper 10.39:1. The reading bar is
   decoration (teal fill).
   ======================================================================= */

/* reading bar along the top, under the menu's shadow */
.aprog{position:fixed;inset:0 0 auto;z-index:310;height:3px;pointer-events:none}
.aprog i{display:block;height:100%;background:var(--teal);transform-origin:left;transform:scaleX(var(--p,0))}

.ahero{padding:clamp(118px,10vw,156px) 0 0;background:var(--paper)}
.acrumb{display:flex;flex-wrap:wrap;gap:4px 10px;margin:0;font:500 12.5px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#4E5652}
.acrumb a{color:var(--teal-txt);text-decoration:none}
.acrumb a:hover{color:var(--ink)}
.acrumb a:focus-visible{outline:2px solid var(--teal-txt);outline-offset:3px;border-radius:3px}
.acrumb sup{font-size:.7em;letter-spacing:0;vertical-align:.45em;line-height:0}
.ah1{max-width:20ch;margin:20px 0 0;font:400 clamp(40px,5.2vw,76px)/1.02 var(--rec);letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
.ameta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:24px 0 0;
  font:500 12.5px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#4E5652}
.ameta time{white-space:nowrap}
.alede{max-width:780px;margin:22px 0 0;font:400 21px/1.5 var(--sans);color:#36403C;text-wrap:pretty}
.acover{margin:44px 0 0;aspect-ratio:16/7.5;overflow:hidden;border:1.5px solid var(--ink);border-radius:34px;background:var(--cream)}
.acover img{display:block;width:100%;height:100%;object-fit:cover}

/* the reading column, with the contents on its left */
.agrid{display:grid;grid-template-columns:230px minmax(0,700px);justify-content:center;gap:80px;margin-top:72px;padding-bottom:clamp(72px,8vw,112px)}
.atoc{position:sticky;top:var(--ftop,120px);align-self:start;max-height:calc(100vh - var(--ftop,120px) - 24px);overflow:auto}
.atoc p{margin:0 0 12px;font:500 12.5px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--teal-txt)}
.atoc ol{margin:0;padding:0;list-style:none;border-left:1.5px solid rgba(20,32,30,.2)}
.atoc a{display:block;margin-left:-1.5px;padding:8px 0 8px 16px;border-left:2px solid transparent;
  color:#4E5652;font:400 15px/1.35 var(--sans);text-decoration:none;transition:color .2s,border-color .2s}
.atoc a:hover{color:var(--ink)}
.atoc a[aria-current]{border-color:var(--teal-txt);color:var(--ink);font-weight:600}
.atoc a:focus-visible{outline:2px solid var(--teal-txt);outline-offset:2px}

.abody{font:400 18px/1.75 var(--sans);color:var(--ink)}
.abody p{margin:0 0 22px;color:var(--ink)}   /* the site sets p in grey (--ink2); long reading stays dark, as on the guide page */
.abody .ah2{margin:60px 0 18px;font:400 clamp(30px,2.8vw,40px)/1.1 var(--rec);letter-spacing:-.015em;color:var(--ink);
  scroll-margin-top:var(--ftop,120px);text-wrap:balance}
.abody > .ah2:first-child{margin-top:0}
.abody .ah3{margin:36px 0 10px;font:600 20px/1.3 var(--sans);color:var(--ink)}
.abody strong{font-weight:600}
/* links in the text: teal with a light line under them, so they never rely on colour alone */
body.hx .abody a{color:var(--teal-txt);text-decoration:underline;text-decoration-thickness:1px;
  text-decoration-color:rgba(21,105,95,.4);text-underline-offset:3px;transition:text-decoration-color .2s}
body.hx .abody a:hover{text-decoration-color:currentColor}
.abody a:focus-visible{outline:2px solid var(--teal-txt);outline-offset:2px;border-radius:2px}
.abody ul,.abody ol{margin:0 0 24px;padding-left:22px}
.abody li{margin:6px 0}
.abody li::marker{color:var(--teal-txt)}
.abody blockquote{margin:0 0 24px;padding:4px 0 4px 22px;font:400 22px/1.45 var(--rec);color:var(--ink)}

/* the comparison tables: they scroll sideways on a phone, inside their frame */
.atable{margin:8px 0 30px;overflow-x:auto;border:1.5px solid var(--ink);border-radius:22px;background:var(--paper);-webkit-overflow-scrolling:touch}
.atable:focus-visible{outline:2px solid var(--teal-txt);outline-offset:3px}
.atable table{width:100%;min-width:600px;border-collapse:collapse;font:400 15px/1.5 var(--sans)}
.atable th{padding:14px 16px 12px;background:var(--cream);text-align:left;vertical-align:bottom;
  font:500 12px/1.35 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--ink);border-bottom:1.5px solid var(--ink)}
.atable td{padding:13px 16px;vertical-align:top;border-top:1px solid rgba(20,32,30,.12)}
.atable tbody tr:first-child td{border-top:0}
.atable td:first-child{font-weight:600}

/* the « 10 astuces » steps */
.asteps{display:grid;gap:14px;margin:8px 0 34px;padding:0!important;list-style:none}
.asteps li{display:grid;grid-template-columns:64px 1fr;gap:18px;margin:0;padding:22px 24px;border:1.5px solid var(--ink);border-radius:24px;background:var(--cream)}
.asteps .sn{font:400 40px/1 var(--rec);color:var(--teal-txt)}
.asteps .ah3{margin:4px 0 8px}
.asteps p{margin:0 0 6px;font-size:16px;line-height:1.6}

/* À lire aussi: the blog's cards (blog.css) on cream */
.amore{padding:clamp(72px,8vw,112px) 0;background:var(--cream)}
.amore-hd{display:flex;align-items:flex-end;justify-content:space-between;gap:20px 32px;flex-wrap:wrap;margin-bottom:clamp(30px,3.4vw,44px)}
.amore-hd .hx-h2{margin:0}
.amore .pc-t{font-size:clamp(22px,1.7vw,25px)}

@media(max-width:1100px){
  .agrid{grid-template-columns:200px minmax(0,1fr);gap:48px}
}
@media(max-width:900px){
  .acover{aspect-ratio:4/3;border-radius:26px;margin-top:32px}
  .alede{font-size:18px}
  .agrid{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:40px}   /* minmax: a wide table must not widen the column */
  .atoc{position:static;max-height:none;padding:18px 20px;border:1.5px solid var(--ink);border-radius:22px;background:var(--cream)}
  .abody{font-size:17px}
  .asteps li{grid-template-columns:46px 1fr;gap:12px;padding:18px}
  .asteps .sn{font-size:32px}
}
@media(max-width:600px){
  .ahero{padding-top:104px}
  .ah1{font-size:clamp(34px,9.6vw,44px)}
  .acover{border-radius:22px}
  .abody .ah2{margin-top:48px}
  .atable{border-radius:18px;margin-right:calc(-1 * var(--gut));border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}
}
@media(prefers-reduced-motion:reduce){
  .atoc a,.abody a{transition:none}
}
