/* Public beginner guide and server rules (/guide on the main site, under the site bar). No inline style anywhere (CSP).
   Design reference: Apple Human Interface Guidelines and Apple's open-source documentation renderer
   (github.com/apple/swift-docc-render), which draws developer.apple.com:
   - system font first (-apple-system / SF Pro), then fonts that carry each script (Korean, Japanese, Chinese, Thai);
   - text styles: large title, title, headline, body 17px, footnote; few typefaces, weight and size carry hierarchy;
   - 8pt grid (4/8/12/16/24/32/48/64), a ~680px reading column, generous space between groups;
   - neutral system greys with one accent (TGF orange) for links, the current page and focus;
   - translucent sticky bars (blur + saturation), grouped inset cards with rounded corners and hairline separators;
   - the site's dark surfaces and teal accent (one site, 2026-11-06), plus increased contrast, reduced transparency, reduced motion. */
@font-face { font-family: Pretendard; src: url('/assets/fonts/pretendard-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --g-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Apple SD Gothic Neo", Pretendard, "Malgun Gothic", system-ui, sans-serif;
  --g-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", Pretendard, monospace;
  /* The site's surfaces (web/site/bar.css, the UCP pages): near-black, warm off-white text, one teal accent. */
  --g-bg: #07090a;
  --g-card: #111416;
  --g-fill: rgba(244, 243, 239, .07);
  --g-fill-2: rgba(244, 243, 239, .13);
  --g-label: #f4f3ef;
  --g-label-2: #a9aca8;
  --g-label-3: #767a77;
  --g-sep: rgba(244, 243, 239, .1);
  --g-bar: rgba(7, 9, 10, .94);
  --g-sheet: rgba(13, 16, 17, .97);
  --g-pop: #15181a;
  --g-shadow: 0 12px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(244, 243, 239, .08);
  --g-accent: #5fb3a3;
  --g-accent-fill: rgba(95, 179, 163, .14);
  --g-accent-line: rgba(95, 179, 163, .45);
  --g-red: #ff6b5f;
  --g-red-fill: rgba(255, 107, 95, .12);
  --g-green: #4cc46a;
  /* The game chat is dark: it shows what the game screen shows. */
  --g-chat: #1c1c1e;
  /* The fixed site bar: two rows on wide screens, one below 861px. */
  --g-top: 110px;
  --g-r-card: 14px; --g-r-row: 8px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
}
@media (max-width: 860px) { :root { --g-top: 54px; } }
@media (prefers-contrast: more) {
  :root { --g-sep: rgba(244, 243, 239, .4); --g-label-2: #d6d8d4; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--g-bg); color: var(--g-label); font-family: var(--g-font); font-size: 17px; line-height: 1.5; font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 60; padding: var(--s2) var(--s3); border-radius: var(--g-r-row); background: var(--g-label); color: var(--g-bg); font-size: 15px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.guide-app :focus-visible, .skip-link:focus-visible { outline: 3px solid var(--g-accent-line); outline-offset: 2px; border-radius: 8px; }
.guide-main:focus { outline: none; }
.ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.guide-chev { flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: .6; transform: translateY(-2px) rotate(45deg); }
details[open] > summary .guide-chev { transform: translateY(2px) rotate(-135deg); }

/* ---------- page: sidebar | reading column ---------- */
.guide-main { max-width: 1120px; margin: 0 auto; padding: calc(var(--g-top) + var(--s7)) var(--s5) 96px; }
.guide-localnav { display: none; }
.guide-toc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.guide-toc-head h2 { padding: 0 var(--s3); color: var(--g-label-2); font-size: 13px; font-weight: 600; line-height: 1.4; }
.guide-toc-close { display: none; }
.guide-toc-list { margin: var(--s2) 0 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc-list[start="0"] { counter-reset: toc -1; }
.guide-toc-list li { counter-increment: toc; }
.guide-toc-list li + li { margin-top: 2px; }
.guide-toc-list a { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: baseline; min-height: 36px; padding: 7px var(--s3); border-radius: var(--g-r-row); color: var(--g-label-2); font-size: 15px; line-height: 1.45; transition: background-color .15s ease, color .15s ease; }
.guide-toc-list a::before { content: counter(toc); color: var(--g-label-3); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.guide-toc-list a:hover { background: var(--g-fill); color: var(--g-label); }
.guide-toc-list a[aria-current="page"] { background: var(--g-accent-fill); color: var(--g-accent); font-weight: 600; }
.guide-toc-list a[aria-current="page"]::before { color: var(--g-accent); }

@media (min-width: 1024px) {
  .guide { display: grid; grid-template-columns: 236px minmax(0, 680px); column-gap: 72px; justify-content: center; align-items: start; }
  /* The popover attribute only matters on smaller screens: here the list is a plain sticky sidebar. */
  .guide-toc { display: block; position: sticky; inset: auto; top: calc(var(--g-top) + 24px); grid-area: 1 / 1; width: auto; height: auto; max-height: calc(100vh - var(--g-top) - 48px); margin: 0 0 0 -12px; padding: 0 0 var(--s5); overflow-y: auto; border: 0; background: none; color: inherit; scrollbar-width: thin; }
  .guide-body { grid-area: 1 / 2; }
  /* Rules: the title sits above the chapters in the markup (so a phone reads title, chapters, rules), and beside the
     chapter list here. */
  .rules .rules-head { grid-area: 1 / 2; }
  .rules .guide-toc { grid-area: 1 / 1 / 3 / 2; }
  .rules .guide-body { grid-area: 2 / 2; }
}
.rules-head { max-width: 680px; }
/* ---------- article: large title, then body text ---------- */
.guide-body { min-width: 0; max-width: 680px; font-size: 17px; line-height: 1.65; }
.guide-head { margin-bottom: 40px; }
.guide-step { margin-bottom: var(--s2); color: var(--g-label-2); font-size: 14px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.guide-head h1 { font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -.022em; }
.guide-lead { margin-top: var(--s4); color: var(--g-label-2); font-size: 21px; line-height: 1.45; letter-spacing: -.01em; }
.guide-body > h2 { margin: 56px 0 var(--s4); font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -.018em; }
:is(.guide-body, .rules-pending-part) > p { margin: 0 0 var(--s4); }
.guide-body strong { font-weight: 600; }
.guide-body a:not(.guide-button) { color: var(--g-accent); text-decoration: underline; text-decoration-color: var(--g-accent-line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-body a:not(.guide-button):hover { text-decoration-color: currentColor; }
/* Commands carry Korean, Japanese, Chinese or Thai words (`/me 손을 흔든다.`): the text font keeps them evenly spaced,
   the filled chip marks them as something to type. SF Mono stays for English pages, where commands are all Latin. */
.guide-body code { padding: .1em .4em; border-radius: 6px; background: var(--g-fill); color: var(--g-label); font-family: inherit; font-size: .9em; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.guide-list, .guide-steps { margin: 0 0 var(--s5); padding: 0; }
.guide-list { padding-left: 1.25em; }
.guide-list li { padding-left: 4px; }
.guide-list li::marker { color: var(--g-label-3); }
.guide-list li + li, .guide-steps li + li { margin-top: 10px; }
/* Steps: numbers in filled circles, as in Apple's how-to pages. */
.guide-steps { list-style: none; counter-reset: step; }
.guide-steps li { position: relative; min-height: 28px; padding-left: 40px; counter-increment: step; }
.guide-steps li::before { content: counter(step); position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--g-fill); color: var(--g-label); font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- grouped cards: summary, tip, example, warning, good/bad ---------- */
.box { margin: 0 0 var(--s5); padding: 20px var(--s5); border-radius: var(--g-r-card); background: var(--g-card); font-size: 16px; line-height: 1.6; }
.guide-label { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s2); color: var(--g-label-2); font-size: 13px; font-weight: 600; line-height: 1.4; }
.box p + p { margin-top: var(--s1); }
.box ul { margin: 0; padding-left: 1.2em; }
.box li + li { margin-top: 6px; }
.box li::marker { color: var(--g-label-3); }
:is(.guide-body, .rules-pending-part) > .guide-summary { margin-bottom: var(--s6); }
.guide-summary .guide-label { color: var(--g-accent); }
.guide-warn { background: var(--g-red-fill); }
.guide-warn .guide-label { color: var(--g-red); }
.guide-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
.guide-compare .box { margin: 0; }
.guide-good .guide-label { color: var(--g-green); }
.guide-bad .guide-label { color: var(--g-red); }

/* ---------- tables: an inset grouped list with hairline rows ---------- */
.guide-table { padding: var(--s1) 0; overflow-x: auto; }
.guide-table .table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.guide-table th { padding: 10px var(--s4) var(--s2); color: var(--g-label-2); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.guide-table th:first-child, .guide-table td:first-child { padding-left: 20px; }
.guide-table th:last-child, .guide-table td:last-child { padding-right: 20px; }
.guide-table td { padding: var(--s3) var(--s4); border-top: 1px solid var(--g-sep); vertical-align: top; }
.guide-table td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- glossary ---------- */
.guide-terms { padding: var(--s1) var(--s5); }
.guide-terms > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s4); padding: 14px 0; }
.guide-terms > div + div { border-top: 1px solid var(--g-sep); }
.guide-terms dt { font-weight: 700; }
.guide-terms dd { color: var(--g-label); }

/* ---------- chat examples: what you type (a text field) and what the game chat shows ---------- */
.guide-chat { margin: 0 0 var(--s5); }
.guide-chat ul { margin: 0; padding: var(--s4) 20px; border-radius: var(--g-r-card); background: var(--g-chat); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); list-style: none; }
.guide-chat li { display: flex; gap: 10px; align-items: baseline; color: #f5f5f7; font-size: 15px; line-height: 1.55; }
.guide-chat li + li { margin-top: var(--s1); }
.guide-chat li.type { padding: 6px 10px; border-radius: var(--g-r-row); background: rgba(255, 255, 255, .09); color: #d1d1d6; font-size: 14px; }
.guide-chat li.type + li:not(.type) { margin-top: var(--s2); }
.guide-chat li:not(.type) + li.type { margin-top: var(--s4); }
.guide-chat li.me, .guide-chat li.do { color: #cfb2f0; }
.guide-chat li.ooc { color: #98989d; }
.guide-chat li.shout { font-weight: 700; }
.guide-chat code { padding: 0; background: none; color: inherit; font-size: inherit; }
.guide-chat-kind { flex: none; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); color: #f5f5f7; font-family: var(--g-font); font-size: 11px; font-weight: 600; line-height: 1.6; }
.guide-chat figcaption { margin-top: var(--s2); padding: 0 var(--s1); color: var(--g-label-2); font-size: 14px; line-height: 1.5; }

/* ---------- previous / next ---------- */
.guide-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s8); }
.guide-body .guide-pager a { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s4) 20px; border-radius: 14px; background: var(--g-card); color: var(--g-label); text-decoration: none; transition: background-color .15s ease; }
.guide-body .guide-pager a:hover { background: var(--g-fill-2); }
.guide-body .guide-pager a[rel="next"] { grid-column: 2; align-items: flex-end; text-align: right; }
.guide-pager-dir { display: flex; align-items: center; gap: 4px; color: var(--g-label-2); font-size: 13px; font-weight: 500; line-height: 1.4; }
.guide-pager-title { max-width: 100%; overflow: hidden; color: var(--g-accent); font-size: 17px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- server rules (/rules): numbered chapters and rules, each an anchor staff can link ---------- */
.rules-body > .rules-chapter { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--g-sep); }
.rules-body > h3 { margin: var(--s6) 0 var(--s2); font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.rules-body > :is(h2, h3) { scroll-margin-top: calc(var(--g-top) + 24px); }
.rules-n { margin-right: .3em; color: var(--g-label-3); font-variant-numeric: tabular-nums; }
:is(.rules-body, .rules-pending-part) > .rules-examples { margin: 0 0 var(--s4); padding: 2px 0 2px var(--s4); border-left: 3px solid var(--g-fill-2); font-size: 16px; line-height: 1.6; }
.rules-examples .guide-label { margin-bottom: var(--s1); }
.rules-examples ul { margin: 0; padding-left: 1.2em; }
.rules-examples li + li { margin-top: var(--s1); }
.rules-examples li::marker { color: var(--g-label-3); }
/* A section shown in Korean because this language has not caught up with a Korean edit yet (guide-rules.ts). */
.rules-pending { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--s3); padding: 3px 10px; border-radius: 9999px; background: var(--g-fill); color: var(--g-label-2); font-size: 12px; font-weight: 600; line-height: 1.4; }
.rules-pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g-accent); }
.rules-head .rules-pending { margin: var(--s3) 0 0; }
.rules-body .guide-table td:first-child { min-width: 7em; white-space: normal; }
.rules-body .guide-table td code { white-space: nowrap; }

/* ---------- not found ---------- */
.guide-missing { max-width: 520px; margin: 0 auto; padding: 96px 0 64px; text-align: center; }
.guide-missing h1 { margin-bottom: var(--s3); font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.guide-missing p { color: var(--g-label-2); }
.guide-missing p + p { margin-top: var(--s6); }
.guide-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--g-accent); color: #07090a; font-size: 17px; font-weight: 600; }
.guide-button:hover { filter: brightness(1.08); }

/* ---------- footer: the site's (web/ucp/style.css .site-foot) ---------- */
.site-foot { padding: 40px 24px 52px; border-top: 1px solid var(--g-sep); background: #050607; color: rgba(244, 243, 239, .45); font-size: 12px; line-height: 1.6; text-align: center; }
.site-foot .legal { display: block; max-width: 760px; margin: 8px auto 0; }
.site-foot .legal-contact { display: block; margin-top: 6px; }
.site-foot a { color: rgba(244, 243, 239, .7); }
.site-foot a:hover { color: var(--g-label); }

/* ---------- scripts: each language's own system font; no negative tracking for CJK and Thai ---------- */
.guide-app:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", Meiryo, Pretendard, system-ui, sans-serif; }
.guide-app:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", Pretendard, system-ui, sans-serif; }
.guide-app:lang(th) { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Thonburi, "Leelawadee UI", "Noto Sans Thai", Tahoma, Pretendard, system-ui, sans-serif; }
.guide-app:lang(en) .guide-body code { font-family: var(--g-mono); font-size: .86em; font-weight: 400; }
/* Korean wraps between words, not inside one (걸립니|다). */
.guide-app:lang(ko) :is(.guide-body, .guide-toc) { word-break: keep-all; overflow-wrap: break-word; }
.guide-app:lang(ko) .guide-body { line-height: 1.7; }
.guide-app:is(:lang(ja), :lang(zh-Hans), :lang(th)) :is(h1, h2, h3, p, li, dd, td, th, figcaption, a, span) { letter-spacing: 0; }
.guide-app:is(:lang(ja), :lang(zh-Hans)) .guide-body { line-height: 1.8; }
.guide-app:is(:lang(ja), :lang(zh-Hans)) .guide-head h1 { line-height: 1.3; }
.guide-app:lang(th) .guide-body { line-height: 1.85; }
.guide-app:lang(th) .guide-head h1 { line-height: 1.4; }
.guide-app:lang(th) :is(.guide-body > h2, .guide-toc-list a, .guide-lead) { line-height: 1.6; }
.guide-app:lang(th) .guide-chat li { line-height: 1.75; }

/* ---------- tablet: the sidebar becomes a sticky contents bar and a top sheet ---------- */
@media (max-width: 1023px) {
  .guide-main { padding: var(--g-top) var(--s5) 80px; }
  .guide-localnav { position: sticky; top: var(--g-top); z-index: 20; display: flex; align-items: center; height: 48px; margin: 0 calc(var(--s5) * -1) var(--s6); padding: 0 var(--s3); border-bottom: 1px solid var(--g-sep); background: var(--g-bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .guide-toc-button { display: inline-flex; align-items: center; gap: var(--s2); height: 36px; padding: 0 var(--s3); border: 0; border-radius: var(--g-r-row); background: none; color: var(--g-label); font-size: 15px; font-weight: 600; cursor: pointer; }
  .guide-toc-button:hover { background: var(--g-fill); }
  .guide-toc-button .ico { color: var(--g-accent); }
  .guide-toc-button .guide-chev { margin-left: 2px; }
  /* The contents sheet drops from the top edge over a dimmed page; Esc or a tap outside closes it. */
  .guide-toc:popover-open { position: fixed; inset: 0 0 auto; width: 100%; max-width: none; height: auto; max-height: min(82vh, 720px); margin: 0; padding: var(--s2) var(--s4) var(--s5); overflow-y: auto; border: 0; border-radius: 0 0 22px 22px; background: var(--g-sheet); box-shadow: var(--g-shadow); color: var(--g-label); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); overscroll-behavior: contain; }
  .guide-toc:popover-open > * { max-width: 640px; margin-left: auto; margin-right: auto; }
  .guide-toc::backdrop { background: rgba(0, 0, 0, .3); }
  .guide-toc:popover-open .guide-toc-head { height: 52px; }
  .guide-toc:popover-open .guide-toc-head h2 { color: var(--g-label); font-size: 17px; }
  .guide-toc:popover-open .guide-toc-close { display: inline-flex; }
  .guide-toc:popover-open .guide-toc-list a { min-height: 44px; padding-top: 10px; padding-bottom: 10px; font-size: 17px; }
  /* Rules: one long page, so its chapter list stays in the page as a grouped card; the bar jumps back to it. */
  .rules .guide-toc { margin: 0 0 40px; padding: var(--s3) var(--s2) var(--s2); border-radius: var(--g-r-card); background: var(--g-card); scroll-margin-top: calc(var(--g-top) + 64px); }
  .rules .guide-toc-head h2 { padding-top: var(--s1); }
  .rules .guide-toc-list a { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .rules-body > :is(h2, h3) { scroll-margin-top: calc(var(--g-top) + 64px); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .rules .guide-toc-list { columns: 2; column-gap: var(--s2); }
  .rules .guide-toc-list li { break-inside: avoid; }
}

/* ---------- phone ---------- */
@media (max-width: 735px) {
  .guide-main { padding: var(--g-top) var(--s4) 64px; }
  .guide-localnav { margin: 0 calc(var(--s4) * -1) var(--s5); padding: 0 var(--s2); }
  .guide-head { margin-bottom: var(--s6); }
  .guide-head h1 { font-size: 32px; line-height: 1.15; }
  .guide-lead { margin-top: var(--s3); font-size: 19px; }
  .guide-body > h2 { margin-top: 44px; font-size: 24px; }
  .box { padding: var(--s4) 18px; border-radius: 16px; }
  .guide-compare { grid-template-columns: minmax(0, 1fr); }
  /* Phone tables: each row is a group, the first cell as its title, the others with their column name. */
  .guide-table { padding: 0; }
  .guide-table thead { display: none; }
  .guide-table .table, .guide-table tbody, .guide-table tr, .guide-table td { display: block; width: 100%; }
  .guide-table tr { padding: 14px 18px; }
  .guide-table tr + tr { border-top: 1px solid var(--g-sep); }
  /* The column name sits above its value, so a sentence reads left to right instead of in a narrow right column. */
  .guide-table td, .guide-table td:first-child, .guide-table td:last-child { padding: 0; border-top: 0; text-align: left; white-space: normal; }
  .guide-table td + td { margin-top: var(--s2); }
  .guide-table td::before { content: attr(data-label); display: block; color: var(--g-label-2); font-size: 13px; font-weight: 500; line-height: 1.4; }
  .guide-table td > span { display: block; min-width: 0; overflow-wrap: anywhere; }
  .guide-table td:first-child { padding-bottom: 2px; font-size: 16px; }
  .guide-table td:first-child::before { content: none; }
  .guide-table td:empty { display: none; }
  .guide-terms { padding: var(--s1) 18px; }
  .guide-terms > div { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; }
  .guide-chat ul { padding: 14px var(--s4); }
  .guide-pager { grid-template-columns: minmax(0, 1fr); margin-top: var(--s7); }
  .guide-body .guide-pager a[rel="next"] { grid-column: auto; }
}

/* ---------- motion: quick fades; none when Reduce Motion is on ---------- */
@media (prefers-reduced-motion: no-preference) {
  .guide-toc:popover-open { transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), overlay .25s allow-discrete, display .25s allow-discrete; }
  @starting-style {
    .guide-toc:popover-open { opacity: 0; transform: translateY(-12px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --g-bar: var(--g-bg); --g-sheet: var(--g-bg); --g-pop: var(--g-bg); }
  .guide-localnav, .guide-toc { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
