/* ==========================================================================
   Guides: the /guides/ hub and every guide page under /guides/<slug>/.
   Same pastel/serif language as the homepage, but denser — long-form
   reading needs a narrower measure, a sticky table of contents, and a
   callout system for the walkthrough facts.
   ========================================================================== */

/* ------------------------------------------------------------- guide hub */

.guides-hero{position:relative;overflow:hidden;background:linear-gradient(126deg,#fff9fb 0%,#ffe3ec 52%,#fbe4ef 100%);padding:78px 0 86px}
.guides-hero:before{content:'✦';position:absolute;color:#fff;font-size:118px;right:-14px;top:52px;opacity:.75}
.guides-hero:after{content:'❧';position:absolute;color:#eaa7be;font-size:170px;left:-42px;bottom:-24px;transform:rotate(-18deg);opacity:.5}
.guides-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.08fr .92fr;gap:58px;align-items:center}
.guides-hero-copy h1{margin:16px 0 18px;font-size:clamp(42px,5.2vw,68px)}
.guides-hero-copy p{font-size:16.5px;line-height:1.72;color:#6f5563;max-width:520px;margin:0 0 26px}
.guides-hero-stats{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.guides-hero-stats li{padding:9px 15px;border:1px solid #e6b9cd;border-radius:100px;background:rgba(255,255,255,.62);color:#96416a;font-size:11.5px;font-weight:900;letter-spacing:.05em}
.guides-hero-art{position:relative;margin:0;padding:10px;background:#fff;box-shadow:0 26px 58px rgba(113,43,77,.2);transform:rotate(1.7deg);border-radius:7px}
/* height:auto matters: the markup carries width/height attributes for CLS, and
   without it the attribute height wins and the image renders stretched. */
.guides-hero-art img{width:100%;height:auto;border-radius:3px}
.guides-hero-art figcaption{position:absolute;right:-9px;bottom:-26px;font-size:9.5px;letter-spacing:.17em;font-weight:900;color:#9e6a7d;transform:rotate(-1.7deg)}

.guides-index{background:#fffefa;padding:78px 0 92px}
.guides-index-head{max-width:720px;margin-bottom:38px}
.guides-index-head h2{margin:10px 0 12px}
.guides-index-head p{color:var(--ink-soft);font-size:15px;line-height:1.7;margin:0}
.guides-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}

.guide-card{display:flex;flex-direction:column;background:#fff;border:1px solid #efdae3;border-radius:13px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 8px 22px rgba(94,43,67,.06);transition:transform .2s ease,box-shadow .2s ease}
.guide-card:hover{transform:translateY(-5px);box-shadow:0 17px 36px rgba(94,43,67,.15)}
.guide-card:focus-visible{outline:3px solid #d887aa;outline-offset:3px}
.guide-card-thumb{position:relative;display:block;background:#2b1020;aspect-ratio:16/9;overflow:hidden}
.guide-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}.guide-card-tag{position:absolute;left:10px;top:10px;padding:4px 10px;border-radius:100px;background:rgba(255,255,255,.93);color:#9c2f60;font-family:'Nunito',sans-serif;font-size:9.5px;font-weight:900;letter-spacing:.12em}
.guide-card-body{display:flex;flex-direction:column;gap:7px;padding:16px 17px 20px;flex:1}
.guide-card-title{font-family:'Nunito',sans-serif;font-size:18px;font-weight:900;color:#7f2f53;line-height:1.25}
.guide-card-note{font-size:12.5px;line-height:1.6;color:#7d6573;margin:0}
.guide-card-meta{margin-top:auto;padding-top:11px;border-top:1px dashed #eed9e2;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#a3808f}

.guides-groups{background:#fff2f7;padding:76px 0 86px}
.guides-group+.guides-group{margin-top:52px}
.guides-group-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px;flex-wrap:wrap}
.guides-group-head h2{margin:8px 0 0;font-size:clamp(27px,3.2vw,38px)}
.guides-group-head p{max-width:520px;margin:0;color:#7d6370;font-size:14px;line-height:1.7}
.guides-group-head .kicker{color:#a44167}

.guides-cta{background:linear-gradient(125deg,#c45a87,#922d5c);color:#fff;padding:70px 0;text-align:center}
.guides-cta h2{margin:10px 0 10px;font-size:clamp(34px,4.4vw,54px);color:#fff}
.guides-cta p{color:#ffebf2;font-size:15px;max-width:560px;margin:0 auto 20px}
.guides-cta .button-light{box-shadow:0 6px 0 #6f2348}

/* ----------------------------------------------------------- guide article */

.guide-hero{position:relative;overflow:hidden;background:linear-gradient(128deg,#fff9fb 0%,#ffe6ee 55%,#fbe3ec 100%);padding:66px 0 72px}
.guide-hero:before{content:'♡';position:absolute;color:#fff;font-size:150px;right:-20px;top:30px;opacity:.6}
.guide-hero-inner{position:relative;z-index:1;max-width:880px}
.guide-breadcrumb{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:900;color:#a44167;margin-bottom:14px}
.guide-breadcrumb a{color:#8d3a62;text-decoration:underline;text-underline-offset:3px}
.guide-hero h1{margin:14px 0 16px;font-size:clamp(34px,4.6vw,56px);max-width:none}
.guide-hero .guide-lede{font-size:17px;line-height:1.72;color:#6f5563;max-width:700px;margin:0 0 22px}
.guide-hero-meta{display:flex;flex-wrap:wrap;gap:9px;list-style:none;margin:0;padding:0}
.guide-hero-meta li{padding:7px 13px;border:1px solid #e6b9cd;border-radius:100px;background:rgba(255,255,255,.7);color:#96416a;font-size:11px;font-weight:900;letter-spacing:.06em}

.guide-cover{margin:0;background:#fffefa;padding:44px 0 0}
.guide-cover img{width:100%;height:auto;border-radius:12px;box-shadow:0 22px 52px rgba(89,34,62,.16)}
.guide-cover figcaption{font-size:12px;color:#8b7080;padding:12px 2px 0;line-height:1.6}

.guide-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:56px;align-items:start;padding:56px 0 90px;background:#fffefa}
.guide-toc{position:sticky;top:100px;align-self:start;max-height:calc(100vh - 130px);overflow-y:auto;padding-right:6px}
.guide-toc h2{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#a44167;margin:0 0 14px;font-weight:900}
.guide-toc ol{list-style:none;margin:0;padding:0;counter-reset:toc}
.guide-toc li{counter-increment:toc}
.guide-toc a{display:block;padding:7px 0 7px 28px;border-left:2px solid #f0dbe4;color:#7d6573;font-size:13px;line-height:1.45;position:relative;transition:color .18s,border-color .18s}
.guide-toc a:before{content:counter(toc,decimal-leading-zero);position:absolute;left:9px;top:7px;font-family:Georgia,serif;font-size:10.5px;font-style:italic;color:#c98fae}
.guide-toc a:hover{color:#9c2f60;border-left-color:#d75489}

.guide-body{min-width:0}
.guide-body h2{font-size:clamp(27px,3vw,36px);margin:56px 0 16px;scroll-margin-top:96px}
.guide-body h2:first-child{margin-top:0}
.guide-body h3{font-size:21px;margin:34px 0 10px}
.guide-body p{font-size:15.5px;line-height:1.82;color:#4e3946;margin:0 0 17px}
.guide-body ul,.guide-body ol{font-size:15.5px;line-height:1.78;color:#4e3946;margin:0 0 20px;padding-left:24px}
.guide-body li{margin-bottom:8px}
.guide-body strong{color:#8a2f59;font-weight:800}
.guide-body em{color:#6d5563}
.guide-body hr{border:0;border-top:1px dashed #e7cfd9;margin:44px 0}
.guide-body a{color:#9d2f60;text-decoration:underline;text-underline-offset:3px}
.guide-body figure{margin:30px 0 34px}
.guide-body figure img{width:100%;height:auto;border-radius:11px;box-shadow:0 16px 38px rgba(89,34,62,.13)}
.guide-body figure figcaption{font-size:12.5px;line-height:1.62;color:#8b7080;margin-top:11px;padding-left:2px}
.guide-body figure figcaption b{color:#96416a;font-weight:800;letter-spacing:.06em;font-size:10.5px;text-transform:uppercase;display:block;margin-bottom:3px}

/* Callouts — the walkthrough facts live here. */
.callout{margin:26px 0;padding:19px 22px;border-radius:11px;border:1px solid #edd3de;background:#fff7fa}
.callout-title{display:flex;align-items:center;gap:9px;font-family:'Nunito',sans-serif;font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#9c2f60;margin:0 0 9px}
.callout p,.callout ul,.callout ol{font-size:14.5px;line-height:1.72;color:#57404f;margin:0 0 10px}
.callout>*:last-child{margin-bottom:0}
.callout ul,.callout ol{padding-left:21px}
.callout-warning{background:#fff4f4;border-color:#f0cdcd}
.callout-warning .callout-title{color:#b23a3a}
.callout-key{background:#f2fbf6;border-color:#c9e6d6}
.callout-key .callout-title{color:#1f7a52}
.callout-quote{background:#fdf7f0;border-color:#efdcc4}
.callout-quote .callout-title{color:#9a6b23}

/* Definition-style fact tables. */
.fact-table{width:100%;border-collapse:collapse;margin:24px 0 30px;font-size:14px}
.fact-table th,.fact-table td{padding:11px 14px;border:1px solid #ecd4de;text-align:left;vertical-align:top;line-height:1.6}
.fact-table th{background:#fff2f7;color:#8d3a62;font-family:'Nunito',sans-serif;font-size:12.5px;font-weight:900;letter-spacing:.05em}
.fact-table td:first-child{font-weight:800;color:#8a2f59;white-space:nowrap;background:#fffafc}
.fact-table tbody tr:nth-child(even) td{background:#fffafc}

/* Route cards for the endings. */
.route-card{border:1px solid #ecd0dc;border-radius:12px;background:#fff;padding:22px 24px;margin:0 0 20px;box-shadow:0 9px 24px rgba(89,34,62,.06)}
.route-card-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.route-num{font-family:Georgia,serif;font-style:italic;font-size:14px;color:#c98fae}
.route-card h3{margin:0;font-size:21px;color:#7f2f53}
.route-card .route-code{display:inline-block;margin-top:12px;padding:4px 11px;border-radius:100px;background:#fff2f7;border:1px solid #eed3de;font-family:'Nunito',sans-serif;font-size:10.5px;font-weight:900;letter-spacing:.09em;color:#9c2f60}
.route-card p{font-size:14.5px;line-height:1.75;color:#57404f;margin:12px 0 0}
.route-card p:last-child{margin-bottom:0}

/* The checklist of exact flags. */
.flag-list{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:9px}
.flag-list li{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:start;background:#fff;border:1px solid #ecd4de;border-radius:9px;padding:11px 14px;font-size:14px;line-height:1.65;color:#4e3946}
.flag-list li:before{content:'✓';display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#fdeaf1;color:#b1366c;font-size:11px;font-weight:900;margin-top:2px}
.flag-list code,.guide-body code{font-family:'Consolas','SFMono-Regular',monospace;font-size:.86em;background:#fdeff4;color:#8d3a62;padding:2px 6px;border-radius:5px;border:1px solid #f4dbe5}
.flag-list b{color:#8a2f59}

/* Step list for the walkthrough. */
.step-list{list-style:none;counter-reset:step;margin:0 0 26px;padding:0}
.step-list>li{counter-increment:step;position:relative;padding:0 0 22px 54px}
.step-list>li:before{content:counter(step);position:absolute;left:0;top:-2px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#ff6f8f,#d61f4f);color:#fff;font-family:'Nunito',sans-serif;font-size:14px;font-weight:900;box-shadow:0 4px 12px rgba(214,31,79,.32)}
.step-list>li:after{content:'';position:absolute;left:16.5px;top:36px;bottom:2px;width:2px;background:#f2dbe4}
.step-list>li:last-child{padding-bottom:0}
.step-list>li:last-child:after{display:none}
.step-list h3{margin:0 0 7px;font-size:19px}
.step-list p{font-size:14.8px;line-height:1.78;color:#4e3946;margin:0 0 10px}
.step-list ul{margin-bottom:0}

/* The two-column spoiler-free / spoiler-heavy split. */
.guide-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0 30px}
.guide-col{border:1px solid #ecd4de;border-radius:11px;padding:18px 20px;background:#fff}
.guide-col h3{margin:0 0 9px;font-size:16.5px;color:#8d3a62}
.guide-col p,.guide-col ul{font-size:14px;line-height:1.72;color:#57404f;margin:0}
.guide-col ul{padding-left:20px}
.guide-col>*:last-child{margin-bottom:0}

.guide-next{display:flex;gap:16px;flex-wrap:wrap;margin-top:56px;padding-top:30px;border-top:1px solid #eed8e1}
.guide-next a{flex:1 1 240px;display:block;border:1px solid #ecd0dc;border-radius:11px;padding:16px 18px;background:#fff;transition:transform .2s,box-shadow .2s}
.guide-next a:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(89,34,62,.12)}
.guide-next span{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:900;color:#b07d95;margin-bottom:5px}
.guide-next strong{font-family:'Nunito',sans-serif;font-size:16.5px;color:#7f2f53;line-height:1.3;display:block}

.guide-article-foot{background:#fff2f7;padding:44px 0}
.guide-foot-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}
.guide-foot-inner p{font-size:13.5px;color:#7d6370;margin:0;max-width:520px;line-height:1.7}
.guide-foot-inner a{color:#9c2f60;font-weight:800;text-decoration:underline;text-underline-offset:3px}

@media(max-width:1000px){
  .guides-hero-grid{grid-template-columns:1fr;gap:44px}
  .guides-hero-copy{text-align:center}
  .guides-hero-copy p{margin-inline:auto}
  .guides-hero-stats{justify-content:center}
  .guides-hero-art{max-width:640px;margin:auto}
  .guides-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .guide-layout{grid-template-columns:1fr;gap:26px;padding-top:34px}
  .guide-toc{position:static;max-height:none;border:1px solid #edd3de;border-radius:11px;background:#fff7fa;padding:18px 20px}
  .guide-cols{grid-template-columns:1fr}
  .guides-grid{grid-template-columns:1fr;max-width:560px;margin:auto}
  .guide-body h2{margin-top:44px}
  .step-list>li{padding-left:44px}
}
@media(max-width:560px){
  .guides-hero{padding:52px 0 62px}
  .guides-hero-copy h1{font-size:38px}
  .guides-index,.guides-groups{padding:58px 0 66px}
  .guide-hero{padding:46px 0 54px}
  .guide-hero h1{font-size:33px}
  .guide-hero .guide-lede{font-size:15px}
  .fact-table{font-size:13px}
  .fact-table th,.fact-table td{padding:9px 10px}
}
