/* The help centre (/help, help.html): the home (search, topics, guide cards) and a guide's page (Show me in Fizz, then
   the steps: help-player.js). Also the guide side panel (help-panel.js), which reuses .gp-shot and .hc-n. */
.hc { max-width: 1120px; margin: 0 auto; padding: 28px 24px 120px; }
.hc [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hc-loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- home ---------- */
.hc-hero { text-align: center; padding: 18px 0 6px; }
.hc-hero .fizzy { display: inline-block; }
.hc-hero h1 { font-size: 46px; line-height: 1.04; letter-spacing: -0.03em; margin: 6px 0 6px; }
.hc-hero > p { margin: 0 0 20px; color: var(--ink-2); font-size: 18px; }
.hc-search { position: relative; max-width: 640px; margin: 0 auto; }
.hc-search input { width: 100%; height: 60px; padding: 0 22px 0 54px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 34px -20px rgba(24, 60, 40, 0.45); font: 500 17px var(--font); color: var(--ink); }
.hc-search input:focus { outline: none; box-shadow: 0 0 0 3px var(--t-mid), 0 16px 34px -20px rgba(24, 60, 40, 0.45); }
.hc-search svg { position: absolute; left: 21px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.hc-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.hc-popular button { border: 0; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px var(--line); padding: 4px 12px; border-radius: 999px; font: 600 13.5px var(--font); color: var(--ink); cursor: pointer; }
.hc-popular button:hover { background: var(--t-soft); }
.hc-topics { display: flex; gap: 8px; margin: 30px 0 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.hc-topics::-webkit-scrollbar { display: none; }
.hc-topics button { flex: none; height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 650 14px var(--font); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.hc-topics button small { font-size: 12px; color: var(--muted); font-weight: 650; }
.hc-topics button.on { background: var(--ink); color: #fff; box-shadow: none; }
.hc-topics button.on small { color: #b9c4be; }
.hc-count { margin: 8px 2px 0; min-height: 1.2em; font-size: 14px; color: var(--muted); }
.hc-group h2 { font-size: 23px; letter-spacing: -0.02em; margin: 22px 0 12px; display: flex; align-items: center; gap: 10px; }
.hc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(24, 60, 40, 0.5); transition: transform 0.15s, box-shadow 0.15s; }
.hc-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(47, 143, 94, 0.3), 0 20px 36px -22px rgba(24, 60, 40, 0.55); }
.hc-card:focus-visible { outline: 3px solid var(--t-deep); outline-offset: 2px; }
.hc-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #dff5e4, #e6f6b8); }
.hc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-card-text { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; flex: 1; }
.hc-card-text b { font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.hc-card-text span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.hc-card-text small { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hc-empty { text-align: center; padding: 30px 10px 10px; color: var(--ink-2); }
.hc-empty .fizzy { display: inline-block; }
.hc-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- a guide ---------- */
.hc-art { max-width: 920px; margin: 0 auto; }
.hc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); align-items: center; }
.hc-crumbs a { font-weight: 650; color: var(--t-deep); text-decoration: none; }
.hc-crumbs a:hover { text-decoration: underline; }
.hc-art h1 { font-size: 42px; line-height: 1.06; letter-spacing: -0.03em; margin: 12px 0 10px; }
.hc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill.mint { background: var(--t-soft); color: var(--t-deep); box-shadow: none; }
.hc-intro { font-size: 18px; color: var(--ink-2); margin: 0 0 18px; }
.hc-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; }
.btn.mint { background: var(--t-fill, var(--t-deep)); color: var(--t-on); }

/* Show me in Fizz: the first way to learn it, right under the intro. */
.gp-real { display: flex; align-items: center; gap: 16px; margin: 4px 0 0; padding: 18px 20px; border-radius: 22px; background: linear-gradient(120deg, var(--t-soft), #f4fbe3); box-shadow: inset 0 0 0 1px #cdebd6; scroll-margin-top: 16px; }
.gp-real .fizzy { flex: none; }
.gp-real-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gp-real-t b { font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
.gp-real-t span { font-size: 15px; color: var(--ink-2); }

/* Step by step: each step with where its button is and what happens, and one picture that follows along. */
.gp-read { margin-top: 40px; scroll-margin-top: 16px; }
.gp-read h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 2px; }
.gp-read > p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }
.gp-read-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.gp-read-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gp-rs { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border: 0; border-radius: 18px; background: transparent; cursor: pointer; font: inherit; color: inherit; transition: background 0.2s ease, box-shadow 0.2s ease; }
.gp-rs:hover { background: rgba(255, 255, 255, 0.7); }
.gp-rs.on { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 26px -20px rgba(24, 60, 40, 0.5); }
.gp-rs .hc-n { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); transition: background 0.2s ease, color 0.2s ease; }
.gp-rs.on .hc-n { background: var(--ink); color: #fff; }
.gp-rs-t { display: block; margin: 4px 0 0; font-size: 17.5px; color: var(--ink-2); line-height: 1.4; }
.gp-rs-t b { color: var(--ink); }
.gp-rs-where { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }
.gp-rs-result { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; font-size: 15px; font-weight: 650; color: var(--t-deep); }
.gp-rs-result .ico { flex: none; margin-top: 3px; }
.gp-rs-shot { display: none; }
.gp-pic { position: sticky; top: 18px; margin: 0; }
.gp-pic figcaption { display: flex; gap: 8px; align-items: baseline; margin: 10px 4px 0; font-size: 14.5px; color: var(--ink-2); }
.gp-pic figcaption > b { flex: none; color: var(--t-deep); }
/* One step's picture: the moment before the press, what to press ringed, and Play. */
.gp-shot { --glow: 151, 224, 173; position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #e8f4ec; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -24px rgba(24, 60, 40, 0.55); }
.gp-shot > video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; }
/* The picture zoomed in on the ringed button (help-player.js sets --zfit from its size), up to 1.8× here and 2.4× on
   phones; the button stays where it is on the screen, so the zoom never pushes it out of the picture. */
.gp-zoom { --zmax: 1.8; position: absolute; inset: 0; transform-origin: calc(var(--cx) * 100%) calc(var(--cy) * 100%); }
.gp-zoom.on { transform: scale(min(var(--zmax), var(--zfit, 1))); }
.gp-zoom > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .gp-zoom { --zmax: 2.4; } }
.gp-shot video { opacity: 0; }
.gp-shot video.show { opacity: 1; }
.gp-mark { position: absolute; z-index: 2; left: calc(var(--cx) * 100%); top: calc(var(--cy) * 100%); width: max(calc(var(--w) * 100% + 12px), 34px); height: max(calc(var(--h) * 100% + 10px), 26px); transform: translate(-50%, -50%); border-radius: 999px; box-shadow: 0 0 0 3px rgba(var(--glow), 1), 0 0 18px 4px rgba(var(--glow), 0.55); pointer-events: none; }
.gp-mark.off { display: none; }
.gp-shot-play { position: absolute; z-index: 3; right: 10px; bottom: 10px; }
.hc-stuck { margin-top: 38px; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.hc-stuck .fizzy { flex: none; }
.hc-stuck > div:not(.hc-acts) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hc-stuck b { font-size: 18px; }
.hc-stuck span { font-size: 14.5px; color: var(--ink-2); }
.hc-stuck .hc-acts { flex: none; justify-content: flex-end; }
.hc-related h2 { font-size: 20px; margin: 34px 0 12px; }

@media (max-width: 1000px) {
  .hc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gp-read-grid { grid-template-columns: minmax(0, 1fr); }
  .gp-pic { display: none; }
  .gp-read-steps { gap: 18px; }
  .gp-rs { padding: 0; cursor: default; background: none !important; box-shadow: none !important; }
  .gp-rs .hc-n { background: var(--ink); color: #fff; }
  .gp-rs-shot { display: block; margin-top: 10px; }
}
@media (max-width: 640px) {
  .hc { padding: 18px 14px 90px; }
  .hc-hero h1 { font-size: 32px; }
  .hc-hero > p { font-size: 16px; }
  .hc-search input { height: 54px; font-size: 16px; }
  .hc-cards { grid-template-columns: 1fr; }
  .hc-group h2 { font-size: 20px; }
  .hc-art h1 { font-size: 30px; }
  .hc-intro { font-size: 16.5px; }
  .hc-stuck { flex-wrap: wrap; }
  .hc-stuck .hc-acts { width: 100%; }
  .hc-stuck .hc-acts .btn { flex: 1; }
  .gp-real { flex-direction: column; align-items: stretch; text-align: center; padding: 18px 16px; }
  .gp-real .fizzy { align-self: center; }
  .gp-real .btn { width: 100%; }
  .gp-read h2 { font-size: 23px; }
  .gp-rs-t { font-size: 17px; }
}
/* Anyone who'd rather nothing moved: no fades. */
@media (prefers-reduced-motion: reduce) {
  .gp-rs, .gp-rs .hc-n { transition: none; }
}

/* ---------- the guide side panel (help-panel.js) ---------- */
.hp-shade { position: fixed; inset: 0; z-index: 80; background: rgba(17, 21, 19, 0.28); }
.hp-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.4); transform: translateX(105%); transition: transform 0.3s cubic-bezier(.3, .7, .2, 1); }
.hp-panel.on { transform: none; }
.hp-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.hp-head b { flex: 1; font-size: 15px; color: var(--muted); }
.hp-body { flex: 1; overflow: auto; padding: 16px 18px 20px; }
.hp-body h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.hp-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 16px; }
.hp-steps li { display: grid; gap: 8px; }
.hp-row { display: flex; gap: 10px; align-items: flex-start; }
.hp-row .hc-n { width: 26px; height: 26px; font-size: 13px; }
.hp-row p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.38; }
.hp-row p b { color: var(--ink); }
.hp-steps .gp-shot { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.hp-foot { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.hp-foot .btn { flex: 1; }
@media (prefers-reduced-motion: reduce) { .hp-panel { transition: none; } }
/* In the help centre the Feedback pill keeps its corner: Ask Fizzy opens from the page's own Ask Fizzy buttons. */
body[data-page="help"] .af-bubble { display: none; }
