@charset "UTF-8";

/* Café con Pan: una capa visual compartida por el catálogo y las aulas. */
.access-label{display:table;margin:10px 0 14px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;font-size:13px;line-height:1.5;font-weight:600;color:var(--green)}
.access-account{background:var(--mint)}
.header-inner nav .nav-account{white-space:nowrap}
@media(max-width:720px){.header-inner nav .nav-help{display:none}.header-inner nav .nav-account{font-size:14px}}
:root {
  --ink: #35291f;
  --muted: #655b50;
  --green: #285a46;
  --green-dark: #1c4032;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --line: #ded4c4;
  --mint: #edf1e5;
  --coral: #96552f;
  --gold: #e2ba70;
  --coffee: #453126;
  --bread: #ead7b4;
  --radius: 20px;
  --shadow: 0 12px 34px rgb(69 49 38 / 6%);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

body {
  font-size: 16px;
  line-height: 1.7;
  background: radial-gradient(ellipse at 94% 0, #eddfc9 0, transparent 45rem), var(--cream);
}

.container { max-width: 1200px; }
.hero > *, .course-card > *, .course-intro > *, .course-information > *,
.how-section > *, .cafe-note > *, .lesson-content, .course-series > div { min-width: 0; }
h1, h2, h3 { color: var(--ink); }
a, button, summary { -webkit-tap-highlight-color: rgb(40 90 70 / 12%); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}
.eyebrow, .category { font-size: 11px; letter-spacing: 1.5px; line-height: 1.7; }
.tiny-dot { width: 7px; height: 7px; background: #b6813d; }

/* Marca y bienvenida editorial. */
.site-header { height: auto; min-height: 96px; background: var(--paper); }
.header-inner { min-height: 96px; gap: 24px; }
.brand { gap: 11px; flex-shrink: 0; }
.brand-mark { background: var(--green); box-shadow: 0 4px 12px rgb(40 90 70 / 10%); }
.brand-name { color: var(--green-dark); font-size: 27px; }
.brand-name > span { color: var(--muted); font-size: 10px; letter-spacing: 2.7px; }
.header-inner nav { font-size: 15px; gap: 28px; }
.header-inner nav a { padding-block: 12px; }
.header-note { display: flex; color: var(--coffee); font-size: 14px; white-space: nowrap; }
.header-note .icon { width: 18px; height: 18px; color: var(--coral); }
.skip-link { background: var(--green-dark); }
.hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px;
  padding-block: 56px 64px;
}
.hero h1 {
  font: 400 clamp(48px, 6.1vw, 80px)/1.07 Georgia, "Times New Roman", serif;
  letter-spacing: -2px;
  margin: 24px 0 26px;
}
.hero h1 em { color: var(--green); font-weight: 400; }
.hero-copy > p { max-width: 500px; font-size: 18px; line-height: 1.85; margin-bottom: 30px; }
.hero-details { font-size: 14px; flex-wrap: wrap; gap: 12px 24px; margin-top: 23px; }
.hero-details .icon { color: var(--green); width: 17px; height: 17px; }
.hero-art {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  padding: 16px 16px 66px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.art-label { margin: 1px 0 13px; color: var(--coffee); font-size: 11px; letter-spacing: 1.4px; }
.art-label .icon { color: var(--coral); width: 16px; height: 16px; }
.hero-photo-wrap { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 130px 130px 12px 12px; background: var(--bread); }
.hero-photo-wrap img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; }
.art-caption {
  left: 24px;
  right: 24px;
  bottom: 16px;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgb(69 49 38 / 8%);
}
.caption-icon { flex-shrink: 0; background: var(--mint); width: 38px; height: 38px; }
.art-caption strong { font-size: 15px; line-height: 1.5; }
.art-caption div > span { font-size: 13px; line-height: 1.6; margin-top: 2px; }
.benefit-strip { background: #eee7d9; border-color: var(--line); }
.benefit-strip .container { font-size: 14px; gap: 20px; padding-block: 23px; }
.benefit-strip .container > span:first-child { font: italic 20px/1.5 Georgia, serif; }
.benefit-strip .icon { color: var(--green); width: 18px; height: 18px; }

/* Cursos con espacio suficiente para leer títulos y descripciones. */
.catalog { padding-block: 66px 72px; }
.section-heading { gap: 24px; align-items: flex-end; margin-bottom: 18px; }
.section-heading h2, .how-intro h2, .objectives h2 { font-family: Georgia, "Times New Roman", serif; }
.section-heading h2 { font-size: clamp(34px, 3.8vw, 46px); line-height: 1.15; max-width: none; }
.count-label { font-size: 14px; line-height: 1.6; max-width: none; }
.catalog-intro { max-width: 650px; margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.topic-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; gap: 18px; margin-bottom: 48px; }
.topic-link { display: flex; align-items: center; gap: 16px; padding: 21px 24px; border: 1px solid #c6cdb8; border-radius: 12px; background: var(--mint); color: var(--green-dark); text-decoration: none; }
.topic-link > span:nth-child(2) { flex: 1; min-width: 0; }
.topic-link strong { display: block; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.topic-link small { display: block; font-size: 14px; font-weight: 400; margin-top: 3px; color: var(--muted); }
.topic-link:hover { background: #e5ebda; color: var(--green-dark); text-decoration: none; border-color: var(--green); }
.topic-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; background: var(--paper); border-radius: 50%; }
.topic-icon .icon { width: 21px; height: 21px; }
.topic-link > .icon { width: 18px; height: 18px; }
.catalog-topic { scroll-margin-top: 24px; }
.catalog-topic + .catalog-topic { margin-top: 64px; }
.topic-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 26px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.topic-heading > div { min-width: 0; }
.topic-heading h3 { font: 400 clamp(29px, 3vw, 36px)/1.2 Georgia, serif; margin: 8px 0 13px; letter-spacing: -.5px; }
.topic-heading p { max-width: 690px; margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
.topic-count { flex-shrink: 0; padding: 5px 12px; border: 1px solid #c6cdb8; border-radius: 20px; background: var(--mint); font-size: 14px; color: var(--green-dark); }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgb(69 49 38 / 3%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.course-grid .course-card + .course-card { margin-top: 0; }
.course-card:hover { border-color: #bdad95; box-shadow: var(--shadow); transform: translateY(-3px); }
.course-card:focus-within { border-color: var(--green); }
.course-image {
  height: 252px;
  min-height: 0;
  padding: 52px 24px 20px;
  background: #eee5d4;
  border-bottom: 1px solid var(--line);
}
.course-card:nth-child(2n) .course-image { background: #e9edde; }
.course-card:nth-child(3n) .course-image { background: #efe3d3; }
.course-image img { width: 100%; height: 100%; padding: 0; object-fit: contain; }
.image-tag {
  top: 17px;
  left: 24px;
  padding: 5px 10px;
  background: var(--paper);
  border: 1px solid #d3c5ad;
  border-radius: 5px;
  color: var(--coffee);
  font-size: 10px;
  letter-spacing: 1.1px;
}
.course-number { position: absolute; top: 9px; right: 24px; color: #765936; font: italic 29px/1.4 Georgia, serif; }
.course-card-copy { display: flex; flex-direction: column; flex: 1; padding: 29px 32px 32px; }
.course-card h4 { max-width: none; font: 400 31px/1.22 Georgia, serif; letter-spacing: -.5px; margin: 12px 0 16px; overflow-wrap: anywhere; }
.course-card h4 a:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.course-card-copy > p { max-width: none; flex: 1; font-size: 16px; line-height: 1.8; margin-bottom: 0; }
.course-meta { font-size: 14px; line-height: 1.6; gap: 12px 18px; margin-block: 23px; }
.course-meta .icon { width: 16px; height: 16px; }
.level-label { background: var(--mint); border-radius: 5px; }
.series-label { font-size: 13px; color: var(--green); }
.card-progress { font-size: 14px; }
.course-card .button { width: 100%; justify-content: space-between; min-height: 48px; }
.button, .hero .button, .lesson-navigation .button, .quiz .check-answer, .dialog-actions .button {
  max-width: 100%;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  gap: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.button .icon { width: 18px; height: 18px; flex-shrink: 0; }
.primary { background: var(--green); border-color: var(--green); color: #fffdf6; }
.primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); }
.secondary { border-color: #b8c2aa; background: transparent; color: var(--green-dark); }
.secondary:hover:not(:disabled) { background: var(--mint); border-color: var(--green); }

/* La pausa de café conecta el catálogo con la explicación del recorrido. */
.cafe-note {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .65fr);
  align-items: center;
  gap: 48px;
  width: calc(100% - 72px);
  max-width: 1128px;
  padding: 42px 46px;
  margin: 0 auto 56px;
  border-radius: 22px;
  background: var(--coffee);
  color: #fff8eb;
}
.cafe-note .eyebrow { color: var(--gold); }
.cafe-note-copy h2 { color: #fff8eb; font: 400 clamp(30px, 3.6vw, 43px)/1.2 Georgia, serif; letter-spacing: -.6px; margin: 12px 0 18px; }
.cafe-note-copy p { max-width: 620px; margin-bottom: 0; color: #efdfc8; font-size: 17px; line-height: 1.85; }
.cafe-note .back-link { color: var(--gold); margin-top: 16px; }
.cafe-note .back-link:hover { color: #fff8eb; text-decoration: underline; text-underline-offset: 5px; }
.cafe-note-art { min-width: 0; display: grid; place-items: center; }
.cafe-note-art img, .cafe-note-art svg { width: 100%; max-width: 290px; height: auto; }
.how-section { background: var(--mint); border: 1px solid #d6ddca; padding: 44px 46px; gap: 34px 70px; margin-bottom: 64px; }
.how-intro h2 { font-size: 40px; line-height: 1.15; }
.how-intro p, .how-steps p { font-size: 16px; line-height: 1.8; }
.how-steps { gap: 26px; }
.how-steps article > span { flex-shrink: 0; font-size: 30px; color: #785d32; }
.how-steps h3 { font-size: 17px; line-height: 1.5; }
.storage-note, .how-section > .storage-note { font-size: 15px; line-height: 1.75; }
.how-section > .storage-note { border-color: #ced6c2; }
.storage-note .icon { flex-shrink: 0; width: 18px; height: 18px; }

/* Presentación del curso y navegación entre cursos de una serie. */
.course-overview { padding-block: 34px 58px; }
.back-link { min-height: 44px; font-size: 15px; color: var(--green); }
.course-intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 54px; padding-block: 36px 48px; }
.course-intro h1 { font-size: clamp(37px, 4.3vw, 56px); line-height: 1.12; letter-spacing: -1px; overflow-wrap: anywhere; }
.lead, .course-intro .lead { font-size: 17px; line-height: 1.85; }
.small-note { font-size: 15px; line-height: 1.75; }
.overview-art { padding: 18px; background: #eee6d7; border: 1px solid var(--line); border-radius: 22px; }
.overview-art img { width: 100%; height: auto; object-fit: contain; }
.course-information { gap: 54px; border-color: var(--line); }
.objectives h2 { font-size: 34px; }
.objectives li { font-size: 16px; line-height: 1.8; }
.objectives li .icon { flex-shrink: 0; }
.soft-note { background: #eee8db; border-radius: 12px; padding: 23px; }
.soft-note strong { font-size: 16px; }
.soft-note p { font-size: 15px; line-height: 1.8; }
.syllabus { background: var(--paper); border-color: var(--line); border-radius: 16px; }
.syllabus-heading { padding: 24px; gap: 18px; }
.syllabus-heading h2 { font: 400 24px/1.3 Georgia, serif; }
.syllabus-heading > span { font-size: 14px; }
.syllabus li > a { padding: 20px 24px; }
.syllabus li > a > div { min-width: 0; }
.syllabus li > a:hover { background: #f4eedf; }
.syllabus strong { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.syllabus li > a > div > span { font-size: 14px; line-height: 1.75; }
.lesson-number { width: 32px; height: 32px; font-size: 13px; border-color: #cbbfa9; }
.lesson-duration { font-size: 13px; }
.is-complete .lesson-number { border-color: var(--green); background: var(--green); }
.overview-progress label, .lesson-sidebar > label { font-size: 14px; line-height: 1.6; }
progress, progress::-webkit-progress-bar { background: #e6dece; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.course-series { background: #eee9dc; border-color: var(--line); border-radius: 16px; }
.course-series h2 { font-size: 28px; }
.course-series p { font-size: 16px; line-height: 1.8; }
.series-next, .series-courses { border-color: #cfc4b1; }
.series-next > span, .series-next small, .series-courses span { font-size: 14px; }
.series-next strong, .series-courses strong { font-size: 16px; line-height: 1.6; }
.series-courses a { border-color: #cfc4b1; background: #f8f4eb; }
.series-courses a:hover, .series-courses a[aria-current] { background: var(--paper); border-color: var(--green); }
.lesson-content .series-next, .lesson-content .series-courses { border-color: #cfc4b1; }
.course-continuation .button { max-width: 100%; margin-top: 16px; }

/* El mismo papel cálido acompaña las lecciones y las actividades. */
.classroom { grid-template-columns: 260px minmax(0, 1fr); gap: 38px; padding-block: 35px 65px; }
.lesson-sidebar h2 { font-size: 27px; line-height: 1.35; }
.lesson-sidebar strong { font-size: 15px; line-height: 1.6; }
.lesson-sidebar li > a > div { min-width: 0; }
.lesson-sidebar li > a > div > span { font-size: 13px; }
.lesson-sidebar li > a:hover { background: #ece6d8; }
.lesson-sidebar li.current > a { background: #e7ecdd; box-shadow: inset 3px 0 var(--green); }
.sidebar-note { font-size: 15px; line-height: 1.8; }
.lesson-content { max-width: 790px; padding: 38px 40px; background: var(--paper); border-color: var(--line); border-radius: 20px; box-shadow: 0 6px 28px rgb(69 49 38 / 3%); }
.lesson-kicker { flex-wrap: wrap; }
.lesson-kicker > span:last-child { font-size: 14px; }
.lesson-content h1 { font-size: clamp(32px, 3.1vw, 42px); line-height: 1.2; letter-spacing: -.6px; overflow-wrap: anywhere; }
.lesson-description { font-size: 16px; line-height: 1.8; }
.lesson-paragraph { font-size: 17px; line-height: 1.9; color: #4e463c; }
.lesson-figure img { background: #f5f0e5; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; }
figcaption { font-size: 14px; line-height: 1.75; }
.callout { background: var(--mint); border-color: var(--green); border-radius: 0 12px 12px 0; padding: 24px; }
.callout > span { flex-shrink: 0; }
.callout > div { min-width: 0; }
.callout h2 { font-size: 17px; line-height: 1.5; }
.callout p { font-size: 16px; line-height: 1.85; color: #4d5945; }
.practice-card { margin-block: 28px; padding: 24px; border: 1px solid #ccd7bc; border-radius: 16px; background: var(--mint); min-width: 0; }
.practice-card h2 { margin-bottom: 12px; font: 400 24px/1.35 Georgia, serif; }
.practice-card > p { font-size: 16px; line-height: 1.85; color: #4d5945; overflow-wrap: anywhere; }
.practice-card textarea { display: block; width: 100%; max-width: 100%; min-height: 150px; resize: vertical; margin-bottom: 16px; padding: 16px; border: 1px solid #cdbfa8; border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.8; }
.practice-card .button { min-height: 48px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 16px; background: var(--paper); }
.practice-card [data-copy-status] { margin-top: 14px; margin-bottom: 0; font-size: 15px; }
.practice-card [data-copy-status]:empty { display: none; }
.quiz { padding: 28px; background: #f4f1e7; border-color: #d8cbb6; border-radius: 16px; }
.quiz .eyebrow { font-size: 11px; letter-spacing: 1.4px; }
.quiz legend { font-size: 18px; line-height: 1.65; }
.answer-option { align-items: flex-start; padding: 16px; gap: 12px; background: var(--paper); border-color: #d5cab7; font-size: 16px; line-height: 1.75; border-radius: 9px; }
.answer-option > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.answer-option input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--green); }
.option-letter { font-size: 13px; line-height: 1.75; margin-top: 1px; }
.answer-option:hover { background: #fbf7ed; border-color: var(--green); }
.answer-option:has(input:checked) { background: #e9efdf; border-color: var(--green); box-shadow: inset 3px 0 var(--green); }
.answer-option:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.quiz .check-answer { background: var(--paper); }
.quiz-feedback { background: #fff0d8; border-color: #cdae76; padding: 20px; }
.quiz-feedback.is-correct { background: #e9efdf; border-color: #b2c29f; }
.quiz-feedback strong { font-size: 16px; }
.quiz-feedback p { font-size: 16px; line-height: 1.8; color: #4f4b3b; }
.completion-hint { font-size: 15px; line-height: 1.75; }
.mobile-syllabus, .mobile-syllabus li > a { font-size: 15px; line-height: 1.75; }
.mobile-syllabus li > a { padding-block: 12px; }
.lesson-video video { background: #eee6d7; }
.youtube-player { background: var(--coffee); }
.lesson-video details { background: #f0eadc; font-size: 16px; line-height: 1.85; padding: 18px; }
.lesson-video details p { font-size: 16px; }
.lesson-video summary { line-height: 1.6; }
.video-source { font-size: 15px; }
.takeaways li { font-size: 16px; line-height: 1.85; padding-block: 16px; }
.takeaways li > span { min-width: 0; overflow-wrap: anywhere; }
.takeaways .icon { flex-shrink: 0; }
.reflection label { font-size: 18px; line-height: 1.5; }
.reflection > p { font-size: 16px; line-height: 1.85; }
.reflection textarea { background: #fffefa; border-color: #cdbfa8; font-size: 16px; line-height: 1.8; padding: 17px; min-height: 150px; }
.reflection textarea::placeholder { color: #766c5d; opacity: 1; }
.reflection .small-note { font-size: 15px; }
.lesson-resources h2 { font-size: 28px; }
.lesson-resources a { font-size: 16px; line-height: 1.85; }
.lesson-resources li { padding-left: 3px; }

/* Resultados, mensajes y pie conservan la misma identidad. */
.result-card { background: var(--paper); border-color: var(--line); padding: 48px; box-shadow: var(--shadow); }
.result-symbol { background: #eee1c7; color: var(--green); }
.result-card h1 { font-size: clamp(35px, 4vw, 48px); line-height: 1.2; }
.result-card > .lead { font-size: 17px; line-height: 1.8; }
.result-course { font-size: 16px; line-height: 1.7; }
.result-stats { background: #f0eadb; padding: 28px; }
.result-stats > div:first-child { border-color: #d5c7ae; }
.result-stats strong { font-size: 39px; color: var(--green); }
.result-stats span { font-size: 15px; line-height: 1.7; }
.review-answers h2 { font-size: 34px; }
.review-answers h3 { font-size: 17px; line-height: 1.7; }
.review-answers p { font-size: 16px; line-height: 1.8; }
.text-button { font-size: 15px; color: var(--green); min-height: 44px; }
.reset-dialog { background: var(--paper); border-color: var(--line); }
.reset-dialog::backdrop { background: rgb(53 41 31 / 55%); }
.reset-dialog p, .empty-state p { font-size: 16px; line-height: 1.8; }
.empty-state { background: var(--paper); border-color: var(--line); }
.storage-warning { background: #fff0d8; border-color: #cdae76; font-size: 15px; line-height: 1.75; box-shadow: var(--shadow); }
.site-footer { background: #eee8dc; padding-block: 34px; }
.footer-inner { font-size: 14px; line-height: 1.75; }
.footer-inner strong { font-size: 16px; color: var(--green-dark); }
.footer-inner > a { font-size: 15px; min-height: 44px; }
.footer-country { display: block; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }

@media (min-width: 1440px) {
  .hero { padding-block: 64px 72px; }
  .hero-art { margin-inline: auto; }
}

@media (max-width: 1000px) {
  .container { padding-inline: 28px; }
  .header-note { display: none; }
  .hero { gap: 36px; }
  .hero h1 { font-size: 60px; }
  .hero-copy > p { font-size: 17px; }
  .benefit-strip .container > span:first-child { display: none; }
  .benefit-strip .container { justify-content: center; flex-wrap: wrap; }
  .course-grid { gap: 24px; }
  .course-card-copy { padding: 28px; }
  .cafe-note { width: calc(100% - 56px); gap: 28px; padding: 36px; }
  .how-section { margin-inline: 28px; padding: 36px; gap: 36px; }
  .course-intro { gap: 36px; }
  .course-information { gap: 34px; }
  .classroom { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
  .lesson-content { padding: 30px; }
  .lesson-navigation { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .course-image { height: auto; min-height: 290px; border-bottom: 0; border-right: 1px solid var(--line); }
  .course-card-copy > p { flex: none; }
  .course-card .course-meta { margin-top: auto; padding-top: 20px; }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 44px 50px; gap: 38px; }
  .hero h1 { font-size: clamp(48px, 7.6vw, 62px); }
  .hero-copy > p { max-width: 620px; }
  .hero-art { max-width: 390px; }
  .cafe-note { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cafe-note-art img, .cafe-note-art svg { max-width: 235px; }
}

@media (max-width: 720px) {
  .container { padding-inline: 22px; }
  .site-header { min-height: 82px; }
  .header-inner { min-height: 82px; gap: 16px; padding-block: 14px; }
  .brand-name { font-size: 24px; }
  .brand-name > span { font-size: 9px; letter-spacing: 2.1px; }
  .header-inner nav { font-size: 14px; gap: 18px; }
  .nav-help { display: inline; }
  .hero .eyebrow, .section-heading .eyebrow, .lesson-kicker .eyebrow,
  .quiz .eyebrow, .result-card .eyebrow { font-size: 11px; letter-spacing: 1.2px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-copy > p { font-size: 17px; }
  .hero .button { font-size: 15px; }
  .hero-details { font-size: 14px; }
  .art-caption { left: 20px; right: 20px; }
  .benefit-strip .container { font-size: 13px; gap: 12px 22px; }
  .catalog { padding-block: 44px 46px; }
  .section-heading { gap: 16px; align-items: flex-start; }
  .section-heading h2 { font-size: 35px; max-width: none; }
  .count-label { font-size: 13px; max-width: 90px; }
  .catalog-intro { font-size: 16px; margin-bottom: 27px; }
  .topic-nav { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 36px; }
  .topic-link { padding: 18px; gap: 12px; }
  .topic-link strong { font-size: 16px; }
  .topic-icon { width: 36px; height: 36px; }
  .topic-heading { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 22px; margin-bottom: 24px; }
  .topic-heading h3 { font-size: 30px; }
  .catalog-topic + .catalog-topic { margin-top: 46px; }
  .course-grid { gap: 24px; }
  .course-card { display: flex; flex-direction: column; }
  .course-image { height: 240px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 50px 20px 18px; }
  .course-image img { height: 100%; padding: 0; }
  .image-tag { left: 20px; top: 16px; font-size: 11px; }
  .course-number { right: 20px; }
  .course-card-copy { padding: 25px; }
  .course-card h4 { font-size: 30px; }
  .course-card-copy > p { font-size: 16px; line-height: 1.85; }
  .course-card .course-meta { margin-top: 22px; padding-top: 0; }
  .course-meta { font-size: 14px; gap: 12px 16px; }
  .cafe-note { width: calc(100% - 44px); padding: 30px; margin-bottom: 34px; }
  .cafe-note-copy h2 { font-size: 35px; }
  .cafe-note-copy p { font-size: 16px; }
  .how-section { margin: 0 22px 44px; padding: 30px; gap: 28px; }
  .how-intro h2 { font-size: 36px; }
  .how-intro h2 br { display: inline; }
  .how-intro p, .how-steps p { font-size: 16px; }
  .how-steps h3 { font-size: 17px; }
  .how-section > .storage-note { font-size: 15px; }
  .course-overview { padding-block: 24px 40px; }
  .course-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 34px; }
  .course-intro h1 { font-size: 38px; }
  .course-intro .lead { font-size: 16px; }
  .overview-art { padding: 16px; }
  .course-information { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .objectives li { font-size: 16px; }
  .syllabus-heading { padding: 20px; }
  .syllabus li > a { padding: 19px 18px; gap: 12px; }
  .syllabus strong { font-size: 15px; }
  .syllabus li > a > div > span { font-size: 14px; }
  .course-series { padding: 24px; grid-template-columns: minmax(0, 1fr); }
  .course-series h2 { font-size: 27px; }
  .course-series p, .series-courses strong { font-size: 16px; }
  .classroom { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 24px 42px; }
  .lesson-content { padding: 26px 24px; border-radius: 16px; }
  .lesson-content h1 { font-size: 34px; }
  .lesson-description, .lesson-paragraph { font-size: 16px; line-height: 1.85; }
  .lesson-kicker > span:last-child { font-size: 13px; }
  .callout { padding: 21px 18px; gap: 12px; }
  .callout h2 { font-size: 17px; }
  .callout p { font-size: 16px; }
  .practice-card { padding: 20px 18px; }
  .practice-card h2 { font-size: 22px; }
  .practice-card textarea { padding: 14px; }
  .practice-card .button { width: 100%; }
  .quiz { padding: 22px 18px; }
  .quiz legend { font-size: 17px; }
  .answer-option { padding: 14px 12px; font-size: 15px; gap: 10px; }
  .quiz .check-answer { font-size: 15px; }
  .quiz-feedback p { font-size: 16px; }
  .lesson-navigation .button { font-size: 15px; }
  .completion-hint { font-size: 15px; }
  .takeaways li, .reflection > p, .lesson-video details, .lesson-resources a { font-size: 16px; }
  .reflection textarea { font-size: 16px; }
  .result-card { padding: 34px 24px; }
  .result-card > .lead { font-size: 16px; }
  .result-stats { padding: 24px 20px; }
  .result-stats span { font-size: 15px; }
  .review-answers p, .reset-dialog p, .storage-warning { font-size: 16px; }
  .footer-inner { font-size: 14px; gap: 20px; }
  .footer-inner > a { font-size: 15px; }
}

@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; gap: 10px 12px; }
  .header-inner nav { order: 3; width: 100%; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 4px; }
  .header-note { display: flex; order: 2; margin-left: auto; font-size: 12px; gap: 6px; }
  .header-note .icon { width: 16px; height: 16px; }
  .hero h1 { font-size: clamp(43px, 10vw, 51px); }
  .hero-art { max-width: 345px; }
  .hero .button { width: 100%; justify-content: space-between; }
  .section-heading { flex-wrap: wrap; gap: 10px; }
  .count-label { max-width: none; text-align: left; padding-bottom: 0; }
  .cafe-note-copy h2 { font-size: 32px; }
  .cafe-note-art img, .cafe-note-art svg { max-width: 205px; }
  .lesson-content .course-series { padding: 20px; }
  .course-continuation .button { width: 100%; justify-content: space-between; }
  .result-stats { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .result-stats > div:first-child { border-right: 0; border-bottom: 1px solid #d5c7ae; padding-bottom: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 360px) {
  .container { padding-inline: 18px; }
  .brand-name { font-size: 22px; }
  .brand-name > span { font-size: 9px; letter-spacing: 1.5px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .9px; }
  .hero h1 { font-size: 43px; }
  .hero-art { padding: 12px 12px 74px; }
  .art-caption { left: 14px; right: 14px; bottom: 14px; padding: 13px; gap: 9px; }
  .art-caption div > span { font-size: 12px; }
  .course-card-copy { padding: 23px 20px; }
  .course-card h4 { font-size: 28px; }
  .cafe-note { width: calc(100% - 36px); padding: 25px 22px; }
  .how-section { margin-inline: 18px; padding: 25px 22px; }
  .classroom.container { padding-inline: 12px; }
  .lesson-content { padding: 22px 16px; }
  .lesson-content h1 { font-size: 31px; }
  .quiz { padding: 20px 14px; }
  .answer-option { gap: 8px; padding: 13px 10px; }
  .callout { padding: 20px 15px; gap: 10px; }
  .syllabus li > a { flex-wrap: wrap; }
  .syllabus li > a > div { flex-basis: calc(100% - 48px); }
  .syllabus .lesson-duration { margin-left: 44px; }
  .result-card { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover:not(:disabled), .course-card:hover { transform: none; }
}
