/* Evidence Hub (/evidence/, /en/evidence/) - generated pages from tools/pagegen/build_evidence.py.
 *
 * One light page on the site's navy-and-indigo brand, Pretendard, no imagery except the monochrome
 * hairline line figures and the charts drawn from the JSON. The six loop steps (think, ask, verify,
 * create, improve, defend) each keep one colour everywhere: --c-<step> and --c-<step>-dark, validated for
 * colour-vision deficiency on white, on the alt background and on the navy hero. Charts use navy for
 * the series that carries the point and warm gray for context; text never wears a series colour.
 *
 * Density gate (tools/qa/check_density.py): body 15px, section padding 32+32 at 1280 and 24+24 at
 * 390, the hero block under 600px at 1280 and 800px at 390, keep-all from ko-typography.css.
 * Every state in this sheet is complete without JavaScript: details/summary carry the accordions,
 * the mode toggle only hides what the other audiences do not need. */

:root {
  --ink: #0d1b3f;
  --body: #1f2a44;
  --mute: #5b6477;
  --line: #e4e7ef;
  --line-2: #d6dbe6;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --card: #ffffff;
  --pen: #4f46e5;
  --pen-ink: #4338ca;
  --pen-soft: #eef2ff;
  --navy: #0d1b3f;
  --navy-2: #142553;
  --kakao: #fee500;
  --c-think: #2a78d6;
  --c-ask: #eb6834;
  --c-verify: #159e6e;
  --c-defend: #6250d6;
  --c-create: #8a6d00;
  --c-improve: #ad1457;
  --c-think-dark: #3987e5;
  --c-ask-dark: #d95926;
  --c-verify-dark: #199e70;
  --c-defend-dark: #9085e9;
  --c-create-dark: #b8860b;
  --c-improve-dark: #e0457f;
  --gray-mark: #c3c2b7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 27, 63, .05), 0 8px 24px -12px rgba(13, 27, 63, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --max: 1160px;
  --gutter: 16px;
  --sec-y: 24px;
  --fs: 15px;
  --nav-h: 65px;
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --sec-y: 32px; --fs: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--body); scroll-padding-top: calc(var(--nav-h) + 56px); -webkit-text-size-adjust: 100%; }
html:lang(en) { word-break: normal; }
body.ev { margin: 0; font-family: var(--sans); font-size: var(--fs); line-height: 1.6; color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; }
:where(body.ev) :where(h1, h2, h3, h4) { color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; margin: 0; font-size: inherit; }
:where(body.ev) p { margin: 0; text-wrap: pretty; }
:where(body.ev a) { color: var(--pen-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(body.ev a:hover) { color: var(--ink); }
body.ev :focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
body.ev img, body.ev svg { max-width: 100%; }
:where(body.ev) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
body.ev dl { margin: 0; }
body.ev button { font: inherit; color: inherit; }
.ev-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.ev-skip:focus { left: 8px; }
.ev-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Site navigation lives in #navBarContainer (nav-bar.js); reserve its height. The header is fixed and
 * painted here with the same white, blur and hairline the home page gives .sticky-header in its inline
 * style; without the background the page scrolled visibly through the logo and menu (2026-11-06). */
#navBarContainer { min-height: var(--nav-h); }
#navBarContainer .sticky-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #e5e7eb; }

/* Mode bar ---------------------------------------------------------------- */
.ev-bar { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ev-bar__in { display: flex; align-items: center; gap: 12px 18px; min-height: 52px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.ev-bar__label { font-size: 13px; color: var(--mute); margin-right: 2px; }
.ev-modes { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.ev-mode { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mute); cursor: pointer; min-height: 32px; }
.ev-mode[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ev-mode:hover { color: var(--ink); }
.ev-mode[aria-pressed="true"]:hover { color: #fff; }
.ev-jump { display: none; gap: 14px; font-size: 14px; font-weight: 600; margin-left: auto; }
.ev-jump a { color: var(--mute); text-decoration: none; padding: 4px 0; }
.ev-jump a:hover, .ev-jump a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--pen); }
.ev-lang { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px; }
@media (min-width: 1024px) { .ev-jump { display: flex; } }
.ev-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* In-page search (FR18): a button in the bar, a panel under it, results built from the DOM. */
.ev-search { margin-left: auto; }
@media (min-width: 1024px) { .ev-search { margin-left: 0; } }
html:not(.js) .ev-search { display: none; }
.ev-search__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.ev-search__btn svg { width: 15px; height: 15px; }
.ev-search__btn:hover { border-color: var(--pen); color: var(--pen-ink); }
@media (max-width: 767px) {
  /* keep the bar on one row at 390: the toggle explains itself, the search button is its icon */
  .ev-bar__label { display: none; }
  .ev-search__btn { padding: 5px 9px; }
  .ev-search__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.ev-search__btn[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ev-search__panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px -18px rgba(13, 27, 63, .28); }
.ev-search__in { padding: 10px var(--gutter) 12px; }
.ev-search__field { display: block; }
.ev-search__field input { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); background: #fff; }
.ev-search__field input:focus { outline: 2px solid var(--pen); outline-offset: 1px; border-color: var(--pen); }
.ev-search__results { margin-top: 8px; max-height: min(60vh, 440px); overflow: auto; display: grid; gap: 2px; }
.ev-search__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.ev-search__item:hover, .ev-search__item[aria-selected="true"] { background: var(--pen-soft); color: var(--ink); }
.ev-search__type { font-size: 11px; font-weight: 800; color: var(--pen-ink); background: var(--pen-soft); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.ev-search__item:hover .ev-search__type, .ev-search__item[aria-selected="true"] .ev-search__type { background: #fff; }
.ev-search__title { font-weight: 700; font-size: 14px; min-width: 0; }
.ev-search__snip { grid-column: 2; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-search__none, .ev-search__hint { font-size: 13px; color: var(--mute); padding: 6px 2px 0; }
.ev-mod, .ev-src li { scroll-margin-top: calc(var(--nav-h) + 64px); }

/* Mode visibility: hide what the other audiences do not need; everything stays in the HTML. */
body[data-mode="parent"] .only-tutor, body[data-mode="parent"] .only-staff, body[data-mode="parent"] .not-parent,
body[data-mode="tutor"] .only-parent, body[data-mode="tutor"] .only-staff,
body[data-mode="staff"] .only-parent, body[data-mode="staff"] .only-tutor { display: none !important; }
.ev-draft { background: #fff7e6; color: #7a4b00; border: 1px solid #f6d58e; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; max-width: var(--max); margin: 12px auto 0; }

/* Buttons ------------------------------------------------------------------- */
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; line-height: 1.25; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .2s, border-color .2s; }
.ev-btn:active { transform: translateY(1px) scale(.985); }
.ev-btn--primary { background: var(--pen); color: #fff; }
.ev-btn--primary:hover { background: var(--pen-ink); color: #fff; }
.ev-btn--light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.ev-btn--light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ev-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); min-height: 38px; padding: 7px 14px; font-size: 14px; }
.ev-btn--ghost:hover { border-color: var(--pen); color: var(--pen-ink); }
.ev-btn--kakao { background: var(--kakao); color: #1a1005; }
.ev-btn--kakao:hover { background: #fdd800; color: #1a1005; }
.ev-chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 32px; }
.ev-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Sections ------------------------------------------------------------------ */
.ev-sec { padding: var(--sec-y) 0; }
.ev-sec--alt { background: var(--bg-alt); }
.ev-head { max-width: 760px; margin: 0 0 18px; }
.ev-head h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; font-weight: 800; }
.ev-head__lead { color: var(--mute); margin-top: 8px; font-size: 15px; line-height: 1.6; max-width: 62ch; }
@media (min-width: 768px) { .ev-head__lead { font-size: 16px; } }
.ev-head--fig { display: grid; grid-template-columns: 1fr; max-width: none; align-items: end; }
.ev-head__fig { display: none; }
@media (min-width: 1024px) {
  .ev-head--fig { grid-template-columns: minmax(0, 760px) 220px; gap: 24px; }
  .ev-head__fig { display: block; width: 220px; aspect-ratio: 5 / 4; justify-self: end; }
}
.ev-sub { font-size: clamp(18px, 2vw, 22px); font-weight: 800; margin: 28px 0 12px; }

/* Hero ---------------------------------------------------------------------- */
.ev-hero { color: #fff; background: radial-gradient(1200px 520px at 85% -10%, #1f3a8a 0%, var(--navy) 55%, #091331 100%); padding: 28px 0 32px; overflow: hidden; }
.ev-hero__grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 1024px) { .ev-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; } .ev-hero { padding: 36px 0 40px; } }
.ev-kicker { font-size: 13px; font-weight: 600; color: #c7d2fe; margin-bottom: 12px; letter-spacing: .01em; }
.ev-hero h1 { color: #fff; font-size: clamp(27px, 3.6vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; max-width: 18em; }
.ev-lead { margin-top: 14px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .86); max-width: 34em; }
@media (min-width: 768px) { .ev-lead { font-size: 17px; } }
.ev-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* The loop: the steps on a ring around the line figure (six since 2026-11-06; the ring takes any count). */
.ev-loop { position: relative; }
.ev-loop__title { color: #c7d2fe; font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 6px; }
.ev-loop__ring { position: relative; width: min(100%, 380px); margin: 0 auto; aspect-ratio: 1 / 1; }
.ev-loop__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ev-loop__arc { opacity: .95; }
.ev-loop__arc--think { color: var(--c-think-dark); }
.ev-loop__arc--ask { color: var(--c-ask-dark); }
.ev-loop__arc--verify { color: var(--c-verify-dark); }
.ev-loop__arc--defend { color: var(--c-defend-dark); }
.ev-loop__arc--create { color: var(--c-create-dark); }
.ev-loop__arc--improve { color: var(--c-improve-dark); }
.ev-loop__runner { fill: #fff; opacity: 0; transform-box: view-box; transform-origin: 180px 180px; }
.ev-loop__figure { position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 5 / 4; transform: translate(-50%, -50%); --hairline-plate: #0d1b3f; --hairline-hi: #ffffff; --hairline-edge: #c7d2fe; --hairline-mid: #7c86b8; --hairline-lo: #2a3a6e; --hairline-stroke: 1; }
.ev-loop__nodes { position: absolute; inset: 0; }
.ev-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.ev-node__a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; background: rgba(13, 27, 63, .9); border: 1.5px solid var(--node); border-radius: 999px; padding: 6px 14px 6px 6px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); transition: transform .25s var(--ease), background .2s; }
.ev-node__a:hover, .ev-node__a:focus-visible { color: #fff; transform: scale(1.04); background: var(--node); }
.ev-node__n { width: 26px; height: 26px; border-radius: 50%; background: var(--node); color: #fff; font-weight: 800; font-size: 13px; display: inline-grid; place-items: center; }
.ev-node__a:hover .ev-node__n, .ev-node__a:focus-visible .ev-node__n { background: rgba(255, 255, 255, .25); }
.ev-node__l { font-weight: 700; font-size: 15px; white-space: nowrap; }
.ev-node__why { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 240px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 2; text-wrap: pretty; }
.ev-node__a:hover .ev-node__why, .ev-node__a:focus-visible .ev-node__why { opacity: 1; }
.ev-node--think { --node: var(--c-think-dark); }
.ev-node--ask { --node: var(--c-ask-dark); }
.ev-node--verify { --node: var(--c-verify-dark); }
.ev-node--defend { --node: var(--c-defend-dark); }
.ev-node--create { --node: var(--c-create-dark); }
.ev-node--improve { --node: var(--c-improve-dark); }
.ev-node[data-side="right"] .ev-node__why { left: auto; right: 0; transform: none; }
.ev-node[data-side="left"] .ev-node__why { left: 0; transform: none; }
.ev-node[data-side="bottom"] .ev-node__why { top: auto; bottom: calc(100% + 8px); }
/* six on the ring: a wider ring and slimmer pills so the arrows between them stay visible */
.ev-loop--6 .ev-loop__ring { width: min(100%, 420px); }
.ev-loop--6 .ev-node__a { padding: 5px 12px 5px 5px; }
.ev-loop--6 .ev-node__n { width: 24px; height: 24px; font-size: 12px; }
.ev-loop--6 .ev-node__l { font-size: 14px; }
.ev-loop__hint { color: #a5b4fc; font-size: 12px; text-align: center; margin-top: 8px; }
@media (max-width: 767px) {
  .ev-loop__ring { aspect-ratio: auto; width: 100%; }
  .ev-loop__svg, .ev-loop__figure { display: none; }
  .ev-loop__nodes { position: static; display: grid; gap: 8px; }
  .ev-node { position: static; transform: none; }
  .ev-node__a { border-radius: 12px; padding: 8px 12px 8px 8px; flex-wrap: wrap; }
  .ev-node__why { position: static; transform: none; opacity: 1; width: auto; max-width: none; background: transparent; color: #c7d2fe; box-shadow: none; padding: 0 0 0 34px; flex-basis: 100%; }
  .ev-loop__hint { display: none; }
  /* six steps on a phone: two columns of pills, the notes stay on the evidence cards, the hint stays */
  .ev-loop--6 .ev-loop__nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-loop--6 .ev-node__a { height: 100%; }
  .ev-loop--6 .ev-node__why { display: none; }
  .ev-loop--6 .ev-loop__hint { display: block; }
}
html.motion .ev-loop__arc { stroke-dasharray: 260; stroke-dashoffset: 260; animation: ev-draw 1.4s var(--ease) forwards; }
html.motion .ev-loop__arc--ask { animation-delay: .15s; }
html.motion .ev-loop__arc--verify { animation-delay: .3s; }
html.motion .ev-loop__arc--create { animation-delay: .45s; }
html.motion .ev-loop__arc--improve { animation-delay: .6s; }
html.motion .ev-loop__arc--defend { animation-delay: .75s; }
html.motion .ev-loop__runner { opacity: .9; animation: ev-spin 14s linear 1.6s infinite; }
@keyframes ev-draw { to { stroke-dashoffset: 0; } }
@keyframes ev-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html.motion .ev-loop__arc, html.motion .ev-loop__runner { animation: none; stroke-dashoffset: 0; opacity: 0; } }

/* Evidence cards ------------------------------------------------------------ */
.ev-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: calc(var(--nav-h) + 64px); }
.ev-card--headline { margin-bottom: 16px; box-shadow: var(--shadow); }
@media (min-width: 1024px) {
  .ev-card--headline { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "head head" "fig finding" "fig caveat" "fig meta" "fig cite" "actions actions" "staff staff"; column-gap: 28px; row-gap: 10px; padding: 24px; }
  .ev-card--headline .ev-card__head { grid-area: head; }
  .ev-card--headline .ev-card__figure { grid-area: fig; }
  .ev-card--headline .ev-card__finding { grid-area: finding; }
  .ev-card--headline .ev-card__caveat { grid-area: caveat; }
  .ev-card--headline .ev-card__meta { grid-area: meta; }
  .ev-card--headline .ev-cite { grid-area: cite; }
  .ev-card--headline .ev-card__actions { grid-area: actions; }
  .ev-card--headline .ev-staff { grid-area: staff; }
}
.ev-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ev-card__id { font-size: 12px; font-weight: 800; color: var(--pen-ink); background: var(--pen-soft); padding: 2px 8px; border-radius: 6px; letter-spacing: .02em; }
.ev-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #fff3e0; color: #8a4b00; }
.ev-badge--opinion { background: #f1f5f9; color: #334155; }
.ev-badge--quote { background: #f1f5f9; color: #334155; }
.ev-badge--not-sold { background: #ffe4e6; color: #9f1239; }
.ev-card__title { flex-basis: 100%; font-size: 19px; line-height: 1.3; font-weight: 800; }
.ev-card--headline .ev-card__title { font-size: clamp(20px, 2.2vw, 26px); }
.ev-card__figure { min-width: 0; }
.ev-card__finding { font-size: 15px; line-height: 1.65; }
@media (min-width: 768px) { .ev-card__finding { font-size: 16px; } }
.ev-card__caveat { font-size: 14px; line-height: 1.55; color: #5a3b00; background: #fff8ea; border-radius: var(--radius-sm); padding: 10px 12px; }
.ev-card__caveat b { color: #7a4b00; display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .01em; }
.ev-card__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--mute); }
.ev-card__meta div { display: flex; gap: 6px; }
.ev-card__meta dt { font-weight: 700; color: var(--ink); }
.ev-card__meta dt::after { content: ":"; }
.ev-card__meta dd { margin: 0; }
.ev-cite { font-size: 14px; }
.ev-cite a { font-weight: 700; }
.ev-cite__alt { font-weight: 500; color: var(--mute); margin-left: 6px; }
.ev-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-card__actions .ev-btn { min-height: 36px; }

.ev-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; }
.ev-num__v { font-size: clamp(34px, 4.5vw, 48px); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.ev-num__u { font-size: 16px; font-weight: 700; color: var(--ink); }
.ev-num__l { flex-basis: 100%; font-size: 13px; color: var(--mute); }
.ev-quote { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); }
.ev-quote p { font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.ev-quote p::before { content: "\201C"; color: var(--pen); margin-right: 2px; }
.ev-quote p::after { content: "\201D"; color: var(--pen); margin-left: 2px; }
.ev-quote footer { margin-top: 8px; font-size: 13px; color: var(--mute); }

/* Charts */
.ev-chart { display: block; width: 100%; height: auto; font-family: var(--sans); }
.ev-chart text { font-family: var(--sans); }
.ev-fig { margin: 0; }
.ev-fig__cap { font-size: 13px; color: var(--mute); margin: 6px 0; }
.ev-fig__wide { display: none; }
.ev-fig__narrow { display: block; }
@media (min-width: 700px) { .ev-fig__wide { display: block; } .ev-fig__narrow { display: none; } }
.ev-fig--e1 .ev-fig__wide { max-width: 640px; }
.ev-fig--effect { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px 8px; margin-bottom: 16px; }
.ev-fig--effect .ev-fig__wide { max-width: 760px; margin: 0 auto; }
.ev-seq { display: grid; gap: 8px; margin-bottom: 8px; }
.ev-seq__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; }
.ev-seq__step { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 8px 10px; font-weight: 700; color: var(--ink); }
.ev-seq__arrow { width: 22px; height: 2px; background: var(--line-2); position: relative; }
.ev-seq__arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--line-2); }
.ev-seq__res { color: var(--ink); font-weight: 600; }
.ev-seq__row--down .ev-seq__res { color: var(--mute); }
.ev-seq__row--up .ev-seq__step { box-shadow: inset 0 0 0 1.5px var(--c-think); }

/* Rows and grids */
.ev-row { display: grid; gap: 14px; }
.ev-row--two { grid-template-columns: 1fr; }
@media (min-width: 768px) { .ev-row--two { grid-template-columns: 1fr 1fr; } }
.ev-row--swipe { grid-template-columns: 1fr; }
@media (max-width: 767px) {
  .ev-row--swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .ev-row--swipe > .ev-card { flex: 0 0 86%; scroll-snap-align: start; }
}
@media (min-width: 768px) { .ev-row--swipe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-grid--cards { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 768px) { .ev-grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ev-grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-more { margin-top: 16px; }
.ev-more > summary { list-style: none; width: fit-content; }
.ev-more > summary::-webkit-details-marker { display: none; }
.ev-more__close { display: none; }
.ev-more[open] .ev-more__open { display: none; }
.ev-more[open] .ev-more__close { display: inline; }

/* Staff block and panel */
.ev-staff { display: grid; gap: 10px; border-top: 1px dashed var(--line-2); padding-top: 12px; font-size: 14px; }
@media (min-width: 768px) { .ev-staff { grid-template-columns: 1fr 1fr; } }
.ev-staff h4 { font-size: 12px; letter-spacing: .02em; margin-bottom: 4px; color: var(--c-verify); }
.ev-staff__col--avoid h4 { color: #b42318; }
.ev-staff li { padding-left: 14px; position: relative; margin-top: 4px; line-height: 1.5; }
.ev-staff li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.ev-panel { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.ev-panel h3 { font-size: 18px; font-weight: 800; }
.ev-scroll { overflow-x: auto; margin-top: 12px; }
.ev-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.ev-table th, .ev-table td { text-align: left; vertical-align: top; padding: 10px 10px; border-top: 1px solid var(--line); }
.ev-table thead th { font-size: 12px; color: var(--mute); border-top: 0; }
.ev-table--staff th[scope="row"] { width: 20%; font-weight: 800; }
.ev-table--staff th[scope="row"] span { display: block; font-weight: 500; font-size: 13px; color: var(--mute); margin-top: 2px; }
.ev-table--staff li { margin-bottom: 6px; }
.ev-staff__avoid { color: #7a1f1f; }

/* Callout (MIT) */
.ev-callout { margin-top: 18px; display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.ev-callout h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.ev-callout p { font-size: 15px; line-height: 1.6; max-width: 70ch; }
.ev-callout__fig { display: none; }
@media (min-width: 1024px) { .ev-callout { grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 24px; } .ev-callout__fig { display: block; width: 200px; aspect-ratio: 5 / 4; } }

/* Curriculum map ------------------------------------------------------------ */
.ev-map-controls { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 768px) { .ev-map-controls { grid-template-columns: auto auto; justify-content: start; gap: 24px; } }
.ev-control { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-control__l { font-size: 13px; font-weight: 700; color: var(--ink); }
.ev-band { margin-bottom: 12px; }
.ev-band__first { background: var(--pen-soft); color: var(--ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; line-height: 1.55; }
.ev-band__first b { color: var(--pen-ink); margin-right: 6px; }
.ev-map { display: grid; gap: 10px; }
.ev-map__layers { display: none; }
.ev-stage { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.ev-stage__h { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; background: var(--bg-alt); font-size: 16px; }
.ev-stage__name { font-weight: 800; }
.ev-stage__grades { font-size: 13px; color: var(--mute); font-weight: 600; }
.ev-stage__cells { display: grid; }
.ev-cell { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 64px); }
.ev-cell > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px; font-size: 14px; }
.ev-cell > summary::-webkit-details-marker { display: none; }
.ev-cell > summary:hover { background: #fafbfe; }
.ev-cell__layer { font-weight: 800; color: var(--ink); grid-column: 1 / -1; }
.ev-cell__sum { color: var(--mute); }
.ev-cell__sum b { color: var(--ink); }
.ev-cell__level { font-size: 12px; font-weight: 700; color: var(--pen-ink); background: var(--pen-soft); padding: 2px 8px; border-radius: 6px; align-self: start; }
.ev-cell__body { padding: 0 14px 12px; font-size: 14px; }
.ev-mods { display: grid; gap: 4px; }
.ev-mod { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px dashed var(--line); }
.ev-mod:first-child { border-top: 0; }
.ev-mod__n { color: var(--ink); }
.ev-mod__h { color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13px; }
.ev-cell__meta { margin-top: 8px; display: grid; gap: 2px; font-size: 13px; color: var(--mute); }
.ev-cell__meta dt { font-weight: 700; color: var(--ink); display: inline; }
.ev-cell__meta dt::after { content: ": "; }
.ev-cell__meta dd { display: inline; margin: 0; }
.ev-map[data-track="intl"] .ev-mod:not([data-tracks~="intl"]), .ev-map[data-track="kr"] .ev-mod:not([data-tracks~="kr"]) { display: none; }
.ev-map[data-band] .ev-stage { opacity: .55; }
.ev-map[data-band="g6-8"] .ev-stage[data-band="g6-8"], .ev-map[data-band="g8-10"] .ev-stage[data-band="g8-10"], .ev-map[data-band="g10-12"] .ev-stage[data-band="g10-12"] { opacity: 1; box-shadow: 0 0 0 2px var(--pen); }
@media (min-width: 1024px) {
  .ev-map { grid-template-columns: 200px repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
  .ev-map__layers, .ev-stage, .ev-stage__cells { display: contents; }
  .ev-stage { border: 0; }
  .ev-layer { grid-column: 1; padding: 12px 14px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg-alt); font-size: 13px; color: var(--mute); display: flex; flex-direction: column; gap: 4px; }
  .ev-layer b { font-size: 15px; color: var(--ink); }
  .ev-layer--corner { grid-row: 1; border-top: 0; }
  .ev-layer--thinking { grid-row: 2; } .ev-layer--python { grid-row: 3; } .ev-layer--ai { grid-row: 4; } .ev-layer--aix { grid-row: 5; }
  .ev-stage__h { grid-row: 1; border-left: 1px solid var(--line); padding: 14px 16px; }
  #stage-foundation-t { grid-column: 2; } #stage-builder-t { grid-column: 3; } #stage-specialist-t { grid-column: 4; }
  .ev-cell { border-left: 1px solid var(--line); }
  .ev-cell[data-stage="foundation"] { grid-column: 2; } .ev-cell[data-stage="builder"] { grid-column: 3; } .ev-cell[data-stage="specialist"] { grid-column: 4; }
  .ev-cell[data-layer="thinking"] { grid-row: 2; } .ev-cell[data-layer="python"] { grid-row: 3; } .ev-cell[data-layer="ai"] { grid-row: 4; } .ev-cell[data-layer="aix"] { grid-row: 5; }
  .ev-cell__layer { display: none; }
  .ev-map[data-band] .ev-stage { opacity: 1; box-shadow: none; }
  .ev-map[data-band] .ev-cell, .ev-map[data-band] .ev-stage__h { opacity: .5; }
  .ev-map[data-band="g6-8"] :is(.ev-cell[data-stage="foundation"], #stage-foundation-t), .ev-map[data-band="g8-10"] :is(.ev-cell[data-stage="builder"], #stage-builder-t), .ev-map[data-band="g10-12"] :is(.ev-cell[data-stage="specialist"], #stage-specialist-t) { opacity: 1; background: var(--pen-soft); }
}
.ev-levels { margin-top: 22px; }
.ev-levels h3 { font-size: 18px; font-weight: 800; }
.ev-levels__list { display: grid; gap: 10px; margin-top: 12px; counter-reset: none; }
@media (min-width: 1024px) { .ev-levels__list { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; } .ev-level:nth-child(2) { margin-bottom: 14px; } .ev-level:nth-child(3) { margin-bottom: 28px; } .ev-level:nth-child(4) { margin-bottom: 42px; } .ev-level:nth-child(5) { margin-bottom: 56px; } }
.ev-level { display: grid; grid-template-columns: auto 1fr; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-size: 14px; }
.ev-level__id { font-weight: 800; color: var(--pen-ink); font-size: 15px; }
.ev-level b { display: block; color: var(--ink); margin-bottom: 2px; }
.ev-level__ex { color: var(--mute); margin-top: 6px; font-size: 13px; }
.ev-level__ex::before { content: "\2192 "; color: var(--pen); }

/* Rituals deck -------------------------------------------------------------- */
.ev-deck { display: grid; gap: 12px; }
@media (min-width: 768px) { .ev-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ev-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-ritual { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; scroll-margin-top: calc(var(--nav-h) + 64px); --step: var(--c-think); }
.ev-ritual--ask { --step: var(--c-ask); } .ev-ritual--verify { --step: var(--c-verify); } .ev-ritual--defend { --step: var(--c-defend); }
.ev-ritual--create { --step: var(--c-create); } .ev-ritual--improve { --step: var(--c-improve); }
.ev-ritual::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--step); }
.ev-ritual__id { font-size: 12px; font-weight: 800; color: var(--step); }
.ev-ritual__name { font-size: 17px; font-weight: 800; margin: 2px 0 8px; }
.ev-ritual p { font-size: 14px; line-height: 1.55; margin-top: 6px; }
.ev-ritual p b { color: var(--ink); margin-right: 4px; }
.ev-ritual .ev-flip { margin-top: 10px; }
.ev-ritual__back { display: none; }
.ev-ritual.is-flipped .ev-ritual__front { display: none; }
.ev-ritual.is-flipped .ev-ritual__back { display: block; }
.ev-ritual__back h4 { font-size: 12px; color: var(--step); letter-spacing: .02em; }
.ev-ritual__script { font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 12px; margin-top: 8px; }
body[data-mode="tutor"] .ev-ritual__back { display: block; border-top: 1px dashed var(--line-2); margin-top: 12px; padding-top: 10px; }
body[data-mode="tutor"] .ev-ritual .ev-flip { display: none; }
body[data-mode="tutor"] .ev-ritual.is-flipped .ev-ritual__front { display: block; }
.ev-evlink { display: inline-block; font-size: 12px; font-weight: 800; color: var(--pen-ink); background: var(--pen-soft); padding: 1px 7px; border-radius: 6px; text-decoration: none; margin-right: 4px; }
.ev-evlink:hover { background: var(--pen); color: #fff; }
.ev-evlink--rule { background: var(--bg-alt); color: var(--mute); }

/* Studios and tracks -------------------------------------------------------- */
.ev-studios { display: grid; gap: 18px; }
@media (min-width: 1024px) { .ev-studios { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; } }
.ev-wheel { width: 100%; height: auto; display: none; }
@media (min-width: 768px) { .ev-wheel { display: block; } }
.ev-wheel__seg path { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; transition: fill .2s; }
.ev-wheel__seg text { fill: var(--ink); pointer-events: none; }
.ev-wheel__seg:hover path, .ev-wheel__seg:focus-visible path { fill: var(--pen-soft); stroke: var(--pen); }
.ev-wheel__core { fill: var(--ink); }
.ev-wheel__core + text, .ev-wheel__core + text + text { fill: #fff; }
.ev-studios__core { font-size: 14px; color: var(--mute); line-height: 1.55; margin-top: 8px; }
.ev-studios__core b { color: var(--ink); }
.ev-studios__list { display: grid; gap: 10px; counter-reset: studio; }
@media (min-width: 768px) { .ev-studios__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-studio { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; counter-increment: studio; scroll-margin-top: calc(var(--nav-h) + 64px); }
.ev-studio h4 { font-size: 15px; font-weight: 800; }
.ev-studio h4::before { content: counter(studio) " "; color: var(--pen); }
.ev-studio h4 a { text-decoration: none; color: var(--ink); }
.ev-studio h4 a:hover { color: var(--pen-ink); text-decoration: underline; }
.ev-studio dl { margin-top: 6px; display: grid; gap: 2px; color: var(--mute); }
.ev-studio dt { display: inline; font-weight: 700; color: var(--ink); }
.ev-studio dt::after { content: ": "; }
.ev-studio dd { display: inline; margin: 0; }
.ev-tracks { margin-top: 26px; }
.ev-tracks h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.ev-tracks__grid { display: grid; gap: 12px; }
@media (min-width: 1024px) { .ev-tracks__grid { grid-template-columns: 1fr minmax(0, 1.1fr) 1fr; align-items: stretch; } }
.ev-lane { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.ev-lane h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.ev-lane li { font-size: 14px; padding: 6px 0; border-top: 1px dashed var(--line); }
.ev-lane li:first-child { border-top: 0; }
.ev-lane__note { margin-top: 8px; font-size: 13px; color: var(--mute); }
.ev-bridge { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: center; text-align: center; }
.ev-bridge h4 { color: #fff; font-size: 16px; font-weight: 800; }
.ev-bridge p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.ev-bridge__fig { display: none; width: 160px; margin: 0 auto; aspect-ratio: 5 / 4; --hairline-plate: #0d1b3f; --hairline-hi: #ffffff; --hairline-edge: #c7d2fe; --hairline-mid: #7c86b8; --hairline-lo: #2a3a6e; --hairline-stroke: 1; }
@media (min-width: 1024px) { .ev-bridge__fig { display: block; } }
.ev-tracks__spine { margin-top: 10px; font-size: 13px; color: var(--mute); text-align: center; }

/* Comparison and guardrails ------------------------------------------------- */
.ev-cmp { display: grid; gap: 8px; }
.ev-cmp__row { display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.ev-cmp__row--head { display: none; }
.ev-cmp__k { font-weight: 800; color: var(--ink); }
.ev-cmp__who { display: block; font-size: 12px; font-weight: 700; color: var(--mute); margin-bottom: 2px; }
.ev-cmp__cit { color: var(--ink); }
.ev-cmp__other { color: var(--mute); }
@media (min-width: 900px) {
  .ev-cmp { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .ev-cmp__row { grid-template-columns: 150px minmax(0, 1.3fr) minmax(0, 1fr) 90px; gap: 18px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 16px; }
  .ev-cmp__row--head { display: grid; border-top: 0; background: var(--bg-alt); font-size: 12px; color: var(--mute); font-weight: 700; }
  .ev-cmp__who { display: none; }
}
.ev-guards { display: grid; gap: 10px; }
@media (min-width: 768px) { .ev-guards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ev-guards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-guard { display: grid; grid-template-columns: auto 1fr; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; scroll-margin-top: calc(var(--nav-h) + 64px); }
.ev-guard__n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ev-guard p { color: var(--ink); font-weight: 600; }
.ev-guard__ev { margin-top: 6px; }

/* Parents, share, sources --------------------------------------------------- */
.ev-parents { display: grid; gap: 16px; }
@media (min-width: 1024px) { .ev-parents { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; } }
.ev-rationale { font-size: 17px; line-height: 1.75; color: var(--ink); max-width: 62ch; }
@media (min-width: 768px) { .ev-rationale { font-size: 18px; } }
.ev-share { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1; }
.ev-parents__fig { display: none; }
@media (min-width: 1024px) { .ev-parents__fig { display: block; grid-column: 2; grid-row: 1 / span 2; width: 220px; aspect-ratio: 5 / 4; } }
.ev-sources { margin-top: 28px; }
.ev-sources h3 { font-size: 18px; font-weight: 800; }
.ev-src { border-top: 1px solid var(--line); padding: 10px 0; }
.ev-src summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 15px; }
.ev-src ol { margin-top: 8px; display: grid; gap: 8px; counter-reset: src; font-size: 13px; line-height: 1.55; color: var(--mute); }
.ev-src li { padding-left: 0; }
.ev-src li a:not(.ev-evlink) { color: var(--pen-ink); word-break: break-all; }
.ev-version { margin-top: 16px; font-size: 13px; color: var(--mute); }

/* Footer -------------------------------------------------------------------- */
.ev-footer { background: #0a1430; color: #fff; padding: 28px 0; font-size: 14px; line-height: 1.6; margin-top: 8px; }
.ev-footer a { color: #fff; }
.ev-footer p { margin-top: 6px; }
.ev-footer__name { font-size: 17px; font-weight: 800; margin: 0; }
.ev-footer__name span { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 600; color: #a5b4fc; }
.ev-footer__copy { color: #a5b4fc; font-size: 12px; margin-top: 12px; }

/* Dialogs ------------------------------------------------------------------- */
.ev-dialog { border: 0; border-radius: 16px; padding: 0; max-width: min(92vw, 960px); width: 100%; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); color: var(--body); font-family: var(--sans); }
.ev-dialog::backdrop { background: rgba(13, 27, 63, .6); backdrop-filter: blur(2px); }
.ev-lesson__in { padding: 20px; max-height: 88vh; overflow: auto; }
.ev-dialog__close { float: right; margin-left: 12px; }
.ev-lesson__body { font-size: 18px; }
.ev-lesson__body .ev-card { border: 0; padding: 0; box-shadow: none; display: block; }
.ev-lesson__body .ev-card__title { font-size: clamp(22px, 3vw, 34px); }
.ev-lesson__body .ev-card__finding { font-size: clamp(17px, 2vw, 22px); line-height: 1.6; }
.ev-lesson__body .ev-card__caveat { font-size: 16px; margin-top: 12px; }
.ev-lesson__body .ev-card__actions, .ev-lesson__body .ev-staff { display: none; }
.ev-lesson__body .ev-fig__narrow { display: none; }
.ev-lesson__body .ev-fig__wide { display: block; max-width: none; }
.ev-lesson__body .ev-num__v { font-size: 64px; }
.ev-gate { max-width: 420px; }
.ev-gate__form { padding: 22px; display: grid; gap: 10px; }
.ev-gate__form h2 { font-size: 20px; }
.ev-gate__form p { font-size: 14px; color: var(--mute); }
.ev-gate__label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.ev-gate__label input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; }
.ev-gate__err { color: #b42318; font-weight: 700; }
.ev-gate__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* 퍼가기 dialog (FR17) */
.ev-embed-dlg { max-width: min(92vw, 720px); }
.ev-embed-dlg__in { padding: 22px; max-height: 88vh; overflow: auto; display: grid; gap: 12px; }
.ev-embed-dlg__in h2 { font-size: 20px; }
.ev-embed-dlg__lead { font-size: 14px; color: var(--mute); line-height: 1.55; }
.ev-embed-dlg__blk { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.ev-embed-dlg__blk h3, .ev-embed-dlg__blk h4 { font-size: 14px; }
.ev-embed-dlg__blk p { font-size: 14px; color: var(--mute); }
.ev-embed-dlg__blk textarea { width: 100%; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; resize: vertical; color: var(--ink); background: var(--bg-alt); }
.ev-embed-dlg__blk img { max-width: 320px; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ev-embed-dlg__row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Embeddable widget pages (/evidence/embed/e1.html, map.html): no site chrome, one block. */
body.ev-embed { background: #fff; }
.ev-embed__main { padding: 16px; max-width: 760px; margin: 0 auto; }
body.ev-embed[data-widget="map"] .ev-embed__main { max-width: 1160px; }
.ev-card--embed { margin: 0; box-shadow: none; scroll-margin-top: 0; }
.ev-card--embed .ev-card__title { font-size: clamp(18px, 2.4vw, 24px); }
.ev-embed__head { margin-bottom: 12px; }
.ev-embed__h { font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; line-height: 1.25; }
.ev-embed__lead { color: var(--mute); font-size: 14px; margin-top: 6px; max-width: 62ch; }
body.ev-embed .ev-map-controls { grid-template-columns: 1fr; }
body.ev-embed .ev-cell, body.ev-embed .ev-mod { scroll-margin-top: 0; }
.ev-embed__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.ev-embed__brand { font-weight: 700; color: var(--ink); }
.ev-embed__link { font-weight: 700; }
.ev-embed__url { display: none; font-weight: 700; color: var(--ink); }
html.is-static .ev-embed__link, html.is-static .ev-map-controls { display: none; }
html.is-static .ev-embed__url { display: inline; }

/* Toast */
.ev-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 60; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; pointer-events: none; }
.ev-toast.is-on { opacity: 1; }

/* Hairline hosts: light theme tokens by default; dark hosts set their own above. */
[data-hairline] { --hairline-plate: #ffffff; --hairline-hi: #0d1b3f; --hairline-edge: #475569; --hairline-mid: #94a3b8; --hairline-lo: #e2e8f0; --hairline-stroke: 1; }
.ev-sec--alt [data-hairline] { --hairline-plate: #f5f6fa; }
.ev-callout [data-hairline] { --hairline-plate: #ffffff; }

/* Print: every card and the map open, sources appended, chrome gone. */
@media print {
  .ev-bar, .ev-skip, #navBarContainer, .ev-card__actions, .ev-share, .ev-flip, .ev-loop__hint, .ev-footer, [data-hairline], .ev-toast, .ev-dialog, .ev-jump, .ev-search { display: none !important; }
  body.ev { font-size: 11pt; color: #000; }
  .ev-hero { background: #fff !important; color: #000; padding: 0 0 12pt; }
  .ev-hero h1, .ev-lead, .ev-kicker { color: #000; }
  .ev-loop__ring { width: 300px; }
  .ev-loop--6 .ev-loop__ring { width: 340px; }
  .ev-sec { padding: 10pt 0; break-inside: auto; }
  .ev-card, .ev-ritual, .ev-stage, .ev-guard, .ev-studio, .ev-level { break-inside: avoid; box-shadow: none; }
  .ev-more > summary { display: none; }
  .ev-more:not([open]) > .ev-grid--cards { display: grid; }
  details > summary { list-style: none; }
  .ev-cell__body, .ev-ritual__back { display: block !important; }
  body[data-mode] .only-tutor, body[data-mode] .only-staff { display: block !important; }
  .ev-fig__wide { display: block !important; } .ev-fig__narrow { display: none !important; }
  .ev-src { break-inside: avoid; }
  a[href^="http"]::after { content: ""; }
}
