/* Shared spacing and small layout refinements, scoped to the public site. */
body:not(.admin-mode) { --section-space: clamp(24px, 2.8vw, 40px); }
body:not(.admin-mode) main > .section { padding-block: var(--section-space); margin-block: 0; }
body:not(.admin-mode) main > .format-detail ~ .section { margin-block: 0; }
body:not(.admin-mode) main > :is(.workbook-intro,.consultation-block,.personal-help,.about-band) { margin-block: var(--section-space); }
body:not(.admin-mode) main > .home-quiz { margin-block: var(--section-space); margin-inline: auto; }
body:not(.admin-mode) .catalog-header { padding-block: var(--section-space); }
body:not(.admin-mode) .catalog-header .section-heading { display: block; margin-bottom: 24px; }
body:not(.admin-mode) .catalog-header .section-heading > p { max-width: 70ch; margin-top: 18px; padding-bottom: 0; }
body:not(.admin-mode) .catalog-section-title { margin-bottom: 16px; }
body:not(.admin-mode) .product-grid { gap: clamp(16px,2vw,28px); }
body:not(.admin-mode) .product-grid .product-art { aspect-ratio: 2 / 1; height: clamp(140px,13vw,180px); padding: 8px; }
body:not(.admin-mode) .product-card .product-meta { margin-block: 10px 5px; }
body:not(.admin-mode) .product-card .product-title-row h3 { font-size: clamp(22px,2vw,28px); }
body:not(.admin-mode) .product-card .product-title-row > span { font-size: 19px; }
body:not(.admin-mode) .product-card > p { margin-top: 8px; font-size: 16px; line-height: 1.45; }
body:not(.admin-mode) .product-card .product-actions { padding-top: 10px; padding-bottom: 10px; }
body:not(.admin-mode) .bundle-banner { grid-template-columns: minmax(0,1.55fr) minmax(250px,1fr); gap: 24px; }
body:not(.admin-mode) .bundle-banner p:not(.eyebrow) { max-width: none; }
body:not(.admin-mode) .bundle-banner .bundle-price { display: grid; grid-template-areas: 'old new' 'saving new'; grid-template-columns: max-content max-content; gap: 5px 20px; justify-content: start; }
body:not(.admin-mode) .bundle-banner .bundle-price del { grid-area: old; }
body:not(.admin-mode) .bundle-banner .bundle-price strong { grid-area: new; }
body:not(.admin-mode) .bundle-banner .bundle-price .pill { grid-area: saving; padding-inline: 0; }
body:not(.admin-mode) dialog::backdrop { background: rgba(32,33,36,.32); backdrop-filter: none; }
/* Every genuine screenshot uses the same card geometry and reveal behaviour. */
body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid) {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px;
  width: 100%; max-width: 820px; margin: 24px auto 0; isolation: isolate;
}
body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid) > :is(.review-card,.wp-review-image,.review-screenshot) {
  display: flex; align-items: center; justify-content: center; margin: 0; padding: 12px;
  min-width: 0; height: 285px; border: 1px solid transparent; border-radius: 16px;
  background: linear-gradient(#fff,#fff) padding-box,linear-gradient(120deg,#4978b9,#8c0a09) border-box;
  box-shadow: 0 8px 20px rgb(32 33 36 / .1);
}
body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid) > :is(.review-card,.wp-review-image,.review-screenshot) img {
  display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; border-radius: 8px;
}
body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid):focus-visible { outline: 3px solid #8c0a09; outline-offset: 5px; }
@media (min-width: 701px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid) > :is(.review-card,.wp-review-image,.review-screenshot) { position:relative; transition: transform 280ms ease; }
  body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid) > :first-child { transform: translateX(42%) rotate(-4deg); z-index:1; }
  body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid) > :nth-child(2) { transform: translateX(-42%) rotate(4deg); z-index:2; }
  body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid):is(:hover,:focus-within) > * { transform:none; }
}
@media (max-width: 700px), (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid) { grid-template-columns:1fr; }
  body:not(.admin-mode) main :is(.reviews-grid,.wp-review-grid,.speaking-reviews-grid) > * { transform:none; transition:none; }
}
@media (min-width: 1001px) {
  body:not(.admin-mode) .bundle-banner > div:first-child > p:nth-of-type(2) { white-space: nowrap; font-size: clamp(14px,1.1vw,17px); }
}
@media (max-width: 800px) {
  body:not(.admin-mode) { --section-space: 24px; }
  body:not(.admin-mode) .bundle-banner { grid-template-columns: 1fr; }
  body:not(.admin-mode) .product-grid .product-art { height: auto; min-height: 140px; }
}
