/* AI 업무 활용 강의 — styles shared by every lesson page.
   Each lesson links this file and then declares, in its own <style> block, only what
   differs there: its accent colour, its diagram width, its own components. Nothing in
   here varies between lessons, so editing this file changes all of them at once.
   The colour tokens below are the lecture theme recorded in DESIGN.md.
   The lecture index (index.html) is a different shell and keeps its own styles.

   Pages link this as learn.css?v=N — bump N whenever this file changes. The origin sends
   Cache-Control: no-cache and Cloudflare honours it at the edge (cf-cache-status:
   REVALIDATED), but it rewrites the browser-facing header to max-age=14400, so a returning
   reader keeps the old file for up to four hours unless the URL changes. Setting the zone's
   Browser Cache TTL to "Respect Existing Headers" would make the bump unnecessary. */

:root{
    --bg:#050505;
    --panel: rgba(15,23,42,.88);
    --panel-soft: rgba(15,23,42,.6);
    --line: rgba(148,163,184,.22);
    --line-strong: rgba(96,165,250,.55);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --accent-strong:#3b82f6;
    --amber:#fcd34d;
    --green:#86efac;
    --red:#f87171;
    --red-soft:#fca5a5;
    /* 평면도 · 대조표 공용 팔레트 — 대조표 13행과 1:1로 고정 매핑 */
    --p-goal:#8e85f2;
    --p-prompt:#ef6f9e;
    --p-term:#f27a5f;
    --p-ide:#a3b3c9;
    --p-git:#cdd363;
    --p-fe:#43b9e0;
    --p-be:#f0a85e;
    --p-db:#4fc19a;
    --p-api:#c990f0;
    --p-cloud:#6fabf0;
    --p-domain:#ecc35c;
    --p-test:#f0975c;
    --p-safety:#fcd34d;
  }
  a:focus-visible, summary:focus-visible, button:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:6px;}
  *{box-sizing:border-box;}
  html,body{margin:0;background:var(--bg);color:var(--text);}
  body{
    font-family: Pretendard, Inter, system-ui, -apple-system, "Malgun Gothic", sans-serif;
    line-height:1.6;
    padding: 28px 20px 80px;
    background:
      radial-gradient(circle at 10% 0%, rgba(30,64,175,.35), transparent 32%),
      radial-gradient(circle at 90% 10%, rgba(30,64,175,.2), transparent 28%),
      var(--bg);
  }
  .wrap{max-width: 1180px; margin: 0 auto;}
  .crumbs{font-size:13px; color:var(--muted); margin-bottom:18px;}
  .crumbs a{color:var(--accent); text-decoration:none;}
  .crumbs a:hover{text-decoration:underline;}
  header.hero{
    border:1px solid var(--line); border-radius:22px; background:var(--panel);
    padding: 30px 32px; box-shadow: 0 22px 60px rgba(0,0,0,.34); margin-bottom:26px;
  }
  h1{margin:0 0 10px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing:-.02em;}
  .definition{
    margin-top:20px; padding:16px 18px; border-left:3px solid var(--accent-strong);
    background: rgba(96,165,250,.08); border-radius: 0 12px 12px 0; font-size:15px;
  }
  .definition b{color:#dbeafe;}
  .note-inline{margin-top:10px; color:var(--amber); font-size:13.5px; font-weight:700;}
  section{margin-bottom: 30px;}
  h2.section-title{font-size:19px; margin: 0 0 4px; letter-spacing:-.01em;}
  p.section-sub{margin:0 0 16px; color:var(--muted); font-size:13.5px;}
  /* ---- diagram panel ---- */
  .diagram-panel{
    border:1px solid var(--line); border-radius:22px; background:var(--panel);
    padding: 22px; box-shadow: 0 22px 60px rgba(0,0,0,.34); overflow-x:auto;
  }
  .num-badge{fill:#60a5fa;}
  .loop-arrow{stroke:#fcd34d; stroke-width:2; fill:none; stroke-dasharray:6 6; marker-end:url(#arrowhead-amber);}
  .loop-label{fill:#fcd34d; font-size:11.5px; font-weight:700; font-family: Pretendard, Inter, sans-serif;}
  .diagram-fallback{margin-top:16px; font-size:12.5px; color:var(--muted);}
  .diagram-fallback summary{cursor:pointer; color:var(--accent); font-weight:700;}
  .diagram-fallback ol{margin:10px 0 0; padding-left:20px;}
  .diagram-fallback li{margin-bottom:4px;}
  /* ---- flow cards ---- */
  .cards{display:grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap:14px;}
  .card-head{display:flex; align-items:center; gap:10px; margin-bottom:8px;}
  .card-icon{font-size:20px;}
  .drawers{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px;}
  .drawer-chip{
    font-size:11px; padding:3px 8px; border-radius:999px; background:rgba(148,163,184,.12);
    border:1px solid var(--line); color:#e2e8f0; white-space:nowrap;
  }
  .drawer-note{margin-top:8px; font-size:11.5px; color:var(--muted);}
  /* ---- glossary table ---- */
  .glossary{border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--panel);}
  table{width:100%; border-collapse:collapse; font-size:13.5px;}
  thead th{
    text-align:left; padding:12px 16px; background:rgba(96,165,250,.12); color:#dbeafe;
    font-size:12px; letter-spacing:.02em; border-bottom:1px solid var(--line);
  }
  tbody td{padding:10px 16px; border-bottom:1px solid var(--line); color:#e2e8f0;}
  tbody tr:last-child td{border-bottom:none;}
  tbody td.tech{color:var(--muted); white-space:nowrap;}
  .dot{display:inline-block; flex:none; width:.6rem; height:.6rem; border-radius:50%; background:var(--dot-c); margin-right:8px; vertical-align:middle;}
  /* ---- lists ---- */
  .two-col{display:grid; grid-template-columns: 1fr 1fr; gap:18px;}
  .plain-list{border:1px solid var(--line); border-radius:16px; background:var(--panel); padding:18px 20px;}
  .plain-list h3{margin:0 0 10px; font-size:14.5px;}
  .plain-list ul{margin:0; padding-left:18px; font-size:13.5px; color:#cbd5e1;}
  .plain-list li{margin-bottom:6px;}
  .plain-list.notdo{border-color: rgba(248,113,113,.35);}
  .plain-list.notdo h3{color:var(--red-soft);}
  .plain-list.next h3{color:var(--green);}
  footer.nav{margin-top: 34px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:13px;}
  footer.nav a{
    color: var(--text); text-decoration:none; padding:9px 14px; border-radius:10px;
    border:1px solid var(--line); background:var(--panel-soft);
  }
  footer.nav a:hover{border-color:var(--line-strong);}
  .plain-list.next p.recap-close{margin:12px 0 0; padding-top:10px; border-top:1px dashed var(--line); font-size:13.5px; color:#e2e8f0;}
  footer.nav a.finale{color:var(--green); border-color: rgba(134,239,172,.4);}
