/* Moorline homepage. Tokens follow the app (src/renderer/styles/tokens.css, src/shared/theme.ts): same dark/light colours,
   4px spacing steps, type steps 12/14/16/20/28/40/56, radii 6/10/16, two shadow levels. Dark/light follow the OS; the home page can override it with html[data-theme].
   No external requests: fonts are self-hosted (assets/fonts, SIL OFL), icons are inline SVG. */
@font-face {
  font-family: 'Pretendard';
  src: url('fonts/PretendardSubset.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* colour (dark) */
  --bg0: #0d1014; --bg: #12161b; --bg2: #171b21; --bg3: #1f252d;
  --line: #262c35; --line2: #353d48;
  --t1: #e4e7eb; --t2: #a3acb8; --t3: #8a94a1;
  --link: #3b9cc4; --link-hover: #55b0d6;
  --accent: #3b9cc4; --accent-hover: #55b0d6; --on-accent: #06202b; --accent-soft: rgba(59, 156, 196, 0.14);
  --warn: #d29922; --warn-soft: rgba(210, 153, 34, 0.14); --ok: #3fb950; --danger: #e5534b; --info: #3b9cc4;
  --env-test: #b93f00;
  --hover: rgba(228, 231, 235, 0.06);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --hero-glow: radial-gradient(60% 60% at 70% 20%, rgba(59, 156, 196, 0.16), transparent 70%);
  /* space (4px steps) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s24: 96px;
  /* type */
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-28: 28px; --fs-40: 40px; --fs-56: 56px;
  /* radius */
  --r1: 6px; --r2: 10px; --r3: 16px;
  --font: 'Pretendard', system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --mono: 'JetBrains Mono', 'D2Coding', ui-monospace, 'Cascadia Mono', Consolas, 'Malgun Gothic', monospace;
  --max: 1120px; --prose: 720px;
  --header-h: 60px;
  --top-h: 61px; /* the header as drawn (bar + its 1px line); the two-row header below sets its own */
}
/* Light follows the OS unless the visitor picked a mode with the sun/moon button (html[data-theme], set by os.js). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg0: #e9ecf0; --bg: #f2f4f6; --bg2: #ffffff; --bg3: #ffffff;
    --line: #dde1e6; --line2: #c8ced6;
    --t1: #1a1f26; --t2: #4f5967; --t3: #5f6977;
    --link: #1b6e91; --link-hover: #155a78;
    --accent: #1f7aa0; --accent-hover: #186784; --on-accent: #ffffff; --accent-soft: rgba(31, 122, 160, 0.1);
    --warn: #8a5a00; --warn-soft: rgba(138, 90, 0, 0.1); --ok: #1a7f37; --danger: #cf222e; --info: #1f7aa0;
    --hover: rgba(26, 31, 38, 0.05);
    --shadow-1: 0 1px 2px rgba(26, 31, 38, 0.06), 0 0 0 1px rgba(26, 31, 38, 0.04);
    --shadow-2: 0 24px 56px rgba(26, 31, 38, 0.16), 0 0 0 1px rgba(26, 31, 38, 0.06);
    --hero-glow: radial-gradient(60% 60% at 70% 20%, rgba(31, 122, 160, 0.13), transparent 70%);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg0: #e9ecf0; --bg: #f2f4f6; --bg2: #ffffff; --bg3: #ffffff;
  --line: #dde1e6; --line2: #c8ced6;
  --t1: #1a1f26; --t2: #4f5967; --t3: #5f6977;
  --link: #1b6e91; --link-hover: #155a78;
  --accent: #1f7aa0; --accent-hover: #186784; --on-accent: #ffffff; --accent-soft: rgba(31, 122, 160, 0.1);
  --warn: #8a5a00; --warn-soft: rgba(138, 90, 0, 0.1); --ok: #1a7f37; --danger: #cf222e; --info: #1f7aa0;
  --hover: rgba(26, 31, 38, 0.05);
  --shadow-1: 0 1px 2px rgba(26, 31, 38, 0.06), 0 0 0 1px rgba(26, 31, 38, 0.04);
  --shadow-2: 0 24px 56px rgba(26, 31, 38, 0.16), 0 0 0 1px rgba(26, 31, 38, 0.06);
  --hero-glow: radial-gradient(60% 60% at 70% 20%, rgba(31, 122, 160, 0.13), transparent 70%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); }
body {
  margin: 0; background: var(--bg); color: var(--t1);
  font: 400 var(--fs-16)/1.65 var(--font); word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r1); padding: 1px 6px; overflow-wrap: anywhere; word-break: normal; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: var(--fs-40); line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-28); }
h3 { font-size: var(--fs-20); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.muted { color: var(--t2); }
.faint { color: var(--t3); font-size: var(--fs-14); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--s4); }
.narrow { max-width: calc(var(--prose) + 2 * var(--s4)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r1); }

.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: var(--s2) var(--s4); border-radius: var(--r1); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s2); color: var(--on-accent); }

/* ---- bars: TEST, notice ---- */
.envbar { background: var(--env-test); color: #fff; text-align: center; font-weight: 700; padding: var(--s2) var(--s4); font-size: var(--fs-14); }
.notice { background: var(--accent-soft); border-bottom: 1px solid var(--line2); font-size: var(--fs-14); }
.notice .wrap { display: flex; align-items: flex-start; gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s3); }
.notice .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--info); }
.notice.warn { background: var(--warn-soft); border-bottom-color: var(--warn); box-shadow: inset 4px 0 0 var(--warn); }
.notice.warn .ico { color: var(--warn); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: var(--s4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--t1); font-weight: 700; font-size: var(--fs-20); text-decoration: none; flex: none; }
.brand:hover { color: var(--t1); }
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: var(--s1); margin-left: var(--s4); margin-right: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--t2); text-decoration: none; padding: var(--s2) var(--s3); border-radius: var(--r1); font-size: var(--fs-14); font-weight: 500; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { color: var(--t1); background: var(--hover); }
.top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r1) var(--r1) 0 0; }
.lang-link { flex: none; color: var(--t2); text-decoration: none; padding: 5px var(--s3); border: 1px solid var(--line2); border-radius: 999px; font-size: var(--fs-14); font-weight: 500; white-space: nowrap; }
.lang-link:hover { color: var(--t1); border-color: var(--t3); background: var(--hover); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); padding: 10px var(--s5); min-height: 44px; border: 1px solid var(--line2); border-radius: var(--r2); background: var(--bg2); color: var(--t1); text-decoration: none; font: inherit; font-size: var(--fs-16); font-weight: 600; line-height: 1.2; cursor: pointer; }
.btn:hover { border-color: var(--t3); color: var(--t1); background: var(--bg3); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.sm { min-height: 36px; padding: 6px var(--s4); font-size: var(--fs-14); border-radius: var(--r1); }
.btn.lg { min-height: 52px; padding: var(--s3) var(--s6); font-size: var(--fs-16); }
.btn.block { display: flex; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .top nav a, .card { transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, box-shadow 120ms ease-out; }
}

/* ---- hero ---- */
.hero { position: relative; padding: var(--s12) 0 var(--s16); background: var(--hero-glow); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s10); align-items: center; }
.eyebrow { color: var(--link); font-size: var(--fs-14); font-weight: 600; letter-spacing: 0.02em; margin-bottom: var(--s3); }
.hero h1 { font-size: var(--fs-40); }
.hero .lead { font-size: var(--fs-16); max-width: 30em; }
.lead { font-size: var(--fs-20); line-height: 1.6; color: var(--t2); margin-top: var(--s4); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.actions.center { justify-content: center; }
.hero-meta { color: var(--t3); font-size: var(--fs-14); margin-top: var(--s3); }
.ticks { list-style: none; display: grid; gap: var(--s2); margin-top: var(--s6); color: var(--t2); font-size: var(--fs-14); }
.ticks li { display: flex; align-items: center; gap: var(--s2); }
.ticks .ico { width: 16px; height: 16px; color: var(--ok); flex: none; }
.shot { margin: 0; min-width: 0; border-radius: var(--r3); background: var(--bg2); box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 8 / 5; }
.shot img, .shot picture { display: block; width: 100%; height: auto; }
/* ---- hero: the first screen (FHD and other desktop sizes) ----
   The trust line, the latest-version strip and a "next" arrow sit at the bottom of the hero; on desktop screens tall enough the
   hero is exactly one screen high (header excluded) and the copy + picture are centred in what is left. */
.hero-foot { position: relative; }
.hero-foot .latest { padding-bottom: 0; }
.hero-next { display: none; }
/* ---- mode toggle (home page) ---- */
.mode-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; margin-right: var(--s2); border: 1px solid var(--line2); border-radius: 999px; background: var(--bg2); color: var(--t1); cursor: pointer; padding: 0; }
.mode-btn[hidden] { display: none; }
.mode-btn:hover { background: var(--bg3); border-color: var(--t3); }
.mode-btn .ico { width: 20px; height: 20px; display: block; }
.mode-btn span { display: inline-flex; }
.mode-btn .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mode-btn .i-sun { display: none; }
  :root:not([data-theme="dark"]) .mode-btn .i-moon { display: inline-flex; }
}
:root[data-theme="light"] .mode-btn .i-sun { display: none; }
:root[data-theme="light"] .mode-btn .i-moon { display: inline-flex; }
.mode-hint { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-14) !important; color: var(--t3) !important; }
.mode-hint[hidden] { display: none; }
.mode-hint .ico { width: 16px; height: 16px; flex: none; color: var(--accent); }
.mode-hint .ico + .ico { margin-left: calc(-1 * var(--s1)); }
@media (prefers-reduced-motion: no-preference) {
  body, .top, .card, .shot, .band { transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out; }
}

/* ---- hero trust line ---- */
.trust { list-style: none; margin: var(--s10) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s8); color: var(--t2); font-size: var(--fs-14); }
.trust li { display: inline-flex; align-items: center; gap: var(--s2); }
.trust .ico { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---- "이런 분께" strip (os.js turns the cards into filter buttons) ---- */
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.who-item { display: flex; gap: var(--s4); align-items: flex-start; width: 100%; height: 100%; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg); color: var(--t1); box-shadow: var(--shadow-1); font: inherit; text-align: left; }
button.who-item { cursor: pointer; }
button.who-item:hover { border-color: var(--t3); }
button.who-item[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.who-item > .ico { flex: none; width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.who-item h3 { font-size: var(--fs-16); line-height: 1.4; }
.who-item p { margin-top: var(--s1); color: var(--t2); font-size: var(--fs-14); line-height: 1.6; }
.who-hint { font-size: var(--fs-14) !important; color: var(--t3) !important; }
.who-hint[hidden], .who-reset[hidden] { display: none; }
.who-reset { margin-top: var(--s4); }

/* ---- situations (the former feature tour) ---- */
.need-big, .need-cards { list-style: none; margin: 0; padding: 0; display: grid; }
.need-big { gap: var(--s16); }
.need-cards { gap: var(--s6); grid-template-columns: 1fr; margin-top: var(--s16); }
.need-big[hidden], .need-cards[hidden], .need-row[hidden], .need-card[hidden] { display: none; }
.need-big[hidden] + .need-cards { margin-top: 0; }
.need-row { display: grid; gap: var(--s6); align-items: center; }
.need-row .shot { aspect-ratio: 8 / 5; }
.need-copy, .need-card { position: relative; z-index: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s8); box-shadow: var(--shadow-1); min-width: 0; }
.need-kick { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.need-kick .ico { flex: none; width: 24px; height: 24px; color: var(--accent); }
.need-copy h3 { font-size: var(--fs-28); line-height: 1.3; }
.need-card h3 { font-size: var(--fs-20); line-height: 1.4; }
.need-card { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.need-card .need-kick { margin-bottom: calc(-1 * var(--s2)); }
.need-card .shot { margin: 0; aspect-ratio: 8 / 5; box-shadow: none; border-radius: var(--r2); }
.vs { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: var(--s5) 0 0; }
.need-card .vs { margin-top: 0; }
.vs > div { border-radius: var(--r2); padding: var(--s3) var(--s4); }
.vs dt { font-size: var(--fs-12); font-weight: 700; letter-spacing: .02em; }
.vs dd { margin: var(--s1) 0 0; font-size: var(--fs-14); line-height: 1.7; }
.vs-before { background: var(--bg3); border: 1px solid var(--line); }
.vs-before dt { color: var(--t3); }
.vs-before dd { color: var(--t2); }
.vs-after { background: var(--accent-soft); border: 1px solid var(--accent); }
.vs-after dt { color: var(--link); }
.vs-after dd { color: var(--t1); }
.tags { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.need-card .tags { margin-top: 0; }
.need-cases { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: var(--fs-14); }
.need-cases span { color: var(--t3); font-weight: 600; }
.need-card .need-cases { margin-top: auto; padding-top: var(--s1); }

/* ---- "그 밖의 기능" ---- */
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6) var(--s8); grid-template-columns: 1fr; }
.more-list li { display: flex; gap: var(--s4); align-items: flex-start; }
.more-list .badge-ico { flex: none; width: 40px; height: 40px; }
.more-list .badge-ico .ico { width: 22px; height: 22px; }
.more-list h3 { font-size: var(--fs-16); }
.more-list p { color: var(--t2); font-size: var(--fs-14); margin-top: var(--s1); line-height: 1.7; }

.latest { padding-top: var(--s4); padding-bottom: var(--s2); }
.latest p { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s3) var(--s4); font-size: var(--fs-14); color: var(--t2); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* ---- sections ---- */
.section { padding: var(--s24) 0; }
/* every other section sits on a slightly lighter surface; cards inside it go back to the base colour so they stay visible */
.section.alt, .band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt .need-copy, .section.alt .need-card, .section.alt .card { background: var(--bg); }
.section.alt .badge-ico { background: var(--accent-soft); }
.section.tight { padding: var(--s10) 0; }
.section-head { margin-bottom: var(--s10); max-width: var(--prose); }
.section-head .eyebrow, .band .eyebrow { margin-bottom: var(--s2); color: var(--link); font-size: var(--fs-14); }
.section-head p { color: var(--t2); margin-top: var(--s2); font-size: var(--fs-16); }
.cards { list-style: none; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s6); box-shadow: var(--shadow-1); display: block; }
.card:hover { border-color: var(--line2); }
.card h3 { margin-top: var(--s4); font-size: var(--fs-20); }
.card h3 .chip { vertical-align: 2px; margin-left: var(--s2); }
.card p { color: var(--t2); margin-top: var(--s2); font-size: var(--fs-14); line-height: 1.7; }
.card.soon { background: transparent; border-style: dashed; box-shadow: none; }
.badge-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r2); background: var(--accent-soft); color: var(--accent); }
.badge-ico .ico { width: 24px; height: 24px; }
.chip, .tag { display: inline-flex; align-items: center; font-size: var(--fs-12); font-weight: 600; line-height: 1; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 8px; color: var(--t2); background: var(--bg3); }
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.cards .chips { margin-top: var(--s4); }

.band { padding: var(--s24) 0; }
.band h2 { margin-bottom: var(--s6); }
.band-list { list-style: none; display: grid; gap: var(--s6); }
.band-list li { display: flex; gap: var(--s4); align-items: flex-start; }
.band-list .ico { flex: none; width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.band-list h3 { font-size: var(--fs-16); }
.band-list p { color: var(--t2); font-size: var(--fs-14); margin-top: var(--s1); line-height: 1.7; }

.cta { text-align: center; padding: var(--s24) 0 var(--s8); }
.cta p { color: var(--t2); margin-top: var(--s2); }
.cta p:last-child { margin-top: var(--s6); }

/* ---- page head ---- */
.page-head { padding: var(--s12) 0 var(--s6); border-bottom: 1px solid var(--line); background: var(--hero-glow); }
.page-head .lead { margin-top: var(--s2); font-size: var(--fs-16); }

/* ---- download ---- */
.release-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: var(--s8) 0 var(--s6); color: var(--t2); font-size: var(--fs-14); }
.release-line b { color: var(--t1); font-size: var(--fs-20); }
.oses + .faint { margin-top: var(--s4); }
/* One block per OS (details.os), the same HTML for everyone. Three looks, all decided here from html[data-os]:
   - no data-os (scripts off) or "mobile": three equal cards, a normal-size button each;
   - data-os = the visitor's OS: that block is the one wide main card with the big button (the only large button on the page),
     the other two are small folded rows under it. os.js sets data-os and closes the other two blocks. */
.oses { display: flex; flex-direction: column; gap: var(--s4); }
.os-switch, .os-others-label, .mobile-note { display: none; }
.os { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow-1); min-width: 0; padding: var(--s6); }
.os > summary { list-style: none; cursor: pointer; display: block; }
.os > summary::-webkit-details-marker { display: none; }
.os-title { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }
.os-label { font-size: var(--fs-20); font-weight: 700; color: var(--t1); }
.os-req { display: block; margin-top: var(--s1); color: var(--t2); font-size: var(--fs-14); }
.os-kind { display: none; }
.hint { display: none; font-size: var(--fs-12); font-weight: 600; color: var(--link); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; }
.os-body { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.os-main { display: flex; flex-direction: column; gap: var(--s2); }
.os-main .btn { width: 100%; }
.os-size, .os-file { text-align: center; }
.name { color: var(--t2); overflow-wrap: anywhere; word-break: break-all; font-size: var(--fs-12); }
.os-others { font-size: var(--fs-14); font-weight: 600; }
.os-others .faint { font-weight: 400; }
.sha { font-size: var(--fs-12); color: var(--t3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.sha > summary { cursor: pointer; color: var(--link); font-size: var(--fs-14); }
.sha > p { margin-top: var(--s2); }
.sha ul { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s3); }
.sha li { display: grid; gap: var(--s1); }
.sha code.hash { display: block; user-select: all; word-break: break-all; line-height: 1.7; color: var(--t2); font-size: var(--fs-12); }
.sha-cmd { margin-top: var(--s3); }
.sha-cmd code { word-break: break-all; }
.sha-copy { border: 1px solid var(--line2); background: var(--bg3); color: var(--t1); border-radius: var(--r1); font: inherit; font-size: var(--fs-12); padding: 4px 10px; min-height: 28px; cursor: pointer; }
.sha-copy:hover { border-color: var(--t3); }
@media (min-width: 900px) {
  :root:not([data-os=win32]):not([data-os=linux]):not([data-os=darwin]) .oses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

/* mobile: a band above the cards */
[data-os=mobile] .mobile-note { display: block; margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: var(--r2); background: var(--accent-soft); color: var(--t1); font-size: var(--fs-14); }

/* the visitor's OS: main card (order -1) ... */
[data-os=win32] #os-win32, [data-os=linux] #os-linux, [data-os=darwin] #os-darwin { order: -1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-1); padding: var(--s8); }
[data-os=win32] #os-win32 .hint, [data-os=linux] #os-linux .hint, [data-os=darwin] #os-darwin .hint { display: inline-block; }
[data-os=win32] #os-win32 > summary, [data-os=linux] #os-linux > summary, [data-os=darwin] #os-darwin > summary { cursor: default; pointer-events: none; }
[data-os=win32] #os-win32 .os-label, [data-os=linux] #os-linux .os-label, [data-os=darwin] #os-darwin .os-label { font-size: var(--fs-28); }
[data-os=win32] #os-win32 .btn, [data-os=linux] #os-linux .btn, [data-os=darwin] #os-darwin .btn { min-height: 56px; padding: var(--s3) var(--s6); font-size: var(--fs-20); font-weight: 600; }
/* ... and the link under it to the small rows */
[data-os=win32] .os-switch, [data-os=linux] .os-switch, [data-os=darwin] .os-switch { display: block; order: -2; text-align: right; font-size: var(--fs-14); margin-bottom: calc(-1 * var(--s2)); }
[data-os=win32] .os-others-label, [data-os=linux] .os-others-label, [data-os=darwin] .os-others-label { display: block; order: 0; font-size: var(--fs-14); font-weight: 600; color: var(--t2); margin-top: var(--s4); scroll-margin-top: calc(var(--header-h) + var(--s4)); }
/* ... the other two: small rows */
[data-os=win32] .os:not(#os-win32), [data-os=linux] .os:not(#os-linux), [data-os=darwin] .os:not(#os-darwin) { order: 1; padding: 0; border-radius: var(--r2); box-shadow: none; background: var(--bg); }
[data-os=win32] .os:not(#os-win32) > summary, [data-os=linux] .os:not(#os-linux) > summary, [data-os=darwin] .os:not(#os-darwin) > summary { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 48px; }
[data-os=win32] .os:not(#os-win32) > summary::after, [data-os=linux] .os:not(#os-linux) > summary::after, [data-os=darwin] .os:not(#os-darwin) > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-left: var(--s2); border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3); transform: rotate(45deg); }
[data-os=win32] .os:not(#os-win32)[open] > summary::after, [data-os=linux] .os:not(#os-linux)[open] > summary::after, [data-os=darwin] .os:not(#os-darwin)[open] > summary::after { transform: rotate(-135deg); }
[data-os=win32] .os:not(#os-win32) .os-label, [data-os=linux] .os:not(#os-linux) .os-label, [data-os=darwin] .os:not(#os-darwin) .os-label { font-size: var(--fs-16); }
[data-os=win32] .os:not(#os-win32) .os-req, [data-os=linux] .os:not(#os-linux) .os-req, [data-os=darwin] .os:not(#os-darwin) .os-req { display: none; }
[data-os=win32] .os:not(#os-win32) .os-kind, [data-os=linux] .os:not(#os-linux) .os-kind, [data-os=darwin] .os:not(#os-darwin) .os-kind { display: inline; margin-left: auto; color: var(--t2); font-size: var(--fs-14); }
[data-os=win32] .os:not(#os-win32) .os-body, [data-os=linux] .os:not(#os-linux) .os-body, [data-os=darwin] .os:not(#os-darwin) .os-body { margin: 0; padding: 0 var(--s4) var(--s4); }
[data-os=win32] .os:not(#os-win32) .os-main, [data-os=linux] .os:not(#os-linux) .os-main, [data-os=darwin] .os:not(#os-darwin) .os-main { flex-direction: row; align-items: center; flex-wrap: wrap; }
[data-os=win32] .os:not(#os-win32) .os-main .btn, [data-os=linux] .os:not(#os-linux) .os-main .btn, [data-os=darwin] .os:not(#os-darwin) .os-main .btn { width: auto; }
/* wide screens: main card = name and requirement on the left, the big button on the right */
@media (min-width: 720px) {
  [data-os=win32] #os-win32 > summary, [data-os=linux] #os-linux > summary, [data-os=darwin] #os-darwin > summary { float: left; width: calc(100% - 392px); padding-top: var(--s2); }
  [data-os=win32] #os-win32 .os-body, [data-os=linux] #os-linux .os-body, [data-os=darwin] #os-darwin .os-body { display: block; margin-top: 0; }
  [data-os=win32] #os-win32 .os-main, [data-os=linux] #os-linux .os-main, [data-os=darwin] #os-darwin .os-main { float: right; width: 360px; }
  [data-os=win32] #os-win32 .os-others, [data-os=linux] #os-linux .os-others, [data-os=darwin] #os-darwin .os-others { clear: both; padding-top: var(--s4); }
  [data-os=win32] #os-win32 .sha, [data-os=linux] #os-linux .sha, [data-os=darwin] #os-darwin .sha { clear: both; margin-top: var(--s3); }
  [data-os=win32] #os-win32 .os-others + .sha, [data-os=linux] #os-linux .os-others + .sha, [data-os=darwin] #os-darwin .os-others + .sha { margin-top: var(--s3); }
}

.steps { display: flex; flex-direction: column; gap: var(--s4); }
.step { padding: var(--s4) var(--s6); }
.step > summary { cursor: pointer; list-style: none; }
.step > summary::-webkit-details-marker { display: none; }
.step > summary h3 { margin: 0; display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-20); }
.step > summary::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: var(--s3); border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3); transform: translateY(-3px) rotate(45deg); }
.step[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.step h4 { margin-top: var(--s4); font-size: var(--fs-14); color: var(--t1); }
.step ol { padding-left: var(--s5); display: grid; gap: var(--s2); margin-top: var(--s3); color: var(--t2); font-size: var(--fs-14); line-height: 1.7; }
.step code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  :root:not([data-os=win32]):not([data-os=linux]):not([data-os=darwin]) .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
[data-os=win32] #inst-win32, [data-os=linux] #inst-linux, [data-os=darwin] #inst-darwin { order: -1; border-color: var(--accent); }
#install h2 { margin-bottom: var(--s4); }
#install .muted { margin-top: var(--s4); }

/* ---- release notes ---- */
.notes-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-top: var(--s8); }
.vnav { min-width: 0; }
.vnav h2 { font-size: var(--fs-14); color: var(--t2); margin-bottom: var(--s2); }
.vnav ul { list-style: none; display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: thin; padding-bottom: var(--s2); }
.vnav a { display: block; white-space: nowrap; padding: 6px var(--s3); border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--t2); text-decoration: none; font-size: var(--fs-14); font-weight: 500; }
.vnav a:hover { color: var(--t1); border-color: var(--line2); }
.vnav li { flex: none; display: flex; align-items: center; gap: var(--s1); }
.dot-pre { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.notes { display: grid; gap: var(--s4); min-width: 0; align-content: start; }
.note { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s6); box-shadow: var(--shadow-1); min-width: 0; }
.note h2 { font-size: var(--fs-28); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); }
.note h2 .anchor { color: var(--t1); text-decoration: none; }
.note h2 .anchor:hover { color: var(--link); text-decoration: underline; }
.note .date { color: var(--t3); font-size: var(--fs-14); font-weight: 400; }
.note-old { padding: 0; }
.note-old summary { cursor: pointer; padding: var(--s4) var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: baseline; list-style: none; }
.note-old summary::-webkit-details-marker { display: none; }
.note-old summary::before { content: '▸'; color: var(--t3); font-size: var(--fs-12); }
.note-old[open] summary::before { content: '▾'; }
.note-old .ver { font-weight: 700; font-size: var(--fs-20); }
.note-old .md { padding: 0 var(--s6) var(--s6); }
.note .tag { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.md { margin-top: var(--s3); overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md h3 { font-size: var(--fs-20); margin: var(--s6) 0 var(--s2); }
.md h4 { font-size: var(--fs-16); margin: var(--s5) 0 var(--s2); display: flex; align-items: center; gap: var(--s2); }
.md h4[class]::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t3); }
.md h4.k-add::before { background: var(--ok); }
.md h4.k-imp::before { background: var(--accent); }
.md h4.k-fix::before { background: var(--warn); }
.md h4.k-sec::before { background: var(--danger); }
.md h5, .md h6 { margin: var(--s4) 0 var(--s1); font-size: var(--fs-14); }
.md p { margin: var(--s2) 0; }
.md ul, .md ol { padding-left: var(--s6); margin: var(--s2) 0; }
.md li { margin: var(--s1) 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
.md pre { background: var(--bg0); border: 1px solid var(--line); padding: var(--s3) var(--s4); border-radius: var(--r1); overflow-x: auto; }
.md pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
.md blockquote { margin: var(--s3) 0; padding-left: var(--s4); border-left: 3px solid var(--line2); color: var(--t2); }
.md table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--fs-14); }
.md th, .md td { border: 1px solid var(--line); padding: var(--s1) var(--s3); text-align: left; word-break: normal; overflow-wrap: normal; white-space: nowrap; }
.md th { background: var(--bg3); }
.licenses { margin-top: var(--s8); max-width: var(--prose); }
.licenses h2 { font-size: var(--fs-20); margin: var(--s8) 0 var(--s3); }
.licenses h3 { font-size: var(--fs-16); }
.licenses p { color: var(--t2); font-size: var(--fs-14); }

/* ---- 404 ---- */
.nf { text-align: center; padding: var(--s24) 0 var(--s16); }
.nf img { border-radius: 16px; }
.nf h1 { margin-top: var(--s6); font-size: var(--fs-28); }
.nf .lead { margin-left: auto; margin-right: auto; font-size: var(--fs-16); }

/* ---- footer ---- */
.foot { margin-top: var(--s16); border-top: 1px solid var(--line); background: var(--bg2); padding: var(--s10) 0 var(--s8); color: var(--t2); font-size: var(--fs-14); }
.foot-grid { display: grid; gap: var(--s8); }
.foot-brand p { margin-top: var(--s3); max-width: 24em; }
.foot ul { list-style: none; display: grid; gap: var(--s2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot nav a { color: var(--t2); text-decoration: none; display: inline-block; padding: var(--s1) 0; }
.foot nav a:hover { color: var(--t1); text-decoration: underline; }
.foot-line { margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); color: var(--t3); font-size: var(--fs-12); }

/* ---- sizes ---- */
@media (max-width: 639px) {
  .bar-cta { display: none; }
  .brand { font-size: var(--fs-16); }
  /* Phones: the six links do not fit beside the brand, the language link and the mode button (they ran off the right edge in
     Korean and English). The brand row stays as it is; the links wrap onto the rows below it, every one fully visible. The
     header scrolls away with the page here (three rows would cover a large part of a phone screen). */
  .top { position: static; }
  .bar { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: var(--s1); padding-bottom: var(--s2); }
  .brand { margin-right: auto; min-height: 48px; }
  .top nav { order: 3; flex: 1 0 100%; margin: 0; gap: 0; flex-wrap: wrap; overflow: visible; }
  .top nav a { flex: 1 1 auto; text-align: center; padding: 7px var(--s2); }
  .hero { padding-top: var(--s8); padding-bottom: var(--s10); }
  .actions .btn { flex: 1 1 100%; }
}
@media (max-width: 820px) {
  .section, .band { padding: var(--s16) 0; }
  .cta { padding-top: var(--s16); }
}
/* Between phone and desktop widths the six links still do not fit on the brand row: Korean runs out of room below about 940px,
   English (longer words) below about 1120px (measured every 10px from 360 to 1440). Same two-row header as on phones, per
   language so a language that fits keeps the one-row header. Wider than that nothing changes. */
@media (max-width: 959px) {
  html:lang(ko) .top { position: static; }
  html:lang(ko) .bar { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: var(--s1); padding-bottom: var(--s2); }
  html:lang(ko) .brand { margin-right: auto; min-height: 48px; }
  html:lang(ko) .top nav { order: 3; flex: 1 0 100%; margin: 0; gap: 0; flex-wrap: wrap; overflow: visible; }
  html:lang(ko) .top nav a { flex: 1 1 auto; text-align: center; padding: 7px var(--s2); }
}
@media (max-width: 1139px) {
  html:not(:lang(ko)) .top { position: static; }
  html:not(:lang(ko)) .bar { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: var(--s1); padding-bottom: var(--s2); }
  html:not(:lang(ko)) .brand { margin-right: auto; min-height: 48px; }
  html:not(:lang(ko)) .top nav { order: 3; flex: 1 0 100%; margin: 0; gap: 0; flex-wrap: wrap; overflow: visible; }
  html:not(:lang(ko)) .top nav a { flex: 1 1 auto; text-align: center; padding: 7px var(--s2); }
}
@media (min-width: 640px) {
  .wrap { padding-inline: var(--s6); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot ul { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s2) var(--s8); }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
  h1, .hero h1 { font-size: var(--fs-56); line-height: 1.15; }
  .hero h1 { font-size: 48px; }
}
@media (min-width: 960px) {
  .hero { padding: var(--s16) 0 var(--s16); }
  .hero-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: var(--s10); }
  .hero h1 { font-size: 48px; }
  .shot { margin-right: calc(-1 * min(120px, max(0px, (100vw - var(--max)) / 2))); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .need-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s12); }
  .need-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .need-row:nth-child(even) .need-copy { order: 2; }
  .need-row .shot, .need-card .shot { margin-right: 0; } /* the hero's bleed to the right would push the picture under the text */
  .need-big { gap: var(--s24); }
  .who-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notes-grid { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s10); }
  .vnav { position: sticky; top: calc(var(--header-h) + var(--s6)); align-self: start; max-height: calc(100vh - var(--header-h) - var(--s12)); overflow-y: auto; }
  .vnav ul { flex-direction: column; overflow: visible; }
  .vnav a { border: 0; background: none; border-radius: var(--r1); }
  .vnav a:hover { background: var(--hover); }
  .page-head h1 { font-size: var(--fs-40); }
}
@media (min-width: 640px) and (max-width: 959px) {
  .page-head h1, .nf h1 { font-size: var(--fs-40); }
}
@media (max-width: 639px) {
  .page-head h1 { font-size: var(--fs-28); }
}
@media (max-width: 639px) {
  h1, .hero h1 { font-size: 32px; line-height: 1.25; }
  h2 { font-size: 24px; }
  .need-copy h3 { font-size: var(--fs-20); }
  .need-copy { padding: var(--s5); }
  .need-big { gap: var(--s10); }
  .need-cards { margin-top: var(--s10); }
  /* phones: the user strip is one row that scrolls sideways */
  .who-list { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: var(--s3); margin-inline: calc(-1 * var(--s4)); padding: 0 var(--s4) var(--s2); }
  .who-list > li { flex: 0 0 min(260px, 78vw); scroll-snap-align: start; }
  .lead { font-size: var(--fs-16); }
  .note h2 { font-size: var(--fs-20); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 라이선스 비교 /pricing (PRICING_PAGE_PLAN PP-01) */
.plans { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-top: var(--s8); }
.plan { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; box-shadow: var(--shadow-1); }
.plan.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-1); }
.plan .who { color: var(--t2); font-size: var(--fs-14); }
.plan h2 { font-size: var(--fs-28); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.plan .price { font-size: var(--fs-20); font-weight: 700; }
.plan .price-note { font-size: var(--fs-14); color: var(--t2); margin-top: calc(var(--s2) * -1); }
.plan ul { list-style: none; display: grid; gap: var(--s2); font-size: var(--fs-14); color: var(--t2); flex: 1; align-content: start; }
.plan li { display: flex; gap: var(--s2); align-items: flex-start; }
.plan li .ico { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }
.chip.acc, .chip.pro { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.trial { margin-top: var(--s6); display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s5) var(--s6); border: 1px dashed var(--line2); border-radius: var(--r2); }
.trial .ico { flex: none; width: 28px; height: 28px; color: var(--accent); }
.trial h2 { font-size: var(--fs-16); }
.trial p { color: var(--t2); font-size: var(--fs-14); margin-top: var(--s1); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg2); }
.cmp-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
table.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 10px var(--s4); border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; font-weight: 400; }
.cmp th[scope="row"], .cmp thead th:first-child { text-align: left; width: 40%; }
.cmp thead th { background: var(--bg3); font-size: var(--fs-16); font-weight: 700; }
.cmp tr.grp th { background: var(--bg0); color: var(--t2); font-weight: 700; font-size: var(--fs-12); letter-spacing: .04em; padding-block: 6px; text-align: left; }
.cmp small { display: block; color: var(--t3); font-size: var(--fs-12); }
.cmp .y { color: var(--ok); font-weight: 700; }
.cmp .n { color: var(--t3); }
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom: 0; }
.table-note { font-size: var(--fs-12); margin-top: var(--s3); }
.faq { display: grid; gap: var(--s3); max-width: var(--prose); }
.faq details { border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg2); padding: var(--s3) var(--s4); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--t2); font-size: var(--fs-14); margin-top: var(--s2); }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
}

/* 활용 사례 /use-cases, /use-case/<slug> (SITE_DESIGN_PLAN 10장 HP-27) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chip.pro { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.uc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); padding-top: var(--s6); }
.uc-jumps { display: flex; flex-wrap: wrap; gap: var(--s2); margin-right: auto; }
.uc-jump { display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 6px var(--s3); border: 1px solid var(--line2); border-radius: 999px; background: var(--bg2); color: var(--t1); font-size: var(--fs-14); font-weight: 500; text-decoration: none; white-space: nowrap; }
.uc-jump:hover { border-color: var(--t3); color: var(--t1); }
.uc-jump .ico { width: 16px; height: 16px; color: var(--accent); flex: none; }
.uc-count { color: var(--t3); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.uc-find { display: flex; align-items: center; gap: var(--s2); flex: 1 1 260px; max-width: 360px; min-height: 40px; padding: 0 var(--s3); border: 1px solid var(--line2); border-radius: var(--r2); background: var(--bg2); }
.uc-find[hidden] { display: none; }
.uc-find:focus-within { border-color: var(--accent); }
.uc-find label { display: inline-flex; color: var(--t3); }
.uc-find .ico { width: 18px; height: 18px; }
.uc-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--t1); font: inherit; font-size: var(--fs-14); padding: var(--s2) 0; }
.uc-found { color: var(--t3); font-size: var(--fs-12); white-space: nowrap; }
.uc-tools { padding-bottom: var(--s8); }
.uc-cat { padding-top: 0; }
.uc-cards { align-items: stretch; }
.uc-card { display: flex; }
.uc-card[hidden], .uc-cat[hidden] { display: none; }
.uc-card > .card { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; }
.uc-card > .card:hover { border-color: var(--accent); }
.uc-card h3 { margin-top: var(--s2); line-height: 1.35; }
.uc-card p { flex: 1; }
.uc-thumb { display: block; margin: calc(-1 * var(--s6)) calc(-1 * var(--s6)) var(--s5); border-bottom: 1px solid var(--line); border-radius: var(--r2) var(--r2) 0 0; overflow: hidden; background: var(--bg0); aspect-ratio: 16 / 9; }
.uc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.uc-kicker { display: inline-flex; align-items: center; gap: var(--s2); color: var(--accent); font-size: var(--fs-12); font-weight: 600; }
.uc-kicker .ico { width: 16px; height: 16px; flex: none; }
.uc-card .chips { margin-top: var(--s4); }
.uc-meta, .uc-facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.uc-card .uc-meta { padding-top: var(--s4); border-top: 1px solid var(--line); }
.uc-time { color: var(--t3); font-size: var(--fs-12); margin-left: auto; }
.uc-facts .uc-time { margin-left: var(--s2); }
.uc-all { margin-top: var(--s8); }
.uc-all .ico { width: 18px; height: 18px; }
.uc-none { padding: var(--s10) 0; color: var(--t2); text-align: center; }
.uc-ask h2 { font-size: var(--fs-20); }
.uc-ask p { color: var(--t2); margin-top: var(--s2); }
.uc-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--fs-14); margin-bottom: var(--s3); }
.uc-crumb a { color: var(--t2); text-decoration: none; }
.uc-crumb a:hover { color: var(--link-hover); text-decoration: underline; }
.uc-crumb span { color: var(--t3); }
.uc-head .lead { max-width: 44em; }
.uc-feats { margin-top: var(--s3); align-items: center; }
.uc-feats-label { color: var(--t3); font-size: var(--fs-12); margin-right: var(--s1); }
.uc-body { max-width: calc(var(--prose) + 160px + 2 * var(--s4)); padding-top: var(--s8); padding-bottom: var(--s10); }
.uc-shot { margin: 0 0 var(--s8); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-2); background: var(--bg0); }
.uc-shot img { display: block; width: 100%; height: auto; }
.uc-md { max-width: var(--prose); font-size: var(--fs-16); }
.uc-md h3 { font-size: var(--fs-28); margin: var(--s10) 0 var(--s3); line-height: 1.3; }
.uc-md h4 { font-size: var(--fs-20); margin: var(--s6) 0 var(--s2); }
.uc-md p, .uc-md li { line-height: 1.8; }
.uc-md pre { position: relative; margin: var(--s4) 0; padding: var(--s4); border-radius: var(--r2); font-size: var(--fs-14); line-height: 1.6; }
.uc-md pre code { font-size: inherit; white-space: pre; }
.uc-copy { position: absolute; top: var(--s2); right: var(--s2); min-height: 28px; padding: 2px var(--s3); border: 1px solid var(--line2); border-radius: var(--r1); background: var(--bg2); color: var(--t2); font: 500 var(--fs-12)/1 var(--font); cursor: pointer; }
.uc-copy:hover { color: var(--t1); border-color: var(--t3); }
.uc-md pre:has(.uc-copy) { padding-top: var(--s10); }
.uc-verified { display: flex; align-items: flex-start; gap: var(--s2); max-width: var(--prose); margin-top: var(--s8); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg2); color: var(--t2); font-size: var(--fs-14); }
.uc-verified .ico { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.uc-actions { margin-top: var(--s8); display: flex; flex-wrap: wrap; gap: var(--s3); }
.uc-related { border-top: 1px solid var(--line); }
@media (max-width: 639px) {
  .uc-find { max-width: none; flex-basis: 100%; }
  .uc-md h3 { font-size: var(--fs-20); }
  .uc-time { margin-left: 0; }
}

/* screenshot zoom (os.js 5): figure.shot images open in a dialog */
.shot img.zoomable { cursor: zoom-in; }
.shot img.zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
html.zoom-open { overflow: hidden; }
dialog.zoom { margin: 0; padding: 72px var(--s6) var(--s6); width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: zoom-out; box-sizing: border-box; }
dialog.zoom:not([open]) { display: none; }
dialog.zoom::backdrop { background: rgba(5, 7, 10, .82); }
dialog.zoom img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r2); border: 1px solid var(--line2); box-shadow: var(--shadow-2); background: var(--bg2); }
.zoom-close { position: fixed; top: var(--s4); right: var(--s4); width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg2); color: var(--t1); font: inherit; font-size: 26px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.zoom-close:hover { background: var(--bg3); border-color: var(--t3); }
/* narrow screens: a fitted picture would be no bigger than on the page, so show it at its own size and let the visitor pan */
@media (max-width: 820px) {
  dialog.zoom { padding: 72px var(--s3) var(--s3); overflow: auto; display: block; overscroll-behavior: contain; }
  dialog.zoom img { max-width: none; max-height: none; width: auto; margin: 0 auto; }
}

/* ---- first screen on desktop: one screen high, wider page on FHD and up ---- */
@media (min-width: 960px) and (min-height: 640px) {
  .hero { display: flex; flex-direction: column; min-height: calc(100vh - var(--top-h)); min-height: calc(100svh - var(--top-h)); padding: var(--s10) 0 var(--s3); }
  .hero-grid { flex: 1 0 auto; align-content: center; }
  .hero-foot { flex: none; }
  .hero-foot .trust { margin-top: var(--s8); }
  .hero-next { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: var(--s3) auto 0; border-radius: 999px; color: var(--t3); }
  .hero-next:hover { color: var(--t1); background: var(--hover); }
  .hero-next .ico { width: 24px; height: 24px; }
}
@media (min-width: 960px) and (max-width: 1139px) {
  html:not(:lang(ko)) { --top-h: 98px; } /* English two-row header (see the header rules above) */
}
@media (min-width: 1600px) {
  :root { --max: 1320px; }
  .hero-grid { gap: var(--s16); }
  .hero h1 { font-size: var(--fs-56); }
  .hero .lead { font-size: var(--fs-20); max-width: 28em; }
}
@media (min-width: 1800px) {
  :root { --max: 1440px; }
  .hero-grid { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); }
}
@media (min-width: 2400px) and (min-height: 1200px) {
  :root { --max: 1760px; }
  .hero h1 { font-size: 72px; }
  .hero .lead { font-size: 24px; }
  .hero .eyebrow, .hero-meta { font-size: var(--fs-16); }
}
@media (min-width: 1600px) and (min-height: 1000px) {
  .hero-foot .trust { font-size: var(--fs-16); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* phones and narrow tablets (one column): the picture comes right under the heading, the lead, buttons and version line under it */
@media (max-width: 959px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero .shot { order: 3; margin-top: var(--s6); }
  .hero .lead { order: 4; margin-top: var(--s6); }
  .hero .actions { order: 5; margin-top: var(--s6); }
  .hero-meta { order: 6; }
}
