/* Korean study notebook. Scoped to notes with cssclasses: korean-study. */
.korean-study {
  --ks-blue: 53, 97, 166;
  --ks-gold: 152, 106, 25;
  --ks-green: 43, 122, 88;
  --ks-red: 183, 67, 84;
  --ks-purple: 116, 88, 162;
  --ks-accent: var(--ks-blue);
  --h1-color: rgb(var(--ks-accent));
  --h2-color: rgb(var(--ks-accent));
  --h3-color: var(--text-normal);
  --h1-size: 1.85em;
  --h2-size: 1.28em;
  --h3-size: 1.08em;
  --h1-weight: 750;
  --h2-weight: 650;
  --line-height-normal: 1.7;
  --file-line-width: 820px;
  --link-color: rgb(var(--ks-blue));
  --link-color-hover: rgb(var(--ks-purple));
  --link-unresolved-color: var(--text-muted);
  --table-header-background: rgba(var(--ks-accent), .09);
  --table-header-color: var(--text-normal);
  --table-row-alt-background: rgba(var(--ks-accent), .025);
  --table-border-color: rgba(var(--ks-accent), .18);
  --checkbox-color: rgb(var(--ks-accent));
  --checkbox-color-hover: rgb(var(--ks-accent));
  --checklist-done-color: var(--text-muted);
}
.theme-dark .korean-study {
  --ks-blue: 143, 183, 245;
  --ks-gold: 231, 188, 100;
  --ks-green: 124, 206, 166;
  --ks-red: 241, 143, 153;
  --ks-purple: 191, 168, 236;
}
.korean-vocabulary { --ks-accent: var(--ks-gold); }
.korean-homework { --ks-accent: var(--ks-purple); }
.korean-home { --ks-accent: var(--ks-purple); }
.korean-study .inline-title { color: var(--text-muted); font-size: .9em; letter-spacing: .03em; }
/* Keep administrative properties available in editing mode, out of reading view. */
.markdown-preview-view.korean-study .metadata-container { display: none; }
.korean-study h1,
.korean-study .HyperMD-header-1 {
  letter-spacing: -.025em;
  line-height: 1.35;
  padding-bottom: .45em;
  border-bottom: 3px solid rgba(var(--ks-accent), .24);
}
.korean-study h2,
.korean-study .HyperMD-header-2 {
  margin-top: 1.8em;
  padding: .2em 0 .2em .7em;
  border-left: 3px solid rgba(var(--ks-accent), .5);
}
.korean-study .callout {
  --callout-color: rgb(var(--ks-blue));
  --callout-border-width: 1px;
  --callout-border-opacity: .22;
  --callout-radius: 14px;
  border-radius: 14px;
  background-color: color-mix(in srgb, var(--callout-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--callout-color) 26%, transparent);
  padding: 15px 18px;
  margin: 16px 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .025);
}
.korean-study .callout-title {
  color: var(--callout-color);
  gap: 9px;
  font-weight: 650;
  line-height: 1.5;
}
.korean-study .callout-content > :first-child { margin-top: 10px; }
.korean-study .callout-content > :last-child { margin-bottom: 0; }
.korean-study .callout.is-collapsed { padding-top: 12px; padding-bottom: 12px; }
.korean-study .callout[data-callout="note"],
.korean-study .callout[data-callout="info"],
.korean-study .callout[data-callout="abstract"] {
  --callout-color: rgb(var(--ks-blue));
}
.korean-study .callout[data-callout="warning"] {
  --callout-color: rgb(var(--ks-gold));
  --callout-icon: lucide-book-open;
}
.korean-study .callout[data-callout="tip"],
.korean-study .callout[data-callout="success"] {
  --callout-color: rgb(var(--ks-green));
}
.korean-study .callout[data-callout="danger"],
.korean-study .callout[data-callout="question"] {
  --callout-color: rgb(var(--ks-red));
}
.korean-study .callout[data-callout="example"],
.korean-study .callout[data-callout="todo"] {
  --callout-color: rgb(var(--ks-purple));
}
.korean-study table { width: 100%; font-size: .94em; }
.korean-study th, .korean-study td {
  padding: 10px 13px;
  line-height: 1.65;
  vertical-align: top;
}
.korean-study .table-wrapper { overflow-x: auto; }
.korean-study li { margin-block: .3em; }
.korean-study .task-list-item { padding-block: .18em; }
.korean-study a.internal-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.korean-study hr { border-color: rgba(var(--ks-accent), .18); }
.korean-home .callout { margin-block: 18px; }
.korean-home .callout-title { font-size: 1.12em; }
/* Leave source text and all content visible. No images, external fonts or scripts. */
@media (max-width: 700px) {
  .korean-study { --h1-size: 1.55em; --file-margins: 18px; }
  .korean-study .callout { padding: 12px 14px; }
  .korean-study th, .korean-study td { padding: 8px; }
}
@media print {
  .korean-study .callout { box-shadow: none; break-inside: avoid; }
}

/* Reference-first revision: compact pages and quiet disclosure rows. */
.korean-study { --h1-size: 1.65em; --h2-size: 1.13em; --line-height-normal: 1.6; --file-line-width: 760px; }
.markdown-preview-view.korean-study .inline-title { display: none; }
.korean-study h1 { border-bottom-width: 1px; padding-bottom: .3em; }
.korean-study h2 { border: 0; padding: 0; margin-top: 1.35em; }
.korean-study .callout { border-radius: 5px; box-shadow: none; padding: 9px 12px; margin: 10px 0; background-color: color-mix(in srgb, var(--callout-color) 4%, transparent); }
.korean-study .callout.is-collapsed { padding: 7px 12px; background: transparent; }
.korean-study .callout .callout { border: 0; border-left: 2px solid color-mix(in srgb, var(--callout-color) 24%, transparent); border-radius: 0; }
.korean-study .callout .callout-icon { display: none; }
.korean-study th, .korean-study td { padding: 7px 10px; line-height: 1.5; }
.korean-study .callout-title { font-size: 1em; }
/* Agent instructions stay on disk, outside the student's file navigation. */
.nav-file[data-path="Korean/AGENTS.md"] { display: none; }

.nav-file:has(> .nav-file-title[data-path="Korean/AGENTS.md"]) { display: none; }

/* Korean Word Lens — scoped, no effect on other note formats. */
.korean-word-lens {
 --wl-noun:#24639a; --wl-verb:#207348; --wl-adjective:#8a4098; --wl-adverb:#9a580d; --wl-other:#536477;
 --wl-title:#75543e; --wl-pos:var(--wl-other); --file-line-width:820px;
 font-size:15px; --font-text-size:15px; --line-height-normal:1.65;
}
.theme-dark .korean-word-lens {--wl-noun:#8cc8f0;--wl-verb:#8fd6ac;--wl-adjective:#d8a4e8;--wl-adverb:#efc07b;--wl-other:#bac7d8;--wl-title:#d9b89f;}
.korean-word-lens.pos-noun{--wl-pos:var(--wl-noun)}
.korean-word-lens.pos-verb{--wl-pos:var(--wl-verb)}
.korean-word-lens.pos-adjective{--wl-pos:var(--wl-adjective)}
.korean-word-lens.pos-adverb{--wl-pos:var(--wl-adverb)}
.korean-word-lens.pos-other{--wl-pos:var(--wl-other)}
.korean-word-lens .inline-title,.korean-word-lens.markdown-preview-view .metadata-container{display:none}
.korean-word-lens .callout[data-callout^="wl-"]{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;color:var(--text-normal);overflow:visible;}
.korean-word-lens .callout[data-callout^="wl-"]>.callout-title{color:var(--wl-title);font-size:14px;font-weight:700;line-height:1.65;}
.korean-word-lens .callout[data-callout^="wl-"]>.callout-title>.callout-icon{display:none}
.korean-word-lens .callout[data-callout^="wl-"]>.callout-content>:first-child{margin-top:0}
.korean-word-lens .callout[data-callout^="wl-"]>.callout-content>:last-child{margin-bottom:0}
.korean-word-lens .callout[data-callout="wl-header"]>.callout-title,
.korean-word-lens .callout[data-callout="wl-roots"]>.callout-title{display:none}
.korean-word-lens .callout[data-callout="wl-header"]>.callout-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:24px;align-items:center;padding:8px 0 22px}
.korean-word-lens .callout[data-callout="wl-word"]>.callout-title{font-size:30px;color:var(--wl-pos);line-height:1.35}
.korean-word-lens .callout[data-callout="wl-word"]>.callout-content>p:first-child{color:var(--wl-pos);font-size:13px;margin:7px 0}
.korean-word-lens .callout[data-callout="wl-word"] small{font-size:16px;color:var(--text-muted);font-weight:400}
.korean-word-lens .callout[data-callout="wl-example"]{padding-left:20px;border-left:2px solid var(--background-modifier-border)}
.korean-word-lens .callout[data-callout="wl-example"]>.callout-title{font-size:19px;font-weight:500;color:var(--text-normal)}
.korean-word-lens .callout[data-callout="wl-example"]>.callout-content{font-size:15px;color:var(--text-muted);margin-top:6px}
.korean-word-lens .callout[data-callout="wl-hanja"]{padding:16px 0 22px;margin:0 0 10px;border-bottom:1px solid var(--background-modifier-border)}
.korean-word-lens .callout[data-callout="wl-hanja"]>.callout-title{margin-bottom:12px}
.korean-word-lens .callout[data-callout="wl-roots"]>.callout-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:14px;align-items:start}
.korean-word-lens .callout[data-callout="wl-root"]{padding:0 12px;border-left:1px solid var(--background-modifier-border);}
.korean-word-lens .callout[data-callout="wl-root"]:first-child{border:0;padding-left:0}
.korean-word-lens .callout[data-callout="wl-root"]>.callout-title{font-size:18px;margin-bottom:9px}
.korean-word-lens .callout[data-callout="wl-detail"]{margin-top:8px}
.korean-word-lens .callout[data-callout="wl-detail"]>.callout-title{font-size:13px;font-weight:500;color:var(--text-muted)}
.korean-word-lens .callout[data-callout="wl-detail"]>.callout-content{font-size:14px;padding-top:8px}
.korean-word-lens .callout[data-callout="wl-section"]{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;padding:12px 0;align-items:start}
.korean-word-lens .callout[data-callout="wl-section"]>.callout-title{padding-left:10px;border-left:2px solid var(--background-modifier-border)}
.korean-word-lens .callout[data-callout="wl-section"]>.callout-content{font-size:15px;line-height:1.65;min-width:0}
.korean-word-lens small{font-size:13px;line-height:1.4;color:var(--text-muted)}
.korean-word-lens table{width:100%;font-size:15px;table-layout:fixed;border-collapse:collapse;margin:0}
.korean-word-lens th,.korean-word-lens td{padding:5px 8px;line-height:1.5;background:transparent;font-size:15px;vertical-align:top;border:0;border-bottom:1px solid var(--background-modifier-border)}
.korean-word-lens th{font-weight:500;color:var(--text-muted)}
.korean-word-lens .callout[data-callout="wl-section"] table:has(th:first-child) th:first-child{width:58%}
.korean-word-lens .callout[data-callout="wl-section"] table thead:has(th:first-child:last-child){display:none}
.korean-word-lens .callout[data-callout="wl-section"]:has(.callout-title-inner:first-child) strong{font-weight:600}
.korean-word-lens .callout[data-callout^="wl-"] p,.korean-word-lens .callout[data-callout^="wl-"] td{text-align:left;direction:ltr;unicode-bidi:plaintext}
.korean-word-lens [lang="fa"]{text-align:left;direction:ltr;unicode-bidi:isolate}
@media(max-width:650px){
 .korean-word-lens .callout[data-callout="wl-header"]>.callout-content,
 .korean-word-lens .callout[data-callout="wl-section"],
 .korean-word-lens .callout[data-callout="wl-roots"]>.callout-content{grid-template-columns:1fr;gap:10px}
 .korean-word-lens .callout[data-callout="wl-root"]{border-left:0;padding:8px 0}
 .korean-word-lens .callout[data-callout="wl-example"]{border-left:0;padding-left:0}
}

.korean-word-lens .callout[data-callout-metadata="examples"] thead,
.korean-word-lens .callout[data-callout-metadata="collocations"] thead{display:none}

/* Word Lens — 1 October 2026: match English in 5/6 to example translations. */
.korean-word-lens .callout[data-callout-metadata="collocations"] td:nth-child(2),
.korean-word-lens .callout[data-callout-metadata="comparison"] th,
.korean-word-lens .callout[data-callout-metadata="comparison"] td:nth-child(2){font-size:13px;line-height:1.4;}

/* Word Lens — optional lamp notices, wherever useful in a word note. */
.korean-word-lens{--wl-notice:#b43138;}
.theme-dark .korean-word-lens{--wl-notice:#ff9b9b;}
.korean-word-lens .word-lens-notice,.korean-word-lens .word-lens-notice *{color:var(--wl-notice);}

/* Unified unit vocabulary menus — 1 October 2026. */
.korean-vocabulary-menu .inline-title,
.korean-vocabulary-menu .metadata-container { display:none; }
.korean-vocabulary-menu { font-size:15px; --font-text-size:15px; }
.korean-vocabulary-menu .task-list-item { padding-block:5px; line-height:1.7; }
.korean-vocabulary-menu .task-list-item.is-checked,
.korean-vocabulary-menu .task-list-item.is-checked * { text-decoration:none; }
.korean-vocabulary-menu a[data-href*=".pdf#page="],
.korean-vocabulary-menu a[href*=".pdf#page="] { font-size:12px; color:var(--text-muted); }

/* Unit vocabulary tables — Word / Book Example / Meaning. */
.korean-vocabulary-menu table { width:100%; table-layout:fixed; }
.korean-vocabulary-menu table th:nth-child(1) { width:23%; }
.korean-vocabulary-menu table th:nth-child(2) { width:49%; }
.korean-vocabulary-menu table th:nth-child(3) { width:28%; }
.korean-vocabulary-menu table th,.korean-vocabulary-menu table td { padding:10px 12px; vertical-align:top; overflow-wrap:anywhere; }
.korean-vocabulary-menu table td { font-size:15px; line-height:1.65; }
.korean-vocabulary-menu table td:nth-child(3) { font-size:14px; }
.korean-vocabulary-menu table small { font-size:12px; color:var(--text-muted); }
@media(max-width:650px){.korean-vocabulary-menu table th,.korean-vocabulary-menu table td {padding:7px 6px;}}

/* Student-book and workbook groups in the same vocabulary table. */
.korean-vocabulary-menu tr:has(.vocab-workbook-divider) > td { border-top:3px solid var(--text-muted); padding-top:12px; padding-bottom:8px; }
.korean-vocabulary-menu .vocab-workbook-divider { font-weight:700; color:var(--text-normal); }
.korean-vocabulary-menu .vocab-book-example { display:inline-block; margin-bottom:8px; }
.korean-vocabulary-menu .vocab-homework-example { display:inline-block; }

/* Compact Hangul root reminders beneath unit-table meanings. */
.korean-vocabulary-menu small.vocab-root-summary {
  display:inline-block;
  margin-top:5px;
  font-size:12px;
  line-height:1.5;
  color:var(--text-muted);
}
.korean-vocabulary-menu .vocab-root-summary strong {
  font-size:inherit;
  font-weight:700;
  color:inherit;
}

/* Soft Rows — approved Unit 1 pilot; opt-in only. */
.korean-vocab-soft-rows { --vocab-noun:#3268a0; --vocab-verb:#317151; --vocab-adjective:#795498; --vocab-soft:color-mix(in srgb,var(--background-primary) 94%,var(--text-normal) 6%); }
.theme-dark .korean-vocab-soft-rows { --vocab-noun:#87b6e5; --vocab-verb:#8ac5a2; --vocab-adjective:#c9a7e5; }
.korean-vocab-soft-rows table { border-collapse:collapse; border:0; }
.korean-vocab-soft-rows table th:nth-child(1) { width:21%; }
.korean-vocab-soft-rows table th:nth-child(2) { width:48%; }
.korean-vocab-soft-rows table th:nth-child(3) { width:31%; }
.korean-vocab-soft-rows table th { background:var(--vocab-soft); color:var(--text-muted); font-size:12px; font-weight:700; border:0; text-align:left; }
.korean-vocab-soft-rows table td { border:0; background:transparent; padding:18px 10px; }
.korean-vocab-soft-rows table tbody tr { background:transparent; }
.korean-vocab-soft-rows table tbody tr:nth-child(even):not(:has(.vocab-workbook-divider)) { background:var(--vocab-soft); }
.korean-vocab-soft-rows table td:first-child a { font-size:17px; font-weight:700; text-decoration:none; }
.korean-vocab-soft-rows td:has(.vocab-pos-noun) a { color:var(--vocab-noun); }
.korean-vocab-soft-rows td:has(.vocab-pos-verb) a { color:var(--vocab-verb); }
.korean-vocab-soft-rows td:has(.vocab-pos-adjective) a { color:var(--vocab-adjective); }
.korean-vocab-soft-rows td:has(.vocab-pos-other) a { color:var(--text-normal); }
.korean-vocab-soft-rows .vocab-book-example { margin-bottom:10px; }
.korean-vocab-soft-rows .vocab-book-example strong,.korean-vocab-soft-rows .vocab-homework-example strong { font-weight:700; color:var(--text-normal); }
.korean-vocab-soft-rows tr:has(.vocab-workbook-divider) td { background:var(--background-primary); border-top:3px solid var(--text-muted); padding:12px 10px 4px; }
@media(max-width:560px){
 .korean-vocab-soft-rows table thead { display:none; }
 .korean-vocab-soft-rows table,.korean-vocab-soft-rows table tbody,.korean-vocab-soft-rows table tr,.korean-vocab-soft-rows table td { display:block; width:100%; }
 .korean-vocab-soft-rows table tr { padding:12px 0; }
 .korean-vocab-soft-rows table td { padding:6px 8px; }
 .korean-vocab-soft-rows tr:has(.vocab-workbook-divider) { border-top:3px solid var(--text-muted); }
 .korean-vocab-soft-rows tr:has(.vocab-workbook-divider) td { border:0; }
 .korean-vocab-soft-rows tr:has(.vocab-workbook-divider) td:empty { display:none; }
}

/* Clickable Hanja headings retain the approved root-title color. */
.korean-word-lens .callout[data-callout="wl-root"] > .callout-title a.internal-link,
.korean-word-lens .callout[data-callout="wl-root"] > .callout-title a.internal-link:hover,
.korean-word-lens .callout[data-callout="wl-root"] > .callout-title a.internal-link:visited {
  color:var(--wl-title);
  text-decoration:none;
  font-weight:inherit;
}

/* Single-word visual pilot — 공감대가 없다. */
.korean-word-lens-pilot { --file-line-width:820px; --p-spacing:10px; }
.korean-word-lens-pilot .metadata-container { display:none; }
.korean-word-lens-pilot .callout[data-callout^="wl-"] .callout-content { min-width:0; }
.korean-word-lens-pilot .callout[data-callout^="wl-"] .callout-content > p { margin:8px 0; }
.korean-word-lens-pilot .callout[data-callout="wl-header"] > .callout-content { padding:4px 0 14px; gap:24px; }
.korean-word-lens-pilot .callout[data-callout="wl-word"] > .callout-title { font-size:28px; }
.korean-word-lens-pilot .callout[data-callout="wl-word"] > .callout-content > p:first-child { font-size:12px; margin:6px 0 10px; }
.korean-word-lens-pilot .callout[data-callout="wl-example"] > .callout-title { font-size:18px; line-height:1.55; }
.korean-word-lens-pilot .callout[data-callout="wl-example"] > .callout-content { font-size:13px; }
.korean-word-lens-pilot .callout[data-callout="wl-hanja"] { padding:10px 0 18px; margin-bottom:6px; }
.korean-word-lens-pilot .callout[data-callout="wl-roots"] > .callout-content { gap:18px; margin-bottom:14px; }
.korean-word-lens-pilot .callout[data-callout="wl-roots"] > .callout-content > .callout { margin-block:0; align-self:start; }
.korean-word-lens-pilot .callout[data-callout="wl-root"] { padding:0 0 0 16px; }
.korean-word-lens-pilot .callout[data-callout="wl-root"] > .callout-title { margin:0 0 8px; }
.korean-word-lens-pilot .callout[data-callout="wl-detail"].is-collapsed { padding-block:4px; }
.korean-word-lens-pilot .callout[data-callout="wl-section"] { padding:14px 0; grid-template-columns:140px minmax(0,1fr); gap:18px; }
.korean-word-lens-pilot .callout[data-callout="wl-section"] > .callout-title { padding-left:0; border-left:0; }
.korean-word-lens-pilot .callout[data-callout="wl-section"] td { padding:8px; }
.korean-word-lens-pilot .callout[data-callout="wl-section"] td:first-child { padding-left:0; }
.korean-word-lens-pilot .callout[data-callout-metadata="comparison"] th:first-child { width:48%; }
@media(max-width:650px){
 .korean-word-lens-pilot .callout[data-callout="wl-section"] { grid-template-columns:1fr; gap:8px; }
 .korean-word-lens-pilot .callout[data-callout="wl-root"] { padding:8px 0; }
}

/* Compact editorial word-page candidate — sample only. */
.korean-word-compact .callout[data-callout="wl-section"] { display:grid; grid-template-columns:194px minmax(0,1fr); gap:16px; padding:14px 0; }
.korean-word-compact .callout[data-callout="wl-section"] > .callout-title { margin:0; padding:0; border:0; font-size:14px; line-height:1.6; }
.korean-word-compact .callout[data-callout="wl-section"] > .callout-content > :first-child { margin-top:0; }
.korean-word-compact .word-lens-notice { font-size:13px; line-height:1.5; }
.korean-word-compact .callout[data-callout="wl-section"] table,
.korean-word-compact .callout[data-callout="wl-section"] tr,
.korean-word-compact .callout[data-callout="wl-section"] th,
.korean-word-compact .callout[data-callout="wl-section"] td { background:transparent; border:0; }
.korean-word-compact .callout[data-callout-metadata="examples"] table,
.korean-word-compact .callout[data-callout-metadata="examples"] tbody,
.korean-word-compact .callout[data-callout-metadata="examples"] tr,
.korean-word-compact .callout[data-callout-metadata="examples"] td { display:block; width:100%; }
.korean-word-compact .callout[data-callout-metadata="examples"] tr + tr { margin-top:12px; }
.korean-word-compact .callout[data-callout-metadata="examples"] td { padding:0; }
.korean-word-compact .callout[data-callout-metadata="examples"] td:nth-child(2) { margin-top:3px; font-size:13px; line-height:1.45; color:var(--text-muted); }
.korean-word-compact .callout[data-callout-metadata="collocations"] table { display:block; }
.korean-word-compact .callout[data-callout-metadata="collocations"] tbody { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.korean-word-compact .callout[data-callout-metadata="collocations"] tr,
.korean-word-compact .callout[data-callout-metadata="collocations"] td { display:block; width:100%; padding:0; }
.korean-word-compact .callout[data-callout-metadata="collocations"] td:nth-child(2) { margin-top:3px; font-size:13px; color:var(--text-muted); }
.korean-word-compact .callout[data-callout-metadata="comparison"] thead { display:none; }
.korean-word-compact .callout[data-callout-metadata="comparison"] table { table-layout:fixed; }
.korean-word-compact .callout[data-callout-metadata="comparison"] td { width:50%; padding:0 0 10px; }
.korean-word-compact .callout[data-callout-metadata="comparison"] td + td { padding-left:14px; }
.korean-word-compact .callout[data-callout-metadata="comparison"] tr + tr td { border-top:1px solid var(--background-modifier-border); padding-top:10px; }
@media(max-width:580px){
 .korean-word-compact .callout[data-callout="wl-section"] { grid-template-columns:1fr; gap:8px; }
 .korean-word-compact .callout[data-callout-metadata="collocations"] tbody { grid-template-columns:1fr; gap:9px; }
}

/* Sample trial: centered half-width separators between sections 2–6. */
.korean-word-compact .callout[data-callout="wl-section"] { position:relative; }
.korean-word-compact .callout[data-callout="wl-section"][data-callout-metadata="examples"]::before,
.korean-word-compact .callout[data-callout="wl-section"][data-callout-metadata="relationships"]::before,
.korean-word-compact .callout[data-callout="wl-section"][data-callout-metadata="collocations"]::before,
.korean-word-compact .callout[data-callout="wl-section"][data-callout-metadata="comparison"]::before {
 content:""; position:absolute; top:0;
 left:calc(210px + (100% - 210px) * .25);
 width:calc((100% - 210px) * .5);
 height:1px; background:var(--background-modifier-border);
}
@media(max-width:580px){
 .korean-word-compact .callout[data-callout="wl-section"]::before { left:25%; width:50%; }
}

/* Approved all-unit vocabulary design, 1 October 2026. */
.korean-vocab-soft-rows { --vocab-adverb:#9a580d; }
.theme-dark .korean-vocab-soft-rows { --vocab-adverb:#efc07b; }
.korean-vocab-soft-rows td:has(.vocab-pos-adverb) a { color:var(--vocab-adverb); }
.korean-hanja { --ks-accent:117,84,62; --file-line-width:820px; --font-text-size:15px; font-size:15px; }
.theme-dark .korean-hanja { --ks-accent:217,184,159; }
.korean-hanja .inline-title,.korean-hanja .metadata-container { display:none; }
.korean-hanja h1 { font-size:26px; padding-bottom:10px; margin-bottom:16px; border-bottom:1px solid var(--background-modifier-border); }
.korean-hanja h2 { font-size:14px; font-weight:700; padding:0; border-left:0; margin:22px 0 10px; }
.korean-hanja h3 { font-size:18px; margin:12px 0 8px; }
.korean-hanja p { margin:8px 0; }
.korean-hanja li { margin-block:4px; }
.korean-hanja a.internal-link { text-decoration:none; }

/* Subject-page trial: KIIP 3 Units 1 and 2, 1 October 2026. */
.korean-subject .metadata-container,.korean-course-preview .metadata-container,
.korean-subject .inline-title,.korean-course-preview .inline-title {display:none;}
.korean-subject .markdown-embed {border:0;padding:0;margin:0;background:transparent;}
.korean-subject .markdown-embed-content,.korean-subject .markdown-embed-content > .markdown-preview-view {max-height:none!important;overflow:visible!important;}
.korean-subject .markdown-embed-title {display:none;}
.korean-subject .markdown-embed .markdown-preview-sizer {padding:0!important;min-height:0!important;}
.korean-subject .markdown-embed h1 {font-size:1.2em;}
.korean-subject.korean-vocabulary .markdown-embed h1 {display:none;}
.korean-subject h2,.korean-course-preview h2 {margin-top:2.3em;padding-bottom:.5em;border-bottom:1px solid var(--background-modifier-border);}
.korean-subject h3 {margin-top:1.8em;}
.korean-course-preview p {margin:.65em 0 1em;}
.korean-course-preview small {font-size:.85em;color:var(--text-muted);line-height:1.6;}
.korean-course-preview .internal-link {text-decoration:none;}

/* Grammar layout trial — only -고 해서 has this class. */
.korean-grammar-pilot {
 --file-line-width: 820px;
 --line-height-normal: 1.65;
 --gp-accent: #365f80;
 --gp-line: color-mix(in srgb, var(--text-normal) 14%, transparent);
}
.theme-dark .korean-grammar-pilot { --gp-accent: #a3c8e5; }
.korean-grammar-pilot h1 {
 color: var(--gp-accent); font-size: 2.2em; letter-spacing: -.04em;
 border: 0; margin: .25em 0 .65em; padding: 0;
}
.korean-grammar-pilot h2 { font-size: .9em; color: var(--text-muted); font-weight: 650; margin: 1.6em 0 .55em; }
.korean-grammar-pilot h3 { font-size: 1.05em; color: var(--gp-accent); margin-top: 1.2em; }
.korean-grammar-pilot table { border-collapse: collapse; font-size: .92em; margin: 0 0 1em; }
.korean-grammar-pilot table th { background: transparent; color: var(--text-muted); font-size: .83em; font-weight: 600; border: 0; border-bottom: 1px solid var(--gp-line); padding: 7px 12px; }
.korean-grammar-pilot table td { border: 0; border-bottom: 1px solid var(--gp-line); padding: 9px 12px; background: transparent; }
.korean-grammar-pilot table tr:nth-child(even) { background: color-mix(in srgb,var(--gp-accent) 3%,transparent); }
.korean-grammar-pilot .callout {
 background: transparent !important; border: 0 !important; box-shadow: none;
 border-radius: 0; padding: 0; margin: 0;
}
.korean-grammar-pilot .callout > .callout-title { color: var(--gp-accent); font-weight: 650; font-size: 1em; gap: 10px; padding: 13px 0; }
.korean-grammar-pilot .callout > .callout-title > .callout-icon { display: none; }
.korean-grammar-pilot .callout > .callout-title .callout-fold { margin-left: auto; color: var(--text-faint); }
.korean-grammar-pilot .callout.is-collapsed { padding: 0; }
.korean-grammar-pilot .callout[data-callout="grammar-section"] { border-bottom: 1px solid var(--gp-line) !important; }
.korean-grammar-pilot .callout-content { padding: 0 0 12px; }
.korean-grammar-pilot .callout-content > :first-child { margin-top: 0; }
.korean-grammar-pilot .callout-content p { margin: .65em 0; }
.korean-grammar-pilot .callout[data-callout="grammar-reminder"] { margin: 16px 0 24px; padding: 15px 20px; background: color-mix(in srgb,var(--gp-accent) 5%,transparent) !important; border-radius: 8px; }
.korean-grammar-pilot .callout[data-callout="grammar-reminder"] > .callout-title { font-size: .8em; text-transform: uppercase; letter-spacing: .09em; padding: 0 0 4px; }
.korean-grammar-pilot .callout[data-callout="grammar-reminder"] > .callout-content { padding-bottom: 0; }
.korean-grammar-pilot .callout[data-callout="grammar-reminder"] ul { padding-left: 1.15em; margin: .3em 0; }
.korean-grammar-pilot .callout[data-callout="grammar-reminder"] li { margin: .55em 0; }
.korean-grammar-pilot .callout[data-callout="grammar-source"] { margin-top: 16px; }
.korean-grammar-pilot .callout[data-callout="grammar-source"] > .callout-title { font-size: .85em; color: var(--text-muted); }
.korean-grammar-pilot .callout[data-callout="grammar-source"] > .callout-content { font-size: .87em; }
.korean-grammar-pilot a.internal-link { text-decoration: none; }
.korean-grammar-pilot a.internal-link:hover { text-decoration: underline; }
@media (max-width: 650px) {
 .korean-grammar-pilot h1 { font-size: 1.85em; }
 .korean-grammar-pilot table td, .korean-grammar-pilot table th { padding: 7px 6px; }
 .korean-grammar-pilot .callout[data-callout="grammar-reminder"] { padding: 12px 14px; }
}

/* Header matrix: equal tense columns; align forms and examples consistently. */
.korean-grammar-pilot table:has(.grammar-matrix-marker) {
 width: 100%; min-width: 580px; table-layout: fixed;
}
.korean-grammar-pilot table:has(.grammar-matrix-marker) :is(th, td) {
 text-align: left !important; vertical-align: top;
 width: 21.25%; padding: 9px 8px; line-height: 1.5;
 overflow-wrap: normal; word-break: keep-all;
}
.korean-grammar-pilot table:has(.grammar-matrix-marker) :is(th, td):first-child { width: 15%; }
.korean-grammar-pilot table:has(.grammar-matrix-marker) td { font-size: .94em; }
.korean-grammar-pilot table:has(.grammar-matrix-marker) small {
 display: block; margin-top: 5px; font-size: .84em; line-height: 1.5; color: var(--text-muted);
}
.korean-grammar-pilot table:has(.grammar-matrix-marker) br { display: none; }

/* Grammar design choices: isolated preview notes, pending user selection. */
.grammar-design-preview { --file-line-width: 900px; --line-height-normal: 1.65; }
.grammar-design-preview .markdown-preview-sizer > div:first-child p { margin: 0; }
.grammar-design-preview small { font-size: .85em; color: var(--text-muted); }
.grammar-design-preview .callout-content > p > small { display: inline-block; line-height: 1.6; }
.grammar-design-preview .callout-title { cursor: pointer; }
.grammar-design-preview .callout-title:hover { color: var(--text-normal); }
.grammar-design-preview table:has(.grammar-matrix-marker) th { font-size: .88em; }
.grammar-design-preview table:has(.grammar-matrix-marker) td { font-size: 1em; padding-block: 11px; }
.grammar-design-preview table:has(.grammar-matrix-marker) small { font-size: .87em; }
/* A: open space, blue ink, typography-led hierarchy. */
.grammar-option-a { --gp-accent: #315e83; }
.theme-dark .grammar-option-a { --gp-accent: #a9cee9; }
.grammar-option-a h1 { font-size: 2.5em; margin-top: .5em; }
.grammar-option-a .callout[data-callout="grammar-reminder"] { background: transparent !important; padding: 8px 0 20px; margin: 16px 0 10px; }
.grammar-option-a .callout[data-callout="grammar-reminder"] li:first-child { font-size: 1.08em; }
.grammar-option-a .callout[data-callout="grammar-section"] > .callout-title { padding: 15px 0; }
.grammar-option-a table:has(.grammar-matrix-marker) thead { background: color-mix(in srgb,var(--gp-accent) 7%,transparent); }
/* B: quiet section bands and a softer, warm neutral reading rhythm. */
.grammar-option-b { --gp-accent: #536955; --gp-line: color-mix(in srgb,var(--gp-accent) 19%,transparent); }
.theme-dark .grammar-option-b { --gp-accent: #b9d0b8; }
.grammar-option-b h1 { font-size: 2.3em; }
.grammar-option-b .callout[data-callout="grammar-section"] {
 margin: 9px 0; border: 0 !important; border-radius: 7px;
 background: color-mix(in srgb,var(--gp-accent) 5%,transparent) !important;
}
.grammar-option-b .callout[data-callout="grammar-section"] > .callout-title { padding: 12px 16px; }
.grammar-option-b .callout[data-callout="grammar-section"] > .callout-content { padding: 0 18px 16px; }
.grammar-option-b .callout[data-callout="grammar-reminder"] { background: transparent !important; border-top: 1px solid var(--gp-line) !important; border-bottom: 1px solid var(--gp-line) !important; border-radius: 0; padding: 16px 0; }
.grammar-option-b table:has(.grammar-matrix-marker) tbody tr:nth-child(odd) { background: color-mix(in srgb,var(--gp-accent) 5%,transparent); }
.grammar-option-b table:has(.grammar-matrix-marker) tbody tr:nth-child(even) { background: transparent; }
/* C: a compact opening, then an immediately readable first explanation. */
.grammar-option-c { --gp-accent: #705b87; --line-height-normal: 1.7; }
.theme-dark .grammar-option-c { --gp-accent: #d1bce5; }
.grammar-option-c h1 { font-size: 2.15em; }
.grammar-option-c .callout[data-callout="grammar-reminder"] { padding: 14px 18px; margin: 18px 0; background: color-mix(in srgb,var(--gp-accent) 5%,transparent) !important; }
.grammar-option-c .callout[data-callout="grammar-section"] { border: 0 !important; }
.grammar-option-c .callout[data-callout="grammar-section"] > .callout-title { padding: 14px 0; }
.grammar-option-c .callout[data-callout="grammar-section"]::after { content: ''; display: block; width: 48%; height: 1px; background: var(--gp-line); margin: 0 auto; }
.grammar-option-c h3 { font-size: 1em; margin-top: 1.5em; }
.grammar-option-c .callout-content > p > strong:first-child { color: var(--text-normal); }

/* B refinement: matching vocabulary colors and calmer section bands. */
.grammar-option-b { --gb-verb:#207348; --gb-adjective:#8a4098; --gb-noun:#24639a; --gb-note:#b73542; }
.theme-dark .grammar-option-b { --gb-verb:#8fd6ac; --gb-adjective:#d8a4e8; --gb-noun:#8cc8f0; --gb-note:#f19aa4; }
.grammar-option-b table:has(.grammar-matrix-marker) tbody tr:nth-child(1) td:first-child { color:var(--gb-verb); }
.grammar-option-b table:has(.grammar-matrix-marker) tbody tr:nth-child(2) td:first-child { color:var(--gb-adjective); }
.grammar-option-b table:has(.grammar-matrix-marker) tbody tr:nth-child(3) td:first-child { color:var(--gb-noun); }
.grammar-option-b .callout[data-callout="grammar-section"] { margin:7px 0; background:color-mix(in srgb,var(--gp-accent) 3%,transparent) !important; }
.grammar-option-b .callout[data-callout="grammar-section"] > .callout-title { padding:10px 14px; font-weight:700; }
.grammar-option-b .callout-title .callout-fold svg { width:14px; height:14px; }
.grammar-option-b .grammar-notice { color:var(--gb-note); font-size:.91em; }
.grammar-option-b .callout[data-callout="grammar-reminder"] > .callout-content p { margin:.6em 0; }
.grammar-option-b .callout[data-callout="grammar-section"] h3 { font-size:1em; margin:1.15em 0 .5em; }

/* Grammar overview A: table-only scope keeps embedded full notes unchanged. */
.korean-study table:has(.grammar-badges) { width:100%; table-layout:fixed; border-collapse:collapse; margin:12px 0 8px; }
.korean-study table:has(.grammar-badges) :is(th,td) { border:0; border-bottom:1px solid var(--background-modifier-border); background:transparent; text-align:left; vertical-align:top; padding:14px 12px; line-height:1.55; }
.korean-study table:has(.grammar-badges) th { color:var(--text-muted); font-size:.82em; font-weight:600; padding-block:8px; }
.korean-study table:has(.grammar-badges) tr { background:transparent; }
.korean-study table:has(.grammar-badges) :is(th,td):first-child { width:27%; padding-left:0; }
.korean-study table:has(.grammar-badges) :is(th,td):nth-child(2) { width:26%; }
.korean-study table:has(.grammar-badges) :is(th,td):last-child { width:47%; padding-right:0; }
.korean-study table:has(.grammar-badges) small { display:inline-block; color:var(--text-muted); font-size:.82em; line-height:1.45; margin-top:3px; }
.korean-study .grammar-badges { display:inline-flex; gap:5px; margin-top:6px; line-height:1; }
.korean-study .grammar-badge { display:inline-flex; position:relative; align-items:center; justify-content:center; width:17px; height:17px; box-sizing:border-box; border:1px solid currentColor; border-radius:50%; font-size:10px; font-weight:700; background:transparent; }
.korean-study .grammar-badge.verb { color:rgb(var(--ks-green)); }
.korean-study .grammar-badge.adjective { color:rgb(var(--ks-purple)); }
.korean-study .grammar-badge.noun { color:rgb(var(--ks-blue)); }
.korean-study .grammar-badge.unavailable { color:var(--text-faint); }
.korean-study .grammar-badge.unavailable::after { content:""; position:absolute; width:18px; height:1px; background:currentColor; transform:rotate(-45deg); }
.korean-study .grammar-badge.conditional::after { content:"*"; position:absolute; right:-5px; top:-5px; font-size:12px; }
.korean-study .callout[data-callout="grammar-overview-detail"] { border:0; border-radius:0; box-shadow:none; background:transparent; padding:3px 0; margin:3px 0; }
.korean-study .callout[data-callout="grammar-overview-detail"] > .callout-title { font-size:.82em; color:var(--text-muted); padding:3px 0; }
.korean-study .callout[data-callout="grammar-overview-detail"] > .callout-title > .callout-icon { display:none; }
.korean-study .callout[data-callout="grammar-overview-detail"] > .callout-title .callout-fold { margin-left:3px; }
@media (max-width:600px) { .korean-study table:has(.grammar-badges) { min-width:500px; } }

/* Each grammar row is immediately followed by its own expandable detail. */
.korean-study table:has(.grammar-continuation) thead { display:none; }
.korean-study table:has(.grammar-badges) { margin-bottom:0; }
.korean-study .callout[data-callout="grammar-overview-detail"] { margin:0 0 10px; }

/* Single-note refinement v2. Keep all other full grammar notes on approved B. */
.grammar-refinement-v2 { --line-height-normal:1.55; }
.grammar-refinement-v2 .callout[data-callout="grammar-section"] { --gr-section:var(--gp-accent); margin:8px 0; background:color-mix(in srgb,var(--gr-section) 4%,transparent) !important; }
.grammar-refinement-v2 .callout[data-callout-metadata="meaning"] { --gr-section:rgb(var(--ks-blue)); }
.grammar-refinement-v2 .callout[data-callout-metadata="forms"] { --gr-section:rgb(var(--ks-green)); }
.grammar-refinement-v2 .callout[data-callout-metadata="time"] { --gr-section:rgb(var(--ks-purple)); }
.grammar-refinement-v2 .callout[data-callout-metadata="cautions"] { --gr-section:rgb(var(--ks-gold)); }
.grammar-refinement-v2 .callout[data-callout-metadata="compare"] { --gr-section:rgb(var(--ks-blue)); }
.grammar-refinement-v2 .callout[data-callout-metadata="personal"] { --gr-section:rgb(var(--ks-purple)); }
.grammar-refinement-v2 .callout[data-callout="grammar-section"] > .callout-title { color:var(--gr-section); padding:11px 14px; }
.grammar-refinement-v2 .callout[data-callout="grammar-section"] h3 { color:var(--gr-section); font-size:.93em; margin:1.1em 0 .4em; }
.grammar-refinement-v2 .callout-content p { margin:.5em 0; }
.grammar-refinement-v2 .callout-content small { color:var(--text-muted); font-size:.85em; line-height:1.45; }
.grammar-refinement-v2 .callout-content li { margin:.45em 0; }
.grammar-refinement-v2 table:has(.grammar-matrix-marker) { min-width:0; font-size:.84em; }
.grammar-refinement-v2 table:has(.grammar-matrix-marker) :is(th,td) { overflow-wrap:anywhere; padding:8px 6px; }
.grammar-refinement-v2 .el-table { overflow-x:auto; }
@media (max-width:480px) { .grammar-refinement-v2 table:has(.grammar-matrix-marker) { min-width:470px; } }

/* Compact title: grammar + familiar POS circles; Korean category on the right. */
.grammar-refinement-v2 h1:has(.grammar-category) { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.grammar-refinement-v2 h1 .grammar-badges { margin:0; gap:5px; flex-shrink:0; }
.grammar-refinement-v2 h1 .grammar-category { margin-left:auto; font-size:14px; line-height:1.4; font-weight:600; letter-spacing:.03em; color:var(--text-muted); flex-shrink:0; }

/* Title metadata: POS circles above the Korean category, at the right edge. */
.grammar-refinement-v2 h1 .grammar-title-meta { margin-left:auto; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; flex-shrink:0; }
.grammar-refinement-v2 h1 .grammar-title-meta .grammar-category { margin:0; }

/* Korean Word Lens — scoped, no effect on other note formats. */
.korean-word-lens {
 --wl-noun:#24639a; --wl-verb:#207348; --wl-adjective:#8a4098; --wl-adverb:#9a580d; --wl-other:#536477;
 --wl-title:#75543e; --wl-pos:var(--wl-other); --file-line-width:820px;
 font-size:15px; --font-text-size:15px; --line-height-normal:1.65;
}
.theme-dark .korean-word-lens {--wl-noun:#8cc8f0;--wl-verb:#8fd6ac;--wl-adjective:#d8a4e8;--wl-adverb:#efc07b;--wl-other:#bac7d8;--wl-title:#d9b89f;}
.korean-word-lens.pos-noun{--wl-pos:var(--wl-noun)}
.korean-word-lens.pos-verb{--wl-pos:var(--wl-verb)}
.korean-word-lens.pos-adjective{--wl-pos:var(--wl-adjective)}
.korean-word-lens.pos-adverb{--wl-pos:var(--wl-adverb)}
.korean-word-lens.pos-other{--wl-pos:var(--wl-other)}
.korean-word-lens .inline-title,.korean-word-lens.markdown-preview-view .metadata-container{display:none}
.korean-word-lens .callout[data-callout^="wl-"]{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;color:var(--text-normal);overflow:visible;}
.korean-word-lens .callout[data-callout^="wl-"]>.callout-title{color:var(--wl-title);font-size:14px;font-weight:700;line-height:1.65;}
.korean-word-lens .callout[data-callout^="wl-"]>.callout-title>.callout-icon{display:none}
.korean-word-lens .callout[data-callout^="wl-"]>.callout-content>:first-child{margin-top:0}
.korean-word-lens .callout[data-callout^="wl-"]>.callout-content>:last-child{margin-bottom:0}
.korean-word-lens .callout[data-callout="wl-header"]>.callout-title,
.korean-word-lens .callout[data-callout="wl-roots"]>.callout-title{display:none}
.korean-word-lens .callout[data-callout="wl-header"]>.callout-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:24px;align-items:center;padding:8px 0 22px}
.korean-word-lens .callout[data-callout="wl-word"]>.callout-title{font-size:30px;color:var(--wl-pos);line-height:1.35}
.korean-word-lens .callout[data-callout="wl-word"]>.callout-content>p:first-child{color:var(--wl-pos);font-size:13px;margin:7px 0}
.korean-word-lens .callout[data-callout="wl-word"] small{font-size:16px;color:var(--text-muted);font-weight:400}
.korean-word-lens .callout[data-callout="wl-example"]{padding-left:20px;border-left:2px solid var(--background-modifier-border)}
.korean-word-lens .callout[data-callout="wl-example"]>.callout-title{font-size:19px;font-weight:500;color:var(--text-normal)}
.korean-word-lens .callout[data-callout="wl-example"]>.callout-content{font-size:15px;color:var(--text-muted);margin-top:6px}
.korean-word-lens .callout[data-callout="wl-hanja"]{padding:16px 0 22px;margin:0 0 10px;border-bottom:1px solid var(--background-modifier-border)}
.korean-word-lens .callout[data-callout="wl-hanja"]>.callout-title{margin-bottom:12px}
.korean-word-lens .callout[data-callout="wl-roots"]>.callout-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:14px;align-items:start}
.korean-word-lens .callout[data-callout="wl-root"]{padding:0 12px;border-left:1px solid var(--background-modifier-border);}
.korean-word-lens .callout[data-callout="wl-root"]:first-child{border:0;padding-left:0}
.korean-word-lens .callout[data-callout="wl-root"]>.callout-title{font-size:18px;margin-bottom:9px}
.korean-word-lens .callout[data-callout="wl-detail"]{margin-top:8px}
.korean-word-lens .callout[data-callout="wl-detail"]>.callout-title{font-size:13px;font-weight:500;color:var(--text-muted)}
.korean-word-lens .callout[data-callout="wl-detail"]>.callout-content{font-size:14px;padding-top:8px}
.korean-word-lens .callout[data-callout="wl-section"]{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;padding:12px 0;align-items:start}
.korean-word-lens .callout[data-callout="wl-section"]>.callout-title{padding-left:10px;border-left:2px solid var(--background-modifier-border)}
.korean-word-lens .callout[data-callout="wl-section"]>.callout-content{font-size:15px;line-height:1.65;min-width:0}
.korean-word-lens small{font-size:13px;line-height:1.4;color:var(--text-muted)}
.korean-word-lens table{width:100%;font-size:15px;table-layout:fixed;border-collapse:collapse;margin:0}
.korean-word-lens th,.korean-word-lens td{padding:5px 8px;line-height:1.5;background:transparent;font-size:15px;vertical-align:top;border:0;border-bottom:1px solid var(--background-modifier-border)}
.korean-word-lens th{font-weight:500;color:var(--text-muted)}
.korean-word-lens .callout[data-callout="wl-section"] table:has(th:first-child) th:first-child{width:58%}
.korean-word-lens .callout[data-callout="wl-section"] table thead:has(th:first-child:last-child){display:none}
.korean-word-lens .callout[data-callout="wl-section"]:has(.callout-title-inner:first-child) strong{font-weight:600}
.korean-word-lens .callout[data-callout^="wl-"] p,.korean-word-lens .callout[data-callout^="wl-"] td{text-align:left;direction:ltr;unicode-bidi:plaintext}
.korean-word-lens [lang="fa"]{text-align:left;direction:ltr;unicode-bidi:isolate}
@media(max-width:650px){
 .korean-word-lens .callout[data-callout="wl-header"]>.callout-content,
 .korean-word-lens .callout[data-callout="wl-section"],
 .korean-word-lens .callout[data-callout="wl-roots"]>.callout-content{grid-template-columns:1fr;gap:10px}
 .korean-word-lens .callout[data-callout="wl-root"]{border-left:0;padding:8px 0}
 .korean-word-lens .callout[data-callout="wl-example"]{border-left:0;padding-left:0}
}

.korean-word-lens .callout[data-callout-metadata="examples"] thead,
.korean-word-lens .callout[data-callout-metadata="collocations"] thead{display:none}

/* Word Lens — 1 October 2026: match English in 5/6 to example translations. */
.korean-word-lens .callout[data-callout-metadata="collocations"] td:nth-child(2),
.korean-word-lens .callout[data-callout-metadata="comparison"] th,
.korean-word-lens .callout[data-callout-metadata="comparison"] td:nth-child(2){font-size:13px;line-height:1.4;}

/* Word Lens — optional lamp notices, wherever useful in a word note. */
.korean-word-lens{--wl-notice:#b43138;}
.theme-dark .korean-word-lens{--wl-notice:#ff9b9b;}
.korean-word-lens .word-lens-notice,.korean-word-lens .word-lens-notice *{color:var(--wl-notice);}

/* Clickable Hanja headings retain the approved root-title color. */
.korean-word-lens .callout[data-callout="wl-root"] > .callout-title a.internal-link,
.korean-word-lens .callout[data-callout="wl-root"] > .callout-title a.internal-link:hover,
.korean-word-lens .callout[data-callout="wl-root"] > .callout-title a.internal-link:visited {
  color:var(--wl-title);
  text-decoration:none;
  font-weight:inherit;
}

/* Single-word visual pilot — 공감대가 없다. */
.korean-word-lens-pilot { --file-line-width:820px; --p-spacing:10px; }
.korean-word-lens-pilot .metadata-container { display:none; }
.korean-word-lens-pilot .callout[data-callout^="wl-"] .callout-content { min-width:0; }
.korean-word-lens-pilot .callout[data-callout^="wl-"] .callout-content > p { margin:8px 0; }
.korean-word-lens-pilot .callout[data-callout="wl-header"] > .callout-content { padding:4px 0 14px; gap:24px; }
.korean-word-lens-pilot .callout[data-callout="wl-word"] > .callout-title { font-size:28px; }
.korean-word-lens-pilot .callout[data-callout="wl-word"] > .callout-content > p:first-child { font-size:12px; margin:6px 0 10px; }
.korean-word-lens-pilot .callout[data-callout="wl-example"] > .callout-title { font-size:18px; line-height:1.55; }
.korean-word-lens-pilot .callout[data-callout="wl-example"] > .callout-content { font-size:13px; }
.korean-word-lens-pilot .callout[data-callout="wl-hanja"] { padding:10px 0 18px; margin-bottom:6px; }
.korean-word-lens-pilot .callout[data-callout="wl-roots"] > .callout-content { gap:18px; margin-bottom:14px; }
.korean-word-lens-pilot .callout[data-callout="wl-roots"] > .callout-content > .callout { margin-block:0; align-self:start; }
.korean-word-lens-pilot .callout[data-callout="wl-root"] { padding:0 0 0 16px; }
.korean-word-lens-pilot .callout[data-callout="wl-root"] > .callout-title { margin:0 0 8px; }
.korean-word-lens-pilot .callout[data-callout="wl-detail"].is-collapsed { padding-block:4px; }
.korean-word-lens-pilot .callout[data-callout="wl-section"] { padding:14px 0; grid-template-columns:140px minmax(0,1fr); gap:18px; }
.korean-word-lens-pilot .callout[data-callout="wl-section"] > .callout-title { padding-left:0; border-left:0; }
.korean-word-lens-pilot .callout[data-callout="wl-section"] td { padding:8px; }
.korean-word-lens-pilot .callout[data-callout="wl-section"] td:first-child { padding-left:0; }
.korean-word-lens-pilot .callout[data-callout-metadata="comparison"] th:first-child { width:48%; }
@media(max-width:650px){
 .korean-word-lens-pilot .callout[data-callout="wl-section"] { grid-template-columns:1fr; gap:8px; }
 .korean-word-lens-pilot .callout[data-callout="wl-root"] { padding:8px 0; }
}

/* Compact editorial word-page candidate — sample only. */
.korean-word-compact .callout[data-callout="wl-section"] { display:grid; grid-template-columns:194px minmax(0,1fr); gap:16px; padding:14px 0; }
.korean-word-compact .callout[data-callout="wl-section"] > .callout-title { margin:0; padding:0; border:0; font-size:14px; line-height:1.6; }
.korean-word-compact .callout[data-callout="wl-section"] > .callout-content > :first-child { margin-top:0; }
.korean-word-compact .word-lens-notice { font-size:13px; line-height:1.5; }
.korean-word-compact .callout[data-callout="wl-section"] table,
.korean-word-compact .callout[data-callout="wl-section"] tr,
.korean-word-compact .callout[data-callout="wl-section"] th,
.korean-word-compact .callout[data-callout="wl-section"] td { background:transparent; border:0; }
.korean-word-compact .callout[data-callout-metadata="examples"] table,
.korean-word-compact .callout[data-callout-metadata="examples"] tbody,
.korean-word-compact .callout[data-callout-metadata="examples"] tr,
.korean-word-compact .callout[data-callout-metadata="examples"] td { display:block; width:100%; }
.korean-word-compact .callout[data-callout-metadata="examples"] tr + tr { margin-top:12px; }
.korean-word-compact .callout[data-callout-metadata="examples"] td { padding:0; }
.korean-word-compact .callout[data-callout-metadata="examples"] td:nth-child(2) { margin-top:3px; font-size:13px; line-height:1.45; color:var(--text-muted); }
.korean-word-compact .callout[data-callout-metadata="collocations"] table { display:block; }
.korean-word-compact .callout[data-callout-metadata="collocations"] tbody { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.korean-word-compact .callout[data-callout-metadata="collocations"] tr,
.korean-word-compact .callout[data-callout-metadata="collocations"] td { display:block; width:100%; padding:0; }
.korean-word-compact .callout[data-callout-metadata="collocations"] td:nth-child(2) { margin-top:3px; font-size:13px; color:var(--text-muted); }
.korean-word-compact .callout[data-callout-metadata="comparison"] thead { display:none; }
.korean-word-compact .callout[data-callout-metadata="comparison"] table { table-layout:fixed; }
.korean-word-compact .callout[data-callout-metadata="comparison"] td { width:50%; padding:0 0 10px; }
.korean-word-compact .callout[data-callout-metadata="comparison"] td + td { padding-left:14px; }
.korean-word-compact .callout[data-callout-metadata="comparison"] tr + tr td { border-top:1px solid var(--background-modifier-border); padding-top:10px; }
@media(max-width:580px){
 .korean-word-compact .callout[data-callout="wl-section"] { grid-template-columns:1fr; gap:8px; }
 .korean-word-compact .callout[data-callout-metadata="collocations"] tbody { grid-template-columns:1fr; gap:9px; }
}

/* Sample trial: centered half-width separators between sections 2–6. */
.korean-word-compact .callout[data-callout="wl-section"] { position:relative; }
.korean-word-compact .callout[data-callout="wl-section"][data-callout-metadata="examples"]::before,
.korean-word-compact .callout[data-callout="wl-section"][data-callout-metadata="relationships"]::before,
.korean-word-compact .callout[data-callout="wl-section"][data-callout-metadata="collocations"]::before,
.korean-word-compact .callout[data-callout="wl-section"][data-callout-metadata="comparison"]::before {
 content:""; position:absolute; top:0;
 left:calc(210px + (100% - 210px) * .25);
 width:calc((100% - 210px) * .5);
 height:1px; background:var(--background-modifier-border);
}
@media(max-width:580px){
 .korean-word-compact .callout[data-callout="wl-section"]::before { left:25%; width:50%; }
}


/* Continuous subject pages: all 16 KIIP 3 units, 1 October 2026. */
.korean-subject .metadata-container,.korean-course-preview .metadata-container,
.korean-subject .inline-title,.korean-course-preview .inline-title {display:none;}
.korean-subject .markdown-embed {border:0;padding:0;margin:0;background:transparent;}
.korean-subject .markdown-embed-content,.korean-subject .markdown-embed-content > .markdown-preview-view {max-height:none!important;overflow:visible!important;}
.korean-subject .markdown-embed-title {display:none;}
.korean-subject .markdown-embed .markdown-preview-sizer {padding:0!important;min-height:0!important;}
.korean-subject .markdown-embed h1 {font-size:1.2em;}
.korean-subject.korean-vocabulary .markdown-embed h1 {display:none;}
.korean-subject h2,.korean-course-preview h2 {margin-top:2.3em;padding-bottom:.5em;border-bottom:1px solid var(--background-modifier-border);}
.korean-subject h3 {margin-top:1.8em;}
.korean-course-preview p {margin:.65em 0 1em;}
.korean-course-preview small {font-size:.85em;color:var(--text-muted);line-height:1.6;}
.korean-course-preview .internal-link {text-decoration:none;}

/* BEGIN KIIP SUBJECT COMPLETE — 2026-10-01 */
.kiip-subject-complete { --subject-accent:rgb(var(--ks-blue)); --line-height-normal:1.75; }
.kiip-subject-complete.subject-culture { --subject-accent:rgb(var(--ks-green)); }
.kiip-subject-complete.subject-listening { --subject-accent:rgb(var(--ks-purple)); }
.kiip-subject-complete.subject-pronunciation { --subject-accent:rgb(var(--ks-green)); }
.kiip-subject-complete.subject-writing { --subject-accent:rgb(var(--ks-gold)); }
.kiip-subject-complete h1 { font-size:1.8em; line-height:1.3; color:var(--subject-accent); padding-bottom:.4em; border:0; }
.kiip-subject-complete .el-h1 + .el-p { font-size:.8em; line-height:1.9; color:var(--text-muted); margin-bottom:2.2em; }
.kiip-subject-complete h2 { font-size:1.3em; color:var(--subject-accent); margin:3em 0 1.4em; padding:0 0 .65em; border-bottom:1px solid color-mix(in srgb,var(--subject-accent) 25%,transparent); }
.kiip-subject-complete h3 { font-size:.95em; font-weight:700; color:var(--subject-accent); margin:2em 0 .85em; padding:0; border:0; }
.kiip-subject-complete p { margin:.85em 0; }
.kiip-subject-complete .internal-link { text-decoration:none; text-underline-offset:3px; }
.kiip-subject-complete .internal-link:hover { text-decoration:underline; }
.kiip-subject-complete small { color:var(--text-muted); font-size:.82em; }
.kiip-subject-complete .callout { border:0 !important; border-radius:0; background:transparent !important; box-shadow:none; margin:4px 0; padding:3px 0; }
.kiip-subject-complete .callout > .callout-title { padding:5px 0; color:var(--text-muted); font-size:.86em; font-weight:600; gap:5px; }
.kiip-subject-complete .callout > .callout-title > .callout-icon { display:none; }
.kiip-subject-complete .callout .callout-fold { margin-left:4px; }
.kiip-subject-complete .callout .callout-fold svg { width:13px; height:13px; }
.kiip-subject-complete .callout > .callout-content { padding:0; font-size:.94em; }
.kiip-subject-complete .callout[data-callout="question"] > .callout-title { color:rgb(var(--ks-blue)); }
.kiip-subject-complete .callout:is([data-callout="success"],[data-callout="example"]) > .callout-title { color:rgb(var(--ks-green)); }
.kiip-subject-complete .callout .callout-content p { margin:.65em 0; }
.kiip-subject-complete .el-table { overflow-x:auto; }
.kiip-subject-complete table { width:100%; border-collapse:collapse; font-size:.93em; margin:1em 0 1.2em; }
.kiip-subject-complete table :is(td,th) { padding:9px 12px; border:0; border-bottom:1px solid var(--background-modifier-border); vertical-align:top; text-align:left; background:transparent; line-height:1.6; }
.kiip-subject-complete table th { font-size:.84em; color:var(--text-muted); font-weight:600; background:color-mix(in srgb,var(--subject-accent) 5%,transparent); }
.kiip-subject-complete table tr { background:transparent; }
.kiip-subject-complete.subject-listening .el-p > p > strong:first-child { color:var(--subject-accent); font-size:.9em; }
.kiip-subject-complete.subject-reading .el-h3:not(:first-child)::before,
.kiip-subject-complete.subject-listening .el-h3:not(:first-child)::before { content:""; display:block; width:45%; height:1px; margin:1.8em auto; background:var(--background-modifier-border); }
@media (max-width:600px) { .kiip-subject-complete h1 { font-size:1.5em; } .kiip-subject-complete h2 { font-size:1.2em; } .kiip-subject-complete table :is(td,th) { padding:8px; } }

.kiip-subject-complete .el-h2 + .el-h3::before { display:none !important; }
.kiip-subject-complete .el-h2 + .el-h3 h3 { margin-top:1.1em; }
/* END KIIP SUBJECT COMPLETE */
