.guide-page { background: var(--paper); color: var(--ink) }
.guide-page :is(button,input) { font: inherit }
.guide-page :is(a,button,input,summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px }
.guide-header { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); background: var(--paper); border-bottom: 1px solid var(--line) }
.guide-header__inner { display: flex; align-items: center; gap: 32px; min-height: 84px }
.guide-brand { font: 800 24px/1 Unbounded,Onest,sans-serif; letter-spacing: -.04em }
.guide-nav { display: flex; align-items: center; gap: 4px; margin-left: auto }
.guide-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent }
.guide-nav a:hover { background: #e9d9b9 }
.guide-nav [aria-current=page] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 650 }
.guide-header__telegram { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--blue); font-weight: 600 }
.guide-hero { position: relative; isolation: isolate; padding: 64px 0 52px; min-height: 310px }
.guide-hero__scene { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 46% }
.guide-hero__paper { max-width: 710px; background: var(--paper); padding: 30px 40px 34px; border-left: 8px solid var(--wood); box-shadow: 6px 6px 0 #463a2c66 }
.guide-hero h1 { font-size: clamp(40px,5vw,62px); line-height: 1.08; letter-spacing: -.045em; font-weight: 650; text-wrap: balance }
.guide-hero p { max-width: 53ch; margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.55 }
.guide-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 48px; margin-top: 48px; margin-bottom: 80px }
.guide-main { min-width: 0 }
.guide-notice { padding: 18px 22px; border-left: 4px solid var(--blue); background: #e8dcc3; margin-bottom: 32px }
.guide-notice strong { display: block; font-weight: 650 }
.guide-notice p { margin-top: 5px; font-size: 15px; color: var(--muted) }
.guide-steps { list-style: none; padding: 0; margin: 0 }
.guide-step { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px }
.guide-step__number { width: 44px; height: 44px; display: grid; place-items: center; background: var(--wood); color: var(--light); border: 2px solid #906749; box-shadow: inset 0 -4px #463a2c; font-size: 21px; font-weight: 650 }
.guide-step h2 { font-size: 28px; line-height: 1.2 }
.guide-step p { margin-top: 12px; max-width: 64ch }
.guide-step :is(ul,ol) { padding-left: 23px; margin: 14px 0; max-width: 64ch }
.guide-step li+li { margin-top: 8px }
.guide-main :is(p,li) a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px }
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px }
.guide-actions .button { font-size: 14px; padding-inline: 18px }
.guide-minor { color: var(--muted); font-size: 14px }
.guide-address { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; padding: 14px 16px; background: #fff9ec; border: 1px solid var(--line) }
.guide-address code { flex: 1; font-size: 16px; overflow-wrap: anywhere; user-select: all; min-width: 0 }
.guide-copy { background: var(--blue); color: white; border: 0; padding: 10px 16px; min-height: 44px; cursor: pointer; font-size: 14px !important; font-weight: 600; border-radius: 2px; transition: background .18s, transform .18s }
.guide-copy:hover { background: #124c8e }
.guide-copy:active { transform: translateY(2px) }
.guide-copy.is-copied { background: #26733e }
.guide-feedback { font-size: 14px; color: var(--muted); min-height: 23px }
.guide-step code,.guide-entry code { padding: 2px 6px; border: 1px solid var(--line); background: #fff9ec; border-radius: 2px; overflow-wrap: anywhere; user-select: all; cursor: copy }
.guide-step code:hover,.guide-entry code:hover { background: #fdf2d8; border-color: #b8a582 }
.guide-aside { position: sticky; top: 108px }
.supply { padding: 24px; background: var(--wood) url('./assets/oak-board.svg') center/cover; color: var(--light); border: 3px solid #906749; border-bottom: 6px solid #463a2c }
.supply h2 { font-size: 22px; line-height: 1.3 }
.supply>p { font-size: 14px; margin-top: 10px }
.supply ul { list-style: none; margin: 18px 0 0; padding: 0 }
.supply li+li { border-top: 1px solid #b6946e; margin-top: 9px; padding-top: 9px }
.supply li>a { display: flex; align-items: center; min-height: 44px; gap: 14px; font-size: 14px }
.supply img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated }
.supply a:hover { text-decoration: underline; text-underline-offset: 4px }
.supply :is(a,button):focus-visible { outline-color: white }
.guide-aside__note { font-size: 14px; color: var(--muted); margin-top: 18px }
.guide-topics { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line) }
.guide-topics a { display: block; padding: 11px 0; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px; transition: color .18s, padding-left .18s }
.guide-topics a:hover { color: var(--blue) }
.guide-topics a[aria-current=true] { color: var(--blue); font-weight: 650; padding-left: 8px; border-left: 3px solid var(--blue) }
.guide-aside>h2 { font-size: 22px; margin-bottom: 16px }
.guide-search { display: block; width: 100%; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); background: #fff9ec; color: var(--ink); border-radius: 2px; margin-bottom: 12px }
.guide-search::placeholder { color: var(--muted); opacity: 1 }
.guide-main [data-guide-search]>label { display: block; margin-bottom: 8px; font-size: 14px }
.guide-result { font-size: 14px; color: var(--muted); margin-bottom: 24px; min-height: 22px }
.guide-search-clear { background: none; border: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; margin-left: 6px; font-size: 14px }
.guide-search-clear:hover { color: #124c8e }
.guide-entry { border-top: 1px solid var(--line); scroll-margin-top: 108px }
.guide-entry:last-child { border-bottom: 1px solid var(--line) }
.guide-entry>summary { list-style: none; display: grid; grid-template-columns: 44px minmax(0,1fr) 24px; gap: 18px; align-items: center; padding: 24px 0; cursor: pointer }
.guide-entry>summary::-webkit-details-marker { display: none }
.guide-entry>summary:after { content: '+'; font-size: 26px; font-weight: 300; line-height: 1; display: grid; place-items: center; color: var(--blue); transition: transform .2s var(--ease) }
.guide-entry[open]>summary:after { transform: rotate(45deg) }
.guide-entry>summary img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated }
.guide-entry__title { display: block; font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em }
.guide-entry__caption { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 5px }
.guide-entry__body { padding: 0 0 30px 62px }
.guide-entry__body p+p { margin-top: 14px }
.guide-entry__body h3 { margin: 24px 0 10px }
.guide-entry__body :is(ul,ol) { padding-left: 23px }
.guide-entry__body li+li { margin-top: 7px }
.guide-commands { margin-top: 20px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 20px; padding: 16px; background: #e8dcc3 }
.guide-commands dt { font-weight: 600 }
.guide-commands dd { margin: 0; font-size: 14px }
.badge-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 20px 0 }
.badge-examples img { height: 33px; width: auto; image-rendering: pixelated }
.guide-updated { margin: 0 0 24px; font-size: 14px; color: var(--muted) }
.guide-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent }
.guide-table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px }
.guide-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; line-height: 1.5 }
.guide-table caption { text-align: left; padding: 12px 14px; color: var(--muted); background: #e8dcc3 }
.guide-table :is(th,td) { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line) }
.guide-table thead { background: #e8dcc3 }
.guide-table th { font-weight: 650 }
.guide-table tbody th { min-width: 150px }
.guide-badge-figure { margin: 20px 0 }
.guide-badge-figure img { display: block; width: auto; height: auto; max-width: 100%; image-rendering: pixelated }
.guide-badge-figure figcaption { max-width: 52ch; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55 }
.guide-faq { margin-top: 48px }
.guide-faq h2 { font-size: 28px; margin-bottom: 20px }
.guide-faq details { border-top: 1px solid var(--line) }
.guide-faq summary { font-weight: 600; min-height: 56px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer }
.guide-faq summary::-webkit-details-marker { display: none }
.guide-faq summary:after { content: '+'; font-size: 24px; font-weight: 300; line-height: 1; color: var(--blue); transition: transform .2s var(--ease); margin-left: 16px; flex-shrink: 0 }
.guide-faq details[open] summary:after { transform: rotate(45deg) }
.guide-faq details p { margin: 0 0 18px; color: var(--muted) }
.guide-bottom { margin-top: 40px; padding: 24px 0 0; border-top: 1px solid var(--line) }
.guide-bottom h2 { font-size: 28px }
.guide-bottom p { margin-top: 12px; color: var(--muted) }
.guide-map { padding: 30px; background: #e8dcc3; border: 1px solid var(--line) }
.guide-map h2 { font-size: 30px }
.guide-map p { margin-top: 14px }
.guide-map img { width: 64px; height: 64px; margin-bottom: 20px }
.map-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px }
.map-chip { display: inline-flex; align-items: center; padding: 6px 12px; background: #fff9ec; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; font-weight: 550; color: var(--ink) }
.guide-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--muted) }
.guide-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px }
.guide-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--blue) }
.guide-footer__top { color: var(--muted) !important; font-size: 13px }
.guide-footer__top:hover { color: var(--blue) !important }
.guide-news { margin: 48px auto 80px }
.guide-news .journal { color: var(--ink) }
.guide-news .signals__heading { color: var(--light) }
.guide-news .signals__heading p { color: #eadfc8 }
.guide-news .post-slot__body { color: var(--ink) }
.guide-news .spoiler-card { color: var(--ink) }
@media (max-width:1100px) { .guide-header__inner { gap: 20px } .guide-nav a { padding-inline: 10px } .guide-layout { gap: 32px; grid-template-columns: minmax(0,1fr) 240px } }
@media (max-width:780px) { .guide-header__inner { flex-wrap: wrap; gap: 0 16px; padding-top: 16px } .guide-header__telegram { margin-left: auto } .guide-nav { order: 3; width: 100%; margin: 4px 0 0; justify-content: space-between; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch } .guide-nav::-webkit-scrollbar { display: none } .guide-nav a { padding-inline: 8px } .guide-hero { padding: 36px 0; min-height: 0 } .guide-hero__paper { padding: 24px; border-left-width: 5px } .guide-layout { grid-template-columns: 1fr; margin-top: 32px; gap: 40px; margin-bottom: 48px } .guide-aside { position: static } .guide-step,.guide-entry { scroll-margin-top: 140px } .guide-news { margin-block: 32px 48px } }
@media (max-width:600px) { .guide-page .container { width: calc(100% - 32px) } .guide-nav a { font-size: 13px; padding-inline: 8px } .guide-brand { font-size: 22px } .guide-hero h1 { font-size: 40px } .guide-hero p { font-size: 16px } .guide-hero__paper { padding: 22px 20px } .guide-step { grid-template-columns: 36px minmax(0,1fr); gap: 16px; padding-block: 26px } .guide-step__number { width: 34px; height: 36px; font-size: 18px } .guide-step h2 { font-size: 24px } .guide-address { padding: 12px; gap: 12px } .guide-address code { flex-basis: 100%; font-size: 14px } .guide-commands { grid-template-columns: 1fr; gap: 8px; padding: 14px } .guide-commands dd+dt { margin-top: 10px } .guide-entry__title { font-size: 21px } .guide-entry__body { padding-left: 0 } .guide-entry>summary { gap: 12px; grid-template-columns: 36px minmax(0,1fr) 18px } .guide-entry>summary img { width: 36px; height: 36px } .guide-map { padding: 24px } .guide-notice { padding-inline: 16px } .guide-feedback { min-height: 46px } }
