/* ヘルプ（docs/HELP_SPEC.md §4）。styles.css と blog/blog.css の上に、目次・検索・一覧の配置だけを足す */
.help { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 10vw, 120px); }
.help-narrow { max-width: 900px; }
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "nav main"; gap: clamp(28px, 4vw, 56px); align-items: start; }
.help-main { grid-area: main; min-width: 0; max-width: 820px; }

.help-top .container { gap: 14px; }
.help-top-title { font-size: 15px; font-weight: 700; color: var(--text-2); padding-left: 14px; border-left: 1px solid var(--line); }
.help-top-title:hover { color: var(--text); }
.help-top .help-search { margin-left: auto; width: min(380px, 42vw); }

.help-nav { grid-area: nav; position: sticky; top: 88px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 0 6px 12px 0; }
.help-nav section + section { margin-top: 22px; }
.help-nav-title { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.help-nav-title a:hover { color: var(--text); }
.help-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.help-nav li a { display: block; padding: 5px 10px; border-radius: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.help-nav li a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.help-nav li a[aria-current="page"] { color: var(--ink); background: var(--sun); font-weight: 700; }

.help-article .post-head h1 { margin-top: 0; }
.help-article .post-body h2:first-child { margin-top: 32px; }

.help-head { margin-bottom: 0; }
.help-search { position: relative; }
.help-search[hidden] { display: none; }
.help-search-input { width: 100%; padding: .7em 1em; border: 0; border-radius: 12px; font: inherit; font-size: 15px; color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.help-search-input::placeholder { color: var(--text-3); }
.help-search-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sky); }
.help-search-lg { margin: 28px 0 8px; }
.help-search-lg .help-search-input { padding: .9em 1.2em; font-size: 17px; border-radius: 16px; }
.help-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; border-radius: 14px; background: #1B1638; box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -20px rgba(0, 0, 0, .8); }
.help-results[hidden] { display: none; }
.help-results-label { margin: 6px 10px 4px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.help-result { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); }
.help-result.is-active, .help-result:hover { background: rgba(255, 210, 63, .1); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .4); }
.help-result-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }
.help-result-meta { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); overflow-wrap: anywhere; }
.help-results-empty { margin: 8px 10px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.help-results-empty a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

.help-category { margin-top: 44px; scroll-margin-top: 88px; }
.help-category > h2 { font-size: 20px; font-weight: 700; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.help-cards a { display: block; height: 100%; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s; }
.help-cards a:hover { background: rgba(255, 210, 63, .07); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .4); }
.help-card-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.5; }
.help-card-desc { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }

.help-contact { margin: 48px 0 0; padding: 20px 24px; border-radius: 18px; background: rgba(76, 195, 255, .06); box-shadow: inset 0 0 0 1px rgba(76, 195, 255, .28); }
.help-contact p { margin: 6px 0 0; font-size: 15px; line-height: 1.85; color: var(--text-2); }
.help-contact .help-contact-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.help-contact a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "nav"; }
  .help-nav { position: static; max-height: none; overflow: visible; margin-top: 8px; padding: 22px 0 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .help-top .container { flex-wrap: wrap; padding-block: 10px; row-gap: 8px; }
  .help-top .help-search { order: 3; width: 100%; margin-left: 0; }
  .help-cards { grid-template-columns: minmax(0, 1fr); }
}
