/* ==========================================================================
   The guide pages. They share the Colouring Club's opening style.
   ========================================================================== */

.guide { background: var(--cream); }
/* The hero uses the page's full width, so its text starts in line with the logo and everything
   below; the lines themselves stay a comfortable length to read */
.guide-hero-inner > * { max-width: 46rem; }

/* Book covers fanned out on the right of the hero, on screens wide enough to have room */
.hero-covers { display: none; }
@media (min-width: 1180px) {
  .has-covers .guide-hero-inner > * { max-width: min(46rem, 60%); }
  .hero-covers {
    display: block;
    position: absolute;
    top: 50%;
    right: max(var(--space-3), calc((100% - 1160px) / 2 + var(--space-3)));
    width: min(30vw, 340px);
    aspect-ratio: 1 / 1;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .hero-covers img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58%;
    height: auto;
    border-radius: 6px 10px 10px 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    transform: translate(-50%, -50%) rotate(4deg);
  }
  .hero-covers-1 img { width: 68%; }
  .hero-covers-3 img:nth-child(1) { transform: translate(-92%, -46%) rotate(-11deg); }
  .hero-covers-3 img:nth-child(2) { transform: translate(-50%, -54%) rotate(1deg); z-index: 1; }
  .hero-covers-3 img:nth-child(3) { transform: translate(-8%, -46%) rotate(12deg); }
}
.guide-crumbs { margin-bottom: var(--space-2); font-size: 0.95rem; color: #C9CFE2; }
.guide-crumbs a { color: #fff; }
.guide-art { padding: var(--section-gap) 0 0; }
.guide-art-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-3); min-height: 20rem; }
.guide-art-item { overflow: hidden; background: #fff; border-radius: 8px; box-shadow: var(--lift); transition: transform 0.2s ease; }
.guide-art-item:nth-child(odd) { transform: rotate(-1.2deg); }
.guide-art-item:nth-child(even) { transform: rotate(1.2deg); }
.guide-art-item svg { display: block; width: 100%; height: auto; }
.guide-art-item .paper, .guide-art-item .spine { display: none; }
/* The hero's button, with the price and delivery date beside it */
.guide-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.guide-hero-note { margin: 0; font-size: 0.95rem; line-height: 1.45; color: #C9CFE2; }
.guide-hero-note strong { color: #fff; font-size: 1.05rem; }
/* On the dark hero, the sale price in yellow and the usual price in a pale grey */
.guide-hero-note .sale-now { color: var(--offer); }
.guide-hero-note .sale-was { color: #C9CFE2; }

/* Headings for the full-width sections */
.guide-section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.guide-section-head h2 { margin: 0 0 0.4rem; }
.guide-section-head p { margin: 0; font-size: 1.0625rem; color: var(--ink-soft); }

/* The book picker: every book's real cover, its story in a line, and its price */
.guide-picker { padding: var(--section-gap) 0; }
.guide-picker h2 em { --scribble-colour: var(--c1); }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--space-4) var(--space-3); margin: 0; padding: 0; list-style: none; }
.pick-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.pick-cover { position: relative; display: block; margin-bottom: var(--space-2); }
.pick-cover img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 566; border-radius: 6px 12px 12px 6px; box-shadow: var(--sticker); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.pick:nth-child(odd) .pick-cover img { transform: rotate(-1.2deg); }
.pick:nth-child(even) .pick-cover img { transform: rotate(1.2deg); }
.pick-link:hover .pick-cover img, .pick-link:focus-visible .pick-cover img { transform: translateY(-6px) rotate(0); box-shadow: var(--lift); }
.pick-badge { position: absolute; top: 10px; right: -6px; padding: 0.3rem 0.65rem; font-size: 0.8rem; font-weight: 700; color: var(--ink); background: var(--offer); border-radius: 999px; box-shadow: 0 2px 6px rgba(30, 42, 68, 0.2); }
.pick-title { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; }
.pick-blurb { margin: 0.3rem 0 0.8rem; font-size: 0.98rem; line-height: 1.45; color: var(--ink-soft); }
.pick-buy { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px dashed var(--edge, #dfe3ec); }
.pick-price { font-weight: 700; }
.pick-price small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.pick-go { padding: 0.5rem 0.95rem; font-size: 0.92rem; font-weight: 700; color: #fff; background: var(--c1); border-radius: 999px; white-space: nowrap; transition: background 0.2s; }
.pick-link:hover .pick-go { background: #E0464B; }
@media (max-width: 640px) {
  .pick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-2); }
  .pick-title { font-size: 1.15rem; }
  .pick-blurb { font-size: 0.9rem; }
  .pick-buy { flex-direction: column; align-items: stretch; text-align: center; }
  .pick-go { padding: 0.55rem 0.5rem; }
}

/* The article and its buy card */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-5); align-items: start; padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.guide-body { min-width: 0; max-width: 48rem; }
.guide-body > section { margin-bottom: var(--space-5); }
.guide-body > :last-child { margin-bottom: 0; }
.guide-body h2 { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.guide-body p { font-size: 1.12rem; line-height: 1.7; }
.guide-body section p:last-child { margin-bottom: 0; }
/* Each heading's number is a crayon-coloured dot, like the colour key on the pages */
.guide-dot { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-top: 0.05em; font: 700 1rem/1 var(--body); color: #fff; background: var(--dot, var(--c1)); border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.guide-section[style*="--c2"] .guide-dot { color: var(--ink); }
.guide-faq { padding-top: var(--space-2); }
.guide-faq .faqs { margin-top: var(--space-2); }
/* A friendly nudge part way down */
.guide-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-5); padding: var(--space-3); background: #fff; border-radius: var(--radius); box-shadow: var(--sticker); border-left: 6px solid var(--c3); }
.guide-callout p { flex: 1 1 18rem; margin: 0; font-size: 1.05rem; line-height: 1.5; }

.guide-buy { position: sticky; top: calc(var(--header-h, 72px) + var(--space-3)); }
.guide-buy-card { padding: var(--space-3); text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--sticker); }
.guide-buy-cover { display: block; width: 62%; margin: -0.25rem auto var(--space-2); }
.guide-buy-cover img { display: block; width: 100%; height: auto; border-radius: 4px 9px 9px 4px; box-shadow: var(--lift); transform: rotate(-2deg); }
.guide-buy-title { margin: 0 0 0.2rem; font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.guide-buy-price { margin: 0 0 0.5rem; font-size: 1.05rem; }
.guide-buy-price strong { font-size: 1.5rem; }
.guide-buy-price span { color: var(--ink-soft); font-size: 0.92rem; }
.guide-buy-date { display: inline-block; margin: 0 0 0.5rem; padding: 0.3rem 0.7rem; font-size: 0.88rem; background: #FFF3CF; border-radius: 999px; }
.guide-buy-arrives { margin: 0 0 var(--space-2); font-size: 0.92rem; color: var(--ink-soft); }
.guide-buy-arrives strong { color: var(--ink); }
.guide-buy-btn { display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; }
.guide-buy-ticks { display: grid; gap: 0.45rem; margin: var(--space-2) 0 0; padding: 0; list-style: none; text-align: left; font-size: 0.92rem; }
.guide-buy-ticks li { position: relative; padding-left: 1.6rem; }
.guide-buy-ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.3em; width: 0.45rem; height: 0.8rem; border: solid var(--c3); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.guide-buy .review-strip { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--edge, #e6e9f0); text-align: left; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .guide-buy { position: static; }
  .guide-buy-card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 var(--space-3); align-items: center; max-width: 34rem; text-align: left; }
  .guide-buy-cover { grid-row: 1 / span 4; width: 100%; margin: 0; }
  .guide-buy-btn, .guide-buy-ticks, .guide-buy .review-strip { grid-column: 1 / -1; }
  .guide-buy-btn { margin-top: var(--space-2); }
}

/* How it works and the levels, as on the homepage */
.guide-steps h2 { margin: 0 0 var(--space-4); }
.guide-levels { background: var(--cream); }
.guide-levels .level-page { max-width: 170px; }
.guide-levels .levels { gap: var(--space-4); }
/* On phones the levels are a row to swipe, as on the homepage (site.css) */
.guide-levels h2 em { --scribble-colour: var(--c3); }
.guide-steps + .guide-picker { background: var(--cream); }
.guide-related { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.guide-related h2 { font-size: 1.4rem; }
.guide-related ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.calm .guide-art-item { transition: none; }
@media (max-width: 640px) {
  .guide-art-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); min-height: 0; }
}
