/* The public homepage: approved Way2Speak visual direction. */
body:not(.admin-mode) .home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 650px;
  padding: 54px 0 78px;
  gap: 0;
  isolation: isolate;
}
body:not(.admin-mode) .home-hero .hero-copy {
  position: relative;
  z-index: 2;
  width: min(42%, 500px);
  padding: 12px 36px 12px 0;
  background: linear-gradient(90deg, #fff 82%, rgba(255,255,255,0));
}
body:not(.admin-mode) .home-hero h1 { font-size: clamp(50px, 5.2vw, 78px); line-height: 1.05; color:#202124; }
body:not(.admin-mode) .home-hero h1 i { color:#8c0a09; }
body:not(.admin-mode) .home-hero p { color:#202124; font-size:18px; line-height:1.55; max-width: 480px; }
body:not(.admin-mode) .home-hero .hero-buttons { margin-top:24px; }
body:not(.admin-mode) .home-hero .hero-signature { margin-top:24px; color:#202124; }
body:not(.admin-mode) .home-hero .hero-visual {
  position:absolute; inset:0; z-index:-1; display:block; overflow:visible;
  width:100%; max-width:none; min-height:0; border-radius:0; padding:0;
}
body:not(.admin-mode) .home-hero .cafe-hero-image {
  width:100%; height:100%; min-height:0; max-height:none; aspect-ratio:auto;
  object-fit:cover; object-position:center right; border-radius:0;
}
body:not(.admin-mode) .home-hero .hero-art-caption {
  position:absolute; bottom:-32px; left:auto; right:0; padding:5px 12px; border:0;
  background:#fff; color:#202124; font-size:11px; line-height:1.3;
}
body:not(.admin-mode) .home-formats { position:relative; padding-top:30px; padding-bottom:75px; }
body:not(.admin-mode) .home-formats .section-heading { margin:30px auto 10px; justify-content:center; }
body:not(.admin-mode) .home-formats .section-heading h2 {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
body:not(.admin-mode) .home-formats .section-heading > p {
  max-width:750px; color:#202124; text-align:center; font-size:18px; line-height:1.55;
}
body:not(.admin-mode) .formats-stage { position:relative; isolation:isolate; padding:120px 32px 110px; }
body:not(.admin-mode) .home-ribbon {
  position:absolute; z-index:-1; left:0; top:-135px; width:100%; height:calc(100% + 135px);
  overflow:visible; pointer-events:none;
}
body:not(.admin-mode) .home-ribbon-band { fill:none; stroke:#4978b9; stroke-opacity:.33; stroke-width:52; stroke-linecap:round; stroke-linejoin:round; }
body:not(.admin-mode) .home-ribbon-text { fill:#8c0a09; font:italic 25px 'Playfair Display', Georgia, serif; letter-spacing:.02em; }
body:not(.admin-mode) .home-formats .format-grid { position:relative; gap:18px; align-items:stretch; }
body:not(.admin-mode) .home-formats .format-card,
body:not(.admin-mode) .home-formats .format-card:nth-child(n) {
  position:relative; display:flex; flex-direction:column; min-height:0; padding:17px;
  border:2px solid transparent; border-radius:20px;
  background:linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#4978b9,#8c0a09) border-box;
  box-shadow:0 12px 28px rgba(32,33,36,.08); color:#202124;
}
body:not(.admin-mode) .home-formats .format-card:first-child { transform:rotate(-2deg); }
body:not(.admin-mode) .home-formats .format-card:last-child { transform:rotate(2deg); }
body:not(.admin-mode) .home-formats .format-card:hover { translate:0 -5px; }
body:not(.admin-mode) .home-formats .format-card img { width:100%; height:180px; object-fit:cover; border-radius:12px; margin:0 0 18px; }
body:not(.admin-mode) .home-formats .format-card:nth-child(3) img { object-fit:contain; }
body:not(.admin-mode) .home-formats .format-number { color:#202124; font-size:12px; letter-spacing:.08em; }
body:not(.admin-mode) .home-formats .format-card h3 { color:#202124; font-size:clamp(29px,2.8vw,40px); margin:14px 0 0; }
body:not(.admin-mode) .home-formats .format-card h3 i { color:#8c0a09; }
body:not(.admin-mode) .home-formats .format-card p { color:#202124; font-size:16px; line-height:1.55; margin:16px 0 26px; max-width:none; }
body:not(.admin-mode) .home-formats .format-card .round-arrow { margin-top:auto; align-self:flex-end; color:#8c0a09; }
body:not(.admin-mode) .ribbon-toggle { display:block; margin:0 auto; padding:8px 12px; font:inherit; font-size:14px; color:#202124; background:#fff; border:1px solid #4978b9; border-radius:8px; cursor:pointer; }
body:not(.admin-mode) .ribbon-toggle[hidden] { display:none; }

/* Functional selection indicator; no decorative icons appear in answers. */
body:not(.admin-mode) .quiz-option > span:first-child { flex:1; min-width:0; }
body:not(.admin-mode) .quiz-option > .quiz-selection {
  display:grid; place-items:center; flex:0 0 24px; width:24px; height:24px;
  align-self:flex-start; border:1px solid #4978b9; border-radius:50%; font:700 15px/1 Georgia,serif;
}
body:not(.admin-mode) .quiz-option.selected > .quiz-selection { background:#8c0a09; border-color:#8c0a09; color:#fff; }
body:not(.admin-mode) .home-quiz {
  width:min(100% - 36px, 1200px); max-width:none; margin:0 auto clamp(70px,8vw,120px);
  padding:clamp(24px,4vw,56px); border:2px solid transparent; border-radius:20px;
  background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#4978b9,#8c0a09) border-box; color:#202124;
}
body:not(.admin-mode) .home-quiz > .wrap { text-align:center; }
body:not(.admin-mode) .home-quiz > .wrap h2 { font-size:clamp(32px,3.4vw,46px); line-height:1.15; color:#202124; }
body:not(.admin-mode) .home-quiz > .wrap p { color:#202124; margin:12px auto 0; max-width:760px; }
body:not(.admin-mode) .home-quiz .quiz-page,
body:not(.admin-mode) .home-quiz .quiz-result { max-width:100%; width:100%; padding:0; margin:28px 0 0; }
body:not(.admin-mode) .home-quiz .quiz-progress { color:#202124; display:flex; justify-content:space-between; }
body:not(.admin-mode) .home-quiz .progress-track { height:9px; background:#e5e5e5; border-radius:9px; overflow:hidden; margin:12px 0 25px; }
body:not(.admin-mode) .home-quiz .progress-track span { background:#8c0a09; border-radius:9px; }
body:not(.admin-mode) .home-quiz .quiz-page .eyebrow { text-align:center; color:#202124; }
body:not(.admin-mode) .home-quiz .quiz-page h2 { text-align:center; margin:8px 0; color:#8c0a09; font-style:italic; }
body:not(.admin-mode) .home-quiz .quiz-page > p:not(.eyebrow) { text-align:center; color:#202124; }
body:not(.admin-mode) .home-quiz .quiz-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-block:24px; }
body:not(.admin-mode) .home-quiz .quiz-option {
  min-height:122px; padding:20px 22px; gap:10px; align-items:flex-start;
  background:#f3f3f3; border:1px solid #4978b9; border-radius:14px; color:#202124;
}
body:not(.admin-mode) .home-quiz .quiz-option:hover,
body:not(.admin-mode) .home-quiz .quiz-option.selected { background:#f3f3f3; border-color:#8c0a09; }
body:not(.admin-mode) .home-quiz .quiz-option strong { color:#202124; font-size:18px; line-height:1.3; }
body:not(.admin-mode) .home-quiz .quiz-option small { color:#202124; font-size:16px; line-height:1.45; }
body:not(.admin-mode) .home-quiz .quiz-page > small { color:#202124; }
body:not(.admin-mode) .workbook-intro,
body:not(.admin-mode) .about-band { color:#202124; }
body:not(.admin-mode) .workbook-intro p,
body:not(.admin-mode) .about-band p:not(.eyebrow) { color:#202124; }
@media (max-width:800px) {
  body:not(.admin-mode) .home-hero { display:flex; flex-direction:column; align-items:stretch; min-height:0; padding:40px 0 25px; gap:20px; }
  body:not(.admin-mode) .home-hero .hero-copy { width:100%; padding:0; background:none; }
  body:not(.admin-mode) .home-hero .hero-visual { position:relative; width:100%; inset:auto; z-index:auto; }
  body:not(.admin-mode) .home-hero .cafe-hero-image { aspect-ratio:2/1; height:auto; object-fit:cover; }
  body:not(.admin-mode) .home-hero .hero-art-caption { position:static; padding:12px 0; }
  body:not(.admin-mode) .home-formats { padding-top:15px; }
  body:not(.admin-mode) .home-formats .section-heading h2 { position:static; clip:auto; width:auto; height:auto; margin:0; white-space:normal; text-align:center; color:#202124; }
  body:not(.admin-mode) .home-formats .section-heading h2 i { color:#8c0a09; }
  body:not(.admin-mode) .home-formats .section-heading { display:block; }
  body:not(.admin-mode) .home-formats .section-heading > p { margin:20px auto 0; }
  body:not(.admin-mode) .formats-stage { padding:20px 0 0; }
  body:not(.admin-mode) .home-ribbon, body:not(.admin-mode) .ribbon-toggle { display:none; }
  body:not(.admin-mode) .home-formats .format-grid { grid-template-columns:1fr; gap:20px; }
  body:not(.admin-mode) .home-formats .format-card:first-child,
  body:not(.admin-mode) .home-formats .format-card:last-child { transform:none; }
  body:not(.admin-mode) .home-formats .format-card img { height:220px; }
}
@media (max-width:560px) {
  body:not(.admin-mode) .home-hero h1 { font-size:clamp(38px,10vw,52px); }
  body:not(.admin-mode) .home-hero p { font-size:17px; }
  body:not(.admin-mode) .home-hero .cafe-hero-image { aspect-ratio:4/3; object-position:right center; }
  body:not(.admin-mode) .home-quiz { padding:24px 18px; }
  body:not(.admin-mode) .home-quiz .quiz-options { grid-template-columns:1fr; }
  body:not(.admin-mode) .home-quiz .quiz-option { min-height:105px; padding:18px; }
}
@media (prefers-reduced-motion:reduce) {
  body:not(.admin-mode) .home-formats .format-card:hover { translate:none; }
  body:not(.admin-mode) .ribbon-toggle { display:none; }
}

/* Catalogue screenshot reviews share the product feedback card treatment. */
body:not(.admin-mode) .reviews-section .reviews-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,2.5vw,30px); }
body:not(.admin-mode) .reviews-section .review-card {
  min-width:0; padding:12px; border:1px solid transparent; border-radius:16px;
  background:linear-gradient(#fff,#fff) padding-box,linear-gradient(120deg,#4978b9,#8c0a09) border-box;
  color:#202124; transition:transform 180ms ease,box-shadow 180ms ease;
}
body:not(.admin-mode) .reviews-section .review-card img { display:block; width:100%; height:200px; object-fit:contain; border-radius:8px; }
body:not(.admin-mode) .reviews-section .review-card>span { border-top:1px solid #4978b9; color:#202124; font-size:15px; }
body:not(.admin-mode) .reviews-section .review-card:hover,
body:not(.admin-mode) .reviews-section .review-card:focus-visible { transform:translateY(-5px); box-shadow:0 8px 20px rgb(32 33 36 / 0.12); }
@media(max-width:560px){body:not(.admin-mode) .reviews-section .reviews-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body:not(.admin-mode) .reviews-section .review-card{transition:none}body:not(.admin-mode) .reviews-section .review-card:hover,body:not(.admin-mode) .reviews-section .review-card:focus-visible{transform:none}}

/* Keep the loop above the text and the three action arrows aligned. */
body:not(.admin-mode) .home-formats { padding-top:0; }
body:not(.admin-mode) .home-formats .section-heading { margin:12px auto 22px; }
body:not(.admin-mode) .home-formats .format-card:first-child,
body:not(.admin-mode) .home-formats .format-card:last-child { transform:none; }
@media(max-width:800px){body:not(.admin-mode) .home-formats { display:flex; flex-direction:column; }body:not(.admin-mode) .home-formats .section-heading { order:-1; }}
/* A short static ribbon keeps the visual motif on narrow screens. */
body:not(.admin-mode) .home-ribbon-mobile { display:none; }
@media(max-width:800px) {
  body:not(.admin-mode) .formats-stage { padding-top:100px; }
  body:not(.admin-mode) .home-ribbon-mobile { display:block; position:absolute; top:0; left:0; width:100%; height:80px; overflow:hidden; pointer-events:none; }
  body:not(.admin-mode) .home-ribbon-mobile .home-ribbon-band { stroke-width:34; }
  body:not(.admin-mode) .home-ribbon-mobile .home-ribbon-text { font-size:19px; }
}
@media(min-width:801px) {
  body:not(.admin-mode) .home-ribbon { top:-205px; height:calc(100% + 205px); }
}
@media(max-width:800px) {
  body:not(.admin-mode) .home-ribbon-mobile .home-ribbon-band { stroke-width:42; }
  body:not(.admin-mode) .home-ribbon-mobile .home-ribbon-text { font-size:29px; }
}

/* Workbook catalogue screenshots use the same focus/hover fan as product reviews. */
@media (min-width:701px) and (hover:hover) and (pointer:fine) {
  body:not(.admin-mode) .reviews-section .reviews-grid { max-width:920px; margin-inline:auto; isolation:isolate; }
  body:not(.admin-mode) .reviews-section .reviews-grid .review-card { position:relative; box-shadow:0 8px 20px rgb(32 33 36 / .12); transition:transform 280ms ease,box-shadow 280ms ease; }
  body:not(.admin-mode) .reviews-section .reviews-grid .review-card:first-child { transform:translateX(42%) rotate(-4deg); z-index:1; }
  body:not(.admin-mode) .reviews-section .reviews-grid .review-card:nth-child(2) { transform:translateX(-42%) rotate(4deg); z-index:2; }
  body:not(.admin-mode) .reviews-section .reviews-grid:is(:hover,:focus-within) .review-card { transform:none; }
}
@media(max-width:700px) {
  body:not(.admin-mode) .reviews-section .reviews-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  body:not(.admin-mode) .reviews-section .reviews-grid .review-card:first-child,
  body:not(.admin-mode) .reviews-section .reviews-grid .review-card:nth-child(2) { transform:none; transition:none; }
}

/* Shared quiz treatment and a consistent, compact rhythm on the home page. */
body:not(.admin-mode) .about-quiz.home-quiz > .wrap > .eyebrow {
  font-size:clamp(32px,3.4vw,46px); line-height:1.15; font-weight:400;
  letter-spacing:-.045em; color:#202124;
}
body:not(.admin-mode) .home-hero { padding-block:40px 44px; }
body:not(.admin-mode) .home-formats { padding-bottom:32px; scroll-margin-top:20px; }
body:not(.admin-mode) .home-quiz { margin-bottom:clamp(32px,4vw,48px); }
body:not(.admin-mode) .home-quiz .quiz-result > small { display:block; margin-top:12px; }
@media(max-width:800px) {
  body:not(.admin-mode) .home-hero { padding-block:28px 18px; }
  body:not(.admin-mode) .home-formats { padding-bottom:28px; }
}

/* London bus hero: keep the original photo separate from the soft fade. */
@media (min-width: 801px) {
  body:not(.admin-mode) .home-hero .hero-visual {
    left: 31%; right: 0; width: 69%;
  }
  body:not(.admin-mode) .home-hero .home-hero-picture {
    display: block; width: 100%; height: 100%;
  }
  body:not(.admin-mode) .home-hero .cafe-hero-image {
    object-position: center; mask-image: linear-gradient(to right, transparent 0%, #000 23%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 23%);
  }
}
@media (max-width: 800px) {
  body:not(.admin-mode) .home-hero .home-hero-picture { display: block; width: 100%; }
  body:not(.admin-mode) .home-hero .cafe-hero-image {
    display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
    object-fit: contain; object-position: center; mask-image: none; -webkit-mask-image: none;
  }
}

/* One open ribbon above the format cards, with the loop on the right. */
@media (min-width: 801px) {
  body:not(.admin-mode) .formats-stage { padding: 120px 32px 0; }
  body:not(.admin-mode) .home-ribbon { top: 0; left: 0; width: 100%; height: 112px; }
  body:not(.admin-mode) .home-ribbon-band { stroke-width: 14; }
  body:not(.admin-mode) .home-ribbon-text { font-size: 25px; }
}
@media (max-width: 800px) {
  body:not(.admin-mode) .formats-stage { padding-top: 105px; }
  body:not(.admin-mode) .home-ribbon-mobile { top: 0; height: 90px; }
  body:not(.admin-mode) .home-ribbon-mobile .home-ribbon-band { stroke-width: 14; }
  body:not(.admin-mode) .home-ribbon-mobile .home-ribbon-text { font-size: 26px; }
}
