/* education track (/education hub, lesson, lab) — docs/design/education-track/design-spec.md §3–§8.
   farfold.css variables only, no new tokens. Tier badges never use red/green (risk/repair tones). */

/* .state-block/.btn/.card set display, which beats the hidden attribute */
.edu-hub [hidden], #edu-lesson [hidden], #edu-lab [hidden] { display: none !important; }

.edu-head { padding: var(--space-6) 0 var(--space-2); }
.edu-head h1 { margin: 0 0 var(--space-2); font-size: 30px; line-height: 42px; letter-spacing: -0.01em; }
.edu-lede { font-size: 16px; line-height: 26px; color: var(--color-text-secondary); max-width: 68ch; margin: var(--space-2) 0 0; }
.edu-narrow { max-width: 820px; }
.edu-crumbs { color: var(--color-text-secondary); margin: var(--space-2) 0 0; }
.edu-crumbs a, .edu-link { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="black"] .edu-crumbs a, [data-theme="black"] .edu-link { color: var(--color-text-primary); }
@media (max-width: 720px) { .edu-head h1 { font-size: 24px; line-height: 34px; } }

/* tier badges: 실습 가능 = info, 데이터 필요 = neutral, 개념 = neutral outline */
.badge.tone-info { background: color-mix(in srgb, var(--color-info) 14%, transparent); color: var(--color-text-primary);
  border-color: color-mix(in srgb, var(--color-info) 40%, transparent); }
.badge.edu-tier-concept { background: transparent; border-color: var(--color-border-strong); }

/* hub */
.edu-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.edu-chip { min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.edu-chip:hover { border-color: var(--color-border-strong); color: var(--color-text-primary); }
.edu-chip[aria-pressed="true"] { background: var(--color-primary-soft); color: var(--color-text-primary); border-color: var(--color-primary); border-bottom-width: 2px; }

.edu-grid { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-4);
  grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .edu-grid { grid-template-columns: minmax(0, 1fr); } }
.edu-card { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.edu-card p { margin: 0; }
.edu-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: 28px; }
.edu-order { font-size: 13px; font-weight: var(--weight-ui, 600); color: var(--color-text-secondary); min-width: 2ch; }
.edu-card-title { margin: 0; font-size: 16px; line-height: 24px; }
.edu-card-actions { margin-top: auto !important; padding-top: var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.edu-card-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.edu-tier-reason { font-size: 13px; }
.edu-courses { margin-top: var(--space-10); }

/* lesson */
.edu-section { margin-top: var(--space-8); }
.edu-section h2 { margin: 0 0 var(--space-3); font-size: 20px; line-height: 28px; }
.edu-section h3 { margin: var(--space-5) 0 var(--space-2); font-size: 16px; }
.edu-section p, .edu-section li, .edu-pitfalls dd { font-size: 15px; line-height: 1.7; }
.edu-section ul, .edu-section ol { padding-left: 1.3em; }
.edu-objectives, .edu-practice { margin-top: var(--space-4); }
.edu-objectives ul { margin: 0; }
.edu-pitfalls dt { font-weight: var(--weight-ui, 600); margin-top: var(--space-3); }
.edu-pitfalls dd { margin: var(--space-1) 0 0; color: var(--color-text-secondary); }
.ff-callout > .edu-pitfalls { margin: 0; min-width: 0; }
.edu-pitfalls dt:first-child { margin-top: 0; }
.edu-question details, .edu-figure details, .edu-downloads details, .edu-results + details { margin-top: var(--space-3); }
.edu-question summary, .edu-figure summary, .edu-output summary, .edu-downloads summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--color-primary); }
[data-theme="black"] .edu-question summary, [data-theme="black"] .edu-figure summary,
[data-theme="black"] .edu-output summary, [data-theme="black"] .edu-downloads summary { color: var(--color-text-primary); }
.edu-next { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.edu-links li { margin: var(--space-1) 0; }
.edu-links a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="black"] .edu-links a { color: var(--color-text-primary); }
/* TASK-108: lesson stage label (hub .step-no, small) and the 이전/다음 lesson pager in 다음에 볼 것 */
.s-lhead .ttl > .edu-stage-no { font-size: 13px; line-height: 20px; font-weight: 400; color: var(--color-text-secondary); margin: 0 0 var(--space-2); }
.edu-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; border-top: 1px solid var(--color-border-strong); padding-top: var(--space-4); }
.edu-pager-link { display: flex; flex-direction: column; gap: var(--space-1); min-height: 44px; color: var(--color-text-primary); text-decoration: none; overflow-wrap: anywhere; }
.edu-pager-link > span:last-child { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.edu-pager-link.is-next { grid-column: 2; text-align: right; }
.edu-pager-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (max-width: 600px) { .edu-pager { grid-template-columns: minmax(0, 1fr); } .edu-pager-link.is-next { grid-column: 1; text-align: left; justify-self: start; } }
.edu-progress { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.edu-progress .btn[aria-pressed="true"] { background: var(--color-primary-soft); border-color: var(--color-primary); }

/* lab */
.edu-warnings { margin-top: var(--space-4); border-color: var(--color-border-strong); background: var(--color-surface-elevated); }
.edu-warnings h2 { font-size: 16px; margin: 0 0 var(--space-2); }
.edu-warnings ol { margin: 0; padding-left: 1.3em; }
.edu-warnings li { margin: var(--space-1) 0; line-height: 1.6; }
.edu-strong { font-weight: var(--weight-ui, 600); }
.edu-d1 { margin-top: var(--space-3); }

.edu-lab-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-4); margin-top: var(--space-4); align-items: start; }
@media (max-width: 1023px) { .edu-lab-grid { grid-template-columns: minmax(0, 1fr); } }
.edu-panel-title { font-size: 16px; margin: 0 0 var(--space-3); }
.edu-params fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
.edu-params legend { font-weight: var(--weight-ui, 600); font-size: 13px; margin-bottom: var(--space-2); color: var(--color-text-primary); }
.edu-params .field { margin-bottom: var(--space-3); }
.edu-params .field p { margin: var(--space-1) 0 0; }
.edu-params select, .edu-params input[type=date] { width: 100%; min-height: 44px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-primary); font: inherit; }
.edu-params input[type=number] { min-height: 44px; }
.edu-params input[aria-invalid="true"] { border-color: var(--color-warning); box-shadow: 0 0 0 1px var(--color-warning); }
.edu-err { color: var(--badge-text-warn); font-weight: 600; }
.edu-radios { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.edu-radios legend { width: 100%; }
.edu-radios label, .edu-check label { min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.edu-params input[type=radio], .edu-params input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--color-primary); }
.edu-params input:disabled, .edu-params select:disabled { opacity: 0.56; cursor: not-allowed; }

.edu-output { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.edu-output > [data-edu="ready"]:not([hidden]) { display: flex; flex-direction: column; gap: var(--space-4); }
.edu-skeleton { min-height: 360px;
  background: linear-gradient(100deg, var(--color-surface-elevated) 30%, color-mix(in srgb, var(--color-border) 60%, var(--color-surface-elevated)) 50%, var(--color-surface-elevated) 70%);
  background-size: 200% 100%; animation: tvShimmer var(--motion-dur-shimmer) var(--motion-ease-move) 2; }
.edu-figure { margin: 0; }
.edu-chart { position: relative; height: 360px; }
@media (max-width: 767px) { .edu-chart { height: 240px; } .edu-skeleton { min-height: 240px; } }
.edu-figure .table-scroll { max-height: 320px; overflow-y: auto; }
.edu-results caption { caption-side: top; text-align: left; font-weight: var(--weight-ui, 600); padding: 0 0 var(--space-2); color: var(--color-text-primary); }
.edu-results th[scope="row"], .edu-results td { white-space: nowrap; }
.edu-results th[scope="row"] { font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--color-text-primary); }
.edu-results tr.edu-row-wrong th, .edu-results tr.edu-row-wrong td { font-style: italic; color: var(--color-text-secondary); }
.edu-wrong { margin-top: var(--space-4); }
.edu-notes { margin: var(--space-3) 0 0; padding-left: 1.2em; }
.edu-prev { font-weight: 600; }
.edu-downloads { margin-top: var(--space-6); }
.edu-downloads h2 { font-size: 16px; margin: 0 0 var(--space-3); }
.edu-downloads .btn { min-height: 44px; }

/* approved edu-carousel covers (templates/education/cover.html): theme variant, 4:5 source → centered 16:9 crop */
.edu-cover { margin: var(--space-4) 0 0; max-width: 820px; }
.edu-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: 50% 50%;
  border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); }
.edu-cover .edu-cover-black { display: none; }
[data-theme="black"] .edu-cover .edu-cover-light { display: none; }
[data-theme="black"] .edu-cover .edu-cover-black { display: block; }
.edu-toolkit-card { margin-top: var(--space-6); }
.edu-toolkit-card h2 { margin: var(--space-1) 0 var(--space-2); font-size: 18px; line-height: 26px; }
.edu-toolkit-card p { margin: 0; }

/* toolkit (/education/toolkit) */
#edu-toolkit [hidden] { display: none !important; }
.edu-stages { display: flex; gap: var(--space-2); margin-top: var(--space-4);
  padding: var(--space-2) 0; background: var(--color-bg); overflow-x: auto; scrollbar-width: thin; }
.edu-stages .edu-chip { flex: 0 0 auto; display: inline-flex; align-items: center; text-decoration: none; }
/* TASK-138 #13: at phone width the five stage links wrap, so the last one is no longer cut off at the edge */
@media (max-width: 600px) { .edu-stages { flex-wrap: wrap; overflow-x: visible; } }
.edu-tk-legend { margin: var(--space-2) 0 0; }
.edu-stage { margin-top: var(--space-10); scroll-margin-top: 140px; }
.edu-stage > h2 { margin: 0 0 var(--space-2); font-size: 22px; line-height: 30px; }
.edu-stage > h2 .num { color: var(--color-text-secondary); margin-right: var(--space-1); }
.edu-stage-lede { margin: 0; color: var(--color-text-secondary); max-width: 68ch; }
.edu-tools { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .edu-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .edu-tools { grid-template-columns: minmax(0, 1fr); } }
.edu-tool { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; overflow-wrap: anywhere; }
.edu-tool p { margin: 0; }
.edu-tool h3 { margin: 0; font-size: 16px; line-height: 24px; }
.edu-tool h3 a, .edu-tool dd a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="black"] .edu-tool h3 a, [data-theme="black"] .edu-tool dd a { color: var(--color-text-primary); }
.edu-tool-meta { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.edu-tool dl { margin: 0; font-size: 14px; line-height: 1.6; }
.edu-tool dt { font-weight: var(--weight-ui, 600); font-size: 13px; color: var(--color-text-secondary); margin-top: var(--space-2); }
.edu-tool dd { margin: 0; }
/* "FARFOLD에서 이어서 하기": plain text under a hairline, not a tinted box */
.edu-tk-next { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border); max-width: 72ch; }
.edu-tk-next h3 { margin: 0 0 var(--space-2); font-size: 15px; }
.edu-tk-next h4 { margin: var(--space-4) 0 var(--space-1); font-size: 14px; }
.edu-tk-next p { margin: var(--space-2) 0 0; }
.edu-tk-next ul { margin: var(--space-2) 0 0; padding-left: 1.2em; }
.edu-tk-next .state-block { margin-top: var(--space-2); }
.edu-chip.sm { min-height: 44px; padding: 0 var(--space-3); display: inline-flex; align-items: center; gap: var(--space-1); text-decoration: none; }
.edu-tk-cta { margin-top: var(--space-8); }

/* === visual refresh placement (docs/design/visual-refresh/design-spec.md §2–§5); components live in farfold.css === */
/* anti-AI pass (Wave M): heroes sit on the page instead of a boxed card; one meta line replaces the stat tiles */
.edu-hub .ff-hero, #edu-lab .ff-hero, #edu-lesson .ff-hero, #edu-toolkit .ff-hero {
  margin: var(--space-6) 0 var(--space-4); padding: 0; background: none; border: 0; border-radius: 0; }
.edu-hero-meta { margin: var(--space-4) 0 0; }
.edu-hub time, #edu-lab time, #edu-lesson time, #edu-toolkit time, .edu-nowrap { white-space: nowrap; }
.edu-hero-note { margin: var(--space-3) 0 0; }
.ff-hero .edu-cover { max-width: none; }
.ff-hero .edu-order { font-size: 14px; }
.edu-subhead { margin: 0 0 var(--space-4); font-size: 15px; line-height: 22px; color: var(--color-text-secondary); }

/* hub */
.edu-howto { margin-top: var(--space-8); }
.edu-filterbar { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-2); }
.edu-filterbar .edu-filters { margin-top: 0; }
.edu-count { margin: 0; }
@media (max-width: 720px) {
  .edu-filterbar .edu-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: var(--space-1); }
  .edu-filterbar .edu-chip { flex: 0 0 auto; }
}
[data-edu-filter-empty] { margin-top: var(--space-4); }
.edu-tier { margin-top: var(--space-10); }
@media (max-width: 720px) { .edu-tier { margin-top: var(--space-8); } }
.edu-card .edu-cover { margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) var(--space-1); max-width: none; }
.edu-card .edu-cover img { border: 0; }
.edu-card .edu-card-title a { color: inherit; }
.edu-card .edu-card-actions a, .edu-card .edu-card-actions .edu-link { position: relative; z-index: 1; }
.edu-card.is-link .edu-card-actions .edu-link { z-index: 0; }
/* DATA_NEEDED and CONCEPT tiers: one row per strategy, the whole row is the link (hover = surface tone, no shadow) */
.edu-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.edu-row { position: relative; display: grid; grid-template-columns: 3ch minmax(0, 1fr); gap: var(--space-1) var(--space-4);
  padding: var(--space-4) var(--space-2); border-bottom: 1px solid var(--color-border);
  transition: background-color var(--motion-dur-micro) var(--motion-ease-move); }
.edu-row:hover { background: var(--color-surface); }
.edu-row .edu-order { grid-row: 1 / span 2; line-height: 24px; }
.edu-row-main { min-width: 0; }
.edu-row-main p { margin: var(--space-1) 0 0; color: var(--color-text-secondary); max-width: 68ch; }
.edu-row-meta { grid-column: 2; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.edu-row-link { color: inherit; text-decoration: none; }
.edu-row-link::after { content: ""; position: absolute; inset: 0; }
.edu-row:hover .edu-row-link { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .edu-row { grid-template-columns: 3ch minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .edu-row .edu-order { grid-row: auto; }
  .edu-row-meta { grid-column: 3; justify-content: flex-end; }
}
.edu-toolkit-card .ff-card-link { color: inherit; }

/* lesson: body column + sticky table of contents from 1200px; below that a closed "목차" disclosure */
.edu-lesson { max-width: 1180px; }
.edu-lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.edu-lesson-body { min-width: 0; max-width: 780px; }
.edu-lesson :is(p, li, dd, figcaption) { overflow-wrap: break-word; } .edu-check label > span { min-width: 0; overflow-wrap: anywhere; } /* long test and function names (test_same_result_when_strategy_already_sells) must not push the page sideways on phones */
.edu-toc { display: none; }
.edu-toc-fold { margin-top: var(--space-4); padding: 0 var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.edu-toc-fold summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.edu-toc-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.edu-toc-list a { display: block; padding: var(--space-2) var(--space-3); border-left: 2px solid var(--color-border); color: var(--color-text-secondary);
  text-decoration: none; font-size: 13px; line-height: 20px; transition: color var(--motion-dur-micro) var(--motion-ease-move), border-color var(--motion-dur-micro) var(--motion-ease-move); }
.edu-toc-list a:hover { color: var(--color-text-primary); }
.edu-toc-list a[aria-current] { color: var(--color-text-primary); border-left-color: var(--color-primary); font-weight: var(--weight-ui, 600); }
@media (min-width: 1200px) {
  .edu-lesson-layout { grid-template-columns: minmax(0, 780px) 220px; justify-content: space-between; }
  .edu-toc { display: block; position: sticky; top: 88px; align-self: start; margin-top: var(--space-6); }
  .edu-toc-fold { display: none; }
}
/* lesson reading progress: 2px bar driven by the root scroll timeline (edu-progress.js sets scaleX where unsupported);
   only with no reduced-motion preference */
.edu-readbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .edu-readbar { display: block; position: fixed; inset: 0 0 auto 0; z-index: 41; height: 2px; background: var(--color-primary);
    transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
  @supports (animation-timeline: scroll()) {
    .edu-readbar { animation: edu-read linear both; animation-timeline: scroll(root); }
  }
}
@keyframes edu-read { to { transform: scaleX(1); } }
.edu-principle-steps, .edu-worked, .edu-practice-steps { margin-top: var(--space-5) !important; padding-left: 0 !important; }
.edu-worked .ff-step-body p, .edu-practice-steps .ff-step-body p { color: var(--color-text-primary); }
/* detailed explanation parts read as continuous prose (no box per part) */
.edu-parts { display: grid; grid-template-columns: minmax(0, 1fr); /* code blocks must not widen the column (390px overflow) */ gap: var(--space-5); max-width: 68ch; margin-top: var(--space-8); }
.edu-part h3 { margin: 0 0 var(--space-1); font-size: 16px; line-height: 24px; }
.edu-part p { margin: 0; white-space: pre-line; } /* lesson bodies separate paragraphs with a blank line */
.edu-part-figure { margin-top: var(--space-4); max-width: none; }
.ff-code-pre.is-prose, .ff-code-pre.is-prose code { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; } /* a titled block holds sentences (module 10 checklist): wrap them, a 3500px sideways scroll is unreadable */
.edu-part-code { margin: var(--space-4) 0 0; } /* TASK-110: teaching code under a part; browser figure indent removed */
/* TASK-138 round 2 (spec A-4): one bordered box = title row + the scrolling text; ff-ui.js adds the copy button and its status note */
.edu-part-code { min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.edu-part-code-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); min-height: 44px; padding: 0 var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--color-border); }
.edu-part-code-head .s-meta { padding: var(--space-2) 0; }
.edu-part-code-head .ff-copy-btn { min-height: 44px; margin-left: auto; }
.edu-part-code-head .ff-copy-note.is-wide { order: 1; flex-basis: 100%; padding-bottom: var(--space-2); font-size: 12px; line-height: 16px; color: var(--color-text-secondary); } /* the "could not copy" note takes its own row under the title and button */
.edu-part-code .scroll-hint, .ff-site .edu-part-code .scroll-hint { margin: var(--space-2) var(--space-4) 0; }
.edu-example-chart { margin-top: var(--space-4); }
.edu-data-list { margin: 0; }
.edu-refs { margin-top: var(--space-4); }
.edu-refs summary, .edu-table-fold summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--color-primary); }
[data-theme="black"] .edu-refs summary, [data-theme="black"] .edu-table-fold summary { color: var(--color-text-primary); }
.edu-section .ff-section-head h2 { margin: 0; }

/* lab: walkthrough rail + cell pairs (code 7fr / result 5fr from 1200px) */
.edu-warnings.ff-callout { border-color: var(--color-border-strong); border-left-color: var(--color-warning); }
.edu-warnings.ff-callout h2 { margin-bottom: var(--space-2); }
.edu-walk, .edu-try { margin-top: var(--space-10); }
.edu-walk-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.edu-walk-rail .ff-step { padding-bottom: var(--space-3); }
.edu-walk-rail .ff-step-body h3 { font-size: 14px; line-height: 22px; }
.edu-walk-rail a { text-decoration: none; }
.edu-walk-rail a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }
.edu-walk-rail .ff-steps { display: none; }
@media (min-width: 1200px) {
  .edu-walk-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .edu-walk-rail { position: sticky; top: 88px; align-self: start; }
  .edu-walk-rail .ff-steps { display: block; }
}
.ff-walk-step { padding-top: var(--space-2); scroll-margin-top: 96px; }
.ff-walk-step + .ff-walk-step { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.ff-walk-step > h3 { margin: 0; font-size: 18px; line-height: 26px; }
.ff-walk-why { margin: var(--space-2) 0 var(--space-4); max-width: 70ch; font-size: 15px; line-height: 1.7; color: var(--color-text-secondary); }
.ff-walk-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
/* code and its output stack at every width: side by side both were clipped on the right even at 1440 (critique N7) */
.ff-result .table-scroll th, .ff-result .table-scroll td { white-space: nowrap; }
.ff-walk-pair .ff-code-pre { max-height: 640px; overflow-y: auto; }
.edu-walk-chart + .edu-walk-chart { margin-top: var(--space-4); }
/* TASK-168 lesson run: a long table (seeds 1-50) scrolls inside its box; the header row stays in view */
.ff-result .table-scroll.is-tall { max-height: 440px; overflow-y: auto; }
.ff-result .table-scroll.is-tall thead th { position: sticky; top: 0; z-index: 1; background: var(--color-surface); }
.ff-result .table-scroll.is-tall:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* the lesson column is narrow: no step rail beside a 2-step run */
.edu-run .edu-walk { margin-top: var(--space-6); }
.edu-run .edu-walk-layout { grid-template-columns: minmax(0, 1fr); }
.edu-run .edu-walk-rail { display: none; }
/* TASK-168 lesson clips: never autoplayed, poster first (lesson-standard §3) */
.edu-video { margin: var(--space-6) 0; }
.edu-video video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--color-surface-elevated); }
.edu-video figcaption { margin-top: var(--space-2); }
/* shown until edu-walkthrough.js draws the chart: no JavaScript, or FarfoldChart failed to load */
.ff-chart-fallback { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); }
.ff-chart-fallback[hidden] { display: none; }
.edu-try .edu-lab-grid { margin-top: 0; }
#edu-toolkit .edu-tk-note { margin-top: var(--space-4); }
/* toolkit: books as a compact list, data sources as a table, weeks as plain columns (cards stay for tools only) */
.edu-books { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-5); max-width: 72ch; }
.edu-books h3 { margin: 0; font-size: 16px; line-height: 24px; }
.edu-books p { margin: var(--space-1) 0 0; }
.edu-data-sources { margin-top: var(--space-4); }
.edu-data-sources th[scope="row"] { min-width: 180px; vertical-align: top; font-size: 14px; line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--color-text-primary); }
.edu-data-sources th[scope="row"] .small { display: block; margin-top: var(--space-1); font-weight: 400; }
.edu-data-sources td { min-width: 140px; vertical-align: top; font-size: 13px; line-height: 1.6; }
.edu-data-sources th[scope="row"] a, .edu-data-sources td a, #hub-guide th[scope="row"] a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="black"] .edu-data-sources th[scope="row"] a, [data-theme="black"] .edu-data-sources td a, [data-theme="black"] #hub-guide th[scope="row"] a { color: var(--color-text-primary); }

/* /education hub on the site v8.1 kit (site-kit.css, body.ff-site). Tokens only; the kit owns type and spacing. */
.edu-hub .page-hero { padding-block: var(--space-12) var(--space-6); }
.edu-hub .library-card .edu-path-links a, .edu-hub .library-card .edu-links a { margin-top: 0; padding-top: 0; }
.edu-hub .edu-path-steps, .edu-hub .edu-links, .edu-hub .edu-lesson-list { list-style: none; margin: 0; padding: 0; }
.edu-hub .edu-path-steps { display: grid; gap: var(--space-3); margin-block: var(--space-4); counter-reset: step; }
.edu-hub .edu-path-steps > li { border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.edu-hub .edu-path-links { font-size: 14px; line-height: 1.7; color: var(--color-text-secondary); }
.edu-hub .edu-path-links a { color: var(--color-text-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.edu-hub .edu-links { display: flex; flex-direction: column; margin-top: var(--space-3); }
.edu-hub .edu-links .text-link { min-height: 40px; }
/* TASK-138 1b: the three practice links wrap as a row, so a practice card ends closer to its neighbours */
/* 1d: the card's own gap is the only space above the links, and the three fit one row at desktop width */
.ff-site .edu-hub .lesson-card .edu-links { flex-direction: row; flex-wrap: wrap; gap: 0 var(--space-3); margin-top: 0; }
.ff-site .edu-hub .lesson-card .edu-links li { margin: 0; }
.edu-hub .edu-practice-note { margin-top: var(--space-6); }
.edu-hub .edu-inline-link { text-decoration: underline; text-underline-offset: 3px; }
.edu-hub .edu-subhead { margin-top: var(--space-12); }
.edu-hub .edu-notebooks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.edu-hub .notebook-card { display: flex; flex-direction: column; align-items: flex-start; }
.edu-hub .notebook-card .text-link { margin-top: var(--space-2); }
.edu-hub .chip { background: transparent; color: var(--color-text-primary); }
.edu-hub .edu-row-tags { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-end; }
/* TASK-105 four-stage path (#stage-1..4): one full-width row per stage, cover left and text right; stage 4 (no cover)
   spans the row so its two notebook cards sit side by side. */
.edu-hub .edu-path-stages { display: grid; gap: var(--space-12); margin-top: var(--space-6); }
.edu-hub .edu-stage-card { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; border-top: 2px solid var(--color-text-primary); padding-top: var(--space-6); scroll-margin-top: var(--space-16); }
.edu-hub .edu-stage-card.has-cover { grid-template-columns: minmax(200px, 360px) minmax(0, 1fr); column-gap: var(--space-8); }
.edu-hub .edu-stage-card.has-cover > :not(.cover) { grid-column: 2; }
.edu-hub .edu-stage-card.has-cover > .cover { grid-column: 1; grid-row: 1 / span 6; }
.edu-hub .edu-stage-card > p, .edu-hub .edu-stage-card > h3 { margin: 0 0 var(--space-2); max-width: 68ch; }
/* TASK-106 (unslop pass 5): stage numbers 01–04 as a mono tabular label, not a 40px display number */
.edu-hub .edu-stage-card > .step-no { font-size: 13px; line-height: 20px; font-weight: 400; color: var(--color-text-secondary); margin: 0 0 var(--space-2); }
.edu-hub .edu-stage-card .notebook-card h4 { margin: var(--space-2) 0; font-size: 20px; line-height: 28px; font-weight: 600; }
@media (max-width: 800px) {
  .edu-hub .edu-notebooks { grid-template-columns: 1fr; }
  .edu-hub .edu-row-tags { flex-direction: row; align-items: flex-start; }
  .edu-hub .edu-stage-card.has-cover { grid-template-columns: minmax(0, 1fr); }
  .edu-hub .edu-stage-card.has-cover > :not(.cover), .edu-hub .edu-stage-card.has-cover > .cover { grid-column: 1; grid-row: auto; }
  .edu-hub .edu-stage-card.has-cover > .cover { max-width: 480px; margin-bottom: var(--space-4); }
}
/* TASK-106 (unslop §1-15): at phone width the strategy-map cards fold into rows (same order: tags, title, question, data line, links).
   TASK-138 #11: the cover stays as a 96px thumbnail beside the tags and title; the question, data line and links keep the full width.
   1c: the rows start at tablet width too — two-column cards left a blank under every card shorter than its neighbour. */
@media (max-width: 800px) {
  .ff-site .edu-hub .lesson-cards { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ff-site .edu-hub .lesson-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-2) var(--space-3); padding-block: var(--space-4); }
  .ff-site .edu-hub .lesson-card > * { grid-column: 1 / -1; }
  .ff-site .edu-hub .lesson-card > .edu-row-tags, .ff-site .edu-hub .lesson-card > h3 { grid-column: 2; }
  .ff-site .edu-hub .lesson-card:not(:has(> .cover)) > * { grid-column: 1 / -1; } /* a card whose cover was dropped keeps the full width */
  .ff-site .edu-hub .lesson-card > .cover { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin: 0; border-radius: var(--radius-md); }
  .ff-site .edu-hub .lesson-card h3 { font-size: 17px; }
}

/* TASK-125 course (CP-013): 12 modules on the hub, the lesson's Claude Code prompt and "이 모듈에서 만든 것". Tokens only. */
.ff-site .edu-course-entry { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); margin-top: var(--space-4); }
/* TASK-138 #3: one primary action (the .button.primary look) — "이어 가기" once edu-progress.js reveals it, else module 1; the other entries stay text links */
.edu-course-entry > [data-edu-resume], .edu-course-entry > [data-edu-resume][hidden] + a { justify-content: center; min-height: 48px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); background: var(--kit-ink); color: var(--kit-paper); text-decoration: none !important; }
.edu-course-entry > [data-edu-resume]:hover, .edu-course-entry > [data-edu-resume][hidden] + a:hover { background: var(--color-primary-hover); }
@media (max-width: 600px) { .edu-course-entry > [data-edu-resume], .edu-course-entry > [data-edu-resume][hidden] + a { width: 100%; } }
.edu-course { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.edu-module { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--kit-rule-strong); word-break: keep-all; }
.edu-module.is-soon { border-top: 1px dashed var(--kit-rule-strong); color: var(--kit-copy); }
.edu-module .step-no { font-size: 13px; font-weight: 400; margin: 0; color: var(--kit-copy); }
.edu-module h3 { margin: 0; font-size: var(--kit-body); }
.ff-site .edu-module h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } /* 1c: the underline replaces the arrow repeated on every title */
.ff-site .edu-course + .meta { margin-top: var(--space-4); }
.edu-module p { margin: 0; font-size: 14px; }
.edu-module .grade { align-self: start; margin-top: auto; }
.edu-hub #course .intro { max-width: 60ch; }
@media (max-width: 1100px) { .edu-course { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .edu-course { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .edu-course { grid-template-columns: minmax(0, 1fr); } }

.edu-prompt { margin: 0 0 var(--space-8); min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; }
.edu-prompt-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); }
.edu-prompt-title { font-weight: 700; color: var(--color-text-primary); }
.edu-prompt-head .edu-prompt-copy { margin-left: auto; }
.edu-prompt-pre { margin: 0; padding: var(--space-3) var(--space-4); max-height: 480px; overflow: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--color-text-primary); }
.edu-builds { margin-block: var(--space-8); }
.edu-prompt-intro { margin: 0; padding: var(--space-3) var(--space-4) 0; font-size: 14px; color: var(--color-text-secondary); }
/* TASK-138 round 2c (spec B): the start page - one 640px reading column, an OS chooser (native radios), command boxes
   with a copy button (ff-ui.js), folded troubleshooting. Print shows both OS paths. */
.edu-start .ff-hero-text, .edu-start-os, .edu-start .edu-section, .edu-start .edu-next { max-width: 640px; }
.edu-start .edu-section { margin-top: var(--space-12); }
/* TASK-161 스타터 킷: three-line summary under the hero (what, how long, what you keep) and the module 1-4 route at the end */
.edu-start-summary { max-width: 640px; margin: var(--space-6) 0 0; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-8); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.edu-start-summary li + li, .edu-start-route li + li { margin-top: var(--space-2); }
.edu-start-summary strong { margin-right: var(--space-2); color: var(--color-text-primary); }
.edu-start-route { padding-left: var(--space-6); }
/* TASK-162: hero action, 12-step ladder, kit notice */
.edu-start-cta { margin-top: var(--space-6); }
.edu-start .ff-hero-lede + .ff-hero-lede { margin-top: var(--space-3); }
/* TASK-163 open-source page: wide tables scroll inside their box; Korean prompts wrap instead of scrolling sideways */
.edu-oss .table-wrap { max-width: 640px; overflow-x: auto; }
.edu-oss .edu-oss-table { min-width: 0; }
.edu-oss pre[aria-labelledby^="oss-p"] { white-space: pre-wrap; overflow-wrap: anywhere; }
.edu-oss pre[aria-labelledby^="oss-p"] code { min-width: 0; white-space: inherit; }
.edu-start-kit { padding: var(--space-4) var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.edu-start-kit h2 .small { margin-left: var(--space-2); font-weight: 400; }
.edu-start .edu-section h4 { margin: var(--space-6) 0 var(--space-2); font-size: 15px; line-height: 24px; }
.edu-start .edu-part-code { margin: var(--space-2) 0 var(--space-4); }
.edu-start-destination { padding: var(--space-2) 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--color-text-primary); }
.edu-start-os { margin: var(--space-6) 0 0; padding: 0; border: 0; min-width: 0; }
.edu-start-os legend { padding: 0; margin-bottom: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--color-text-primary); }
.edu-start-os-choices { display: grid; grid-template-columns: 1fr 1fr; max-width: 320px; }
.edu-start-os label { position: relative; display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--color-surface); cursor: pointer; }
.edu-start-os label + label { margin-left: -1px; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.edu-start-os label:hover { z-index: 1; border-color: var(--color-border-strong); }
.edu-start-os label:has(:checked) { background: var(--color-primary-soft); color: var(--color-text-primary); font-weight: 600; }
.edu-start-os input { margin: 0; accent-color: var(--color-primary); }
.edu-start-os .small { margin: var(--space-2) 0 0; }
.edu-start-trouble { margin-top: var(--space-4); border-bottom: 1px solid var(--color-border); }
.edu-start-trouble + .edu-start-trouble { margin-top: 0; }
/* 2026-11-27 result clip cards (trendcore 결과물 참고): 16:9 poster, a length badge, title · one line · link */
ul.edu-result-cards { list-style: none; margin: var(--space-5) 0 var(--space-4); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.edu-result-card { display: flex; flex-direction: column; gap: var(--space-2); }
.edu-result-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface-elevated); }
.edu-result-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.edu-result-badge { position: absolute; top: var(--space-2); left: var(--space-2); padding: 0 var(--space-2); border-radius: var(--radius-xs); background: var(--color-primary); color: var(--color-surface); font: 700 12px/20px var(--font-num); pointer-events: none; }
.edu-start .edu-result-card p { margin: 0; }
.edu-start .edu-result-title { font-weight: 700; font-size: 16px; line-height: 24px; }
.edu-start .edu-result-desc { font-size: 14px; line-height: 22px; color: var(--color-text-secondary); }
.edu-result-link { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.edu-result-link:hover { text-decoration: underline; }
@media (max-width: 640px) { ul.edu-result-cards { grid-template-columns: 1fr; } }
/* 2026-11-27 step format (trendcore 가이드 참고): "한눈에 보기" list and the "이렇게 되면 성공" box */
ol.edu-start-glance-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.edu-start-glance-list a { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-primary); text-decoration: none; }
.edu-start-glance-list strong { display: block; font-size: 15px; line-height: 22px; }
.edu-start-glance-list small { display: block; font-size: 13px; line-height: 20px; color: var(--color-text-secondary); }
.edu-start-glance-list a:hover strong { text-decoration: underline; }
.edu-start-glance-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); font: 700 13px/1 var(--font-num); }
.edu-start-glance-go { color: var(--color-text-muted); }
.edu-start-ok { margin: var(--space-4) 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-primary-soft); }
.edu-start-ok-title { margin: 0 0 var(--space-2); font-weight: 700; color: var(--color-primary); }
[data-theme="black"] .edu-start-ok-title { color: var(--color-text-primary); } /* QA 2026-11-29: primary on primary-soft is 3.5:1 in black */
.edu-start-ok ul { margin: 0; }
.edu-start-trouble summary { cursor: pointer; padding: var(--space-3) 0; font-size: 15px; line-height: 24px; font-weight: 600; }
.edu-start-trouble > :last-child:not(summary) { margin-bottom: var(--space-3); }
.edu-start div[data-os] > .edu-start-trouble:last-child { margin-bottom: var(--space-3); } /* TASK-138 2d: the paragraph after an OS block that ends in a folded item sat on its bottom rule */
/* the one picture on this page; shown whole, never cropped, no motion */
.edu-start-figure { margin: var(--space-6) 0; max-width: 560px; }
.edu-start-figure img { display: block; width: 100%; height: auto; }
/* 2026-11-25 real screen captures (python.org, PowerShell): one image for both themes, wider than the folder picture so the button text stays readable */
.edu-start-figure.is-capture, .edu-start-figure.is-result { max-width: 720px; }
.edu-start-figure.is-result img { border: 1px solid var(--color-border); border-radius: var(--radius-md); }
/* 2026-11-27 captures are framed renders on their own dark stage — a soft edge instead of a hairline */
.edu-start-figure.is-capture img { border-radius: var(--radius-xl); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 12px 32px -16px rgb(0 0 0 / .35); }
/* CEO 2026-11-25 "이미지는 스크롤없이 전체 보이도록": a whole picture always fits the screen — never wider than the column, never taller than the window */
.edu-start-figure img { max-height: calc(100vh - 96px); object-fit: contain; }
.edu-start-figure figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 22px; color: var(--color-text-secondary); }
.edu-start-figure .is-black, :root[data-theme="black"] .edu-start-figure .is-light { display: none; }
:root[data-theme="black"] .edu-start-figure .is-black { display: block; }
/* diagram (CEO 2026-12-04 "그래픽으로 시각화"): each node is a numbered card, each relation a down arrow whose words sit in a small label box
   (not a pill: NoPillRadiusCssTest). Real text in reading order; stems and arrowheads are borders so forced colours keep them. */
.ff-diagram { --dg-line: var(--color-border-strong); container-type: inline-size; max-width: 640px; margin: var(--space-6) 0; font: 400 15px/1.6 var(--font-sans); color: var(--color-text-secondary); }
#start-terminal .ff-diagram { max-width: 560px; }
.edu-part .ff-diagram { max-width: none; } /* CEO 2026-12-05: diagrams match the width of the body, callouts and cards above them */
.ff-diagram p, .ff-diagram li { margin: 0; font-size: inherit; line-height: inherit; white-space: normal; }
.ff-diagram .ff-diagram-title { margin-bottom: var(--space-4); }
.ff-diagram .ff-diagram-title strong { display: block; font-size: 16px; font-weight: 600; color: var(--color-text-primary); }
.ff-diagram .ff-diagram-stages, .ff-diagram .ff-diagram-pair { list-style: none; margin: 0; padding: 0; display: grid; }
.ff-diagram .ff-diagram-stages { counter-reset: dg; } /* not on the figure: its container query adds style containment, which scopes counters */
.ff-diagram .ff-diagram-pair { gap: var(--space-3); }
.ff-diagram-node { counter-increment: dg; position: relative; padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 36px); background: var(--color-surface-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-xl); }
.ff-diagram-node::before { content: counter(dg); position: absolute; left: var(--space-4); top: var(--space-4); width: 24px; height: 24px; box-sizing: border-box; border-radius: var(--radius-full); border: 1px solid var(--dg-line); background: var(--color-surface); font: 600 12px/22px var(--font-mono); text-align: center; color: var(--color-text-primary); }
.ff-diagram .ff-diagram-node > strong { display: block; margin-bottom: var(--space-1); font-weight: 600; line-height: 24px; color: var(--color-text-primary); }
.ff-diagram .ff-diagram-node p + p { margin-top: var(--space-1); }
.ff-diagram-node.is-accent { border-color: var(--color-primary); box-shadow: inset 3px 0 0 var(--color-primary); }
.ff-diagram-node.is-accent::before { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-surface); }
/* relation: stem, pill with the words, stem, arrowhead - centred between the cards */
.ff-diagram .ff-diagram-rel { display: flex; flex-direction: column; align-items: center; font-size: 13px; line-height: 20px; color: var(--color-text-primary); text-align: center; }
.ff-diagram .ff-diagram-rel::before { content: ""; height: var(--space-3); border-left: 1px solid var(--dg-line); }
.ff-diagram-rel > span { position: relative; max-width: 90%; padding: 2px var(--space-3); border: 1px solid var(--dg-line); border-radius: var(--radius-md); background: var(--color-surface); }
.ff-diagram-rel > span::after { content: ""; position: absolute; left: 50%; top: 100%; height: var(--space-2); border-left: 1px solid var(--dg-line); }
.ff-diagram .ff-diagram-rel::after { content: ""; margin: var(--space-2) 0 var(--space-1); border-style: solid; border-width: 7px 5px 0; border-color: var(--dg-line) transparent transparent; }
.ff-diagram figcaption { margin-top: var(--space-3); font-size: 14px; line-height: 22px; }
@container (min-width: 520px) { .ff-diagram .ff-diagram-pair { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .edu-start-os-choices { max-width: none; } }
@media print { #edu-toolkit.edu-start [data-os][hidden] { display: block !important; } #edu-toolkit.edu-start .edu-start-os { display: none !important; } }
/* TASK-138 2d (spec A-6): each step ends with a small link back to the contents - the fold's below 1024px, the rail's
   from 1024px (studio.css swaps the two lists there). ff-ui.js fills the position line; the current link reuses
   .edu-toc-list a[aria-current]. */
.edu-part .edu-part-toc { margin-top: var(--space-3); font-size: 13px; line-height: 20px; }
.edu-part-toc a { display: inline-block; padding: var(--space-3) 0; }
.edu-part-toc .is-rail { display: none; }
/* from 1024px the rail stays beside every step, so its link is for keyboard readers: it shows on focus only and takes no room */
@media (min-width: 1024px) {
  .edu-part-toc .is-fold { display: none; }
  .edu-part .edu-part-toc { position: relative; height: 0; margin: 0; }
  .edu-part-toc .is-rail { display: inline-block; position: absolute; left: 0; top: 6px; padding: 0; white-space: nowrap; }
  .edu-part-toc .is-rail:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
}
@media print { .edu-part-toc { display: none; } }
p.edu-toc-pos { margin: var(--space-2) 0; font-size: 13px; line-height: 20px; color: var(--color-text-secondary); }
/* TASK-138 round 2e (spec A-3): optional step blocks inside a part - what to do, what to type where, the result to
   expect, what to check when it differs. Same 40rem measure as the body text; the boxes reuse .edu-part-code and the
   folded check reuses .edu-start-trouble. */
.edu-part h4 { margin: var(--space-6) 0 var(--space-2); font-size: 15px; line-height: 24px; }
.edu-part-task, .edu-part-actions, .edu-part-expected, .edu-part-checks { max-inline-size: none; min-width: 0; }
.edu-part-task { margin-bottom: var(--space-4); }
.edu-part-task h4 { margin-top: 0; }
.edu-part-actions ol, .edu-part-expected ul { margin: 0; padding-left: var(--space-5); }
.edu-part-expected ul { margin-top: var(--space-3); }
.edu-part-actions li + li, .edu-part-expected li + li { margin-top: var(--space-3); }
.edu-part-actions .edu-part-code, .edu-part-expected .edu-part-code { margin: var(--space-2) 0 0; }
.edu-part-checks { margin-top: var(--space-6); }
.edu-part-checks dl { margin: 0; }
.edu-part-checks dt { margin-top: var(--space-3); font-weight: 600; }
.edu-part-checks dt:first-child { margin-top: 0; }
.edu-part-checks dd { margin: var(--space-1) 0 0; }
.edu-part-checks dd p + p { margin-top: var(--space-1); }
/* TASK-138 round 2f (spec A-4): the results table can sit in the step that produces it (resultRef), at the full column
   width. Long explanation cells wrap; numbers, one-word states and row headers stay on one line (.edu-results above). */
.edu-results td.is-text { white-space: normal; min-width: 8rem; }
@media (max-width: 767px) { .edu-results td.is-text { min-width: 11rem; } }
.edu-part-expected.has-table { max-inline-size: none; }
.edu-part-expected.has-table > :not(.table-scroll):not(.scroll-hint) { max-inline-size: 40rem; }
.edu-part-expected > .s-gap-6 { margin-top: var(--space-6); }
.edu-part-expected.has-table > .table-scroll { margin-bottom: var(--space-8); }
/* a long list in a step: numbered summary under the body, the full original folded inside the code box (the copy
   button stays in the box title and copies the whole text while folded) */
.edu-part-points { max-inline-size: 40rem; margin: var(--space-4) 0 0; padding-left: var(--space-5); }
.edu-part-points li + li { margin-top: var(--space-3); }
.edu-part-fold > summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-size: 15px; line-height: 24px; font-weight: 600; }
.edu-part-fold[open] > summary { border-bottom: 1px solid var(--color-border); }

/* TASK-155 /education#roadmap: the full map (roadmap.json), three series side by side, one column on phones */
.edu-roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-6); }
.edu-roadmap-series { min-width: 0; padding-top: var(--space-4); border-top: 2px solid var(--kit-ink); }
.ff-site .edu-roadmap-series h3 { margin: 0 0 var(--space-2); font-size: 20px; line-height: 1.4; }
.ff-site .edu-roadmap-series h4 { margin: var(--space-6) 0 var(--space-2); font-size: 15px; line-height: 1.4; color: var(--kit-copy); word-break: keep-all; }
.edu-roadmap-items { margin: 0; padding: 0; list-style: none; }
.edu-roadmap-items li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-2); padding-block: var(--space-2); border-top: 1px solid var(--kit-rule); font-size: 15px; line-height: 1.55; word-break: keep-all; }
.edu-roadmap-items .mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--kit-copy); padding-top: 2px; }
.edu-roadmap-items .meta { margin-left: var(--space-1); font-size: 13px; color: var(--kit-copy); white-space: nowrap; }
@media (max-width: 1023px) { .edu-roadmap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* TASK-168 remediation (lesson page only): run box, 자주 하는 실수 / 확인할 곳, microinteractions from
   docs/design/microinteractions-2026-11-22/designspells-findings.md #1 #3 #6. Motion tokens only; they are 0 under reduced motion. */
.edu-walk-run { margin-bottom: var(--space-6); }
.edu-walk-run h3 { margin: 0 0 var(--space-2); font-size: 16px; line-height: 24px; }
.edu-walk-run-list { margin: 0; padding-left: var(--space-5); }
.edu-walk-run-list li + li { margin-top: var(--space-2); }
.edu-walk-run-cmd { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.edu-walk-run-cmd .ff-code-pre { flex: 1 1 0; min-width: 0; margin: 0; border: 0; background: transparent; }
.edu-walk-run-cmd figcaption { display: contents; } /* ff-ui.js puts the copy button and its note here; they join the row */
.edu-walk-run-cmd .ff-copy-btn { min-height: 44px; margin-right: var(--space-2); }
.edu-walk-run-cmd .ff-copy-note.is-wide { order: 1; flex-basis: 100%; padding: 0 var(--space-4) var(--space-2); font-size: 12px; line-height: 16px; color: var(--color-text-secondary); }
.edu-walk-run-cmd .scroll-hint { flex-basis: 100%; margin: var(--space-2) var(--space-4) 0; }
.edu-mistakes { margin-top: var(--space-8); }
.edu-check-where { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-primary-soft); font-size: 15px; line-height: 24px; }
.edu-check-where strong { margin-right: var(--space-2); }

/* #1 copy: copy icon, then a check with "복사됨" after a real copy (.is-done, 2 s); colour stays currentColor (no green) */
.edu-lesson .ff-copy-btn { display: inline-flex; align-items: center; gap: 6px; }
.edu-lesson .ff-copy-btn::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: var(--edu-copy-ico) center / contain no-repeat; mask: var(--edu-copy-ico) center / contain no-repeat;
  --edu-copy-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='13' height='13' rx='2.5'/%3E%3Cpath d='M4 16c-.6-.4-1-1-1-1.7V5c0-1.1.9-2 2-2h9.3c.7 0 1.3.4 1.7 1'/%3E%3C/svg%3E"); }
.edu-lesson .ff-copy-btn.is-done::before { animation: eduCopyIn var(--motion-dur-micro) var(--motion-ease-move);
  --edu-copy-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
@keyframes eduCopyIn { from { opacity: 0; } to { opacity: 1; } }

/* #3 fold: an arrow that turns when open; the panel grows where ::details-content is supported, else it just opens */
.edu-lesson .edu-table-fold > summary { list-style: none; gap: var(--space-2); }
.edu-lesson .edu-table-fold > summary::-webkit-details-marker { display: none; }
.edu-lesson .edu-table-fold > summary::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: var(--edu-fold-ico) center / contain no-repeat; mask: var(--edu-fold-ico) center / contain no-repeat;
  --edu-fold-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E");
  transition: transform var(--motion-dur-micro) var(--motion-ease-move); }
.edu-lesson .edu-table-fold[open] > summary::before { transform: rotate(90deg); }
@media (hover: hover) { .edu-lesson .edu-table-fold:not([open]) > summary:hover::before { transform: translateX(2px); } }
@supports selector(::details-content) {
  .edu-lesson .edu-table-fold { interpolate-size: allow-keywords; }
  .edu-lesson .edu-table-fold::details-content { block-size: 0; opacity: 0; overflow: clip;
    transition: block-size var(--motion-dur-medium) var(--motion-ease-move), opacity var(--motion-dur-medium) var(--motion-ease-move),
      content-visibility var(--motion-dur-medium) allow-discrete; }
  .edu-lesson .edu-table-fold[open]::details-content { block-size: auto; opacity: 1; }
}

/* #6 chart states: loading = two shimmer passes behind the note (then static); failed = a plain note, no spinner */
.ff-chart-fallback.is-loading { background: linear-gradient(100deg, var(--color-surface-elevated) 30%,
    color-mix(in srgb, var(--color-border) 60%, var(--color-surface-elevated)) 50%, var(--color-surface-elevated) 70%);
  background-size: 200% 100%; animation: tvShimmer var(--motion-dur-shimmer) var(--motion-ease-move) 2; }
.ff-chart-fallback.is-failed { background: var(--color-surface-elevated); color: var(--color-text-secondary); }
/* CEO 2026-11-29 (RE:KIT 구성 흡수): kit lesson hook, scene, "내 결과표라면?" with checklist and closing line, next-kit card */
.edu-hook { margin: var(--space-2) 0 0; font-size: 20px; line-height: 30px; font-weight: 800; color: var(--color-text-primary); word-break: keep-all; }
.edu-scene { margin: var(--space-6) 0; padding: var(--space-4) var(--space-5); border-left: 3px solid var(--color-primary); background: var(--color-primary-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.edu-scene p { margin: 0; color: var(--color-text-primary); }
.edu-scene .s-label { margin: 0 0 var(--space-2); }
.edu-check { margin: var(--space-4) 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.edu-check-title { margin: 0 0 var(--space-2); font-weight: 700; color: var(--color-text-primary); }
.edu-check ul { list-style: none; margin: 0; padding: 0; }
.edu-check li + li { margin-top: var(--space-2); }
.edu-check label { display: flex; gap: var(--space-2); align-items: flex-start; cursor: pointer; }
.edu-check input { margin-top: 5px; flex: none; width: 16px; height: 16px; accent-color: var(--color-primary); }
.edu-check [data-edu-check-count] { margin: var(--space-3) 0 0; }
.edu-closing { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--color-border); font-size: 18px; line-height: 28px; font-weight: 800; color: var(--color-text-primary); word-break: keep-all; }
.edu-next-kit { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-4); margin: var(--space-5) 0 var(--space-4); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text-primary); text-decoration: none; }
.edu-next-kit:hover { border-color: var(--color-primary); }
.edu-next-kit:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.edu-next-kit-no { grid-column: 1; font-size: 13px; font-weight: 700; color: var(--color-primary); }
.edu-next-kit-hook { grid-column: 1; font-size: 17px; line-height: 26px; font-weight: 800; word-break: keep-all; }
.edu-next-kit-name { grid-column: 1; font-size: 14px; color: var(--color-text-secondary); }
.edu-next-kit-go { grid-column: 2; grid-row: 1 / 4; align-self: center; font-size: 24px; color: var(--color-text-secondary); }
[data-theme="black"] .edu-next-kit-no { color: var(--color-text-primary); }
.edu-scene .edu-scene-note { margin: var(--space-2) 0 0; color: var(--color-text-secondary); }

/* CEO 2026-11-29 "/guides/ai-hedge-fund-read 디자인과 동일하게": kit lessons wear the guide frame — guide width (240 contents + 720 text),
   Paperlogy, the guide's crumb / chips / lead / contains boxes, contents list on the left, sections split by a rule. */
.edu-lesson.is-kit { --font-guide: "Paperlogy", var(--font-sans); font-family: var(--font-guide); font-size: 17px; line-height: 1.85; }
.edu-lesson.is-kit :is(h1, h2, h3) { font-family: var(--font-guide); font-weight: 900; letter-spacing: -0.02em; }
.edu-lesson.is-kit :is(strong, b) { font-weight: 900; }
.edu-lesson.is-kit :is(pre, code, kbd, .mono) { font-family: var(--font-mono); }
.edu-lesson.is-kit .s-wrap { max-width: 1180px; padding-inline: 20px; }
.edu-lesson.is-kit .s-article { grid-template-columns: 240px minmax(0, 720px); column-gap: var(--space-12); padding: var(--space-8) 0 var(--space-16); }
.edu-lesson.is-kit .s-article .rail { grid-column: 1; top: calc(64px + var(--space-6)); }
.edu-lesson.is-kit .s-article .txt { grid-column: 2; }
.edu-lesson.is-kit .s-article .txt > * { max-width: none; }
.edu-lesson.is-kit .edu-kit-head h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); line-height: 1.25; }
.edu-lesson.is-kit .edu-kit-head .ff-guide-crumb { margin: 0 0 var(--space-3); font-family: var(--font-guide); letter-spacing: 0; text-transform: none; }
.edu-lesson.is-kit .edu-kit-head .ff-guide-crumb a { color: var(--color-text-secondary); }
.edu-lesson.is-kit .s-article .rail .kicker { margin: 0 0 var(--space-3); font-size: 14px; font-weight: 700; color: var(--color-text-primary); text-transform: none; letter-spacing: 0; }
.edu-lesson.is-kit .s-article .rail .edu-toc-list a { display: block; padding: var(--space-2) 0 var(--space-2) var(--space-3); font-size: 14px; line-height: 20px; color: var(--color-text-secondary); text-decoration: none; text-indent: 0; box-shadow: inset 2px 0 0 transparent; }
.edu-lesson.is-kit .s-article .rail .edu-toc-list .edu-toc-sub a { padding-left: var(--space-6); }
.edu-lesson.is-kit .s-article .rail .edu-toc-list a:hover { color: var(--color-text-primary); }
.edu-lesson.is-kit .s-article .rail .edu-toc-list a[aria-current] { padding-left: var(--space-3); color: var(--color-text-primary); font-weight: 600; box-shadow: inset 2px 0 0 var(--color-primary); }
.edu-lesson.is-kit .s-article .rail .edu-toc-list .edu-toc-sub a[aria-current] { padding-left: var(--space-6); text-indent: 0; }
.edu-lesson.is-kit .s-article .rail .edu-toc-list a[aria-current]::before { display: none; }
.edu-lesson.is-kit .edu-section { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--color-border); }
.edu-lesson.is-kit .edu-section h2, .edu-lesson.is-kit .edu-section .ff-section-head h2 { font-family: var(--font-guide); font-size: 23px; line-height: 1.32; font-weight: 900; }
.edu-lesson.is-kit .s-glance { margin-top: var(--space-8); }
@media (max-width: 1023px) {
  .edu-lesson.is-kit .s-article { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-6); }
  .edu-lesson.is-kit .s-article .txt { grid-column: 1; }
  .edu-lesson.is-kit .ff-guide-lead { padding: var(--space-4); font-size: 16px; }
}
.edu-lesson.is-kit .edu-kit-head .step-no.ff-guide-crumb { margin: 0 0 var(--space-3); font-family: var(--font-guide); font-size: 14px; line-height: 20px; font-weight: 400; }
.edu-lesson.is-kit .edu-toc-locked .ff-guide-toc-lock { vertical-align: -1px; }
.edu-lesson.is-kit .edu-toc-locked .edu-toc-sub a { color: var(--color-text-muted); }

/* CEO 2026-11-30 research layout (KIT 05): the results table under 연구 질문, and the cost calculator in 실험 */
.edu-lesson .edu-scene .table-scroll { margin-top: var(--space-3); background: var(--color-surface); }
.edu-sim { margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.edu-sim-head { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: baseline; margin-bottom: var(--space-3); }
.edu-sim-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.edu-sim-inputs label { display: grid; gap: var(--space-2); font-size: 15px; }
.edu-sim-inputs output { font-family: var(--font-mono); font-weight: 700; }
.edu-sim-inputs input[type=range] { width: 100%; accent-color: var(--color-primary); }
.edu-sim-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-4) 0 var(--space-3); }
.edu-sim-out div { padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.edu-sim-out dt { font-size: 13px; color: var(--color-text-secondary); }
.edu-sim-out dd { margin: var(--space-1) 0 0; font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--color-text-primary); }
@media (max-width: 640px) { .edu-sim-inputs, .edu-sim-out { grid-template-columns: minmax(0, 1fr); } }

/* CEO 2026-11-30 "줄간격이나 자간 등 너무 혼잡": one reading rhythm for kit pages — every reading paragraph 17px / 1.8 with
   space between paragraphs, headings one step lighter and less tightly tracked, the 연구 질문 box without a fill,
   small print one size (14px / 1.6). */
.edu-lesson.is-kit :is(h1, h2, h3) { font-weight: 800; letter-spacing: -0.01em; }
.edu-lesson.is-kit :is(.edu-part-body p, .edu-part-points li, .edu-scene > p, .edu-mine > p, .ff-guide-lead p, .ff-guide-contains p, .edu-section > p) {
  max-width: none; font-size: 17px; line-height: 1.8; }
.edu-lesson.is-kit .edu-part-body p + p { margin-top: 1.1em; }
.edu-lesson.is-kit .edu-part + .edu-part { margin-top: var(--space-12); }
.edu-lesson.is-kit .edu-part-head h3 { margin: 0 0 var(--space-4); font-size: 21px; line-height: 1.45; }
.edu-lesson.is-kit .edu-part-points { margin: var(--space-4) 0 0; }
.edu-lesson.is-kit .edu-part-points li + li { margin-top: var(--space-2); }
.edu-lesson.is-kit .ff-guide-lead { margin-top: var(--space-6); padding: var(--space-5) var(--space-6); }
.edu-lesson.is-kit .ff-guide-lead strong { display: block; margin-bottom: var(--space-2); font-size: 19px; line-height: 1.5; }
.edu-lesson.is-kit .ff-guide-contains { margin-top: var(--space-3); }
.edu-lesson.is-kit .edu-scene { margin: var(--space-10) 0 var(--space-6); padding: 0 0 0 var(--space-5); border-left: 2px solid var(--color-primary); border-radius: 0; background: transparent; }
.edu-lesson.is-kit .edu-scene .s-label { margin-bottom: var(--space-3); }
.edu-lesson.is-kit .edu-scene #edu-results-cap { margin-top: var(--space-6); font-size: 15px; line-height: 1.6; }
.edu-lesson.is-kit :is(#edu-results-desc, .edu-scene-note, figcaption.s-meta, .edu-sim .small, .edu-check .small) { font-size: 14px; line-height: 1.6; }
.edu-lesson.is-kit .edu-scene .table-scroll { margin-top: var(--space-3); }
@media (max-width: 1023px) {
  .edu-lesson.is-kit :is(.edu-part-body p, .edu-part-points li, .edu-scene > p, .edu-mine > p, .ff-guide-lead p, .ff-guide-contains p, .edu-section > p) { font-size: 16px; line-height: 1.75; }
  .edu-lesson.is-kit .edu-part-head h3 { font-size: 19px; }
}

/* CEO 2026-11-30 "디자인이나 ui 요소적으로 좀 그러네": kit pages — the chips become one quiet meta line; the lead reads as one block (no second filled box); part headings
   split into a "01 · 개념" kicker and the claim; quieter table head; the calculator as one panel. */
/* CEO 2026-12-03 "글씨체도 잘 읽히는 글씨체로 starter pack 설명페이지랑 동일한 글씨체": kit reading text is Paperlogy again, the same face as
   /education/start (400 text, 900 headings); code keeps the mono face (guides.css). */
.edu-lesson.is-kit { font-family: var(--font-guide); }
.edu-lesson.is-kit .edu-kit-head .ff-guide-chips { display: flex; flex-wrap: wrap; gap: 0; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.edu-lesson.is-kit .edu-kit-head .ff-guide-chips li { padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--color-text-secondary); }
.edu-lesson.is-kit .edu-kit-head .ff-guide-chips li + li::before { content: "·"; margin: 0 var(--space-2); color: var(--color-text-muted); }
.edu-lesson.is-kit .edu-kit-head .ff-guide-chips li:first-child { font-weight: 700; color: var(--color-primary); }
.edu-lesson.is-kit .ff-guide-lead { border: 0; border-left: 3px solid var(--color-primary); border-radius: 0; padding: var(--space-1) 0 var(--space-1) var(--space-5); background: none; }
.edu-lesson.is-kit .ff-guide-contains { margin-top: var(--space-5); padding: var(--space-4) 0 0; border-top: 1px solid var(--color-border); border-radius: 0; background: none; }
.edu-lesson.is-kit .ff-guide-contains-title { font-size: 13px; font-weight: 700; color: var(--color-text-secondary) !important; }
.edu-lesson.is-kit .edu-part-kicker { margin: 0 0 var(--space-1); font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--color-primary); }
.edu-lesson.is-kit .edu-part-kicker + h3 .s-num { display: none; }
.edu-lesson.is-kit table.data th { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.edu-lesson.is-kit table.data :is(td, th[scope=row]) { font-size: 15px; font-weight: 400; font-variant-numeric: tabular-nums; }
.edu-lesson.is-kit .edu-scene .s-label, .edu-lesson.is-kit .edu-check-title { font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--color-text-secondary); }
.edu-lesson.is-kit .edu-sim { padding: var(--space-5) var(--space-6); }
.edu-lesson.is-kit .edu-sim-out { gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.edu-lesson.is-kit .edu-sim-out div { border: 0; border-radius: 0; }
.edu-lesson.is-kit .edu-sim-out div + div { border-left: 1px solid var(--color-border); }
@media (max-width: 640px) {
  .edu-lesson.is-kit .edu-sim-out div + div { border-left: 0; border-top: 1px solid var(--color-border); }
  .edu-lesson.is-kit .edu-sim-out div { display: flex; justify-content: space-between; align-items: baseline; }
  .edu-lesson.is-kit .edu-sim-out dd { margin: 0; font-size: 16px; }
  .edu-lesson.is-kit .edu-sim { padding: var(--space-4); }
}
.edu-lesson.is-kit .s-wrap { font-family: var(--font-guide); }
.edu-lesson.is-kit :is(.edu-part-body, .edu-part-points, .edu-scene, .edu-mine) { max-width: none; }
.edu-lesson.is-kit table.data th { white-space: nowrap; }

/* CEO 2026-12-01 (lazyowen guide 참고): labelled windows, 용어 boxes and official-site link cards in kit pages */
.edu-lesson.is-kit .edu-win-label { margin: var(--space-6) 0 var(--space-2); font-size: 15px; font-weight: 700; color: var(--color-text-primary); }
.edu-lesson.is-kit .edu-win-label + .small { margin: 0 0 var(--space-2); }
.edu-lesson.is-kit .ff-guide-code { margin: var(--space-2) 0 var(--space-4); }
.edu-lesson.is-kit .ff-guide-code .ff-code-pre { max-height: 420px; overflow: auto; font-size: 13.5px; line-height: 1.65; }
.edu-lesson.is-kit .ff-callout--term { margin: var(--space-5) 0; }
.edu-lesson.is-kit .ff-callout--term p { margin: 0; font-size: 16px; line-height: 1.75; }
.edu-links-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-5) 0; padding: 0; list-style: none; }
.edu-links-cards a { position: relative; display: grid; gap: 2px; padding: var(--space-3) var(--space-8) var(--space-3) var(--space-4); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text-primary); text-decoration: none; }
.edu-links-cards a:hover { border-color: var(--color-primary); }
.edu-links-cards a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.edu-link-card-name { font-size: 15px; font-weight: 700; }
.edu-link-card-note { font-size: 13px; color: var(--color-text-secondary); }
.edu-link-card-go { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--color-text-secondary); }
@media (max-width: 640px) { .edu-links-cards { grid-template-columns: minmax(0, 1fr); } }

/* CEO 2026-12-01 (lazyowen guides): STEP headings carry their own number, top prompt fold, link cards with an icon */
.edu-lesson.is-research .edu-part-head .s-num { display: none; }
.edu-lesson.is-kit .edu-quick { margin-top: var(--space-5); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: var(--space-4) 0; }
.edu-lesson.is-kit .edu-quick > summary { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; font-size: 16px; font-weight: 700; color: var(--color-text-primary); list-style: none; }
.edu-lesson.is-kit .edu-quick > summary::-webkit-details-marker { display: none; }
.edu-lesson.is-kit .edu-quick > summary::after { content: "펼치기"; margin-left: auto; font-size: 13px; font-weight: 500; color: var(--color-text-secondary); }
.edu-lesson.is-kit .edu-quick[open] > summary::after { content: "접기"; }
.edu-lesson.is-kit .edu-quick > summary .ff-icon { color: var(--color-primary); }
.edu-lesson.is-kit .edu-quick > .small { margin: var(--space-3) 0 0; }
.edu-links-cards a { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); align-items: center; }
.edu-link-card-icon { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.edu-link-card-name, .edu-link-card-note { grid-column: 2; }
.edu-link-card-note { font-family: var(--font-mono); font-size: 12.5px; overflow-wrap: anywhere; }

/* CEO 2026-12-03 "starter pack 디자인 개선 본문 내용들" → KIT 레슨 본문: a STEP heading reads as badge + title + time chip, a figure
   names itself above the chart, the check lists after 확인: get a check mark, and 용어 boxes in a row read as one box. Tokens only. */
.edu-lesson.is-kit .edu-part-head h3:has(.edu-step-no) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.edu-step-no { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-sm); background: var(--color-primary); color: var(--color-surface); font-size: 13px; line-height: 20px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.edu-step-time { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-secondary); font-size: 13px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.edu-lesson.is-kit .edu-part-figure { display: flex; flex-direction: column; }
.edu-lesson.is-kit .edu-part-figure > figcaption { order: -1; margin: 0 0 var(--space-3); }
.edu-lesson.is-kit :is(.edu-win-label, .ff-guide-code) + .edu-part-points { list-style: none; padding-left: 0; }
.edu-lesson.is-kit :is(.edu-win-label, .ff-guide-code) + .edu-part-points > li { position: relative; padding-left: var(--space-8); }
.edu-lesson.is-kit :is(.edu-win-label, .ff-guide-code) + .edu-part-points > li::before { content: "✓"; position: absolute; left: 0; top: 0; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: .2em; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); font-size: 13px; font-weight: 800; line-height: 1; }
.edu-lesson.is-kit .ff-callout--term + .ff-callout--term { margin-top: calc(var(--space-5) * -1 + 1px); }
.edu-lesson.is-kit .ff-callout--term + .ff-callout--term .ff-callout-label { display: none; }

/* CEO 2026-12-03 "글을 읽는데 몰입되면서 집중되고 이탈율이 적도록": the
   contents rail ticks the steps already read; the position line carries the minutes left (ff-ui.js). */
.edu-toc-list a.is-read { color: var(--color-text-secondary); }
.edu-toc-list a.is-read::after { content: " ✓"; color: var(--color-primary); font-weight: 800; }
@media (forced-colors: active) { .ff-diagram .ff-diagram-rel::after { border-color: CanvasText Canvas Canvas; } } /* review: keep the arrowhead a triangle */
