/* Interior pages use the same paper, ink and action colors as the studio landing page. */
main {
  --text-ink: var(--ink, #27202b);
  --text-muted: var(--muted, #625b65);
  --line: var(--rule, #e8e0dc);
  color: var(--text-ink);
}

.detail-hero {
  background: var(--paper, #fffcf8);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(24px, 3.4vw, 54px) clamp(38px, 4.5vw, 70px);
}
.detail-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 82px);
}
.detail-hero h1 {
  max-width: 18ch;
  font-size: clamp(40px, 4.6vw, 72px);
  letter-spacing: -.06em;
  line-height: 1.07;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.detail-hero .eyebrow { margin-bottom: 15px; }
.detail-hero .hero-description {
  margin-top: 20px;
  max-width: 55ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
}
.detail-hero .button-row { gap: 10px; margin-top: 24px; }
:is(.detail-hero, .final-cta, .contact-form, .not-found) .button {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 32px;
  font-size: 14px;
  gap: 12px;
}
:is(.detail-hero, .final-cta, .contact-form, .not-found) .button-primary {
  background: var(--text-ink);
  color: white;
  box-shadow: none;
}
:is(.detail-hero, .final-cta, .contact-form, .not-found) .button-primary:hover { background: var(--berry); }
:is(.detail-hero, .final-cta) .button-secondary { border-color: #cbbfc2; background: #fffaf6; }
.detail-art {
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(240px, 25vw, 365px);
  padding: clamp(16px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--detail-color, #fff0e8);
  background-image: radial-gradient(ellipse at 78% 24%, transparent 37%, #fffcfa99 37.25%, transparent 37.6%, transparent 56%, #fffcfa99 56.25%, transparent 56.6%);
}
.detail-art img { height: 100%; min-height: 0; width: 100%; object-fit: contain; }
.detail-art .format-artwork { width: 100%; height: 100%; }
.detail-hero ~ .section:not(.format-catalog) { padding-block: clamp(48px, 5.4vw, 84px); }
.detail-hero ~ .section .section-heading { margin-bottom: clamp(24px, 3vw, 44px); }
.section-heading h2, .contact-info h2, .faq-grid h2 { text-wrap: balance; }

.collection-header:has(+ .format-catalog) {
  padding-block: clamp(34px, 4.3vw, 70px);
  background: var(--paper, #fffcf8);
  border-bottom: 1px solid var(--line);
}
.collection-header:has(+ .format-catalog) h1 { text-wrap: balance; }

.benefit-grid { gap: clamp(22px, 3.5vw, 50px); }
.benefit-item { border-top: 2px solid var(--line); padding-top: 20px; }
.benefit-icon, .demo-spark, .final-spark { display: none; }
.benefit-item h3 { margin-bottom: 10px; font-size: clamp(20px, 1.8vw, 26px); }
.benefit-item p, .workflow-grid p, .lms-choice > p:not(.eyebrow), .team-item p {
  font-size: 15px;
  line-height: 1.65;
}
.detail-steps, .lms-section, .workflow-section { background: #f8f4ef; color: var(--text-ink); }
.workflow-section .eyebrow, .workflow-section h2 em, .workflow-section .text-link { color: var(--berry); }
.workflow-section p:not(.eyebrow) { color: var(--text-muted); }
.workflow-grid li:not(:last-child)::after { content: none; }
.workflow-grid h3, .workflow-grid p { max-width: 32ch; }
.workflow-number, .detail-steps .workflow-number {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  border-color: #dac9cd;
  color: var(--berry);
  background: #fffcf8;
}
.scorm-editions, .scorm-editions > span { border-color: #d8ccc7; }
.scorm-editions > span { color: var(--text-ink); background: #fffcf8; }
.detail-note { padding-block: 23px; }
.detail-note p { font-size: 14px; }

.demo-section { background: #fff7f4; }
.demo-section .quiz-wrap {
  transform: none;
  background: #f5e3dc;
  padding: clamp(12px, 1.8vw, 24px);
  border-radius: 22px;
}
.quiz-card { transform: none; box-shadow: none; }
.quiz-answer, .quiz-feedback, .quiz-reset { font-size: 14px; }
.quiz-reset { min-height: 44px; }

.contact-form {
  border-color: #ded3d1;
  padding: clamp(20px, 3vw, 44px);
  background: #fffaf6;
}
.contact-form label { margin-bottom: 17px; color: var(--text-ink); font-size: 14px; }
.contact-form input, .contact-form textarea {
  font-size: 16px;
  padding: 11px 13px;
  border-color: #b9afb2;
}
.contact-form :is(input, textarea):focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}
.contact-method a, .contact-method p, .form-note, .form-status { font-size: 14px; }

.faq-section { background: var(--paper, #fffcf8); border-top: 1px solid var(--line); }
.faq-item { border-color: var(--line); }
.faq-item summary { font-size: 16px; line-height: 1.5; padding-block: 18px; }
.faq-item summary > span {
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.faq-item[open] summary { color: var(--berry); }
.faq-item p { font-size: 15px; line-height: 1.7; }

.final-section { padding-block: clamp(32px, 4.5vw, 70px); }
.final-cta {
  text-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 4vw, 60px);
  border-radius: 24px;
  background: #f8e2de;
}
.final-cta > :is(.eyebrow, h2, p) { grid-column: 1; margin-inline: 0; }
.final-cta h2 { font-size: clamp(29px, 3.4vw, 48px); line-height: 1.12; text-wrap: balance; }
.final-cta > p:not(.eyebrow) { margin: 12px 0 0; }
.final-cta .button-row { grid-column: 2; grid-row: 1 / 4; align-self: center; flex-direction: column; gap: 10px; }

/* Localized error documents keep the current language's home action in view. */
.not-found {
  padding-block: clamp(32px, 5vw, 80px);
  background: var(--paper, #fffcf8);
  text-align: start;
}
.not-found .container {
  max-width: 830px;
  padding: clamp(25px, 5vw, 76px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fbede8;
}
.not-found h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(35px, 4.4vw, 60px);
  text-wrap: balance;
}
.not-found p:not(.eyebrow) { max-width: 50ch; margin: 18px 0 24px; }

@media (max-width: 900px) {
  .detail-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-art { height: clamp(165px, 35vw, 255px); max-width: 600px; }
  .detail-hero h1, .detail-hero .hero-description { max-width: 100%; }
  .detail-hero .button-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .final-cta { grid-template-columns: 1fr; }
  .final-cta .button-row { grid-column: 1; grid-row: auto; flex-direction: row; justify-content: start; align-items: center; max-width: none; margin: 20px 0 0; }
}
@media (max-width: 600px) {
  .detail-hero h1 { font-size: clamp(33px, 8vw, 43px); }
  .detail-hero .hero-description { margin-top: 14px; }
  .detail-art { border-radius: 18px; }
  .detail-hero:has(a[href="#contact-form"]) .detail-art { display: none; }
  .contact-form { grid-row: 1; }
  .workflow-grid.three-steps { grid-template-columns: 1fr; gap: 16px; }
  .three-steps li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-content: start;
    column-gap: 12px;
  }
  .three-steps .workflow-number { grid-row: span 2; margin: 0; }
  .three-steps h3 { margin-bottom: 5px; }
  .final-cta .button-row { align-items: stretch; }
}
@media print {
  .detail-hero ~ .section:not(.format-catalog), .detail-hero, .final-section { padding-block: 15px; }
}
