/* soonmal.com: hanji paper and indigo ink. System fonts for Latin; self-hosted Noto Sans/Serif KR slices for Korean. */
:root {
  --bg: #f6f1e7; --bg2: #efe7d8; --card: #fffdf8; --ink: #1d2230; --ink2: #4a5163; --muted: #6b7183; --line: #e0d6c4;
  --accent: #2b4c7e; --accent2: #1d3a66; --accent-soft: #e4ebf5; --red: #b8402f; --red-soft: #f6e2dc;
  --green: #2f6b4f; --green-soft: #dfeee5; --gold: #9a6b12; --gold-soft: #f5ead2; --grey-soft: #ebe8e1;
  --o-native: #2f6b4f; --o-sino: #9b3d2e; --o-hybrid: #8a6514; --o-loan: #5b5f8a; --o-unlisted: #7a6f63;
  --shadow: 0 1px 2px rgba(29, 34, 48, .06), 0 4px 14px rgba(29, 34, 48, .06);
  --r: 14px; --on-accent: #fff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "SM Sans", sans-serif;
  --ko: "SM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "SM Serif", "SM Sans", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141821; --bg2: #1a1f2b; --card: #1e2431; --ink: #ece6da; --ink2: #c3c0b8; --muted: #9a9ca6; --line: #2e3545;
    --accent: #9cb8e6; --accent2: #c2d4f2; --accent-soft: #24304a; --red: #ef9a87; --red-soft: #3a2723;
    --green: #8fd0ad; --green-soft: #1f3329; --gold: #e3bd6a; --gold-soft: #352d1c; --grey-soft: #262b37;
    --o-native: #8fd0ad; --o-sino: #ef9a87; --o-hybrid: #e3bd6a; --o-loan: #b3b6e6; --o-unlisted: #c4b8aa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25); --on-accent: #10141c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141821; --bg2: #1a1f2b; --card: #1e2431; --ink: #ece6da; --ink2: #c3c0b8; --muted: #9a9ca6; --line: #2e3545;
  --accent: #9cb8e6; --accent2: #c2d4f2; --accent-soft: #24304a; --red: #ef9a87; --red-soft: #3a2723;
  --green: #8fd0ad; --green-soft: #1f3329; --gold: #e3bd6a; --gold-soft: #352d1c; --grey-soft: #262b37;
  --o-native: #8fd0ad; --o-sino: #ef9a87; --o-hybrid: #e3bd6a; --o-loan: #b3b6e6; --o-unlisted: #c4b8aa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25); --on-accent: #10141c;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); overflow-wrap: break-word; }
[lang="ko"], .ko { font-family: var(--ko); word-break: keep-all; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent2); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-top: .2em; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: .6em 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; z-index: 9; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.js-only { display: none !important; }
html.js .js-only { display: revert !important; }
html.js .no-js-only { display: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand .bk { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.brand .be { font-weight: 650; letter-spacing: .02em; color: var(--ink2); font-size: .95rem; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--ink2); text-decoration: none; padding: 8px 10px; border-radius: 9px; font-weight: 550; font-size: .97rem; }
.nav a:hover { background: var(--bg2); color: var(--ink); }
.nav a[aria-current] { background: var(--accent-soft); color: var(--accent2); }
.theme { background: none; border: 1px solid var(--line); color: var(--ink2); border-radius: 99px; padding: 6px 12px; cursor: pointer; min-height: 40px; display: flex; gap: 6px; align-items: center; }
@media (max-width: 820px) {
  .bar { gap: 6px 10px; padding-top: 8px; padding-bottom: 6px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 0 -16px; padding: 0 12px 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 9px 11px; }
}

/* hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent), var(--bg); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--red); font-weight: 700; margin: 0; }
.hero h1 { margin: .15em 0 .3em; }
.hero .hk { display: block; font-family: var(--serif); font-size: clamp(3rem, 9vw, 5.6rem); font-weight: 600; line-height: 1.05; letter-spacing: .02em; }
.hero .he { display: block; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; color: var(--ink2); margin-top: .2em; }
.lead { font-size: 1.12rem; color: var(--ink2); max-width: 46em; }
.hsearch { display: flex; gap: 8px; margin-top: 18px; max-width: 520px; }
.hsearch input { flex: 1; min-width: 0; }
input[type=search], input[type=text], select { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); min-height: 46px; }
.seal { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.seal-ring { fill: var(--red-soft); stroke: var(--red); stroke-width: 6; }
.seal-k { font-family: var(--serif); font-weight: 600; font-size: 100px; fill: var(--red); }
@media (max-width: 760px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 26px; padding-bottom: 30px; gap: 12px; }
  .hero-art { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 11px; padding: 10px 18px; min-height: 46px; font-weight: 650; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent2); }
.btn.ghost { background: var(--card); color: var(--accent2); border: 1px solid var(--line); }
.btn.alt { background: var(--red); }
.say.playing, .seg button[aria-pressed="true"] { color: var(--on-accent) !important; }
.btn.big { min-height: 52px; padding: 12px 20px; font-size: 1.02rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.say { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--accent); cursor: pointer; vertical-align: middle; flex: none; }
.say:hover { background: var(--accent-soft); }
.say.playing { background: var(--accent); color: var(--card); }

/* sections, grids, cards */
.sec { margin: 40px 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.sec-h h2 { margin: 0 0 12px; }
.sec-sub { color: var(--muted); margin: 0 0 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: minmax(0, 1fr); } }
.flexgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.flexgrid > * { flex: 0 1 calc(25% - 11px); min-width: 0; }
@media (max-width: 1000px) { .flexgrid > * { flex-basis: calc(50% - 7px); } }
@media (max-width: 560px) { .flexgrid > * { flex-basis: 100%; } }
.wcard { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--o-native); transition: transform .12s; min-width: 0; }
.wcard:hover { transform: translateY(-2px); color: var(--ink); }
.wcard.o-hybrid { border-top-color: var(--o-hybrid); }
.wcard.o-unlisted { border-top-color: var(--o-unlisted); }
.wcard.o-sino { border-top-color: var(--o-sino); }
.wk { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.2; }
.wr { color: var(--accent); font-style: italic; }
.we { font-weight: 600; }
.wm { color: var(--muted); font-size: .84rem; margin-top: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--o-native); vertical-align: 1px; }
.dot.o-sino { background: var(--o-sino); } .dot.o-hybrid { background: var(--o-hybrid); } .dot.o-loan { background: var(--o-loan); } .dot.o-unlisted { background: var(--o-unlisted); }
.tcard { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.tcard:hover { border-color: var(--accent); color: var(--ink); }
.tk { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--red); }
.tt { font-weight: 700; font-size: 1.08rem; }
.tb { color: var(--ink2); font-size: .93rem; flex: 1; }
.tn { color: var(--muted); font-size: .84rem; }
.tool-card { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); min-width: 0; }
.tool-card:hover { border-color: var(--accent); color: var(--ink); }
.tool-card span:last-child { color: var(--ink2); font-size: .93rem; }
.ti { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--ko); margin-bottom: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: g; }
.guide-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 14px 58px; position: relative; counter-increment: g; }
.guide-list li::before { content: counter(g); position: absolute; left: 18px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.guide-list a { text-decoration: none; display: block; }
.guide-list a b { color: var(--ink); }
.guide-list a span { color: var(--red); margin-right: 6px; }
.guide-list li > span { color: var(--ink2); font-size: .93rem; }

/* chart */
.chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.chart figcaption { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crow { margin: 10px 0; }
.clabel { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.clabel small { color: var(--muted); font-weight: 400; }
.cbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: var(--grey-soft); }
.seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; font-weight: 700; min-width: 0; overflow: hidden; }
.seg.o-native { background: #2f6b4f; } .seg.o-sino { background: #9b3d2e; } .seg.o-hybrid { background: #9a6b12; } .seg.o-loan { background: #5b5f8a; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--ink2); margin-top: 8px; }
.legend .dot.o-native { background: #2f6b4f; } .legend .dot.o-sino { background: #9b3d2e; } .legend .dot.o-hybrid { background: #9a6b12; } .legend .dot.o-loan { background: #5b5f8a; }

/* page hero */
.page-hero { background: var(--bg2); border-bottom: 1px solid var(--line); padding: 18px 0 26px; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 6px 0 10px; }
.crumbs a { color: var(--ink2); }
.tkbig { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--red); margin: 0; }
.tkbig .rr { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 400; font-style: italic; margin-left: 6px; }
.lead-md p { font-size: 1.08rem; color: var(--ink2); max-width: 48em; }

/* word page */
.whero { background: var(--bg2); border-bottom: 1px solid var(--line); padding: 14px 0 26px; border-top: 5px solid var(--o-native); }
.whero.o-hybrid { border-top-color: var(--o-hybrid); } .whero.o-unlisted { border-top-color: var(--o-unlisted); }
.whead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hw { font-family: var(--serif); font-weight: 600; font-size: clamp(3.2rem, 11vw, 5.2rem); line-height: 1.05; margin: 6px 0 4px; }
.whead .say { width: 52px; height: 52px; }
.wline { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.rr { color: var(--accent); font-style: italic; }
.wline .rr { font-size: 1.3rem; }
.pr { color: var(--ink2); }
.pr.big, .rr.big { font-size: 1.35rem; }
.pos { color: var(--muted); }
.gloss { font-size: 1.35rem; font-weight: 650; margin: 2px 0 10px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--grey-soft); color: var(--ink2); white-space: nowrap; }
.badge.o-native { background: var(--green-soft); color: var(--green); }
.badge.o-sino { background: var(--red-soft); color: var(--red); }
.badge.o-hybrid, .badge.ct { background: var(--gold-soft); color: var(--gold); }
.badge.o-loan { background: var(--accent-soft); color: var(--accent2); }
.badge.lv { background: var(--accent-soft); color: var(--accent2); }
.badge.us-rare, .badge.us-archaic, .badge.us-dialect, .badge.us-coinage { background: var(--gold-soft); color: var(--gold); }
.wbody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-top: 10px; }
@media (max-width: 900px) { .wbody { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.block { margin: 24px 0; }
.block h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.meaning { font-size: 1.15rem; }
.examples { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ex { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.ek { font-size: 1.28rem; margin: 0; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.er { color: var(--accent); font-style: italic; font-size: .9rem; margin: 2px 0 0; }
.ee { color: var(--ink2); margin: 2px 0 0; }
.pairs { display: grid; gap: 10px; }
.pair { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--o-sino); border-radius: var(--r); padding: 12px 16px; }
.pw { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pk { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.hz { font-family: var(--ko); font-size: 1.25rem; color: var(--o-sino); }
.pm { color: var(--ink2); font-size: .93rem; }
.callout { border-radius: var(--r); padding: 12px 16px; margin: 14px 0; }
.callout.ct { background: var(--gold-soft); }
.callout h3 { margin: 0 0 4px; font-size: 1rem; }
.steps { padding-left: 1.3em; margin: 8px 0; }
.steps li { margin: 3px 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chips .chip { display: inline-flex; gap: 6px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; text-decoration: none; color: var(--ink); min-height: 40px; align-items: center; }
.chips a:hover { border-color: var(--accent); }
.chips span[lang] { font-weight: 600; white-space: nowrap; }
.chips a > span:not([lang]), .chips .chip > span:not([lang]) { color: var(--ink2); font-size: .9rem; }
.wside > section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 24px 0; }
.wside h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.wside ul { padding-left: 1.1em; margin: 6px 0; font-size: .93rem; }
.wside li { margin: 5px 0; }
.ev-verdict { margin: 0 0 4px; }
.drama p { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.pn { display: flex; justify-content: space-between; gap: 12px; margin: 30px 0 40px; flex-wrap: wrap; }
.pn a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }

/* prose, tables */
.prose h2 { margin-top: 1.6em; }
.prose blockquote { border-left: 4px solid var(--line); margin: 1em 0; padding: .2em 1em; color: var(--ink2); }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; max-width: 100%; }
.tbl { border-collapse: collapse; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--bg2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td[lang="ko"], .tbl .gk { font-size: 1.08rem; }
.gk { font-weight: 600; text-decoration: none; }
.verdicts td:first-child a { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; text-decoration: none; }

/* tools */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 24px 0; box-shadow: var(--shadow); }
.lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 22px 0 6px; }
.filters label { display: flex; flex-direction: column; min-width: 0; }
.filters .grow { flex: 1 1 240px; }
.filters input, .filters select { width: 100%; }
.count { color: var(--muted); font-size: .92rem; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.seg button { background: var(--card); color: var(--ink2); border: 0; padding: 10px 14px; min-height: 44px; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--card); font-weight: 650; }
.fc-opts { display: flex; gap: 16px; flex-wrap: wrap; }
.fc-opts .grow { flex: 1 1 100%; }
.fc-themes { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.fc-themes label { display: inline-flex; gap: 6px; align-items: center; background: var(--bg2); border-radius: 99px; padding: 6px 12px; min-height: 40px; cursor: pointer; font-size: .93rem; }
.fc-card, .qz-card { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 16px; margin: 12px 0; gap: 8px; }
.fc-front, .fc-back { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fc-w { font-family: var(--serif); font-size: clamp(2.6rem, 10vw, 3.6rem); font-weight: 600; line-height: 1.15; }
.fc-e { font-size: 1.4rem; font-weight: 650; }
.fc-r { color: var(--accent); font-style: italic; }
.fc-x { color: var(--ink2); font-size: 1.05rem; max-width: 32em; }
.fc-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fc-btns span { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fc-empty { color: var(--muted); }
.qz-opts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qz-n { color: var(--muted); margin: 0; font-size: .9rem; }
.qz-w { font-family: var(--serif); font-size: clamp(3rem, 12vw, 4.4rem); font-weight: 600; margin: 0; line-height: 1.15; }
.qz-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.qz-res { max-width: 34em; }
.qz-res .ok { color: var(--green); font-weight: 700; }
.qz-res .no { color: var(--red); font-weight: 700; }
.qz-res .hz { font-size: 1.5rem; }
.snd input[type=text] { width: 100%; font-size: 1.3rem; }
.snd .chk { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: .93rem; min-height: 40px; }
.snd-out { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 10px 0; }

/* footer */
.foot { background: var(--bg2); border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0 34px; color: var(--ink2); font-size: .9rem; }
.foot .fk { font-family: var(--serif); font-size: 1.2rem; color: var(--red); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .top, .foot, .say, .js-only { display: none !important; } }
/* Korean display text in the serif (beats the generic [lang="ko"] rule) */
.hw [lang], .hw, .hero .hk, .tk, .tkbig, .wcard .wk, .pk, .fc-w, .qz-w, .brand .bk, .foot .fk, .verdicts td:first-child a, .guide-list a span[lang] { font-family: var(--serif); }
.scrollx { position: relative; }
@media (max-width: 560px) { .gloss th:nth-child(4), .gloss td:nth-child(4), .gloss th:nth-child(6), .gloss td:nth-child(6) { display: none; } }
@media (max-width: 560px) {
  .grid4.words { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flexgrid { gap: 10px; }
  .flexgrid > * { flex-basis: calc(50% - 5px); }
  .wcard { padding: 12px 12px 10px; }
  .wcard .wk { font-size: 1.55rem; }
  .wcard .we { font-size: .95rem; }
}
