/* Hangul Time: styles shared by the home page and the letter pages.
   Koppa design system (Yeonbora), light only: violet is the brand and every action, gold is a fill and never text,
   plum ink for text. Type sits at the large end of Koppa's ramp: bold headings, 17px controls, nothing under 15px. */
:root {
  color-scheme: light;
  --bg: #F6F4FA; --surface: #FFFFFF; --line: #E8E4F2; --ghost: #E8E4F2; --grid: #D6D0E4;
  --ink: #201B2E; --ink-2: #57506E; --ink-3: #6E6885;
  --violet: #6D4AEE; --violet-top: #7F59F2; --violet-deep: #5A38DE; --violet-soft: #F0EBFE; --violet-mid: #E7DFFD; --violet-light: #9980F3;   /* violet at 70% on white: 3.1:1, readable as large text */
  --part-b: #0083E1;   /* Koppa skyBright: the second part of a double letter */
  --tangerine: #CC5500; --guide: #FF9F2E; --guide-text: #CC6A00; --gold: #FFC02E;   /* guide = Koppa orange (app themes/colors.dart): arrows, number rings and numbers */ --good: #08783A; --danger: #B42318;
  --shadow: 0 10px 30px rgba(56, 36, 150, .09);
  --display: 'Gowun Dodum', 'Apple SD Gothic Neo', sans-serif;
  --body: 'Inter', 'Pretendard', 'Apple SD Gothic Neo', system-ui, sans-serif;
}
* { box-sizing: border-box; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* read aloud, not shown */
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font: 500 17px/1.5 var(--body); margin: 0; -webkit-font-smoothing: antialiased; }
.ko { font-family: var(--display); }
a { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* buttons: soft violet; .primary is Koppa's violet gradient */
.btn { font: 700 17px/1.2 var(--body); color: var(--violet); background: var(--violet-soft); border: 0; border-radius: 14px; min-height: 48px; padding: 0 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .15s; }
.btn:hover { background: var(--violet-mid); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .ko { font-size: 1.3em; line-height: 1; font-weight: 700; }
.btn.primary { background: linear-gradient(135deg, var(--violet-top), var(--violet-deep)); color: #fff; }   /* Koppa's CTA violets, corner to corner; white text clears 4.5:1 at every point */
.btn.primary:active { background: var(--violet-deep); }
.btn.arrows[aria-pressed="true"] .i-show, .btn.arrows[aria-pressed="false"] .i-hide { display: none; }
.btn.pulse { animation: pulse 1.6s ease-out 3; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(109, 74, 238, .5); } 100% { box-shadow: 0 0 0 16px rgba(109, 74, 238, 0); } }

/* header: stays at the top while scrolling; logo left, menu centered, the app button right; on phones the menu takes its
   own row. --header-h (set by hangul-time.js) keeps pinned content and in-page jumps clear of it. */
html { scroll-padding-top: calc(var(--header-h, 73px) + 16px); }
header.site { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .wrap { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand menu cta"; align-items: center; gap: 4px 16px; min-height: 72px; }
nav.menu { grid-area: menu; display: flex; gap: 4px; }
nav.menu a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 12px; }
nav.menu a:hover { background: var(--violet-soft); color: var(--violet); }
nav.menu a[aria-current] { color: var(--violet); background: var(--violet-soft); }
.brand { grid-area: brand; justify-self: start; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand .mark { width: 36px; height: 36px; flex: none; }
.head-cta { grid-area: cta; justify-self: end; min-height: 44px; padding: 0 20px; font-size: 16px; white-space: nowrap; }
@media (max-width: 760px) {
  header.site .wrap { grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "menu menu"; min-height: 0; padding-block: 10px 4px; }
  .brand { font-size: 18px; }
  .head-cta { padding: 0 14px; gap: 6px; }
  nav.menu { margin-inline: -10px; overflow-x: auto; scrollbar-width: none; }
  nav.menu a { padding: 10px; white-space: nowrap; }
}
@media (max-width: 360px) { .head-cta { white-space: normal; } }   /* the smallest phones: two lines rather than a page that scrolls sideways */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.crumbs { font-size: 15px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; padding-top: 32px; margin-bottom: 28px; }   /* the space under the header and above the title */
.crumbs a { color: var(--ink-2); }

/* page title row */
.intro { margin-bottom: 44px; }
h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.intro p { margin: 12px 0 0; color: var(--ink-2); font-size: clamp(18px, 2vw, 21px); max-width: 44em; }

/* letter keys */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.key { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font: 700 34px/1 var(--display); }
.key:hover { box-shadow: inset 0 0 0 2px var(--violet); }
.key.sel { background: var(--violet-soft); color: var(--violet); box-shadow: inset 0 0 0 2px var(--violet); }

/* the white card and the square board the strokes play on */
.card { background: var(--surface); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.board { position: relative; width: 100%; aspect-ratio: 1; }
.board > svg, .board > .writer { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .grid, .board .glyph, .board .overlay { pointer-events: none; }
.f-done { fill: var(--ink-2); } .f-now { fill: var(--violet); } .f-todo { fill: var(--ghost); }
.f-grid { stroke: var(--grid); stroke-width: 10; stroke-dasharray: 30 30; fill: none; }

/* Koppa: the app card (home and letter pages), its store badges, and the footer */
.koppa { margin-top: 72px; background: linear-gradient(160deg, var(--surface) 0%, #EDE5FC 55%, #FAEFD6 100%); border-radius: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: end; padding: 0 56px; overflow: hidden; }
.koppa-text { padding-block: 56px; align-self: center; }
.koppa h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 12px; }
.koppa p { margin: 0; color: var(--ink-2); font-size: clamp(18px, 2vw, 20px); max-width: 30em; }
.koppa .points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.koppa .points li { display: flex; gap: 10px; align-items: start; color: var(--ink); font-weight: 600; }
.koppa .points li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.koppa-shot { display: block; width: 100%; height: 460px; object-fit: cover; object-position: top; border-radius: 28px 28px 0 0; margin-top: 48px; }
@media (max-width: 760px) {
  .koppa { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 24px; border-radius: 24px; }
  .koppa-text { padding-block: 32px 0; }
  .koppa-shot { width: min(300px, 100%); height: 340px; justify-self: center; margin-top: 32px; }
}
/* official badges: Apple's clear space is a quarter of its 48px height (12px); Google's image carries its own,
   so the negative margin lines its visible badge up with Apple's at the same height */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.badges a { display: block; line-height: 0; }
.badges img { height: 48px; width: auto; }
.badges img.gp { height: 71px; margin: -11.5px -11px; }
footer.site { margin-top: 80px; background: var(--surface); border-top: 1px solid var(--line); }
footer.site .wrap { padding-block: 40px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 32px 48px; }
.foot-main { display: grid; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.foot-links div { display: grid; gap: 10px; align-content: start; }
.foot-links b { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--violet); }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.foot-brand .mark { width: 42px; height: 42px; flex: none; }   /* as tall as the two lines beside it */
.foot-brand b { display: block; font-size: 18px; line-height: 22px; letter-spacing: -0.02em; }
.foot-brand b + span { display: block; font-size: 15px; line-height: 20px; color: var(--ink-3); }
footer.site a[href^="mailto"] { color: var(--ink-2); font-weight: 600; }

/* word cards: tap to hear (letter pages color the syllable with the letter and lighten the rest) */
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(160px, (100% - 20px) / 3), 1fr)); gap: 10px; }   /* three across, two on phones */
.word { background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 18px; padding: 14px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; align-content: start; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.word:hover { box-shadow: inset 0 0 0 2px var(--violet); }
.word .ko { font-size: 34px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; color: var(--ink); white-space: nowrap; }
.word:has(mark) .ko { color: var(--violet-light); }   /* light violet, so the syllable with the letter stands out */
.word mark { background: none; color: var(--violet); }
.word svg, .chip svg, .say svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.word svg { margin-top: 10px; }
.word .parts, .word .rr, .word .en { grid-column: 1 / -1; }
.word .parts { font-size: 22px; line-height: 1.3; color: var(--violet); margin-bottom: 6px; }
.word .rr { font-size: 17px; font-weight: 700; }
.word .en { font-size: 17px; line-height: 1.35; }
/* a word inline, and a letter's sound */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--violet-soft); color: var(--ink); font: 600 17px var(--body); cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--violet-mid); }
.chip .ko { font-size: 21px; font-weight: 700; }
.say { position: relative; display: grid; justify-items: center; gap: 2px; width: 100%; max-width: 120px; padding: 14px 8px 12px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 17px var(--body); cursor: pointer; }
.say:hover { box-shadow: inset 0 0 0 2px var(--violet); }
.say svg { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; }
.say .ko { font: 400 40px/1.2 var(--display); color: var(--violet); }
.says { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.says .say { width: 120px; }

/* previous / next */
.pager { display: flex; flex-wrap: wrap; gap: 10px; }   /* side by side when both fit, else stacked */
.pager .btn { flex: 1 1 0; min-height: 64px; padding: 0 20px; font-size: 19px; border-radius: 16px; gap: 10px; }
.pager .btn:first-child { justify-content: flex-start; }
.pager .btn:last-child { justify-content: flex-end; }
.pager .btn:only-child { justify-content: center; }

/* guides: everything in one 760px column (19px body, as on the letter pages), left-aligned with the title */
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; max-width: 760px; }
.guide-page .intro p, .guide-pager { max-width: 760px; }   /* minmax: wide tables scroll inside their box, not the page */
.guide h2 { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.guide h3 { font-size: 21px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin: 48px 0 10px; }   /* subsections stand apart */
.guide h2 + h3 { margin-top: 20px; }
.guide p, .guide li { font-size: 19px; line-height: 1.6; }
.guide p { margin: 0 0 16px; }
.guide section > :last-child { margin-bottom: 0; }
.guide ul, .guide ol { margin: 0 0 16px; padding-left: 24px; }
.guide li + li { margin-top: 8px; }
.guide a { font-weight: 600; }
.j, .guide p a.ko { font-size: 1.25em; line-height: 1; }   /* single letters in a sentence, as big as the syllables around them */
.ko .j, td.ko .j { font-size: inherit; }
.guide p a.ko { font-family: inherit; text-decoration: none; }
.guide a.ko { font-weight: 600; }
.guide .words, .guide .blocks, .guide .table-wrap, .guide .layouts, .guide .devices, .guide .kb-wrap { margin: 20px 0 24px; }
.guide-pager { margin-top: 72px; }
.tips { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.tips li { margin: 0 !important; padding-left: 30px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tip { background: var(--violet-soft); border-radius: 16px; padding: 16px 20px; }
.path { list-style: none; padding: 0 !important; counter-reset: p; display: grid; gap: 12px; }
.path > li { counter-increment: p; position: relative; margin: 0 !important; background: var(--surface); border-radius: 20px; padding: 20px 24px 20px 76px; box-shadow: inset 0 0 0 1px var(--line); }
.path > li::before { content: counter(p); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 700; display: grid; place-items: center; }
.path h3 { margin: 4px 0 6px; }
.path p { margin: 0 0 8px; }
.path .words { margin: 16px 0 0; }
/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 17px; }
.table-wrap th { text-align: left; font-size: 15px; font-weight: 600; color: var(--ink-3); padding: 16px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap :is(th, td):first-child { padding-left: 28px; }   /* clear of the rounded edge */
.table-wrap :is(th, td):last-child { padding-right: 28px; }
.table-wrap td.ko { font: 400 28px var(--display); }
.table-wrap td.big { font-size: 30px; color: var(--violet); }
.letters-table td:first-child a { font: 400 40px/1 var(--display); color: var(--violet); text-decoration: none; }
.letters-table td:nth-child(3) .ko { font: 400 21px var(--display); margin-right: 6px; }
.syllables { table-layout: fixed; min-width: 640px; }
.syllables :is(th, td) { text-align: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.syllables th a { font: 400 32px var(--display); color: var(--violet); text-decoration: none; }
.syllables td .ko { display: block; font: 400 26px/1.3 var(--display); }
.syllables td small { display: block; font-size: 15px; color: var(--ink-3); }
.finals td:first-child b { font-size: 21px; }
.trio { table-layout: fixed; }
.trio :is(th, td), .table-wrap .trio :is(th, td):is(:first-child, :last-child) { text-align: center; padding: 16px 20px; }
.trio th { font-size: 17px; color: var(--ink); }
.trio .say { margin: 0 auto; max-width: 150px; padding: 18px 8px 14px; }
kbd { display: inline-block; min-width: 30px; margin: 2px 4px 2px 0; padding: 3px 6px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 -2px 0 var(--line), inset 0 0 0 1px var(--line); font: 600 15px var(--body); text-align: center; }
/* blocks: each letter in its spot (consonant, vowel, final) */
.blocks, .layouts { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.layouts > div { flex: 1 1 180px; max-width: 240px; }
.layouts p { font-size: 17px; margin: 10px 0 0; }
.layouts p .ko { font-size: 27px; line-height: 1.3; }
.syl { margin: 0; display: grid; gap: 10px; justify-items: start; }
.syl figcaption { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.syl figcaption .ko { font-size: 26px; color: var(--ink); margin-right: 6px; }
.block { width: 132px; aspect-ratio: 1; display: grid; gap: 6px; padding: 8px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); grid-auto-rows: minmax(0, 1fr); grid-auto-columns: minmax(0, 1fr); }
.block span { display: grid; place-items: center; border-radius: 12px; font: 400 52px/1 var(--display); }   /* single letters draw small in this font */
.block .c { grid-area: c; background: var(--bg); }
.block .v { grid-area: v; background: var(--violet-soft); color: var(--violet); }
.block .f { grid-area: f; background: #E5F3FD; color: var(--part-b); }
.block .v1 { grid-area: v1; } .block .v2 { grid-area: v2; }
.b-right { grid-template-areas: "c v"; } .b-right.has-f { grid-template-areas: "c v" "f f"; }
.b-below { grid-template-areas: "c" "v"; } .b-below.has-f { grid-template-areas: "c" "v" "f"; }
.b-around { grid-template-areas: "c v2" "v1 v2"; } .b-around.has-f { grid-template-areas: "c v2" "v1 v2" "f f"; }
.b-below.has-f span, .b-around.has-f span { font-size: 34px; }   /* three rows */
/* keyboard: 20 half-key columns so rows can sit half a key apart; consonant keys white, vowel keys violet */
.kb-wrap { overflow-x: auto; }
.guide .kb { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 6px; min-width: 600px; list-style: none; margin: 0; padding: 0; }
.guide .kb .k { margin: 0; }
.kb .k { grid-column: span 2; position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 -3px 0 var(--line); display: grid; place-items: center; }
.kb .k.vow { background: var(--violet-soft); }
.kb .k b { font: 400 28px/1 var(--display); }
.kb .k.vow b { color: var(--violet); }
.kb .lat { position: absolute; left: 7px; top: 4px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.kb .sh { position: absolute; right: 7px; top: 4px; font: 400 17px var(--display); color: var(--violet); }
.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.device { background: var(--surface); border-radius: 20px; padding: 20px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.device h3 { margin-top: 0; }
.device ol { margin: 0; }
.device p { font-size: 17px; color: var(--ink-2); margin: 12px 0 0; }
.device li, .device li + li { font-size: 17px; margin-top: 4px; }
/* history */
.origins, .chains { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.origins li { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 16px; margin: 0 !important; }
.origins a.ko, .chains a.ko { font: 400 44px/1 var(--display); color: var(--violet); text-decoration: none; }
.chains { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.chains li { display: flex; align-items: center; gap: 10px; margin: 0 !important; background: var(--surface); border-radius: 16px; padding: 10px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.chains span { color: var(--ink-3); }
.chart-actions { margin: -12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chart-img { display: block; max-width: 520px; margin: 20px 0 16px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.chart-img img { display: block; width: 100%; height: auto; }

/* home: guide cards and questions */
.home-guides, .faq { padding-top: 72px; }
.home-guides h2, .faq h2 { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; }
.gfeat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.gf { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; row-gap: 4px; padding: 24px 26px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.gf:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--violet); }
.gf .ko { grid-row: 1 / span 3; width: 120px; height: 96px; display: grid; place-items: center; border-radius: 20px; background: var(--violet-soft); color: var(--violet); font: 400 38px/1 var(--display); white-space: nowrap; }
.gf .tag { font-size: 15px; font-weight: 700; color: var(--violet); }
.gf b { font-size: 22px; letter-spacing: -0.01em; }
.gf span:last-child { font-size: 17px; color: var(--ink-2); }
.gsteps { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: g; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gsteps li { counter-increment: g; }
.gs { height: 100%; display: grid; align-content: start; gap: 6px; padding: 20px 22px 22px; background: var(--surface); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.gs::before { content: counter(g); width: 30px; height: 30px; margin-bottom: 6px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.gs:hover { box-shadow: inset 0 0 0 2px var(--violet); }
.gs b { font-size: 19px; }
.gs span { font-size: 17px; color: var(--ink-2); }
.gmore { margin: 20px 0 0; color: var(--ink-2); }
.gmore a { font-weight: 600; }
@media (max-width: 880px) {
  .gsteps { grid-template-columns: minmax(0, 1fr); }   /* phones: a numbered list */
  .gs { grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; align-items: center; padding: 18px 20px; }
  .gs::before { grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 480px) { .gf { padding: 20px; column-gap: 16px; } .gf .ko { width: 84px; height: 76px; font-size: 28px; } .gf b { font-size: 19px; } }
.faq-list { display: grid; gap: 12px; }   /* one column, full width: an open answer never stretches a neighbour */
.qa { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.qa:hover, .qa[open] { box-shadow: inset 0 0 0 2px var(--violet-mid); }
.qa summary { display: flex; align-items: center; gap: 20px; padding: 24px 28px; cursor: pointer; list-style: none; border-radius: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { flex: 1; font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.qa summary svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--violet); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.qa[open] summary svg { transform: rotate(180deg); }
.qa p { font-size: 19px; line-height: 1.6; margin: 0; padding: 0 28px 26px; max-width: 760px; color: var(--ink); }   /* readable line length */
.qa a { font-weight: 600; white-space: nowrap; }

@media (max-width: 760px) {
  .guide { gap: 56px; }
  .guide h3 { margin-top: 40px; }
  .crumbs { padding-top: 24px; margin-bottom: 20px; }
  .intro { margin-bottom: 36px; }
  .koppa { margin-top: 56px; }
  .home-guides, .faq { padding-top: 56px; }
  .qa summary { padding: 20px 20px; gap: 14px; } .qa h3 { font-size: 19px; } .qa p { padding: 0 20px 22px; }
  .guide-pager { margin-top: 56px; }
  .guide h2, .home-guides h2, .faq h2 { font-size: 24px; }
  .path > li { padding: 18px 18px 18px 64px; }
  .path > li::before { left: 16px; }
  .table-wrap :is(th, td) { padding-inline: 8px; }
  .table-wrap :is(th, td):first-child { padding-left: 16px; }
  .table-wrap :is(th, td):last-child { padding-right: 16px; }
  .letters-table td:first-child a { font-size: 34px; }
  .chip { padding: 0 12px; gap: 6px; }
  .table-wrap th { white-space: normal; }
  .table-wrap .trio :is(th, td), .table-wrap .trio :is(th, td):is(:first-child, :last-child) { padding: 12px 8px; }
  .kb-wrap { overflow: visible; }
  .guide .kb { min-width: 0; gap: 4px; }   /* phones: the whole keyboard fits; English letter on top, Korean below, Shift letters in the text */
  .kb .k { aspect-ratio: 5 / 8; border-radius: 8px; place-items: end center; padding-bottom: 4px; }
  .kb .k b { font-size: 21px; line-height: 1; }
  .kb .lat { left: 0; right: 0; top: 3px; text-align: center; }
  .kb .sh { display: none; }
  .block { width: 108px; } .block span { font-size: 42px; } .b-below.has-f span, .b-around.has-f span { font-size: 28px; }
}

/* the chart prints on its own: no header, footer or app card */
@media print {
  header.site, footer.site, .koppa, .crumbs, .pager, .chart-actions { display: none !important; }
  body { background: #fff; }
  .table-wrap { box-shadow: none; overflow: visible; }
  table { break-inside: avoid; }
  .guide { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) { *, .btn.pulse { animation: none !important; transition: none !important; } }
