/* CIZELE, The Guide (education section). Single article (.czg) reuses the site's light-on-ivory
   reading pattern rather than the dark blog treatment, since these are reference articles a
   visitor may land on cold from search, not part of the cinematic dark journey pages. The hub
   (.czg-hub) reuses .cza-hero/.cza-sec/.cz-eyebrow as-is (see archive-cizele_guide.php), so only
   the topic grid and article body need new rules here. */

.czg{background:var(--ivory);color:#2c2430}

/* Reading-progress bar, fixed under the header — same interaction as the blog's .czblog-progress,
   restyled for the light theme. */
.czg-progress{position:sticky;top:0;z-index:20;height:3px;background:rgba(74,37,63,.08)}
.czg-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--plum),var(--gold))}

/* Container width: the Guide page must line up with the same edges as the header (logo to "Book a
   Consultation"), i.e. the sitewide --wrap/--gut box (see .cz-head__row in base.css), not an
   independently-centered narrower column with its own math. The reading text still caps at a
   comfortable measure (max-width on the text elements themselves), but it's left-aligned inside the
   real site container, not floating in the middle of a different, narrower one. */
.czg-crumb{display:flex;gap:.5rem;align-items:center;font-size:.78rem;letter-spacing:.03em;color:#8a7f87;
  padding:6.5rem max(var(--gut),calc((100% - var(--wrap))/2)) 0}
.czg-crumb a{color:#8a7f87;text-decoration:none}
.czg-crumb a:hover,.czg-crumb a:focus-visible{color:var(--plum)}

.czg-article{padding:1.6rem max(var(--gut),calc((100% - var(--wrap))/2)) 2rem}
/* Plain (non-split) layout: fill the same full-width container every other page section uses
   (--wrap/--gut), matching the site's own content width instead of floating a narrower reading
   column in the middle of it. Paragraph line-length is still kept sane via a max-width on the text
   itself further down (.czg-body p/li), not by capping the whole block. */
.czg-head,.czg-hero,.czg-toc,.czg-body,.czg-cta{max-width:none}
.czg-head{text-align:left;margin-bottom:1.8rem;position:relative}
.czg-head .cz-eyebrow{color:var(--plum)}

/* The sticky-sidebar layout, only for guides tied to a real photographed design (see
   cizele_guide_product_family()) — same outer container as the plain layout above (still --wrap-
   aligned), just wider because it now holds two panels: text capped at a readable measure, sidebar
   fixed at 300px so its right edge lines up with the header's right edge. */
.czg-article--split{padding:1.6rem max(var(--gut),calc((100% - var(--wrap))/2)) 2rem}
/* Split layout stays left-aligned throughout (title included) — it's balanced by the sidebar on the
   right, so centering would pull the title away from the text column sitting below it. */
.czg-article--split .czg-head{margin-left:0;margin-right:0}
.czg-split{display:grid;grid-template-columns:1fr 300px;gap:3rem;align-items:start}
.czg-main{min-width:0}
.czg-main .czg-hero,.czg-main .czg-toc,.czg-main .czg-body,.czg-main .czg-cta{max-width:none;margin-left:0;margin-right:0}
.czg-sidebar{position:relative}
.czg-sidebar__sticky{position:sticky;top:5rem}
.czg-sidebar__media{border-radius:18px;overflow:hidden;aspect-ratio:4/5;
  box-shadow:0 30px 60px -36px rgba(40,20,35,.35);background:linear-gradient(150deg,#efe7db,#e3d5c2)}
.czg-sidebar__media img{width:100%;height:100%;object-fit:cover;transition:opacity .25s var(--e)}
.czg-sidebar__swatches{display:flex;gap:.6rem;justify-content:center;margin-top:1.1rem}
.czg-swatch{width:30px;height:30px;flex:0 0 auto;border-radius:50%;border:2px solid transparent;
  padding:3px;cursor:pointer;background:transparent;transition:border-color .25s}
.czg-swatch span{display:block;width:100%;height:100%;border-radius:50%;background:var(--sw);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.czg-swatch[aria-pressed="true"]{border-color:var(--plum)}
.czg-swatch:hover,.czg-swatch:focus-visible{border-color:rgba(94,52,80,.4)}
.czg-sidebar__tonelabel{text-align:center;margin:.6rem 0 0;font-size:.8rem;color:#6b606b}

/* Sidebar TOC variant: guides with no product photography get a sticky jump-nav in the same
   sidebar column instead of empty space. Vertical list (not the horizontal pill-wrap used when the
   TOC sits inline in the reading column), since the sidebar is narrow. */
.czg-sidebar--toc .czg-toc{border:none;background:none;padding:0}
.czg-toc--sidebar ul{flex-direction:column;flex-wrap:nowrap;gap:.7rem}
.czg-toc--sidebar a{display:block}
.czg-sidebar .czg-toc--sidebar{margin-top:1.4rem;padding-top:1.4rem;border-top:1px solid rgba(74,37,63,.12)}
.czg-sidebar--toc .czg-toc--sidebar{margin-top:0;padding-top:0;border-top:none}

@media(max-width:1360px){
  .czg-split{grid-template-columns:1fr}
  .czg-sidebar{order:-1}
  .czg-sidebar__sticky{position:static}
  .czg-sidebar__media{max-width:360px;margin:0 auto}
  .czg-sidebar--toc{order:0}
}

.czg-copylink{display:inline-flex;align-items:center;gap:.5rem;margin-top:1rem;padding:.5rem .9rem;
  border-radius:999px;border:1px solid rgba(74,37,63,.18);background:transparent;color:#6b606b;
  font-size:.76rem;letter-spacing:.03em;cursor:pointer;transition:border-color .3s,color .3s}
.czg-copylink:hover,.czg-copylink:focus-visible{border-color:var(--plum);color:var(--plum)}
.czg-copylink.is-copied{border-color:var(--plum);color:var(--plum)}
.czg-copylink i{font-size:.7rem}

/* Jump-to-section nav, auto-built from the article's own h2s (page-guide.js); stays hidden if the
   article has fewer than 2 headings, so short pieces don't get an empty, pointless box. */
.czg-toc{margin-bottom:2rem;padding:1.1rem 1.4rem;border-radius:14px;background:rgba(255,255,255,.6);
  border:1px solid rgba(74,37,63,.12)}
.czg-toc__label{display:block;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--plum);margin-bottom:.6rem}
.czg-toc ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem .9rem}
.czg-toc a{font-size:.88rem;color:#5c525c;text-decoration:none;border-bottom:1px solid transparent;padding-bottom:1px}
.czg-toc a:hover,.czg-toc a:focus-visible{color:var(--plum)}
.czg-toc a.is-active{color:var(--plum);border-bottom-color:var(--plum)}
/* h1.czg-h1, not just .czg-h1: base.css's ".cz h1{font-size:var(--h1)}" is class+element, which
   beats a class-only selector on specificity regardless of load order — matching the element here
   too is what makes this rule actually win instead of silently losing to the homepage hero size. */
h1.czg-h1{font-family:var(--serif);font-weight:500;letter-spacing:-.02em;font-size:clamp(2rem,5vw,3.2rem);
  line-height:1.08;margin:.6rem 0 .8rem;color:#241a22}
.czg-lede{font-size:1.15rem;line-height:1.6;color:#5c525c;max-width:56ch}

/* margin-top/bottom only, not the `margin` shorthand: a shorthand here would reset margin-left/
   right back to 0, silently cancelling the margin-left:auto centering set above for the plain
   layout (exactly the bug that left the hero image and TOC box stuck to the left while the title
   centered correctly above them). */
.czg-hero{border-radius:20px;overflow:hidden;aspect-ratio:16/9;margin-top:1.8rem;margin-bottom:2.2rem;
  box-shadow:0 30px 60px -36px rgba(40,20,35,.35)}
.czg-hero img{width:100%;height:100%;object-fit:cover}

/* .cz-prose (base.css) carries a sitewide padding-bottom:4rem meant for other contexts (e.g. FAQ
   answers) — reusing the class here for its color/link rules pulled that padding in as an unwanted
   side effect, which is what read as "enormous empty space" above the CTA card. Cancel it locally;
   .czg-cta's own margin-top is the real, intentional spacing here. */
.czg-body.cz-prose{padding-bottom:0}
.czg-body{font-size:1.06rem;line-height:1.75;color:#3a323a}
/* The body block itself fills the full container (matching every other page's content width), but
   actual reading text is capped at a comfortable measure so lines don't stretch unreadably wide —
   the cap lives on the text runs, not on the block, so it's left-aligned against the real container
   rather than centered as a separate narrower column. */
.czg-body p,.czg-body>ul,.czg-body>ol{max-width:74ch}
.czg-body p{margin:0 0 1.3em}
.czg-body h2{font-family:var(--serif);font-weight:500;font-size:clamp(1.4rem,3vw,1.8rem);
  color:#241a22;margin:1.8em 0 .6em;line-height:1.15;max-width:74ch}
.czg-body h3{font-family:var(--serif);font-weight:500;font-size:clamp(1.15rem,2.4vw,1.35rem);
  color:#241a22;margin:1.5em 0 .5em;max-width:74ch}
.czg-body a{color:var(--plum);text-underline-offset:3px}
.czg-body ul,.czg-body ol{margin:0 0 1.3em;padding-left:1.3em;line-height:1.7}
.czg-body strong{color:#241a22}

/* A variation showcase (e.g. "Six Ways to Wear a Halo") — a card grid, not another plain bulleted
   list, for the one section per guide that genuinely has multiple distinct sub-styles worth
   comparing side by side. Each card's mark is a small CSS-drawn motif (no photography implied, no
   fabricated product renders), varied per variation via a modifier class.
   .czg-body's own text runs are capped at 74ch for readability (see above), but .czg-body itself now
   fills the full container — so the grid simply fills that same container width, no breakout hack
   needed (an earlier version fought a narrower centered parent that no longer exists). */
.czg-variants{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.2rem;margin:1.6em 0 2em;max-width:960px}
.czg-variant{padding:1.3rem 1.4rem;border-radius:14px;background:#fff;border:1px solid rgba(74,37,63,.1)}
.czg-variant__t{display:block;font-family:var(--serif);font-weight:500;font-size:1.15rem;color:#241a22;
  margin-bottom:.5rem;padding-bottom:.6rem;border-bottom:1px solid rgba(74,37,63,.1)}
.czg-variant p{font-size:.9rem;line-height:1.55;color:#5c525c;margin:0}

/* Magazine-style pull-quote — one per article, breaks the plain reading column the way a print
   editorial spread would. Full-bleed within the column (extends past the text measure via negative
   margin on wider screens) so it reads as a deliberate break, not just a styled blockquote. */
.czg-body blockquote{margin:2.2em -1.5rem;padding:1.8rem 2rem;border-left:3px solid var(--gold);
  background:linear-gradient(155deg,rgba(94,52,80,.05),rgba(201,168,106,.07));border-radius:0 14px 14px 0}
.czg-body blockquote p{font-family:var(--serif);font-style:italic;font-weight:500;color:#241a22;
  font-size:clamp(1.3rem,3vw,1.6rem);line-height:1.35;margin:0}
@media(max-width:640px){.czg-body blockquote{margin:2em 0}}

/* Quick-facts callout: the first list in the body is the scannable "read this in 8 seconds" block,
   styled distinctly so it doesn't blend into the surrounding prose — most visitors skim before
   they commit to reading, this is the thing they skim. */
.czg-body>ul:first-of-type{list-style:none;margin:0 0 1.8em;padding:1.3rem 1.5rem;border-radius:14px;
  background:rgba(94,52,80,.05);border:1px solid rgba(94,52,80,.14)}
.czg-body>ul:first-of-type li{position:relative;padding-left:1.6em;margin-bottom:.6em}
.czg-body>ul:first-of-type li:last-child{margin-bottom:0}
.czg-body>ul:first-of-type li::before{content:"";position:absolute;left:0;top:.5em;width:.9em;height:.9em;
  border-radius:50%;background:var(--champ)}
.czg-body>ul:first-of-type strong{color:var(--plum)}

/* The closing CTA reads as a considered moment (eyebrow + prompt + button in a tinted card), not a
   bare link floating in whitespace — the "enormous empty space" complaint was really this section
   having no visual weight of its own to justify the gap around it. */
.czg-cta{margin-top:2.2rem;padding:2rem 2.2rem;border-radius:18px;
  background:linear-gradient(155deg,rgba(94,52,80,.06),rgba(201,168,106,.08));
  border:1px solid rgba(74,37,63,.14)}
.czg-cta__say{margin:0 0 1.2rem;font-size:1.02rem;line-height:1.5;color:#4a434a;max-width:48ch}

.czg-related{padding:1rem max(var(--gut),calc((100% - var(--wrap))/2)) 5rem}
.czg-related .cz-eyebrow{color:var(--plum)}
.czg-relgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.6rem;margin-top:1.6rem}
.czg-relcard{display:flex;flex-direction:column;gap:.7rem;color:inherit;text-decoration:none}
.czg-relcard__media{display:block;aspect-ratio:4/3;border-radius:14px;overflow:hidden;
  background:linear-gradient(150deg,#efe7db,#e3d5c2)}
.czg-relcard__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--e)}
.czg-relcard:hover .czg-relcard__media img{transform:scale(1.04)}
.czg-relcard__t{font-family:var(--serif);font-size:1.05rem;line-height:1.3;color:#241a22}

/* The hub (/guide/) topic grid — reuses .cra-card's visual language (numbered, hover-reveal) would
   be overkill for reference articles; a plainer read-first card fits this section's calmer job.
   auto-fit (not auto-fill) + a capped max-width: auto-fill reserves a grid track for every column
   that WOULD fit the container even when there's no card to put in it, which is exactly what left
   topics with only 1-2 articles (e.g. Diamond Education) stretched into 3-4 empty ghost columns of
   dead space. auto-fit collapses unused tracks instead, so a short topic just shows its real card
   count at a normal size rather than implied missing content.

   2026-08-13, two corrections:
   1. This grid carried its own horizontal page gutter while its parent .cza-sec was already
      applying the identical value, so every card row sat at 115px (57.59 + 57.59) while its own
      heading sat at 58px. Measured, not guessed. The parent owns the gutter; this no longer
      repeats it.
   2. Centred rather than left-aligned, because topic sizes are genuinely uneven (10 guides, 9, 2,
      1). auto-fit collapses unused tracks, so a full topic still fills the row edge to edge and
      centring changes nothing there — but a two-guide topic no longer sits marooned in the left
      third with the rest of the row reading as content that failed to load. */
.czg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,320px));gap:1.8rem;
  justify-content:center;padding:0 0 1rem}
.czg-card{display:flex;flex-direction:column;color:inherit;text-decoration:none;
  border-radius:18px;overflow:hidden;background:#fff;border:1px solid rgba(74,37,63,.1);
  transition:transform .4s var(--e),border-color .4s var(--e),box-shadow .4s var(--e)}
.czg-topic:not(.cz-tone--ivory) .czg-card{box-shadow:0 20px 44px -28px rgba(0,0,0,.55)}
.czg-card:hover,.czg-card:focus-visible{transform:translateY(-4px);border-color:var(--champ)}
.czg-card__media{display:block;aspect-ratio:4/3;overflow:hidden;background:linear-gradient(150deg,#efe7db,#e3d5c2)}
.czg-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--e)}
.czg-card:hover .czg-card__media img{transform:scale(1.05)}
.czg-card__ph{display:block;width:100%;height:100%}
.czg-card__body{display:flex;flex-direction:column;gap:.5rem;padding:1.3rem 1.4rem 1.5rem}
.czg-card__t{font-family:var(--serif);font-weight:500;font-size:1.2rem;line-height:1.25;color:#241a22}
.czg-card__d{font-size:.92rem;line-height:1.55;color:#6b606b}
.czg-card__go{display:inline-flex;align-items:center;gap:.4rem;margin-top:.3rem;font-size:.72rem;
  letter-spacing:.08em;text-transform:uppercase;color:var(--plum)}

@media(max-width:640px){
  .czg-crumb{padding-top:5.5rem}
}

@media(prefers-reduced-motion:reduce){
  .czg-relcard__media img,.czg-card__media img,.czg-card{transition:none}
  .czg-card:hover{transform:none}
}
