/* Way2Speak learning paths. Shared typography and navigation live in school.css. */
body:not(.admin-mode) .paths-grid .format-card {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; gap: 0; padding: 20px;
  background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#4978b9,#8c0a09) border-box;
  border: 1px solid transparent; border-radius: 20px;
}
body:not(.admin-mode) .paths-grid .format-card .text-link { margin-top: auto; padding-top: 24px; }
body:not(.admin-mode) .paths-grid .format-card img { height: 210px; border-radius: 12px; }
body:not(.admin-mode) .paths-grid .format-card p { color: #202124; line-height: 1.65; }
body:not(.admin-mode) .paths-grid .format-card h3 { font-size: clamp(27px,2.7vw,39px); line-height: 1.1; }

/* Hero photos stay recognisable and copy has space to breathe. */
body:not(.admin-mode) .format-detail { gap: clamp(28px,4vw,56px); align-items: center; padding-block: clamp(28px,3vw,42px); }
body:not(.admin-mode) .format-detail > div:first-child { min-width: 0; }
body:not(.admin-mode) .format-detail h1 { font-size: clamp(44px,5vw,72px); line-height: 1.08; }
body:not(.admin-mode) .format-detail p:not(.eyebrow),
body:not(.admin-mode) .format-detail ~ section p:not(.eyebrow) { color: #202124; line-height: 1.7; }
body:not(.admin-mode) .format-detail .format-side { border-radius: 20px; background: #fff; }
body:not(.admin-mode) .format-detail .format-photo { border-radius: 20px; display: block; width: 100%; object-fit: cover; }
body:not(.admin-mode) .format-detail .format-side .eyebrow { display: block; padding: 14px 2px 0; color: #8c0a09; }
body:not(.admin-mode) .format-detail ~ .section { margin-block: 0; padding-block: clamp(28px,3vw,42px); }
body:not(.admin-mode) .format-detail ~ .section h2 { line-height: 1.12; }
body:not(.admin-mode) .format-detail ~ .section h3 { line-height: 1.25; }
body:not(.admin-mode) .format-detail ~ .small-section > p:not(.eyebrow) { max-width: 67ch; }
body:not(.admin-mode) .format-detail ~ .small-section .format-method-copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(26px,5vw,70px); }

/* Four method cards use the same fine gradient frame as the main format cards. */
body:not(.admin-mode) .speaking-method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 36px 0; }
body:not(.admin-mode) .speaking-method-grid article,
body:not(.admin-mode) .speaking-method-grid article:nth-child(even) {
  min-width: 0; padding: clamp(24px,3vw,38px); color: #202124;
  background: linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#4978b9,#8c0a09) border-box;
  border: 1px solid transparent; border-radius: 20px;
}
body:not(.admin-mode) .speaking-method-grid h3 { margin: 14px 0; font-size: clamp(25px,2.5vw,33px); }
body:not(.admin-mode) .speaking-method-grid p,
body:not(.admin-mode) .speaking-method > p:not(.eyebrow),
body:not(.admin-mode) .speaking-facts { font-size: 18px; line-height: 1.7; }

/* A single quiet curved ribbon between sections, separate from the main copy. */
body:not(.admin-mode) .speaking-ribbon { position: relative; margin-block: 0; overflow: hidden; }
body:not(.admin-mode) .speaking-ribbon svg { display: block; width: 100%; height: clamp(60px,7vw,90px); overflow: hidden; }
body:not(.admin-mode) .speaking-ribbon-band { fill: none; stroke: #4978b9; stroke-opacity: .26; stroke-width: 42; }
body:not(.admin-mode) .speaking-ribbon-text { fill: #202124; font-family: var(--serif), Georgia, serif; font-size: 20px; letter-spacing: .01em; }

/* Keep the two subscription choices clear and aligned on wide screens. */
body:not(.admin-mode) .subscription-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-block: 24px; }
body:not(.admin-mode) .subscription-grid article {
  min-width: 0; padding: 26px; border: 1px solid transparent; border-radius: 16px;
  background: linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#4978b9,#8c0a09) border-box;
}
body:not(.admin-mode) .subscription-grid article h3 { margin: 0 0 12px; }
body:not(.admin-mode) .subscription-grid article p { margin: 0; }
body:not(.admin-mode) .consultation-block > .button + small { display: block; margin-top: 14px; }

/* Native radios preserve keyboard selection and work without script. */
body:not(.admin-mode) .level-choices { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; border: 0; min-width: 0; }
body:not(.admin-mode) .level-choice { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body:not(.admin-mode) .level-choice + label {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 10px 22px; border: 1px solid #4978b9; border-radius: 999px;
  background: #fff; color: #202124; font: inherit; cursor: pointer;
}
body:not(.admin-mode) .level-choice:checked + label { background: #8c0a09; border-color: #8c0a09; color: #fff; }
body:not(.admin-mode) .level-choice:focus-visible + label { outline: 3px solid #202124; outline-offset: 3px; }
body:not(.admin-mode) .level-panels { flex-basis: 100%; margin-top: 14px; }
body:not(.admin-mode) .level-panel {
  margin-bottom: 18px; padding: clamp(26px,4vw,48px); min-width: 0;
  background: linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#4978b9,#8c0a09) border-box;
  border: 1px solid transparent; border-radius: 20px;
}
body:not(.admin-mode) .level-panel .eyebrow { color: #8c0a09; font-size: 16px; }
body:not(.admin-mode) .level-panel-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(26px,5vw,70px); align-items: start; }
body:not(.admin-mode) .level-panel h3 { margin: 18px 0 0; font-size: clamp(27px,3vw,40px); line-height: 1.2; }
body:not(.admin-mode) .level-panel p { margin: 18px 0 0; color: #202124; font-size: 18px; line-height: 1.7; }
@supports selector(:has(*)) {
  body:not(.admin-mode) .level-panel { display: none; }
  body:not(.admin-mode) .level-choices:has(#format-level-0:checked) .level-panel[data-level="0"],
  body:not(.admin-mode) .level-choices:has(#format-level-1:checked) .level-panel[data-level="1"],
  body:not(.admin-mode) .level-choices:has(#format-level-2:checked) .level-panel[data-level="2"],
  body:not(.admin-mode) .level-choices:has(#format-level-3:checked) .level-panel[data-level="3"] { display: block; }
}

/* Speaking feedback uses only the original screenshots and does not open a viewer. */
body:not(.admin-mode) .speaking-reviews-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 24px; margin-top: 35px; }
body:not(.admin-mode) .speaking-reviews-grid figure {
  min-width: 0; margin: 0; padding: 12px; color: #202124;
  background: linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#4978b9,#8c0a09) border-box;
  border: 1px solid transparent; border-radius: 20px;
}
body:not(.admin-mode) .speaking-reviews-grid:focus-visible { outline: 3px solid #8c0a09; outline-offset: 4px; }
body:not(.admin-mode) .speaking-reviews-grid img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

@media (max-width: 700px) {
  body:not(.admin-mode) .speaking-method-grid,
  body:not(.admin-mode) .speaking-reviews-grid,
  body:not(.admin-mode) .subscription-grid,
  body:not(.admin-mode) .format-detail ~ .small-section .format-method-copy,
  body:not(.admin-mode) .level-panel-content { grid-template-columns: 1fr; }
  body:not(.admin-mode) .level-panel-content { gap: 0; }
  body:not(.admin-mode) .level-choice + label { padding-inline: 18px; }
  body:not(.admin-mode) .format-detail h1 { font-size: clamp(39px,9vw,54px); overflow-wrap: anywhere; }
  body:not(.admin-mode) .format-detail ~ .section { margin-block: 0; padding-block: 28px; }
}
