/* AIBP Academy — közös lecke-stílus (tananyag v2, 2026. 10. 05.)
 *
 * Eddig minden lecke ~300 sor ugyanilyen alapstílust másolt magába, és elcsúsztak
 * egymástól. A v2-leckék ezt a fájlt töltik be; az inline <style> csak a lecke SAJÁT
 * komponenseit (ábrák, egyedi kártyák) tartalmazza.
 *
 * Komponensek (mind papír-regiszter, brand-skill 1. és 4. fejezet):
 *   .lesson-hero (.kicker, h1, .lede, .meta)      a lecke feje
 *   .article-body                                   a törzs (720px hasáb)
 *   .takeaway                                       „Miről szól ez a lecke” doboz
 *   .where-now                                      „Hol tartunk most?” (modul-nyitó leckékben)
 *   .where-find                                     „Hol találod?” (eszköz-mozdulat + más eszközben)
 *   .task-card                                      gyakorlat: mit csinálunk / mit kapsz / idő / mi kell
 *   .steps > .step                                  számozott gyakorlat-lépések
 *   .ask-box                                        másolható kérés („Ezt írd be”), Kimásolom gombbal (lesson-kit.js)
 *   .expect                                         „Mit kell látnod” / „Ha nem ez jött” sor
 *   .done-list                                      „Kész, ha…” ellenőrzőlista
 *   .lesson-figure                                  kép forrással
 *   .diagram-block / .caption                       ábra + Caveat-aláírás
 *   .two-col                                        két kártya egymás mellett (mobilon egymás alatt)
 * Színcsík a kártya szélén TILOS (brand 4.): a szerepet a kicker és a keret viszi.
 */

body { margin: 0; min-height: 100vh; }

.course-label {
  position: fixed; top: 1.5rem; left: 1.75rem; z-index: 100;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted, #6b6660); pointer-events: none;
}

/* ── hero ── */
.lesson-hero { max-width: 760px; margin: 0 auto; padding: 8rem 2rem 2rem; }
.lesson-hero .kicker {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted, #6b6660); margin-bottom: 1.75rem;
}
.lesson-hero h1 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 3.4rem); line-height: 1.06;
  margin: 0 0 1.4rem; letter-spacing: -0.026em; color: var(--ink, #1a1a1a);
}
.lesson-hero .lede {
  font-family: 'Inter', sans-serif; font-size: 1.18rem; line-height: 1.55;
  color: var(--ink-body, #2a2722); max-width: 620px; margin: 0;
}
.lesson-hero .meta {
  margin-top: 2rem; font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-muted, #6b6660);
}

/* ── törzs ── */
.article-body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif; font-size: 18px; line-height: 1.75;
  color: var(--ink-body, #2a2722); max-width: 720px; margin: 0 auto; padding: 0 2rem;
}
.article-body p { margin: 0 0 1.35rem; }
.article-body h2 {
  font-family: 'Inter', sans-serif; font-weight: 700; color: var(--ink, #1a1a1a);
  font-size: clamp(1.45rem, 2.5vw, 1.8rem); line-height: 1.22;
  margin: 3.6rem 0 1.25rem; letter-spacing: -0.018em;
}
.article-body h3 {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem;
  margin: 2.2rem 0 0.8rem; color: var(--ink, #1a1a1a);
}
.article-body strong { font-weight: 600; color: var(--ink, #1a1a1a); }
.article-body ul, .article-body ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.article-body li { margin: 0.4rem 0; }
.article-body p a:not([class]), .article-body li a:not([class]), .lesson-hero .lede a {
  color: inherit; text-decoration: underline; text-decoration-color: rgba(120,63,243,0.45);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.article-body p a:not([class]):hover, .article-body li a:not([class]):hover { text-decoration-color: #783FF3; }

/* ── közös kártya-alap ── */
.takeaway, .where-now, .where-find, .task-card, .ask-box, .done-list {
  background: #fff; border: 1.5px solid var(--ink, #1a1a1a); border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
}
.box-kicker {
  font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted, #6b6660); margin: 0 0 0.6rem;
}

/* „Miről szól ez a lecke” */
.takeaway { margin: 2.5rem 0 2.75rem; padding: 1.6rem 1.9rem 1.4rem; }
.article-body .takeaway h2 { margin: 0 0 0.9rem; font-size: 1.22rem; }
.takeaway ol { margin: 0; padding-left: 1.3rem; }
.takeaway li { font-size: 1.02rem; line-height: 1.6; margin: 0.5rem 0; }

/* „Hol tartunk most?” — tájékozódás, lila keret (identitás/fogalom) */
.where-now {
  margin: 2.25rem 0 2.5rem; padding: 1.3rem 1.6rem 1.1rem;
  border-color: var(--accent, #783FF3); box-shadow: 4px 4px 0 rgba(120,63,243,0.14);
}
.where-now .box-kicker { color: var(--accent-strong, #5d24d0); }
.where-now ol { margin: 0; padding: 0; list-style: none; counter-reset: wn; }
.where-now li {
  counter-increment: wn; position: relative; padding-left: 2.1rem; margin: 0.45rem 0;
  font-size: 0.98rem; line-height: 1.55;
}
.where-now li::before {
  content: counter(wn); position: absolute; left: 0; top: -0.15rem;
  font-family: 'Caveat', cursive; font-size: 1.6rem; font-weight: 700; color: var(--accent, #783FF3);
}
.where-now li.is-here { font-weight: 600; color: var(--ink, #1a1a1a); }
.where-now li.is-here::after {
  content: '← itt tartunk'; font-family: 'Caveat', cursive; font-weight: 400;
  font-size: 1.2rem; color: var(--accent-strong, #5d24d0); margin-left: 0.5rem;
}

/* „Hol találod?” — eszköz-mozdulat */
.where-find { margin: 2rem 0 2.25rem; padding: 1.25rem 1.5rem 1.1rem; }
.where-find .path {
  font-family: 'DM Mono', monospace; font-size: 13px; line-height: 1.7;
  color: var(--ink, #1a1a1a); margin: 0 0 0.5rem;
}
.where-find .path b { font-weight: 500; background: rgba(255,233,77,0.55); padding: 0 0.25em; }
.where-find p { font-size: 0.97rem; line-height: 1.55; margin: 0.35rem 0; }
.where-find .other {
  margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px dashed rgba(0,0,0,0.18);
  font-size: 0.92rem; color: var(--ink-soft, #4a4640);
}
.where-find .other::before { content: 'Más eszközben: '; font-weight: 600; color: var(--ink, #1a1a1a); }

/* gyakorlat-kártya */
.task-card { margin: 2.25rem 0 2.5rem; padding: 1.4rem 1.6rem 1.2rem; }
.task-card dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.55rem 1rem; margin: 0; }
.task-card dt {
  font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted, #6b6660); padding-top: 0.3rem;
}
.task-card dd { margin: 0; font-size: 0.98rem; line-height: 1.55; }

/* lépések */
.steps { list-style: none; margin: 1.5rem 0 2rem; padding: 0; counter-reset: st; }
.steps > .step { counter-increment: st; position: relative; padding-left: 3.1rem; margin: 0 0 2.1rem; }
.steps > .step::before {
  content: counter(st); position: absolute; left: 0; top: -0.35rem;
  font-family: 'Caveat', cursive; font-size: 2.3rem; font-weight: 700; color: var(--ink, #1a1a1a);
  transform: rotate(-4deg);
}
.steps > .step > h3 { margin: 0 0 0.5rem; font-size: 1.12rem; }
.steps > .step > p { margin: 0 0 0.8rem; }

/* másolható kérés */
.ask-box { margin: 0.9rem 0 1rem; padding: 1rem 1.2rem 0.9rem; background: #fffdf3; }
.ask-box .box-kicker { color: var(--ink, #1a1a1a); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ask-box .ask-text {
  font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.6; color: var(--ink, #1a1a1a);
  white-space: pre-wrap; margin: 0;
}
.ask-box .ask-text .fill {
  background: rgba(120,63,243,0.10); border-bottom: 1.5px dashed var(--accent, #783FF3);
  padding: 0 0.2em; border-radius: 2px;
}
.ask-box .ask-copy { flex: none; }

/* mit kell látnod / ha nem ez jött */
.expect { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.3rem 1rem; margin: 0.6rem 0 0.4rem; font-size: 0.96rem; line-height: 1.55; }
.expect dt {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding-top: 0.3rem; color: var(--green, #00823C);
}
.expect dt.if-not { color: var(--orange-deep, #B14E16); }
.expect dd { margin: 0; }

/* Kész, ha… */
.done-list { margin: 2rem 0 2.25rem; padding: 1.2rem 1.5rem 1rem; }
.done-list .box-kicker { color: var(--green, #00823C); }
.done-list ul { list-style: none; padding: 0; margin: 0; }
.done-list li { position: relative; padding-left: 1.8rem; margin: 0.45rem 0; font-size: 0.98rem; line-height: 1.55; }
.done-list li::before {
  content: '✓'; position: absolute; left: 0.1rem; top: -0.05rem;
  font-family: 'Caveat', cursive; font-size: 1.45rem; font-weight: 700; color: var(--green, #00823C);
}

/* kép forrással */
.lesson-figure { margin: 2.25rem 0 2.5rem; }
.lesson-figure img {
  display: block; width: 100%; height: auto; border: 1.5px solid var(--ink, #1a1a1a);
  border-radius: 3px; background: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
}
.lesson-figure figcaption {
  margin-top: 0.7rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft, #4a4640);
}
.lesson-figure figcaption .src {
  display: block; font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-muted, #6b6660); margin-top: 0.25rem;
}

/* ábra */
.diagram-block { margin: 2.75rem 0; text-align: center; }
.diagram-block .caption {
  font-family: 'Caveat', cursive; font-size: 1.3rem; color: var(--ink-soft, #4a4640);
  margin-top: 0.5rem; transform: rotate(-1deg); display: inline-block;
}

/* két kártya egymás mellett */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 2rem 0 2.25rem; }
.two-col > .col {
  background: #fff; border: 1.5px solid var(--ink, #1a1a1a); border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.08); padding: 1.1rem 1.25rem 1rem;
}
.two-col > .col.is-key { border-color: var(--accent, #783FF3); box-shadow: 4px 4px 0 rgba(120,63,243,0.14); }
.two-col > .col h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.two-col > .col p, .two-col > .col li { font-size: 0.95rem; line-height: 1.55; }
.two-col > .col ol, .two-col > .col ul { padding-left: 1.2rem; margin: 0.3rem 0 0; }

/* idézet */
.article-body blockquote.quote {
  margin: 2.25rem 0; padding: 0 0 0 1.25rem; border-left: 0;
  font-size: 1.25rem; line-height: 1.5; font-weight: 500; color: var(--ink, #1a1a1a);
  position: relative;
}
.article-body blockquote.quote::before {
  content: '„'; position: absolute; left: -0.2rem; top: -0.6rem;
  font-family: 'Caveat', cursive; font-size: 3rem; color: var(--accent, #783FF3);
}
.article-body blockquote.quote cite {
  display: block; margin-top: 0.6rem; font-style: normal; font-family: 'DM Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted, #6b6660);
}

@media (max-width: 720px) {
  .lesson-hero { padding: 6rem 1.25rem 1.5rem; }
  .article-body { padding: 0 1.25rem; font-size: 17px; }
  .takeaway, .where-now, .where-find, .task-card, .done-list { padding: 1.15rem 1.1rem 1rem; }
  .task-card dl, .expect { grid-template-columns: 1fr; gap: 0.15rem; }
  .task-card dd { margin-bottom: 0.5rem; }
  .two-col { grid-template-columns: 1fr; }
  .steps > .step { padding-left: 2.4rem; }
}

/* ── „Ahogy a gépeden látod”: mappa és fájl rajzolt ikonnal (2026. 10. 07.) ──
 * Kamill: az egymás alá húzott, behúzott mappafa („cegunk/ · CLAUDE.md · kesz/”) csak a
 * tech-arcoknak érthető. Helyette a mappa MAPPAKÉNT (füllel), a fájl LAPKÉNT (behajtott
 * sarokkal) jelenik meg, egymás mellett, mint a Finderben vagy az Intézőben; a beágyazást
 * a NYITOTT mappa mutatja: a tartalma benne ül. Név: emberi szó félkövérrel, a pontos
 * fájlnév kicsiben alatta, a „mire jó” kézírással. A kereteket a .hd-sketch rajzolja
 * (a gyökérre tedd), az alakot a .hd-folder / .hd-sheet osztály adja (handdrawn.css 12e). */
.fs-open { padding: 0.9rem 1.05rem 1rem; text-align: left; }
.fs-open.is-picked { border-color: var(--accent, #783FF3); background: #FBF6FF; }
.fs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; margin: 0 0 0.7rem; }
.fs-head b { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink, #1a1a1a); }
.fs-fn { font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: 0.03em; color: var(--ink-muted, #6b6660); }
.fs-what { font-family: 'Caveat', cursive; font-size: 1.12rem; line-height: 1.15; color: var(--ink-soft, #4a4640); }
.fs-grid { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; align-items: flex-start; }
.fs-item { width: 7.4rem; text-align: center; }
.fs-ico { display: block; margin: 0 auto 0.45rem; box-sizing: border-box; }
.fs-ico.hd-folder { width: 3.4rem; height: 2.4rem; margin-top: 0.75rem; }
.fs-ico.hd-sheet {
  width: 2.5rem; height: 3.1rem;
  background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0.22) 0 1px, transparent 1px 6px);
  background-size: 58% 52%; background-position: 40% 62%; background-repeat: no-repeat;
}
.fs-item .fs-name { display: block; font-size: 0.86rem; font-weight: 600; line-height: 1.25; color: var(--ink, #1a1a1a); }
.fs-item .fs-fn { display: block; margin-top: 0.1rem; overflow-wrap: anywhere; }
.fs-item .fs-what { display: block; margin-top: 0.15rem; }
.fs-item.is-key .fs-ico.hd-sheet, .fs-cover .fs-ico.hd-sheet { border-color: var(--accent, #783FF3); background-color: #F1EAFF; }
.fs-item.is-key .fs-name { color: var(--accent-strong, #5d24d0); }
/* a mappa leírása (CLAUDE.md) egy nyitott mappában: lap + mit tud, egy sorban */
.fs-cover { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0 0 0.8rem; }
.fs-cover .fs-ico { flex: none; margin: 0; }
.fs-cover-text { font-size: 0.92rem; line-height: 1.45; color: var(--ink-body, #2a2722); }
.fs-cover-text b { color: var(--accent-strong, #5d24d0); font-weight: 600; }
@media (max-width: 720px) {
  .fs-item { width: 6.3rem; }
  .fs-open { padding: 0.8rem 0.75rem 0.85rem; }
}

/* Képernyőkép-jegyzet (.hd-shot-note): a leckében a hasáb mellett csak széles képernyőn
   fér el (a bal oldali menü miatt); alatta a kép ALÁ kerül, különben vízszintes görgetést okoz. */
@media (max-width: 1500px) {
  .article-body .hd-shot-note, .article-body .hd-shot-note.left {
    position: static; display: block; width: auto; max-width: none;
    margin: 0.45rem 0 0 0.2rem; text-align: left; transform: rotate(-1deg);
  }
}
