/* office.dramory.ai — page style (2026-10-06 redesign, pages.py writes the markup).
 * Colours and faces come from tokens.css (shared with dramory.ai: Paper & Forest, MaruBuri + Pretendard).
 * Direction "종이(Paper)": a quiet editorial page — serif headlines on paper, the real app as the only picture,
 * hairline rules instead of boxes. The one memorable thing is the hero: the app's own document tab bar, switching
 * between the five kinds. No inline style or script anywhere (CSP 'self'). */

:root {
  --surface: var(--bg-raised);
  --line: var(--rule);
  --shot-shadow: 0 1px 1px rgba(18, 38, 32, 0.04), 0 18px 50px -24px rgba(18, 38, 32, 0.35);
  --page: 78rem;
  --radius-shot: 12px;
  --head-h: 4rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --shot-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.85); }
}
:root[data-theme="dark"] { --shot-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.85); }

/* ─── base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--fg);
  font: 400 var(--step-0)/1.7 var(--font-sans);
  letter-spacing: -0.006em; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.25; text-wrap: balance; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-fg); }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--fg); color: var(--bg); padding: 0.6rem 0.9rem; z-index: 50; border-radius: var(--radius); }
.skip:focus { left: 0.5rem; }
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ─── header ─── */
.site-header {
  position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--fg); padding-block: 0.6rem; }
.logo { display: block; background-color: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo-office { --logo: url("dramory-office-horizontal.svg"); width: 10.2rem; aspect-ratio: 3184 / 290; }
/* the earlyoffice lettering (2026-11-02, pages.py home_lettering): both colours in the page, the one matching the pick shown */
.logo-ea { display: block; }
.logo-ea img { height: 1.125rem; width: auto; }
.logo-ea .dk { display: none; }
:root[data-theme="dark"] .logo-ea .lt { display: none; }
:root[data-theme="dark"] .logo-ea .dk { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-ea .lt { display: none; }
  :root:not([data-theme="light"]) .logo-ea .dk { display: block; }
}
.nav { display: flex; align-items: center; gap: clamp(0.1rem, 0.8vw, 0.6rem); font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--fg-muted); padding: 0.55rem 0.5rem; border-radius: var(--radius); min-height: 2.5rem; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav .lang { font-weight: 600; color: var(--fg); min-width: 2.5rem; justify-content: center; }
.nav .button { color: var(--accent-fg); margin-left: 0.4rem; }
.theme-toggle { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; background: none; color: var(--fg-muted); cursor: pointer; border-radius: 50%; }
.theme-toggle:hover { color: var(--fg); background: var(--accent-soft); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.no-js .theme-toggle { display: none; }
@media (max-width: 64rem) { .nav .hide-md { display: none; } }
@media (max-width: 30rem) { .nav .hide-sm { display: none; } .logo-office { width: 9rem; } }

/* ─── type ─── */
/* line breaks (docs/DESIGN_QA.md): Korean breaks between words only (body: keep-all); running text avoids a last line of
 * one word (pretty), headings and short notes even out (balance); .nb keeps a label with its value, a number with its
 * unit, a short quoted or bracketed phrase on one line. */
p, li, dd, dt, td, figcaption, blockquote { text-wrap: pretty; }
.lede, .note, .caution, .news-sum, .u-summary, .foot-brand p { text-wrap: balance; }
.nb { white-space: nowrap; }
.sub-en { display: block; margin-top: 0.2rem; font-size: var(--step--1); color: var(--fg-faint); }
.eyebrow { font-size: var(--step--1); font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.032em; line-height: 1.12; }
.title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -0.026em; line-height: 1.2; }
.lede { font-size: var(--step-1); color: var(--fg-muted); max-width: 40rem; line-height: 1.75; }
.more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--accent); text-decoration: none; min-height: 2.5rem; }
.more:hover { text-decoration: underline; }
.arr { display: inline-block; transition: transform 0.2s ease; }
a:hover > .arr { transform: translateX(3px); }

/* ─── buttons ─── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.7rem 1.25rem; border-radius: 8px;
  background: var(--accent); color: var(--accent-fg); border: 1px solid transparent;
  text-decoration: none; font-weight: 600; font-size: var(--step-0); line-height: 1.2; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: color-mix(in srgb, var(--accent) 86%, var(--fg)); }
.button.ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.button.ghost:hover { border-color: var(--fg); }
.button.small { min-height: 2.5rem; padding: 0.5rem 0.95rem; font-size: var(--step--1); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ─── sections ─── */
.section { padding-block: var(--space-section); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.25rem); }
.section-head .title { margin-top: 0.9rem; }
.section-head .lede { margin-top: 1.1rem; }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.split { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 6rem); align-items: center; }
@media (min-width: 64rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.flip > .split-text { order: 2; }
}
.split-text .title { margin-top: 0.9rem; }
.split-text .lede { margin-top: 1.1rem; }

/* screenshots: the app as it is, a hairline and a long soft shadow — no device frames, no brand chrome */
.shot { border-radius: var(--radius-shot); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shot-shadow); background: var(--bg-sunk); }
.shot img { width: 100%; }
.shot.phone { max-width: 19rem; justify-self: center; border-radius: 26px; }

/* ─── hero ─── */
.hero { padding-top: clamp(3.5rem, 2rem + 6vw, 7rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.hero-head { max-width: 58rem; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.3vw, 4.75rem); margin-top: 1rem; }
.hero .lede { margin: 1.5rem auto 0; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.25rem); max-width: 40rem; }
.hero .actions { margin-top: 2.1rem; justify-content: center; }
.hero .note { margin-top: 1.1rem; font-size: var(--step--1); color: var(--fg-faint); }

/* the showcase: one control per kind, the real screen of the web app under it */
.showcase { margin-top: clamp(3rem, 2rem + 4vw, 4.75rem); }
.show-bar { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.show-logo { display: none; }
.show-tabs {
  display: flex; gap: 0.2rem; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 0.25rem; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 999px;
}
.show-tabs::-webkit-scrollbar { display: none; }
.show-tab {
  display: inline-flex; align-items: center; gap: 0.45rem; flex: none;
  min-height: 2.5rem; padding: 0.4rem 1rem 0.4rem 0.7rem; border-radius: 999px;
  color: var(--fg-muted); text-decoration: none; font-size: var(--step--1); font-weight: 500;
}
.show-tab:hover { color: var(--fg); }
.show-tab[aria-selected="true"] { color: var(--fg); background: var(--surface); font-weight: 600; box-shadow: 0 1px 2px rgba(18, 38, 32, 0.12), 0 0 0 1px var(--line); }
.show-tab .kind-ico { width: 1.2rem; height: 1.2rem; }
.show-view { border: 1px solid var(--line); border-radius: var(--radius-shot); overflow: hidden; box-shadow: var(--shot-shadow); background: var(--surface); aspect-ratio: 1440 / 900; }
.show-panel[hidden] { display: none; }
.show-panel img { width: 100%; }
.showcase figcaption { margin-top: 0.9rem; font-size: var(--step--2); color: var(--fg-faint); text-align: center; }
@media (max-width: 40rem) {
  .show-bar { justify-content: flex-start; }
  .show-tab { padding-inline: 0.6rem 0.8rem; }
}

.formats { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.5rem 1.5rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.formats-label { font-size: var(--step--1); color: var(--fg-faint); }
.formats ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; }
.formats li { font-weight: 600; font-size: var(--step-0); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* ─── five kinds ─── */
.kinds { display: grid; gap: clamp(4rem, 3rem + 4vw, 7.5rem); }
.kind { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 5rem); align-items: center; scroll-margin-top: 5rem; }
@media (min-width: 64rem) {
  .kind { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .kind:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .kind:nth-child(even) > .kind-text { order: 2; }
}
.kind-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.6rem; font-weight: 600; }
.kind-name .kind-ico { width: 1.75rem; height: 1.75rem; }
.kind-fmt { font-weight: 500; font-size: var(--step--2); letter-spacing: 0.06em; color: var(--fg-faint); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; }
.kind h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); letter-spacing: -0.024em; line-height: 1.22; margin: 1.1rem 0 0.9rem; }
.kind-text > p:not(.kind-name) { color: var(--fg-muted); max-width: 30rem; }
.ticks { margin-top: 1.3rem; display: grid; gap: 0.55rem; font-size: var(--step--1); }
.ticks li { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); }
.ticks li::before { content: ""; width: 0.55rem; height: 1px; background: var(--accent); margin-top: 0.8em; }

.convert { margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding: 1.6rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.5rem 3rem; }
.convert h3 { font-weight: 600; font-size: var(--step-0); }
.convert p { color: var(--fg-muted); max-width: 46rem; }
@media (min-width: 64rem) { .convert { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }


/* ─── PDF tools ─── */
.pdf-top { margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 2.25rem 1.75rem; }
.tool-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-weight: 600; font-size: var(--step--1); padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule-strong); }
.tool-group .count { font-weight: 500; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.tool-group li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--fg); }

/* ─── templates / AI / together ─── */
.forms-list { margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.forms-list > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.forms-list dt { font-weight: 600; }
.forms-list .num { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 0.35rem; }
.forms-list dd { color: var(--fg-muted); font-size: var(--step--1); margin-top: 0.2rem; }
.feature-list { margin-top: 2rem; display: grid; gap: 1.6rem; }
.feature-list.two { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem 2.2rem; }
.feature-list h3 { font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; }
.feature-list p { margin-top: 0.35rem; color: var(--fg-muted); }
.caution { margin-top: 2rem; padding-left: 1rem; border-left: 2px solid var(--warm); font-size: var(--step--1); color: var(--fg-muted); max-width: 34rem; }

/* ─── download ─── */
/* five cards on one shared grid: every card is the same four rows — name / facts / action / small print — so the
 * buttons sit on one line whatever the text above them (subgrid). Three apps you can use now in the first row, the
 * two on the way in the second. Button text is one short line; the platform is in the card's name (aria-label says
 * it in full). docs/DESIGN_QA.md round 1. */
.platforms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.pf { grid-column: span 2; grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 1.4rem 1.3rem 1.3rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pf.soon-card { grid-column: span 3; }
.pf h3 { font-weight: 600; font-size: var(--step-1); }
.pf p { font-size: var(--step--1); color: var(--fg-muted); }
.pf .pf-facts { margin-top: 0.5rem; text-wrap: balance; }
.pf .pf-act { align-self: end; padding-top: 1.1rem; }
.pf .pf-act .button { width: 100%; }
.pf .pf-note { margin-top: 0.7rem; font-size: var(--step--2); color: var(--fg-faint); line-height: 1.55; }
.pf .pf-note:empty { margin-top: 0; }
.pf .pf-note a { color: var(--fg-muted); }
.pf:not(.live) { background: transparent; border-style: dashed; }
.soon { display: flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: 0.7rem 1.25rem; border-radius: 8px; background: var(--bg-sunk); font-size: var(--step-0); line-height: 1.2; font-weight: 600; color: var(--fg-muted); white-space: nowrap; }
@media (max-width: 44rem) {
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .pf, .pf.soon-card { grid-column: auto; grid-row: auto; display: flex; flex-direction: column; }
  .pf .pf-act { align-self: stretch; }
}

/* ─── trust / news / closing ─── */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; }
.trust li { padding-top: 1.3rem; border-top: 1px solid var(--rule-strong); display: flex; flex-direction: column; }
.trust h3 { font-weight: 600; font-size: var(--step-1); }
.trust p { color: var(--fg-muted); margin-top: 0.6rem; }
.trust p:last-child { margin-top: auto; padding-top: 0.9rem; }
.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.news-list a { display: block; height: 100%; padding: 1.3rem; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.15s ease; }
.news-list a:hover { border-color: var(--rule-strong); }
.news-meta { font-size: var(--step--2); color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.news-sum { margin-top: 0.6rem; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.5; letter-spacing: -0.01em; }
.closing { text-align: center; }
.closing h2 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.6rem); }
.closing .lede { margin: 1.1rem auto 0; }
.closing .actions { justify-content: center; margin-top: 2rem; }

/* ─── footer ─── */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: var(--step--1); }
.foot-top { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .foot-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.foot-brand p { margin-top: 0.9rem; color: var(--fg-muted); }
.foot-brand .logo-office { width: 9.5rem; }
.foot-lang { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--fg-muted); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 2rem; }
.site-footer h2 { font-size: var(--step--1); font-weight: 600; margin-bottom: 0.6rem; }
.site-footer li a { display: inline-flex; min-height: 2.5rem; align-items: center; color: var(--fg-muted); text-decoration: none; }
.site-footer li a:hover { color: var(--fg); text-decoration: underline; }
.legal { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.45rem; font-size: var(--step--2); color: var(--fg-faint); line-height: 1.6; }
.legal .marks { max-width: 60rem; }

/* ─── policy and list pages (privacy, terms, licences, updates, 404) ─── */
.page-hero { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); max-width: 20ch; margin-top: 1rem; }
.page-hero .lede { margin-top: 1.2rem; }
.page-hero .actions { margin-top: 2rem; }
.page-hero + .section { padding-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.doc-layout { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 64rem) { .doc-layout { grid-template-columns: 14rem minmax(0, 1fr); } .toc { position: sticky; top: calc(var(--head-h) + 1.5rem); } }
.toc { font-size: var(--step--1); border-left: 1px solid var(--line); padding-left: 1rem; }
.toc-h { font-weight: 600; margin-bottom: 0.5rem; }
.toc ol { display: grid; gap: 0.1rem; }
.toc a { display: inline-flex; min-height: 2rem; align-items: center; color: var(--fg-muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--fg); text-decoration: underline; }
@media (max-width: 63.99rem) { .toc a { min-height: 2.5rem; } .toc { border-left: 0; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); } }
.doc, .wrap.doc { min-width: 0; }
.doc > *, .wrap.doc > * { max-width: 46rem; }
.doc > .table-scroll, .wrap.doc > .table-scroll { max-width: 62rem; }
.doc h2 { font-family: var(--font-display); font-size: var(--step-2); margin: 3rem 0 1rem; letter-spacing: -0.018em; scroll-margin-top: calc(var(--head-h) + 1rem); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-weight: 600; font-size: var(--step-0); margin: 1.6rem 0 0.6rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
/* 개정 안내·핵심 요약 (privacy, terms): a quiet box above the body */
.callout { margin: 1.2rem 0 1.6rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--fg); border-radius: var(--radius); scroll-margin-top: calc(var(--head-h) + 1rem); }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.table-scroll th[scope="row"] { width: 9.5rem; white-space: normal; }
.doc p, .doc li { color: var(--fg-muted); }
.doc p + p { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.2rem; display: grid; gap: 0.55rem; margin: 0.8rem 0; }
.doc strong, .doc li strong { color: var(--fg); }
.doc code { font-size: 0.92em; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--step--1); }
.table-scroll th, .table-scroll td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table-scroll th { font-weight: 600; background: var(--surface); }
/* a link alone in a cell ("원문") is small text: the padding makes it a 40px target without growing the row */
.table-scroll td > a:only-child { display: inline-block; padding: 0.75rem 0.5rem; margin: -0.75rem -0.5rem; }
.table-scroll tr:last-child td, .table-scroll tr:last-child th[scope="row"] { border-bottom: 0; }
.doc details.license { border-top: 1px solid var(--line); padding: 0.4rem 0; }
.doc details.license summary { cursor: pointer; color: var(--fg); font-size: var(--step--1); overflow-wrap: anywhere; min-height: 2.5rem; padding-block: 0.5rem; }
.doc li > a:only-child { display: inline-block; padding-block: 0.65rem; margin-block: -0.65rem; }
.doc pre.license { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--step--2); line-height: 1.5; color: var(--fg-muted); margin: 0.6rem 0 0; padding: 0.8rem 1rem; background: var(--surface); border-radius: var(--radius); }

/* updates (tools/news.py): one card per release, newest first */
.u-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.u-list { display: grid; gap: 1rem; }
.u-list > .u-card { max-width: 52rem; }
.u-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); scroll-margin-top: 5rem; }
.u-card:target { border-color: var(--accent); }
.u-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0; font-size: var(--step--1); color: var(--fg-faint); }
.u-build { font-weight: 700; color: var(--fg); text-decoration: none; font-variant-numeric: tabular-nums; padding-block: 0.6rem; margin-block: -0.6rem; }
.u-build:hover { color: var(--accent); }
.u-meta time { margin-left: auto; font-variant-numeric: tabular-nums; }
.u-target { font-size: var(--step--2); font-weight: 600; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0.05rem 0.55rem; color: var(--fg-muted); }
.u-summary { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.45; letter-spacing: -0.01em; margin: 0.7rem 0 0; }
.u-group { margin-top: 1rem; }
.u-group ul { margin: 0.45rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.u-group li { color: var(--fg-muted); line-height: 1.6; font-size: var(--step--1); }
.u-kind { display: inline-block; margin: 0; font-family: var(--font-sans); font-size: var(--step--2); font-weight: 700; border-radius: 999px; padding: 0.12rem 0.6rem; }
.u-kind-new { background: var(--accent); color: var(--accent-fg); }
.u-kind-better { background: var(--accent-soft); color: var(--accent); }
.u-kind-fix { border: 1px solid var(--warm); color: color-mix(in srgb, var(--warm) 72%, var(--fg)); }
.u-only { font-size: var(--step--2); color: var(--fg-faint); white-space: nowrap; }
.u-older { margin-top: 0.5rem; max-width: 52rem; }
.u-older > summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 2.75rem; display: flex; align-items: center; }
.u-older[open] > summary { margin-bottom: 1rem; }
.u-older .u-list { gap: 1rem; }
@media (max-width: 30rem) { .u-meta time { margin-left: 0; flex-basis: 100%; } }

/* phones: the screenshots get a closer crop (the page, not the whole window), the tool list two columns */
@media (max-width: 40rem) {
  .kind-shot, .split > .shot:not(.phone), .pdf-top > .shot, .show-view { aspect-ratio: 4 / 3; }
  .kind-shot img, .split > .shot:not(.phone) img, .pdf-top > .shot img, .show-panel img { width: 165%; max-width: none; margin-left: -18%; margin-top: -2%; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .tool-group li { font-size: var(--step--2); }
}
