/* Curso NQ · catálogo y lector */
.course { display: flex; flex-direction: column; gap: 16px; min-width: 0; color: #eeede7; }
.course * { box-sizing: border-box; min-width: 0; }
.course p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.course h1, .course h2 { margin: 0; overflow-wrap: anywhere; }
.course button { font: inherit; color: inherit; cursor: pointer; }
.course button:focus-visible, .course summary:focus-visible { outline: 2px solid #9ce3d1; outline-offset: 2px; }

.course-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.course-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9ce3d1; }
.course-lead { color: rgba(238, 237, 231, .78); }
.course-section { margin-top: 8px; }
.course-link { padding: 6px 0; background: none; border: 0; color: #9ce3d1; text-decoration: underline; text-underline-offset: 3px; }
.course-back { align-self: flex-start; text-decoration: none; }

/* Sesión en pausa */
.course-session { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #1b1d1a; border: 1px solid rgba(156, 227, 209, .4); border-radius: 10px; font-size: 14px; }
.course-session span { overflow-wrap: anywhere; }
.course-session-btn { flex: none; padding: 8px 12px; background: #9ce3d1; border: 0; border-radius: 8px; color: #11120f; font-weight: 600; }

/* Continúa */
.course-continue { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; background: #1b1d1a; border: 1px solid rgba(156, 227, 209, .28); border-radius: 12px; }
.course-continue p { color: rgba(238, 237, 231, .78); }

.course-btn { width: 100%; min-height: 46px; padding: 12px 16px; background: #9ce3d1; border: 1px solid #9ce3d1; border-radius: 10px; color: #11120f; font-weight: 600; text-align: center; }
.course-continue .course-btn { width: auto; margin-top: 4px; }
.course-btn.is-ghost { background: transparent; color: #9ce3d1; }
.course-btn.is-done { background: transparent; border-color: rgba(238, 237, 231, .25); color: rgba(238, 237, 231, .7); cursor: default; }

/* Bloques desplegables */
.course-module { border: 1px solid rgba(238, 237, 231, .14); border-radius: 12px; background: #161815; }
.course-module summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px; cursor: pointer; list-style: none; }
.course-module summary::-webkit-details-marker { display: none; }
.course-module summary::after { content: '+'; flex: none; color: #9ce3d1; }
.course-module[open] summary::after { content: '–'; }
.course-module-title { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.course-module-count { flex: none; font-size: 12px; color: rgba(238, 237, 231, .6); }
.course-module-desc { padding: 0 14px 10px; font-size: 14px; color: rgba(238, 237, 231, .72); }

.course-rows, .course-future-list, .course-future-lessons, .course-keys ul { margin: 0; padding: 0; list-style: none; }
.course-row { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 14px; background: none; border: 0; border-top: 1px solid rgba(238, 237, 231, .1); text-align: left; }
.course-row-title { overflow-wrap: anywhere; }
.course-row-meta { font-size: 12px; color: rgba(238, 237, 231, .6); }
.course-row.is-pending .course-row-title { color: rgba(238, 237, 231, .55); }
.course-read { color: #9ce3d1; }

.course-future-list > li { padding: 12px 14px; border-top: 1px solid rgba(238, 237, 231, .1); }
.course-future-list p, .course-future-lessons { margin-top: 4px; font-size: 14px; color: rgba(238, 237, 231, .65); }
.course-future-lessons li { padding: 2px 0; }

/* Lector */
.course-visual { margin: 0; border-radius: 12px; overflow: hidden; }
.course-visual video { display: block; width: 100%; height: auto; background: #000; }
.course-visual figcaption { padding-top: 6px; font-size: 12px; color: rgba(238, 237, 231, .6); }
.course-body { display: flex; flex-direction: column; gap: 12px; }
.course-detail .course-body { padding: 0 14px 14px; }
.course-keys { padding: 14px; border-left: 3px solid #9ce3d1; background: #161815; border-radius: 0 10px 10px 0; }
.course-keys ul { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.course-keys li { line-height: 1.5; overflow-wrap: anywhere; }
.course-fix { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid rgba(238, 237, 231, .14); border-radius: 12px; }
.course-fix strong { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9ce3d1; }
.course-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.course-note { font-size: 12px; color: rgba(238, 237, 231, .6); }

/* Root: preserve text contrast against mint despite the inherited button rule. */
.course .course-btn,.course .course-session-btn{color:#11120f}
.course .course-btn.is-ghost,.course .course-link{color:#9ce3d1}
.course .course-btn.is-done{color:rgba(238,237,231,.7)}
.course-module-count{white-space:normal;text-align:right;max-width:32%}
@media(max-width:420px){.course-session{align-items:flex-start}.course-session-btn{max-width:45%;white-space:normal}}
#app-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#app-nav button{white-space:nowrap}
.course-visual video{max-height:64vh;object-fit:contain}

/* The four-tab course navigation remains visible in guided views: share its occupied height. */
@media (max-width: 999px) {
  body, body.g-session {
    --nq-nav-clearance: var(--nq-nav-block-size);
    --nq-dock-safe-bottom: 0px;
  }
  #app-nav button { width: 100%; }
}

/* Desktop keeps the original side rail: one grid column, full-width buttons. */
@media (min-width: 1000px) {
  #app-nav { grid-template-columns: 1fr; }
  #app-nav button { width: 100%; }
}

/* Scoped course hierarchy/resources; no navigation or clock changes. */
.course-status{color:#9ce3d1;font-weight:600}
.course-actions>.course-link{min-height:44px;text-align:left;align-self:stretch}
.course-catalog-summary{display:flex;flex-direction:column;gap:6px}
.course-catalog-summary>p{font-size:13px;color:rgba(238,237,231,.65)}
.course-resources{display:flex;flex-direction:column;gap:10px}
.course-resource-buttons,.course-phases{display:flex;flex-wrap:wrap;gap:8px}
.course-resource-btn,.course-phase-btn{min-height:44px;border:1px solid rgba(156,227,209,.45);border-radius:8px;background:transparent;padding:10px 12px;color:#9ce3d1!important}
.course-resource-btn[aria-expanded="true"],.course-phase-btn[aria-pressed="true"]{background:#9ce3d1;color:#11120f!important}
.course-phases{padding:10px 0}
.course-visual img{display:block;width:100%;height:auto}
.course-resource-btn:focus-visible,.course-phase-btn:focus-visible{outline:2px solid #eeede7;outline-offset:2px}

.course-canonical-player{display:block;width:100%;height:min(760px,78vh);border:0;border-radius:12px;background:#faf9f5}

/* Guided route/readout only. Open syllabus remains an alternative to the recommendation. */
.course-reader-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.course-route-progress{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:rgba(238,237,231,.68)}
.course-route{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0}.course-route-node{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;position:relative;padding:4px 0 24px}.course-route-node:not(:last-child)::before{content:'';position:absolute;top:20px;left:8px;bottom:0;width:1px;background:rgba(156,227,209,.25)}.course-route-dot{width:17px;height:17px;margin-top:5px;border:1px solid rgba(238,237,231,.5);border-radius:50%;background:#11120f;z-index:1}.course-route-node.is-current .course-route-dot{border:4px solid #9ce3d1}.course-route-node.is-read .course-route-dot{background:#9ce3d1;border-color:#9ce3d1}.course-route-node h2{font-size:21px;margin:4px 0}.course-route-node p:not(.course-kicker){font-size:13px;color:rgba(238,237,231,.65)}
.course-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.course-part-btn{border:1px solid rgba(238,237,231,.2);border-radius:8px;background:transparent;min-height:44px;padding:8px 5px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px!important}.course-part-btn[aria-current=step]{border-color:#9ce3d1;color:#9ce3d1}.course-part-btn span{font-size:11px;opacity:.65}.course-part-count{font-size:12px;color:rgba(238,237,231,.6)}.course-reader-footer{display:flex;flex-direction:column;gap:14px;border-top:1px solid rgba(238,237,231,.15);padding-top:14px}.course-part-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.course-part-actions>.course-btn{width:auto;min-width:145px}.course-next-topic{text-align:left;min-height:44px}.course-anatomy-crop{position:relative;aspect-ratio:1;overflow:hidden;background:#faf9f5}.course-anatomy-crop>img{display:block;width:300%;height:100%;max-width:none;object-fit:fill}.course-canonical-player{height:min(620px,65svh)}
@media(max-width:420px){.course{gap:12px}.course-reader-top{gap:8px}.course-lesson h1{font-size:29px}.course-part-actions>.course-btn{min-width:130px}.course-resource-buttons{gap:6px}.course-resource-btn{padding:9px 10px}.course-route-node h2{font-size:20px}}

/* Quiz answers need explicit surfaces; inherited cream text cannot use the native light button. */
.course-quiz-options{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.course .course-quiz-option{appearance:none;display:block;width:100%;min-height:48px;padding:14px 16px;border:1px solid #656b61;border-radius:10px;background:#1b1d1a;color:#eeede7;text-align:left;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.course .course-quiz-option[aria-pressed="true"]{background:#9ce3d1;border-color:#9ce3d1;color:#11120f}
.course .course-quiz-option:focus-visible{outline:2px solid #9ce3d1;outline-offset:3px}

/* Continuous reading is the default; the source schema remains available as a quick guide. */
.course-book{max-width:760px;margin:0 auto;width:100%}.course-book .course-head h1{font-size:clamp(34px,6vw,50px);line-height:1.08;letter-spacing:-.015em}.course-reading-format{display:flex;justify-content:flex-end}.course-book-prose{font-size:18px;line-height:1.75;max-width:66ch}.course-book-prose>p{margin:0 0 1.35em;line-height:1.75}.course-book-prose .course-book-lead{font-size:20px;line-height:1.6;color:#eeede7}.course-book-section{margin:1.8em 0}.course-book-section h2,.course-guide-detail h2{font-size:24px;margin-bottom:12px}.course-book-media{margin:32px 0;padding:18px;border:1px solid rgba(238,237,231,.2);border-radius:12px;background:#161815;display:flex;flex-direction:column;gap:14px}.course-book-media>h2{font-size:21px}.course-book-media>p{font-size:16px;line-height:1.6}.course-book-media .course-resource-btn{align-self:flex-start}.course-book-media [data-course-resource-panel]{width:100%}.course-book-footer{margin-top:26px}.course-chapter-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.course-chapter-nav>.course-link:last-child{text-align:right}.course-optional-review{font-size:15px;color:rgba(238,237,231,.8)}.course-guide-detail{margin-top:22px}.course-guide-detail li{margin-bottom:9px;line-height:1.6}.course-book.is-guide .course-body{margin-bottom:24px}
@media(max-width:420px){.course-book-prose{font-size:17px}.course-book-prose .course-book-lead{font-size:19px}.course-book-media{padding:14px;margin:26px 0}.course-book .course-head h1{font-size:35px}.course-chapter-nav{gap:10px}}

/* Media stay visible; native play coordination pauses siblings without collapsing them. */
.course-book-media video{max-height:65svh;object-fit:contain;background:#000}.course-book-media .course-phases{gap:7px}.course-book-media .course-phase-btn{min-height:44px;white-space:normal;text-align:left}.course-book-media .course-phase-btn>span{font-weight:700}.course-book-media [data-course-resource-panel]{display:block}.course-book-media .course-visual{margin:0}.course-book-media .course-phases:empty{display:none}

@font-face{font-family:NQBookHand;src:url("assets/course/book-master/nq-hand-9f891109c9605b12.woff") format("woff");font-display:swap}
/* Source figures remain independent pixels, vector arrows and editable type. */
.course .course-concept-link{display:inline;min-height:0;padding:0;border:0;border-radius:0;background:none;color:#9ce3d1;font:inherit;line-height:inherit;text-decoration:underline;text-underline-offset:3px;text-align:inherit;vertical-align:baseline}
.course .course-concept-link:focus-visible{outline:2px solid #9ce3d1;outline-offset:3px}
.course-master-heading{margin:2.4em 0 1.1em;border-top:1px solid #4d5249;padding-top:1.3em}
.course-master-heading>p{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#b6bcae;margin-bottom:8px}
.course-master-heading h2{font-size:30px;line-height:1.15}
.course-master-lead{font-size:20px;line-height:1.65;margin-bottom:24px!important}
.course-master-section{scroll-margin-top:90px;margin:1.8em 0}
.course-master-section>h3{font-size:23px;line-height:1.25;margin:0 0 16px}
.course-master-section>p{margin:0 0 1.3em;line-height:1.75}
.course-book-list{padding-left:1.4em;margin:1em 0 1.5em}
.course-book-list>li{margin-bottom:.75em;line-height:1.65}
.course-book-note{font-size:14px;line-height:1.6;color:#b8bdb2;margin:20px 0}
.course-book-index,.course-book-appendices details{border:1px solid #4d5249;border-radius:10px;padding:14px 16px;margin:20px 0}
.course-book-index summary,.course-book-appendices summary{cursor:pointer;min-height:30px;line-height:1.5}
.course-book-index ol{padding-left:1.3em}.course-book-index li{margin:9px 0;font-size:15px;line-height:1.5}
.course-book-table{max-width:100%;overflow:auto;margin:24px 0;border:1px solid #606655;border-radius:8px}
.course-book-table table{border-collapse:collapse;min-width:520px;width:100%;font-size:15px;line-height:1.5}
.course-book-table th,.course-book-table td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid #4d5249;overflow-wrap:normal}
.course-book-table thead{background:#262b23}.course-book-table th{font-weight:650}
.course-book-table tr:last-child>td,.course-book-table tr:last-child>th{border-bottom:0}
.course-book-table:focus-visible{outline:2px solid #9ce3d1;outline-offset:3px}
.course-master-figure{margin:28px 0;max-width:100%}
.course-master-figure>figcaption{font-size:14px;line-height:1.55;color:#c6cbbf;margin-top:10px}
.course-ink-picture{position:relative;width:100%;overflow:hidden;background:#faf9f5}
.course-ink-picture>img{display:block;width:100%;height:100%;object-fit:contain}
.course-ink-picture>.course-ink-overlay{position:absolute;inset:0}
.course-layered-art{display:block;width:100%;height:auto;background:#faf9f5}
.course-ink-sequence{display:grid;gap:14px;background:#faf9f5;padding:12px;color:#151611}
.course-ink-sequence.is-columns-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.course-ink-phase{margin:0;display:flex;flex-direction:column;gap:8px}
.course-ink-phase>figcaption{font-size:15px;line-height:1.35;color:#151611}
.course-ink-phase>figcaption>span{display:block;font-size:13px;margin-top:4px}
.course-book-appendices{border-top:1px solid #4d5249;margin-top:36px;padding-top:22px;font-size:15px;line-height:1.65}
.course-book-appendices h2{font-size:23px}.course-book-appendices h3{font-size:20px;line-height:1.3;margin:24px 0 14px}
.course-book-appendices section>p{margin:16px 0}.course-book-appendices .course-book-table table{font-size:14px}
@media(max-width:420px){.course-master-heading h2{font-size:27px}.course-master-section>h3{font-size:22px}.course-master-lead{font-size:19px}.course-ink-sequence{padding:8px;gap:8px}.course-ink-phase>figcaption{font-size:14px}}

/* Route actions form a group with separate tap targets, including narrow views. */
.course-route-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;margin-top:6px;min-width:0}
.course-route-actions>.course-link{display:inline-flex;align-items:center;min-height:44px;max-width:100%;white-space:normal;text-align:left}
@media(max-width:560px){.course-route-actions{flex-direction:column;align-items:flex-start}}
