/* KinoLap help guide (/support/ hub and /support/<slug>/ articles), loaded after site.css. Static, no scripts.
   Generated pages: apps/site/scripts/build-help.mjs from apps/site/help/**. Spec: docs/design/site/guide-2026-10-09.md.
   Motifs are copied from landing.css (timing ruler, skewed tick, chequered finish band) so landing.css is not loaded.
   Breakpoints: 760 px (two columns) and 1080 px (three columns, sticky "More in" column). Bump ?v= in the generator
   when this file changes (everything under /assets is cached for a year). */

/* JetBrains Mono, ASCII subset, for the category counts and the step numbers. OFL: fonts/OFL-JetBrainsMono.txt */
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.help {
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --body: #DADDD3;
}

/* ---------- Hub ---------- */

.help-hero { padding-block: 28px 20px; display: grid; gap: 12px; }
.help-hero h1 { margin: 0; font: italic 700 clamp(44px, 9vw, 64px)/1 var(--f-cond); text-transform: uppercase; text-wrap: balance; }
.help-hero h1:lang(vi) { line-height: 1.12; }
.help-hero p { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.5; color: var(--fog); }
.help-hero p a { color: var(--chalk); }
@media (min-width: 1080px) {
  .help-hero { padding-block: 48px 32px; grid-template-columns: 1fr minmax(0, 30em); align-items: end; }
}

.help-cats { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 760px) { .help-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; } }
@media (min-width: 1080px) { .help-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px; } }

/* Each category starts with the landing's timing ruler: hairline, ticks every 12 px, taller ticks every 60 px. */
.help-cat, .help-contact { position: relative; padding-top: 20px; min-width: 0; scroll-margin-top: 16px; }
.help-cat::before, .help-contact::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; pointer-events: none; opacity: 0.8;
  background:
    linear-gradient(var(--hair), var(--hair)) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--rim2) 0 1px, transparent 1px 12px) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--rim2) 0 1px, transparent 1px 60px) top / 100% 10px no-repeat;
}
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.cat-head h2 { margin: 0; font: 600 20px/1.3 var(--f-body); }
.cat-count { flex: none; font: 500 13px/1 var(--f-mono); color: var(--tert); font-variant-numeric: tabular-nums; }

/* The article list: a hairline between rows, a skewed tick as the marker (the lap tick of the Activities card). */
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { position: relative; }
.help-list li + li { border-top: 1px solid var(--rim); }
.help-list a, .help-list [aria-current] {
  position: relative; display: block; min-height: 48px; padding: 12px 0 12px 22px;
  font: 600 17px/1.35 var(--f-body); color: var(--chalk); text-decoration: none;
}
.help-list a::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 2px; height: 16px;
  background: var(--rim2); transform: skewX(-12deg);
}
.help-list a:hover, .help-list a:focus-visible { color: var(--volt); }
.help-list a:hover::before, .help-list a:focus-visible::before { background: var(--volt); }
@media (prefers-reduced-motion: no-preference) {
  .help-list a, .help-list a::before { transition: color 120ms linear, background-color 120ms linear; }
}
/* "You are here": the chequered finish band from the logo. Decoration only. */
.help-list [aria-current]::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 18px;
  background: repeating-conic-gradient(var(--chalk) 0 25%, var(--ink) 0 50%) 0 0 / 8px 8px;
}
/* Old anchors from the one-page support list sit on an empty span inside the row. */
.help-list .anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; scroll-margin-top: 16px; }

.contact-plate { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--pit); border: 1px solid var(--rim); }
.contact-plate h2 { margin: 0; font: 600 20px/1.3 var(--f-body); }
.contact-plate p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fog); }
.contact-plate .btn { justify-self: start; max-width: 100%; text-align: center; padding-block: 14px; line-height: 1.2; }
@media (min-width: 760px) and (max-width: 1079px) { .help-contact { grid-column: 1 / -1; } }

/* ---------- Article ---------- */

.help-article { display: grid; gap: 0; padding-bottom: 56px; }
.help-main { min-width: 0; max-width: 680px; }

.help-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--fog); }
.help-crumb li { display: inline-flex; align-items: center; gap: 8px; }
.help-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--chalk); text-decoration: none; }
.help-crumb a:hover { color: var(--volt); text-decoration: underline; }
.help-crumb .sep { color: var(--tert); }

.help-title { margin: 6px 0 8px; font: italic 700 clamp(32px, 7.4vw, 46px)/1.04 var(--f-cond); text-wrap: balance; }
.help-title:lang(vi) { line-height: 1.12; }
.help-meta { margin: 0 0 20px; font-size: 14px; color: var(--tert); }

.help-article .summary { margin: 0 0 8px; padding: 18px 20px; }
.help-article .summary h2 { margin: 0 0 6px; font: 600 15px/1.3 var(--f-body); color: var(--fog); }
.help-article .summary p { margin: 0; color: var(--chalk); }

.help-body h2 { margin: 32px 0 8px; font: 600 21px/1.3 var(--f-body); color: var(--chalk); scroll-margin-top: 16px; }
.help-body p, .help-body li { color: var(--body); line-height: 1.6; }
.help-body p { margin: 0 0 14px; }
.help-body ul { margin: 0 0 16px; padding-left: 22px; }
.help-body li { margin-bottom: 8px; }
.help-body li::marker { color: var(--volt); }
.help-body strong { color: var(--chalk); font-weight: 600; }
.help-body code { font: 0.88em/1 var(--f-mono); color: var(--chalk); background: var(--deck); padding: 2px 5px; border-radius: 5px; }
.help-body em { font-style: italic; }

/* Steps: a real sequence. Two-digit mono counter in a 28 px column, a hairline between rows. */
.help-body .help-steps { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: step; }
.help-steps li { position: relative; margin: 0; padding: 10px 0 10px 40px; counter-increment: step; border-top: 1px solid var(--rim); }
.help-steps li:first-child { border-top: 0; padding-top: 4px; }
.help-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 12px; width: 28px;
  font: 500 13px/1.8 var(--f-mono); color: var(--tert); font-variant-numeric: tabular-nums;
}
.help-steps li:first-child::before { top: 6px; }

/* Under steps that describe another company's app. */
.help-checked { margin: 0 0 16px; padding: 10px 12px; border: 1px dashed var(--rim2); border-radius: 10px; font-size: 14px; line-height: 1.5; color: var(--tert); }
.help-body .help-checked { color: var(--tert); margin: 0 0 16px; }

/* Figure: an inline SVG on a deck plate; fills come from classes (CSP: no style attributes). */
.help-figure { margin: 6px 0 22px; padding: 16px; border-radius: 14px; background: var(--deck); }
.help-figure svg { display: block; width: 100%; height: auto; }
.help-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--fog); }
.tk-on { fill: var(--chalk); }
.tk-off { fill: var(--rim2); }
.fig-label { fill: var(--fog); font: 500 12px var(--f-mono); }
.fig-axis { fill: var(--tert); font: 500 11px var(--f-mono); }
.fig-line { fill: var(--rim2); }

.help-related h2, .help-more h2 { margin: 36px 0 4px; font: 600 17px/1.3 var(--f-body); color: var(--fog); }
.help-tail { margin: 32px 0 0; font-size: 15px; color: var(--fog); }
.help-more .all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: 15px; }

@media (min-width: 1080px) {
  .help-article { grid-template-columns: 240px minmax(0, 680px); column-gap: 64px; padding-top: 8px; }
  .help-crumb { grid-column: 1 / -1; }
  .help-main { grid-column: 2; grid-row: 2; }
  .help-more { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: 24px; }
  .help-more h2 { margin-top: 18px; }
  .help-more .more-lead { display: none; }
  .help-more .help-list a, .help-more .help-list [aria-current] { font-size: 15px; min-height: 44px; padding-block: 11px; }
  .help-more .help-list a::before { top: 13px; height: 14px; }
  .help-more .help-list [aria-current]::before { top: 12px; height: 16px; }
}

@media print {
  .help-list a::before, .help-list [aria-current]::before, .help-cat::before, .help-contact::before { display: none; }
  .help-body p, .help-body li { color: #000; }
  .help-more { display: none; }
}
