/* Help Centre. Uses the variables from styles.css. */

.help-top { position: relative; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); }
.help-top .nav { height: 80px; }
.help-label { margin-right: auto; margin-left: 4px; padding-left: 18px; border-left: 1px solid var(--rule); font-size: 15px; }

/* Hero */
.help-hero { position: relative; isolation: isolate; overflow: visible; background: linear-gradient(180deg, #F6F1E8 0%, var(--paper) 100%); color: var(--ink); padding: 72px 0 96px; }
.help-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 80% at 50% 0%, rgba(214, 180, 140, .3) 0%, rgba(214, 180, 140, 0) 70%),
  radial-gradient(ellipse 50% 60% at 50% 100%, rgba(45, 95, 93, .05) 0%, rgba(45, 95, 93, 0) 70%); }
.help-hero h1 { font: 300 clamp(44px, 7vw, 84px)/1 var(--f-film); letter-spacing: -0.02em; color: var(--film); }
.help-hero-sub { margin-top: 18px; font-size: 18px; color: var(--film-75); }
.roles { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; color: var(--film-55); }
.roles a { color: var(--film); text-decoration: underline; text-decoration-color: rgba(26, 26, 26, .25); text-underline-offset: 4px; }
.roles a:hover { color: var(--accent); }

/* Search */
.hsearch { position: relative; width: 100%; display: flex; align-items: center; }
.hsearch > svg { position: absolute; left: 18px; color: var(--stone); pointer-events: none; }
.hsearch input { width: 100%; height: 52px; padding: 0 18px 0 48px; border-radius: 999px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); font: 400 16px/1 var(--f-ui); }
.hsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hsearch.big { max-width: 640px; margin-top: 36px; }
.hsearch.big input { height: 60px; font-size: 17px; border-color: var(--rule); box-shadow: 0 20px 50px rgba(26, 26, 26, .1); }
.hsearch-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 8px; list-style: none; text-align: left; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); max-height: 420px; overflow: auto; }
.hsearch-results a { display: block; padding: 12px 14px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.hsearch-results a:hover, .hsearch-results a.active { background: var(--bone); }
.hsearch-results .r-t { display: block; font-weight: 500; }
.hsearch-results .r-c { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.hsearch-results .r-none { padding: 14px; color: var(--muted); font-size: 15px; }

/* Sections */
.help-sec { padding: 96px 0; }
.help-sec.tight { padding: 56px 0 96px; }
.help-h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.1 var(--f-display); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 32px; }

/* Category grid */
.cat-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat-card { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); text-decoration: none; color: var(--ink-2); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cat-card:hover { color: var(--ink-2); border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; margin-bottom: 8px; }
.cat-ico.lg { width: 60px; height: 60px; border-radius: 16px; margin: 0; }
.cat-title { font: 600 18px/1.3 var(--f-ui); color: var(--ink); }
.cat-sum { font-size: 15px; line-height: 1.55; color: var(--muted); }
.cat-count { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 500; color: var(--accent); }

/* Guide rows */
.grows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.grows li { border-bottom: 1px solid var(--rule); }
.grow { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 24px; align-items: center; padding: 22px 8px; text-decoration: none; color: var(--ink-2); border-radius: var(--r-md); transition: background .15s ease; }
.grow:hover { background: var(--bone); color: var(--ink-2); }
.grow-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.grow-title { font: 500 18px/1.35 var(--f-ui); color: var(--ink); }
.grow-sum { font-size: 15px; color: var(--muted); }
.grow-meta { display: flex; align-items: center; gap: 12px; }
.grow-arrow { color: var(--accent); }
.mins { font-size: 13px; color: var(--stone); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* Breadcrumbs */
.crumbs ol { margin: 0 0 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--stone); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }

/* Category page */
.cat-head { background: var(--bone); padding: 56px 0 56px; border-bottom: 1px solid var(--rule); }
.cat-head-row { display: flex; gap: 24px; align-items: flex-start; }
.cat-head h1 { font: 400 clamp(36px, 5vw, 56px)/1.05 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.cat-head .lead { margin-top: 12px; max-width: 52ch; }
.help-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; }
.help-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 8px; }
.side-label { margin: 24px 0 8px; font: 500 12px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-cats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.side-cats a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; font-size: 15px; }
.side-cats a svg { color: var(--stone); flex: none; }
.side-cats a:hover { background: var(--bone); color: var(--ink); }
.side-cats a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.side-cats a[aria-current] svg { color: var(--accent); }
.side-cats .n { margin-left: auto; font-size: 12px; color: var(--stone); }
.count { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.empty { padding: 48px; border: 1px dashed var(--rule); border-radius: var(--r-lg); text-align: center; }
.empty h2 { font: 400 28px/1.2 var(--f-display); color: var(--ink); }
.empty p { margin: 12px auto 0; max-width: 46ch; color: var(--muted); }

/* Guide page */
.guide-head { background: var(--bone); padding: 56px 0 48px; border-bottom: 1px solid var(--rule); }
.guide-head h1 { max-width: 20ch; font: 400 clamp(36px, 5vw, 60px)/1.05 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.guide-head .lead { margin-top: 16px; max-width: 56ch; }
.sample-flag { display: inline-block; margin-bottom: 20px; padding: 6px 12px; border-radius: 999px; background: #FFF4D6; color: #7A5600; font-size: 13px; font-weight: 500; }
.guide-meta { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.guide-meta div { display: flex; flex-direction: column; gap: 6px; }
.guide-meta dt { font: 500 12px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide-meta dd { margin: 0; font-size: 15px; color: var(--ink); min-height: 26px; display: flex; align-items: center; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 80px; align-items: start; padding-top: 64px; padding-bottom: 32px; }
.guide-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.toc ul { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 15px; }
.toc a:hover, .toc a.active { color: var(--accent); }
.side-back { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; text-decoration: none; }

/* Article text */
.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font: 400 32px/1.15 var(--f-display); letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 24px; }
.prose h3 { margin-top: 36px; font: 600 19px/1.35 var(--f-ui); color: var(--ink); scroll-margin-top: 24px; }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--bone); font-size: .9em; }
.prose ul { padding-left: 22px; }
.prose ul li + li { margin-top: 8px; }
.prose ul li::marker { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

.steps { margin-left: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 0 48px; min-height: 32px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--white); font: 600 14px/32px var(--f-ui); text-align: center; }

.prose .shot { margin: 32px 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.prose .shot img { width: 100%; aspect-ratio: auto; object-fit: initial; }
.prose .shot figcaption { padding: 12px 16px; border-top: 1px solid var(--rule-soft); font-size: 13px; line-height: 1.5; color: var(--muted); }

.callout, .result { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-lg); font-size: 16px; line-height: 1.6; }
.callout svg, .result svg { flex: none; margin-top: 2px; }
.callout strong, .result strong { margin-right: 4px; }
.callout.tip { background: var(--accent-soft); color: var(--ink-2); }
.callout.tip svg { color: var(--accent); }
.callout.note { background: var(--bone); color: var(--ink-2); }
.callout.note svg { color: var(--muted); }
.callout.important { background: #FCE9E8; color: var(--ink-2); }
.callout.important svg { color: var(--hot); }
.result { border: 1px solid #BFDCC9; background: #EEF7F1; color: var(--ink-2); }
.result svg { color: #2F8A52; }

/* Contact strip */
.help-contact { padding: 0 0 96px; }
.help-contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: var(--r-xl); background: var(--stage); color: var(--ink); }
.help-contact h2 { font: 300 36px/1.1 var(--f-film); color: var(--film); }
.help-contact p { margin-top: 8px; color: var(--film-75); }

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-layout, .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .help-side, .guide-side { position: static; }
  .help-side .side-label, .help-side .side-cats { display: none; }
  .guide-side { order: -1; }
  .guide-side .toc { display: none; }
}
@media (max-width: 640px) {
  .help-label { display: none; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .grow { grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; }
  .grow-meta { grid-column: 1; grid-row: 2; }
  .grow-arrow { grid-row: 1 / span 2; grid-column: 2; }
  .cat-head-row { flex-direction: column; gap: 16px; }
  .help-contact-box { padding: 32px 24px; }
  .help-hero { padding: 48px 0 72px; }
  .guide-layout { padding-top: 40px; }
}
