/* 新手指南/系統介紹 專用導覽樣式(只這兩頁載入;不動 site.css) */
.gfind { margin: 0 0 22px; padding: 16px 18px; background: linear-gradient(180deg, #1b140c, #120d07); border: 1px solid rgba(201,162,74,.28); border-radius: 6px; }
.gfind-row { display: flex; align-items: center; gap: 12px; }
.gfind input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: rgba(0,0,0,.35); border: 1px solid var(--gold-dim); border-radius: 4px; outline: none; }
.gfind input:focus { border-color: var(--gold); }
.gfind input::placeholder { color: var(--text-faint); }
#gcount { font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.ghot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ghot b { color: var(--gold-2); font-size: 14px; margin-right: 2px; }
.ghot a { padding: 5px 13px; font-size: 14px; line-height: 1.5; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px; background: rgba(230,194,120,.06); }
.ghot a:hover { background: rgba(230,194,120,.18); border-color: var(--gold); }
.ghot a.x { color: var(--text-soft); }
.ghot a i { font-style: normal; font-size: 11px; margin-left: 3px; opacity: .7; }

.doc-wrap.g { grid-template-columns: 240px minmax(0, 1fr); }
.gtoc { position: sticky; top: 84px; align-self: start; }
.gtoc-in { max-height: calc(100vh - 104px); overflow-y: auto; padding: 4px 0 8px; border-left: 1px solid rgba(201,162,74,.25); font-size: 14px; overscroll-behavior: contain; position: relative; }
.gtoc-h { display: none; }
.gtoc a { display: block; padding: 4px 8px 4px 14px; color: var(--text-soft); border-left: 2px solid transparent; margin-left: -1px; line-height: 1.5; }
.gtoc a.sub { padding-left: 28px; font-size: 13px; color: var(--text-faint); }
.gtoc a.sub::before { content: "└ "; opacity: .6; }
.gtoc a:hover, .gtoc a.on { color: var(--gold); border-left-color: var(--gold); }
.gtoc .gg { margin: 12px 0 2px 14px; font-size: 12px; letter-spacing: .12em; color: var(--gold-2); }
.doc h3 { scroll-margin-top: 84px; }
.doc .sec.gh, .gtoc a.gh, .gtoc .gg.gh { display: none; }
#collection blockquote { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #e0614f; border-left: 5px solid #e0614f; border-radius: 4px; background: rgba(224,97,79,.14); color: var(--text); font-size: 16px; line-height: 1.75; }
#collection blockquote strong { color: #ff9d8f; }
#collection blockquote strong:first-child { display: block; margin-bottom: 4px; font-size: 21px; }
.gempty { display: none; padding: 18px; color: var(--text-soft); text-align: center; }
.gfab, .gmask { display: none; }

@media (max-width: 960px) {
  .doc-wrap.g { grid-template-columns: minmax(0, 1fr); }
  .gfab { display: block; position: fixed; right: 14px; bottom: 18px; z-index: 40; height: 46px; padding: 0 20px; font: inherit; font-weight: 700; font-size: 15px; color: #1d1407; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(180deg, #f6dc9c, #d9ad55 48%, #b5873a); box-shadow: 0 4px 16px rgba(0,0,0,.6); }
  .gtoc { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; transform: translateY(105%); transition: transform .22s; background: #15100a; border-top: 1px solid var(--gold-dim); border-radius: 12px 12px 0 0; }
  body.gopen .gtoc { transform: none; }
  .gtoc-in { max-height: 72vh; border-left: 0; padding: 0 10px 18px; font-size: 16px; }
  .gtoc-h { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; padding: 14px 8px 8px; background: #15100a; color: var(--gold); font-family: var(--serif); font-weight: 900; letter-spacing: .1em; }
  .gtoc-h button { width: 40px; height: 40px; font-size: 18px; color: var(--text-soft); background: none; border: 0; cursor: pointer; }
  .gtoc a { padding: 9px 8px 9px 12px; }
  .gtoc a.sub { padding-left: 30px; font-size: 15px; }
  .gmask { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); }
  body.gopen .gmask { display: block; }
  body.gopen .gfab { display: none; }
}
@media (max-width: 720px) {
  .gfind { padding: 12px; }
  #gcount { display: none; }
}
