/* Free guide pages (/guides/<slug>/, src/components/guides/GuidePage.astro): a case page (cs-*) with an e-mail gate under
   the lead and a numbered chapter list. Tokens only. The pictures show whole pages, so they are never zoomed or cropped. */
.editorial .cs[data-case="guide"] .cs-figure{background:var(--surface);}
.editorial .cs[data-case="guide"] .cs-figure{aspect-ratio:auto;}
.editorial .cs[data-case="guide"] .cs-figure img{height:auto;animation:none;outline:1px solid var(--img-outline);outline-offset:-1px;border-radius:var(--radius-media);}

/* the gate (owner 2026-11-28: like the AI visibility check): a dark panel with a short title, and a light card with the
   e-mail field and a full-width button; after a valid address the same card shows the download */
.editorial .gd-gate{grid-column:1 / -1;grid-row:3;margin-top:clamp(2rem,4vw,3.5rem);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,26rem);align-items:center;gap:2rem clamp(2rem,5vw,5rem);padding:clamp(2rem,5vw,4rem);border-radius:var(--radius);background:var(--night);color:var(--white);}
.editorial .gd-gate-copy .eyebrow{color:var(--white-70);}
.editorial .gd-gate-title{margin:1rem 0 0;font-family:var(--serif);font-weight:400;font-size:var(--sf-title);line-height:var(--sf-title-lh);letter-spacing:var(--sf-ls);color:var(--white);}
.editorial .cs[data-case="guide"] .gd-gate .gd-gate-text{max-width:28rem;margin:1rem 0 0;font-size:var(--fs-text);line-height:var(--lh-text);color:var(--white-70);}
.editorial .gd-card{box-sizing:border-box;width:100%;padding:2rem;border:1px solid var(--line);border-radius:1rem;background:var(--paper);color:var(--ink);box-shadow:var(--shadow-card);}
.editorial .gd-form[hidden],.editorial .gd-done[hidden]{display:none;}
.editorial .gd-field{display:flex;flex-direction:column;gap:0.625rem;}
.editorial .gd-label{font-size:0.6875rem;text-transform:uppercase;letter-spacing:.02em;color:var(--muted);}
.editorial .gd-field-wrap{position:relative;display:flex;align-items:center;}
.editorial .gd-field-icon{position:absolute;left:0.0625rem;width:1.125rem;height:1.125rem;color:var(--muted);pointer-events:none;}
.editorial .gd-field input{width:100%;box-sizing:border-box;padding:0.75rem 0 0.75rem 1.75rem;border:0;border-bottom:1px solid var(--line);border-radius:0;outline:0;background:transparent;color:var(--ink);font-family:var(--body);font-size:1.0625rem;letter-spacing:-.01em;transition:border-color .2s;}
.editorial .gd-field input::placeholder{color:color-mix(in srgb,var(--ink) 36%,transparent);}
.editorial .gd-field input:focus,.editorial .gd-field input[aria-invalid="true"]{border-bottom-color:var(--red);}
.editorial .cs[data-case="guide"] :is(.gd-submit,.gd-download){box-sizing:border-box;width:100%;min-height:2.875rem;justify-content:center;background:var(--ink);color:var(--white);border:0;cursor:pointer;transition:background-color .2s ease,color .2s ease,transform .16s ease-out;}
.editorial .cs[data-case="guide"] .gd-submit{margin-top:1.625rem;}
@media(hover:hover){.editorial .cs[data-case="guide"] :is(.gd-submit,.gd-download):hover{background:var(--red);color:var(--white);}}
.editorial .cs[data-case="guide"] :is(.gd-submit,.gd-download):active{transform:scale(.97);}
.editorial .gd-form[aria-busy="true"] .gd-submit{opacity:.6;pointer-events:none;}
.editorial .gd-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.editorial .cs[data-case="guide"] .gd-card .gd-note{margin:1.125rem 0 0;font-size:0.75rem;line-height:1.5;color:var(--muted);text-align:center;}
.editorial .gd-note a{color:var(--ink);text-decoration:underline;text-underline-offset:.2em;}
.editorial .cs[data-case="guide"] .gd-card .gd-status{margin:0.75rem 0 0;font-size:0.8125rem;color:var(--status-bad-ink);}
.editorial .gd-status:empty{display:none;}
.editorial .gd-done-title{margin:0;font-family:var(--serif);font-weight:400;font-size:1.75rem;line-height:1.1;letter-spacing:var(--sf-ls);color:var(--ink);}
.editorial .cs[data-case="guide"] .gd-card .gd-done-text{margin:0.5rem 0 1.5rem;font-size:0.9375rem;line-height:1.5;color:var(--muted);}
@media(prefers-reduced-motion:no-preference){.editorial .gd-done:not([hidden]){animation:gd-in .3s ease-out both;}}
@keyframes gd-in{from{opacity:0;translate:0 .5rem;}}

/* (02) the chapters, numbered like the PDF's contents page */
.editorial .gd-chapters{list-style:none;margin:clamp(1.25rem,2vw,1.75rem) 0 0;padding:0;display:flex;flex-direction:column;gap:1.25rem;font-size:var(--fs-text);line-height:var(--lh-text);letter-spacing:var(--ls-text);}
.editorial .gd-chapters li{display:grid;grid-template-columns:2.75rem minmax(0,1fr);gap:1rem;align-items:baseline;}
.editorial .gd-num{font-family:var(--serif);font-size:calc(var(--fs-text) * 1.5);line-height:1;color:var(--muted);font-variant-numeric:tabular-nums;}
.editorial .gd-ch strong{display:block;font-weight:400;color:var(--ink);}
.editorial .gd-ch span{display:block;color:var(--muted);}
@media(min-width:1000px){.editorial .cs[data-case="guide"] .gd-chapters{max-width:calc((5 * 100% - 3 * var(--gutter)) / 8);}}
@media(min-width:700px) and (max-width:999px){.editorial .cs-text .gd-chapters{grid-column:5 / -1;grid-row:2;}}
@media(max-width:999px){.editorial .gd-gate{grid-row:4;grid-template-columns:minmax(0,1fr);}}
@media(max-width:699px){.editorial .gd-gate{padding:1.5rem;}.editorial .gd-card{padding:1.5rem;}}
