/*
 * Shared styles for the content pages (/how-it-works, /teach, /learn-for-free).
 * These pages reuse the Help & FAQ classes (help-faq.css) for the title, sections, steps and FAQs,
 * so this file only adds what is new: the lead text, link cards and the call-to-action box.
 */

.content-page .help-faq-page__intro {
  margin-bottom: 2.5rem;
}

.content-page .help-faq-page__prose + .help-faq-page__prose {
  margin-top: 1rem;
}

.content-page .help-faq-page__prose a,
.content-page .help-faq-page__highlight a,
.content-page .help-faq-page__bullets a,
.content-page .help-faq-page__steps a {
  color: var(--color-primary, #f76922);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-page .help-faq-page__highlight + .help-faq-page__prose,
.content-page .help-faq-page__prose + .help-faq-page__highlight {
  margin-top: 1rem;
}

/* Cards that link on to a deeper page */
.content-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.content-links__item {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  box-sizing: border-box;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(19, 15, 25, 0.08);
  box-shadow: 0 4px 16px rgba(19, 15, 25, 0.04);
  color: #130f19;
  text-decoration: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.content-links__item:hover,
.content-links__item:focus-visible {
  border-color: rgba(247, 105, 34, 0.45);
  box-shadow: 0 8px 24px rgba(19, 15, 25, 0.08);
  text-decoration: none;
}

.content-links__title {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #130f19;
}

.content-links__text {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #646464;
}

/* Sign-up call to action (same look as the contact box on the Help & FAQ page) */
.content-cta {
  margin-top: 2.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(247, 105, 34, 0.08) 0%, rgba(247, 105, 34, 0.03) 100%);
  border: 1px solid rgba(247, 105, 34, 0.18);
}

.content-cta__title {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #130f19;
}

.content-cta__text {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #646464;
}

.content-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
}

.content-cta__button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  background: #f94e10;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.content-cta__button:hover,
.content-cta__button:focus-visible {
  background: #d9550f;
  color: #fff;
  text-decoration: none;
}

.content-cta__link {
  color: var(--color-primary, #f76922);
  font-weight: 600;
  text-decoration: none;
}

.content-cta__link:hover,
.content-cta__link:focus-visible {
  text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Visual layout for /how-it-works, /teach and /learn-for-free:
 * wide layout, hero with illustration, numbered step cards, feature cards,
 * text-and-illustration sections and a bolder call to action.
 * ------------------------------------------------------------------ */

.help-faq-page.content-page {
  max-width: 1040px;
}

/* Hero */
.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 2rem;
  margin: 0 0 3.5rem;
  padding: 2.5rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff3ec 0%, #fff 55%, #eef3fb 100%);
  border: 1px solid rgba(247, 105, 34, 0.15);
  box-shadow: 0 10px 40px rgba(19, 15, 25, 0.06);
}

.content-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: 30px;
  background: rgba(247, 105, 34, 0.12);
  color: #d9550f;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-page .content-hero .help-faq-page__title {
  margin: 0 0 1rem !important;
  text-align: left;
  font-size: clamp(1.9rem, 4vw, 2.6rem) !important;
  line-height: 1.15 !important;
}

.content-page .content-hero .help-faq-page__intro {
  margin: 0 0 1.75rem;
  max-width: none;
  text-align: left;
  font-size: 1.1rem;
}

.content-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.content-hero__button {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 30px;
  background: #f94e10;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(249, 78, 16, 0.3);
}

.content-hero__button:hover,
.content-hero__button:focus-visible {
  background: #d9550f;
  color: #fff;
  text-decoration: none;
}

.content-hero__link {
  color: #130f19;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #f94e10;
  text-underline-offset: 4px;
}

.content-hero__art {
  text-align: center;
}

.content-hero__art img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

/* Section headings with an accent bar */
.content-page .help-faq-page__section-title {
  position: relative;
  padding: 0 0 0 1rem !important;
  font-size: 1.6rem;
}

.content-page .help-faq-page__section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: #f94e10;
}

.content-page .help-faq-page__section {
  margin-bottom: 3.5rem;
}

/* Steps become numbered cards */
.content-page .help-faq-page__highlight {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.content-page .help-faq-page__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
  counter-reset: content-step;
}

.content-page .help-faq-page__steps li {
  position: relative;
  margin: 0;
  padding: 1.1rem 1.15rem 1.1rem 4rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(19, 15, 25, 0.08);
  box-shadow: 0 4px 16px rgba(19, 15, 25, 0.05);
  counter-increment: content-step;
  line-height: 1.55;
}

.content-page .help-faq-page__steps li::before {
  content: counter(content-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #f94e10;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 2.2rem;
  text-align: center;
}

.content-page .help-faq-page__steps li strong {
  color: #130f19;
}

/* Bullet lists become feature cards */
.content-page .help-faq-page__bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.content-page .help-faq-page__bullets li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(19, 15, 25, 0.08);
  border-top: 4px solid #f94e10;
  box-shadow: 0 4px 16px rgba(19, 15, 25, 0.05);
  line-height: 1.55;
}

.content-page .help-faq-page__bullets li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #130f19;
}

/* Short lists read better as small pills */
.content-page .help-faq-page__bullets--compact {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
}

.content-page .help-faq-page__bullets--compact li {
  padding: 0.85rem 1rem;
  border-top-width: 1px;
  border-left: 4px solid #f94e10;
  border-radius: 12px;
  background: #fffaf7;
  box-shadow: none;
}

/* Text beside an illustration */
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem;
  border-radius: 20px;
  background: #f7f9fd;
  border: 1px solid rgba(19, 15, 25, 0.06);
}

.content-split__art {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
}

.content-split .help-faq-page__bullets {
  grid-template-columns: 1fr;
}

.content-split .help-faq-page__bullets--compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* FAQ cards */
.content-page .help-faq-item {
  border-radius: 14px;
}

/* Call to action */
.content-page .content-cta {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #f94e10 0%, #ff8a3d 100%);
  box-shadow: 0 12px 36px rgba(249, 78, 16, 0.25);
}

.content-page .content-cta__title {
  font-size: 1.8rem;
  color: #fff;
}

.content-page .content-cta__text {
  color: rgba(255, 255, 255, 0.92);
}

.content-page .content-cta__button {
  background: #fff;
  color: #d9440b;
  box-shadow: 0 6px 18px rgba(19, 15, 25, 0.18);
}

.content-page .content-cta__button:hover,
.content-page .content-cta__button:focus-visible {
  background: #fff3ec;
  color: #b93a08;
}

.content-page .content-cta__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .content-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1.15rem;
    border-radius: 18px;
    text-align: center;
  }

  .content-hero__art {
    order: -1;
  }

  .content-hero__art img {
    max-width: 200px;
  }

  .content-page .content-hero .help-faq-page__title,
  .content-page .content-hero .help-faq-page__intro {
    text-align: center;
  }

  .content-hero__actions {
    justify-content: center;
  }

  .content-split {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .content-split__art {
    max-width: 200px;
    order: -1;
  }

  .content-page .help-faq-page__steps,
  .content-page .help-faq-page__bullets {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
 * "Quirky" layer, opt-in with .content-page--quirky (/teach, /learn-for-free).
 * Soft pastel cards in the same colours as the subject chips, slightly tilted
 * sticker-style details, doodles and a hand-drawn underline, so the page feels
 * made by people rather than by a template. Everything here is decoration:
 * layout, copy and accessibility are unchanged.
 * ------------------------------------------------------------------ */

.content-page--quirky {
  --q-ink: #130f19;
  --q-orange: #f94e10;
}

/* Pastel + accent pairs (same palette as js/core/subject-colors.js) */
.content-page--quirky :is(.help-faq-page__steps, .help-faq-page__bullets) > li {
  --q-tint: #fff1e8;
  --q-accent: #c2410c;
}

.content-page--quirky :is(.help-faq-page__steps, .help-faq-page__bullets) > li:nth-child(6n + 2) {
  --q-tint: #e8f1ff;
  --q-accent: #2563eb;
}

.content-page--quirky :is(.help-faq-page__steps, .help-faq-page__bullets) > li:nth-child(6n + 3) {
  --q-tint: #e6fbf6;
  --q-accent: #0d9488;
}

.content-page--quirky :is(.help-faq-page__steps, .help-faq-page__bullets) > li:nth-child(6n + 4) {
  --q-tint: #ffeef3;
  --q-accent: #e11d6a;
}

.content-page--quirky :is(.help-faq-page__steps, .help-faq-page__bullets) > li:nth-child(6n + 5) {
  --q-tint: #efebfb;
  --q-accent: #7c5cfc;
}

.content-page--quirky :is(.help-faq-page__steps, .help-faq-page__bullets) > li:nth-child(6n) {
  --q-tint: #fff7e0;
  --q-accent: #b45309;
}

/* Hero: organic shape, a blob behind the illustration and a few doodles */
.content-page--quirky .content-hero {
  position: relative;
  border-radius: 40px 28px 44px 26px / 28px 44px 28px 40px;
}

.content-page--quirky .content-hero::before,
.content-page--quirky .content-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.content-page--quirky .content-hero::before {
  top: 1.1rem;
  right: 1.4rem;
  width: 38px;
  height: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l4 13 13 4-13 4-4 13-4-13-13-4 13-4z' fill='%23f94e10' stroke='%23130f19' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: rotate(12deg);
}

.content-page--quirky .content-hero::after {
  right: 2.5rem;
  bottom: 0.9rem;
  width: 84px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 18'%3E%3Cpath d='M3 9q10.5-12 21 0t21 0t21 0t15 0' fill='none' stroke='%23130f19' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.content-page--quirky .content-hero__art {
  position: relative;
}

.content-page--quirky .content-hero__art::before {
  content: "";
  position: absolute;
  inset: 8% 6% 4%;
  z-index: 0;
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  background: #ffe3d3;
  transform: rotate(-6deg);
}

.content-page--quirky .content-hero__art img {
  position: relative;
  z-index: 1;
}

.content-page--quirky .content-hero__eyebrow {
  border: 2px dashed rgba(217, 85, 15, 0.55);
  background: #fff;
  transform: rotate(-2deg);
}

.content-page--quirky .content-hero__button,
.content-page--quirky .content-cta__button {
  border: 2px solid var(--q-ink);
  box-shadow: 4px 4px 0 var(--q-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.content-page--quirky .content-hero__button:hover,
.content-page--quirky .content-hero__button:focus-visible,
.content-page--quirky .content-cta__button:hover,
.content-page--quirky .content-cta__button:focus-visible {
  transform: translate(-2px, -2px) rotate(-1.5deg);
  box-shadow: 6px 6px 0 var(--q-ink);
}

/* Section headings: hand-drawn wavy underline instead of a vertical bar */
.content-page--quirky .help-faq-page__section-title {
  width: fit-content;
  padding: 0 0 0.75rem !important;
}

.content-page--quirky .help-faq-page__section-title::before {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 8px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8' width='24' height='8'%3E%3Cpath d='M0 4q3-4 6 0t6 0t6 0t6 0' fill='none' stroke='%23f94e10' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 24px 8px;
}

/* Steps: pastel cards with a wobbly number badge and a slight tilt */
.content-page--quirky .help-faq-page__steps li {
  background: var(--q-tint);
  border: 1.5px solid color-mix(in srgb, var(--q-accent) 28%, transparent);
  box-shadow: none;
  transform: rotate(-0.6deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-page--quirky .help-faq-page__steps li:nth-child(even) {
  transform: rotate(0.6deg);
}

.content-page--quirky .help-faq-page__steps li:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--q-accent) 18%, transparent);
}

.content-page--quirky .help-faq-page__steps li::before {
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  background: var(--q-accent);
  border: 2px solid var(--q-ink);
  box-sizing: border-box;
  line-height: calc(2.2rem - 4px);
  transform: rotate(-8deg);
}

/* Feature cards: pastel with a sticker icon */
.content-page--quirky .help-faq-page__bullets:not(.help-faq-page__bullets--compact) li {
  position: relative;
  border: 1.5px solid color-mix(in srgb, var(--q-accent) 28%, transparent);
  border-top-width: 1.5px;
  background: var(--q-tint);
  box-shadow: none;
  transition: transform 0.2s ease;
}

.content-page--quirky .help-faq-page__bullets:not(.help-faq-page__bullets--compact) li:nth-child(odd) {
  transform: rotate(0.5deg);
}

.content-page--quirky .help-faq-page__bullets:not(.help-faq-page__bullets--compact) li:nth-child(even) {
  transform: rotate(-0.5deg);
}

.content-page--quirky .help-faq-page__bullets:not(.help-faq-page__bullets--compact) li:hover {
  transform: rotate(0deg) translateY(-3px);
}

.content-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border: 2px solid var(--q-ink);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  background: #fff;
  color: var(--q-accent, var(--q-orange));
  box-shadow: 3px 3px 0 var(--q-accent, var(--q-orange));
  transform: rotate(-6deg);
}

/* Short lists: dashed "sticker" tags */
.content-page--quirky .help-faq-page__bullets--compact li {
  border: 2px dashed color-mix(in srgb, var(--q-accent) 45%, transparent);
  background: var(--q-tint);
}

.content-page--quirky .help-faq-page__bullets--compact li:nth-child(odd) {
  transform: rotate(-0.7deg);
}

.content-page--quirky .help-faq-page__bullets--compact li:nth-child(even) {
  transform: rotate(0.7deg);
}

/* Text beside an illustration: pastel panel, art alternates sides, a sparkle in the corner */
.content-page--quirky .content-split {
  position: relative;
  border: 2px dashed rgba(247, 105, 34, 0.3);
  border-radius: 32px 22px 36px 20px / 22px 34px 22px 32px;
  background: #fff8f2;
}

.content-page--quirky .content-split + .content-split {
  grid-template-columns: 260px minmax(0, 1fr);
  border-color: rgba(37, 99, 235, 0.25);
  background: #f3f7ff;
}

.content-page--quirky .content-split + .content-split .content-split__art {
  order: -1;
}

.content-page--quirky .content-split::after {
  content: "";
  position: absolute;
  top: -14px;
  right: 1.5rem;
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l4 13 13 4-13 4-4 13-4-13-13-4 13-4z' fill='%23ffc83d' stroke='%23130f19' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(14deg);
  pointer-events: none;
}

.content-page--quirky .content-split + .content-split::after {
  right: auto;
  left: 1.5rem;
  transform: rotate(-12deg);
}

/* Wide illustration under a section */
.content-figure {
  margin: 2rem 0 0;
  text-align: center;
}

.content-figure img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  animation: content-bob 7s ease-in-out infinite;
}

.content-figure + .help-faq-page__prose {
  margin-top: 1.5rem;
}

@keyframes content-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* FAQ: coloured edge that matches the card colours above */
.content-page--quirky .help-faq-item {
  border-left: 5px solid #f94e10;
}

.content-page--quirky .help-faq-item:nth-child(6n + 2) { border-left-color: #2563eb; }
.content-page--quirky .help-faq-item:nth-child(6n + 3) { border-left-color: #0d9488; }
.content-page--quirky .help-faq-item:nth-child(6n + 4) { border-left-color: #e11d6a; }
.content-page--quirky .help-faq-item:nth-child(6n + 5) { border-left-color: #7c5cfc; }
.content-page--quirky .help-faq-item:nth-child(6n) { border-left-color: #b45309; }

/* Call to action: organic shape and a few doodles */
.content-page--quirky .content-cta {
  position: relative;
  overflow: hidden;
  border-radius: 40px 28px 44px 26px / 28px 44px 28px 40px;
}

.content-page--quirky .content-cta::before,
.content-page--quirky .content-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.content-page--quirky .content-cta::before {
  top: 1rem;
  left: 1.5rem;
  width: 34px;
  height: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l4 13 13 4-13 4-4 13-4-13-13-4 13-4z' fill='%23fff' fill-opacity='.9'/%3E%3C/svg%3E");
  transform: rotate(-10deg);
}

.content-page--quirky .content-cta::after {
  right: 1.5rem;
  bottom: 1rem;
  width: 84px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 18'%3E%3Cpath d='M3 9q10.5-12 21 0t21 0t21 0t15 0' fill='none' stroke='%23fff' stroke-opacity='.85' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.content-page--quirky .content-cta > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .content-page--quirky .content-hero::after {
    display: none;
  }

  .content-page--quirky .content-split + .content-split {
    grid-template-columns: 1fr;
  }

  .content-figure {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-figure img {
    animation: none;
  }

  .content-page--quirky .content-hero__button,
  .content-page--quirky .content-cta__button,
  .content-page--quirky .help-faq-page__steps li,
  .content-page--quirky .help-faq-page__bullets li {
    transition: none;
  }

  .content-page--quirky .content-hero__button:hover,
  .content-page--quirky .content-cta__button:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------------
 * Role panels on /how-it-works: "For learners" (blue) and "For teachers" (orange),
 * each with its own illustration so the two journeys look different at a glance.
 * ------------------------------------------------------------------ */
.content-role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  column-gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  border: 2px dashed var(--role-line);
  border-radius: 32px 22px 36px 20px / 22px 34px 22px 32px;
  background: var(--role-bg);
}

.content-role--learner {
  --role-bg: #f3f7ff;
  --role-line: rgba(37, 99, 235, 0.3);
  --role-accent: #2563eb;
  --role-tint: #e8f1ff;
}

.content-role--teacher {
  --role-bg: #fff8f2;
  --role-line: rgba(247, 105, 34, 0.35);
  --role-accent: #c2410c;
  --role-tint: #ffeadb;
}

.content-role > .help-faq-page__section-title {
  grid-column: 1 / -1;
}

.content-role__art {
  grid-column: 2;
  grid-row: 2;
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  margin: 0 auto;
}

.content-role__body {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

/* The teachers panel flips: art on the left */
.content-role--teacher {
  grid-template-columns: 230px minmax(0, 1fr);
}

.content-role--teacher .content-role__art {
  grid-column: 1;
}

.content-role--teacher .content-role__body {
  grid-column: 2;
}

/* One colour per panel: every step card, badge and underline follows it */
.content-page--quirky .content-role .help-faq-page__steps {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.content-page--quirky .content-role .help-faq-page__steps > li {
  --q-tint: var(--role-tint);
  --q-accent: var(--role-accent);
  background: #fff;
}

.content-page--quirky .content-role--learner .help-faq-page__steps > li {
  --q-tint: #fff;
}

.content-page--quirky .content-role--learner .help-faq-page__section-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8' width='24' height='8'%3E%3Cpath d='M0 4q3-4 6 0t6 0t6 0t6 0' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.content-role--learner .help-faq-page__steps a,
.content-page .content-role--learner .help-faq-page__prose a {
  color: #2563eb;
}

@media (max-width: 767px) {
  .content-role,
  .content-role--teacher {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .content-role__art,
  .content-role--teacher .content-role__art {
    grid-column: 1;
    grid-row: 2;
    max-width: 170px;
    margin-bottom: 1rem;
  }

  .content-role__body,
  .content-role--teacher .content-role__body {
    grid-column: 1;
    grid-row: 3;
  }
}
