
* { box-sizing: border-box; }
body::before, body::after { display: none; }
body { margin: 0; font-family: var(--kh-font-sans); background: #f5f1ea; color: var(--kh-text); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; }


.g-top { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; min-height: 52px; }
.g-brand { font-family: var(--kh-font-serif); font-weight: 800; font-size: 15px; letter-spacing: .06em; color: var(--kh-paper-dim); text-decoration: none; }
.g-top nav { display: flex; gap: 4px; }
.g-top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13.5px; font-weight: 800; text-decoration: none; color: var(--kh-muted); border-radius: 999px; }
.g-top nav a.on { color: var(--kh-cinnabar); }


.g-topics { max-width: 1080px; margin: 10px auto 0; padding: 0 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.g-topics::-webkit-scrollbar { display: none; }
.g-topics a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800; text-decoration: none; background: #fffdf8; border: 1px solid rgba(120, 90, 50, .18); color: var(--kh-text); white-space: nowrap; }
.g-topics a.on { background: #2a241c; color: #fdfaf3; border-color: #2a241c; }

.g-layout { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.g-side { display: none; }
.g-main { min-width: 0; }

.g-crumb { margin: 18px 0 4px; font-size: 12.5px; color: var(--kh-muted); }
.g-crumb a { text-decoration: none; color: var(--kh-cinnabar); font-weight: 700; }
.g-main h1 { margin: 0; font-family: var(--kh-font-serif); font-size: 26px; line-height: 1.3; }
.g-lead { margin: 6px 0 0; color: var(--kh-muted); font-size: 14.5px; }
.g-meta { margin-top: 8px; font-size: 12px; color: var(--kh-muted); }


.g-toc { margin: 16px 0 0; background: #fffdf8; border: 1px solid rgba(120, 90, 50, .16); border-radius: 12px; }
.g-toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; font-weight: 800; font-size: 14px; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc summary::after { content: "\2304"; font-size: 16px; color: var(--kh-muted); }
.g-toc[open] summary::after { content: "\2303"; }
.g-toc ol { margin: 0; padding: 0 14px 12px 32px; font-size: 14px; }
.g-toc li { padding: 3px 0; }
.g-toc a { text-decoration: none; color: var(--kh-text); }

.g-sec { margin-top: 30px; scroll-margin-top: 16px; }
.g-sec h2 { margin: 0 0 8px; font-family: var(--kh-font-serif); font-size: 19px; line-height: 1.35; }
.g-sec p { margin: 8px 0 0; font-size: 15px; }
.cmd { white-space: nowrap; font-family: var(--kh-font-mono); font-size: 13px; font-weight: 700; background: #2a241c; color: #fdfaf3; border-radius: 6px; padding: 2px 7px; }

.steps { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: st; display: grid; gap: 8px; }
.steps li { counter-increment: st; position: relative; padding: 12px 14px 12px 50px; background: #fffdf8; border: 1px solid rgba(120, 90, 50, .14); border-radius: 12px; font-size: 14.5px; }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--kh-cinnabar); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: 15px; }

.checks { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.checks li { position: relative; padding-left: 24px; font-size: 14.5px; }
.checks li::before { content: "\2713"; position: absolute; left: 4px; color: var(--kh-cinnabar); font-weight: 800; }


.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stat { background: #fffdf8; border: 1px solid rgba(120, 90, 50, .14); border-radius: 12px; padding: 10px; text-align: center; }
.stat img { width: 26px; height: 26px; display: block; margin: 0 auto 4px; }
.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.stat small { display: block; font-size: 12px; color: var(--kh-muted); }

.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.flow span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; background: #fffdf8; border: 1px solid rgba(120, 90, 50, .16); border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.flow span img { width: 18px; height: 18px; }
.flow i { font-style: normal; color: var(--kh-muted); }

.note { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #c89a3c; background: rgba(200, 154, 60, .08); border-radius: 0 10px 10px 0; font-size: 13.5px; }
.note a { color: var(--kh-cinnabar); font-weight: 700; text-decoration: none; }


.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 36px; }
.g-pager a { display: block; padding: 12px 14px; min-height: 64px; background: #fffdf8; border: 1px solid rgba(120, 90, 50, .16); border-radius: 12px; text-decoration: none; }
.g-pager small { display: block; font-size: 12px; color: var(--kh-muted); }
.g-pager b { display: block; font-family: var(--kh-font-serif); font-size: 15.5px; }
.g-pager .next { text-align: right; grid-column: 2; }
.g-pager .empty { visibility: hidden; }

.g-cta { margin-top: 18px; padding: 16px; border-radius: 14px; background: #2a241c; color: #fdfaf3; display: grid; gap: 10px; }
.g-cta p { margin: 0; font-size: 14.5px; }
.g-cta .kh-btn { width: 100%; min-height: 48px; font-weight: 800; }
.g-more { margin: 14px 0 0; font-size: 13px; text-align: center; color: var(--kh-muted); }
.g-more a { color: var(--kh-cinnabar); font-weight: 700; text-decoration: none; }

.g-foot { margin: 40px auto 0; max-width: 1080px; padding: 22px 16px 36px; text-align: center; font-size: 12px; color: var(--kh-muted); border-top: 1px solid rgba(120, 90, 50, .14); }
.g-foot a { color: var(--kh-cinnabar); text-decoration: none; font-weight: 700; margin: 0 6px; }


.hub { display: grid; gap: 10px; margin-top: 18px; }
.hub a { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: #fffdf8; border: 1px solid rgba(120, 90, 50, .16); border-radius: 14px; text-decoration: none; box-shadow: 0 4px 14px rgba(60, 40, 10, .06); }
.hub img { width: 88px; height: 66px; object-fit: cover; border-radius: 9px; display: block; background: #2b231a; }
.hub b { display: block; font-family: var(--kh-font-serif); font-size: 16.5px; }
.hub small { display: block; font-size: 13px; color: var(--kh-muted); line-height: 1.45; }
.hub em { font-style: normal; display: block; margin-top: 3px; font-size: 11.5px; color: var(--kh-cinnabar); font-weight: 700; }
.hub-other { margin-top: 24px; }
.hub-other h2 { font-family: var(--kh-font-serif); font-size: 16px; margin: 0 0 8px; }
.hub-other ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hub-other li a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px dashed rgba(120, 90, 50, .35); font-size: 13px; text-decoration: none; color: var(--kh-muted); }

@media (min-width: 900px) {
  .g-topics { display: none; }
  .g-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
  .g-side { display: block; position: sticky; top: 16px; align-self: start; margin-top: 22px; }
  .g-side h2 { font-size: 12px; letter-spacing: .08em; color: var(--kh-muted); margin: 0 0 6px; font-family: var(--kh-font-sans); }
  .g-side > ol { list-style: none; margin: 0; padding: 0; }
  .g-side > ol > li > a { display: block; padding: 8px 12px; border-radius: 9px; font-weight: 800; font-size: 14.5px; text-decoration: none; }
  .g-side > ol > li > a.on { background: #2a241c; color: #fdfaf3; }
  .g-side ol ol { list-style: none; margin: 4px 0 8px; padding: 0 0 0 12px; border-left: 2px solid rgba(176, 58, 46, .25); }
  .g-side ol ol a { display: block; padding: 4px 10px; font-size: 13px; color: var(--kh-muted); text-decoration: none; }
  .g-main { max-width: 720px; }
  .g-main h1 { font-size: 32px; }
  .g-toc { display: none; }
  .hub { grid-template-columns: 1fr 1fr; }
}
.flow span img.it { border-radius: 4px; object-fit: cover; }
.flow .flow-label { font-size: 13.5px; padding: 0 4px 0 0; }
.g-cta .kh-btn { max-width: 392px; justify-self: center; }
.hub-other li a { border-style: solid; background: #fffdf8; color: var(--kh-text); }
.hub-other li a::after { content: " \203A"; color: var(--kh-cinnabar); margin-left: 3px; }
.g-topics { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.hub img { object-position: 50% 25%; }
@media (min-width: 900px) { .hub a:last-child:nth-child(odd) { grid-column: 1 / -1; } }


.g-help { margin-top: 18px; }
.g-help > details.section, .g-help > .help-item, .g-help > .faq-item { scroll-margin-top: 16px; }
.g-help > .help-item, .g-help > .faq-item { margin-bottom: 14px; }
.g-help > .faq-item { background: #fffdf8; border: 1px solid rgba(120, 90, 50, .14); border-radius: 12px; padding: 2px 14px; }
.g-layout--hub { display: block; }
.g-main--hub { max-width: 900px; margin: 0 auto; }
.g-main--hub h1 { margin-top: 20px; }
