/* Static guide pages (web/guide/**), on top of app.css. Generated by tools/guides.js. No inline styles are used.
   Article template of the design system (7.2): one reading column, no card, no band, hairline tables. */
.guide { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.guide article { overflow-wrap: anywhere; }
.guide h1 { margin: var(--s-4) 0 var(--s-4); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.375rem); line-height: 1.2; letter-spacing: -.025em; }
.guide h2 { margin: var(--s-7) 0 var(--s-3); font-size: var(--fs-h2); }
.guide .lead { margin: 0 0 var(--s-5); color: var(--c-text-2); font-size: var(--fs-lead); line-height: 1.7; }
.guide ul, .guide ol { padding-left: 1.25rem; margin: var(--s-2) 0 var(--s-4); }
.guide li { margin-bottom: var(--s-2); }
.guide li::marker { color: var(--c-text-3); }
.guide .tablewrap { overflow-x: auto; margin: var(--s-3) 0 var(--s-4); -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--r-3); }
.guide table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--fs-small); }
.guide th, .guide td { border: 0; border-bottom: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.guide tbody tr:last-child > * { border-bottom: 0; }
.guide thead th { background: var(--c-surface-2); color: var(--c-text); font-weight: 600; }
.guide tbody th { font-weight: 600; }
.guide .note { color: var(--c-text-2); font-size: var(--fs-small); }
.guide .muted { color: var(--c-text-2); font-size: var(--fs-small); }
/* Language links: one quiet line above the title; the current language in the accent colour. */
.guide .langs { margin: var(--s-5) 0 0; color: var(--c-text-3); font-size: var(--fs-caption); line-height: 2; }
.guide .langs a, .guide .langs strong { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; line-height: 1.4; }
.guide .langs a { color: var(--c-text-2); text-decoration: none; }
.guide .langs .nw { white-space: nowrap; } /* a link and the dot after it never split: no line starts with "·" */
.guide .langs a:hover { color: var(--c-accent); text-decoration: underline; }
.guide .langs strong { color: var(--c-accent); font-weight: 700; }
/* the language on screen (js/i18n-switch.js moves aria-current when a translation is shown in place, 2026-11-03) */
.guide .langs a[aria-current="page"] { color: var(--c-accent); font-weight: 700; text-decoration: none; }
/* Article lists (hub and language index): list rows */
.guide .guides { list-style: none; padding: 0; margin: var(--s-4) 0; border: 1px solid var(--c-line); border-radius: var(--r-3); overflow: hidden; }
.guide .guides li { margin: 0; padding: var(--s-4); }
.guide .guides li + li { border-top: 1px solid var(--c-line); }
.guide .guides li > a:first-child, .guide .guides li > a { font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
.guide .guides li > a:hover { text-decoration: underline; }
.guide .sources { margin-top: var(--s-7); padding-top: var(--s-2); border-top: 1px solid var(--c-line); }
.guide .sources h2 { margin-top: var(--s-4); font-size: var(--fs-h3); }
.guide .sources li { font-size: var(--fs-small); }
.guide .brand-guides h2 { font-size: var(--fs-h3); }
.guide .cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-6) 0 0; }
.guide section { margin-bottom: var(--s-1); }
/* Korean breaks between words, not between syllables. */
.guide article:lang(ko) { word-break: keep-all; }
/* Table cells keep whole words; the wrapper scrolls sideways instead of squeezing columns. */
.guide td, .guide th { overflow-wrap: normal; word-break: normal; min-width: 5.5rem; }
.guide td:last-child { min-width: 11rem; }
.guide .brand-guides > p:last-child a { display: inline-block; padding: 12px 0; } /* the lone "all guides" link: a 44px-high target */
.guide article:lang(ko) :is(td, th) { word-break: keep-all; } /* the reset above let a Korean word break between syllables in a narrow cell (정|보) */

/* Design pass 3 (html.p3, docs/design-pass3-2026-10-31.md): printed matter. Section titles sit under an ink rule and are numbered like
   a booklet (01, 02 …); tables have ink rules instead of a rounded box; the hub lists its articles as a numbered contents list with
   every summary visible (no chevrons), and on wide screens spreads it over the page instead of leaving the sides empty. The numbers
   are drawn by CSS and given an empty alternative text, so screen readers read the titles only. */
.p3 .guide h1 { font-size: clamp(1.875rem, 1.35rem + 2.4vw, 2.75rem); line-height: 1.17; letter-spacing: -.03em; }
.p3 .guide article { counter-reset: sec; }
.p3 .guide section:not([class]) > h2, .p3 .guide .brand-guides > h2 { padding-top: var(--s-3); border-top: 2px solid var(--c-text); letter-spacing: -.02em; }
.p3 .guide section:not([class]) > h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); content: counter(sec, decimal-leading-zero) / "";
  display: block; margin-bottom: 2px; color: var(--c-text-3); font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.p3 .guide .tablewrap { border: 0; border-top: 2px solid var(--c-text); border-bottom: 1px solid var(--c-text); border-radius: 0; background: var(--c-surface); }
.p3 .guide thead th { background: none; border-bottom: 1px solid var(--c-text); }
.p3 .guide .sources { border-top: 1px solid var(--c-text); }
/* the hub: a numbered contents list */
.p3 .guide .guides { counter-reset: toc; border: 0; border-top: 2px solid var(--c-text); border-radius: 0; overflow: visible; }
.p3 .guide .guides li { position: relative; padding: var(--s-4) 0 var(--s-4) 3.25rem; border-bottom: 1px solid var(--c-line); counter-increment: toc; }
.p3 .guide .guides li + li { border-top: 0; }
.p3 .guide .guides li::before { content: counter(toc, decimal-leading-zero); content: counter(toc, decimal-leading-zero) / ""; position: absolute; left: 0; top: var(--s-4);
  color: var(--c-text); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.p3 .guide .guides li > a { font-size: 1.125rem; line-height: 1.4; }
.p3 .guide .guides .muted { display: inline-block; margin-top: 4px; line-height: 1.55; }
.p3 .guide .brand-guides ul { counter-reset: toc; margin: var(--s-3) 0; padding: 0; list-style: none; border-top: 1px solid var(--c-text); }
.p3 .guide .brand-guides li { position: relative; margin: 0; padding: 10px 0 10px 2.25rem; border-bottom: 1px solid var(--c-line); counter-increment: toc; }
.p3 .guide .brand-guides li::before { content: counter(toc, decimal-leading-zero); content: counter(toc, decimal-leading-zero) / ""; position: absolute; left: 0; top: 10px;
  color: var(--c-text-3); font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  /* body > main:not(#view) in app.css caps every page without an app at the reading measure; the hub may be wider */
  .p3 body > main.guide:has(.guides):not(#view) { max-width: calc(64rem + 2 * var(--gutter)); }
  .p3 .guide:has(.guides) :is(.langs, h1, .lead) { max-width: var(--measure); }
  .p3 .guide .guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); }
  .p3 .guide .guides li { padding-left: 0; padding-top: calc(var(--s-4) + 2.25rem); border-bottom: 0; }
  .p3 .guide .brand-guides ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
}
