/* ====================================================================================================================================
   TACK HELP: the Tutorial and the FAQ (stream F, Nov 24 2026; app/js/tack/help.js draws them from app/js/tack/help-copy.js).
   Loaded by tack.html after tack.css. It reads the family's shared tokens (money-tokens.css) and Tack's palette (tack-tokens.css) only,
   and every class starts with tk-help or tk-faq, so nothing here reaches another page. On light surfaces the accent is Tack's signal ink
   (6.1:1 on white); the lime signal itself is never text on white.
   ==================================================================================================================================== */
.tk-help { --tkh-ink: var(--money-text-1, #0C1F19); --tkh-ink-2: var(--money-text-2, #43564E); --tkh-muted: var(--money-text-3, #5D6F67);
  --tkh-line: var(--money-border, #DCE6E0); --tkh-card: var(--money-card, #fff); --tkh-well: var(--money-card-2, #F4F8F5);
  --tkh-accent: var(--tack-signal-ink, #566A08); --tkh-solid: var(--tack-base, #1D2E01); --tkh-soft: color-mix(in oklab, var(--tack-signal, #BAE222) 22%, white);
  max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; color: var(--tkh-ink-2); font-size: 15px; line-height: 1.55; }
.tk-help > .tk-panel { margin: 0; background: var(--tkh-card); border: 1px solid var(--tkh-line); border-radius: var(--money-r-md, 14px); padding: 20px 22px; box-shadow: var(--money-shadow-card, none); min-width: 0; }
.tk-help__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tk-help__top { min-width: 0; }
.tk-help__h { margin: 0 0 4px; font-family: var(--money-font-display, inherit); font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--tkh-ink); }
.tk-help__lede { margin: 0; max-width: 760px; color: var(--tkh-ink-2); }
.tk-help__note { margin: 0; color: var(--tkh-muted); font-size: 14px; }
.tk-help__fact { font-weight: 700; color: var(--tkh-ink); }
.tk-help__fact.is-short { white-space: nowrap; }
.tk-help__ui { font-weight: 700; color: var(--tkh-ink); }
.tk-help__link { color: var(--tkh-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tk-help__link:hover { color: var(--tkh-solid); }
.tk-help a:focus-visible, .tk-help summary:focus-visible, .tk-help button:focus-visible { outline: 2px solid var(--tkh-accent); outline-offset: 2px; border-radius: 6px; }

/* the list of steps */
.tk-help__index ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-help__index a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px; border-radius: var(--money-r-sm, 10px); color: var(--tkh-ink-2); font-weight: 700; text-decoration: none; min-width: 0; }
.tk-help__index a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.tk-help__index a:hover { background: var(--tkh-soft); color: var(--tkh-solid); }
.tk-help__num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tkh-soft);
  color: var(--tkh-solid); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tk-help__num-big { width: 40px; height: 40px; background: var(--tkh-solid); color: #fff; font-size: 16px; }

/* one step */
.tk-help__step { scroll-margin-top: 84px; }
.tk-help__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.tk-help__title { margin: 0; font-size: 19px; font-weight: 800; color: var(--tkh-ink); line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.tk-help__steplede { margin: 0 0 12px; max-width: 760px; }
.tk-help__after { margin: 12px 0 0; max-width: 760px; }
.tk-help__do { margin: 0; padding: 0 0 0 1.4em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 780px; }
.tk-help__do > li { padding-left: 4px; min-width: 0; }
.tk-help__do > li::marker { color: var(--tkh-accent); font-weight: 800; }
.tk-help__do > li.tk-help__li-wide { list-style: none; margin-left: -1.4em; padding-left: 0; }
.tk-help__ul { margin: 6px 0 10px; padding-left: 1.3em; display: grid; gap: 6px; }
.tk-help__shots { display: grid; gap: 16px; margin: 16px 0; }
.tk-help__shots:empty { display: none; }
.tk-help__shot { margin: 0; border: 1px solid var(--tkh-line); border-radius: var(--money-r-md, 14px); overflow: hidden; background: var(--tkh-well); box-shadow: var(--money-shadow-card, none); }
.tk-help__shot img { display: block; width: 100%; height: auto; }
.tk-help__actions { margin: 14px 0 0; }
.tk-help__go { display: inline-flex; align-items: center; gap: 0.28em; min-height: 44px; padding: 0 18px; border-radius: var(--money-r-pill, 999px); background: var(--tkh-solid); color: #fff; font-weight: 700; text-decoration: none; }
.tk-help__go:hover { background: var(--tack-base-2, #375104); }
/* a name or a number inside the button wears the button's own color (white on the moss), never the dark ink of a fact in a sentence */
.tk-help__go .tk-help__fact, .tk-help__go .tk-help__ui { color: inherit; }

/* the levels table: columns on a wide screen, one block a row on a narrow one (no sideways scroll) */
.tk-help__tablewrap { margin: 6px 0 8px; max-width: 100%; }
.tk-help__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tk-help__table th, .tk-help__table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tkh-line); }
.tk-help__table thead th { color: var(--tkh-ink); font-weight: 800; border-bottom: 2px solid var(--tkh-line); }
.tk-help__table th[scope="row"] { font-weight: 700; color: var(--tkh-ink); }
.tk-help__livenote { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--tkh-accent); }
@media (max-width: 760px) {
  .tk-help__table, .tk-help__table tbody, .tk-help__table tr, .tk-help__table th, .tk-help__table td { display: block; width: auto; }
  .tk-help__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tk-help__table tr { padding: 10px 0; border-bottom: 1px solid var(--tkh-line); }
  .tk-help__table th[scope="row"] { padding: 0 0 4px; border: 0; }
  .tk-help__table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .tk-help__table td::before { content: attr(data-level-name); flex: none; color: var(--tkh-muted); font-weight: 600; text-align: left; }
}

/* the FAQ */
.tk-faq__find { padding-bottom: 12px; }
.tk-faq__search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1px solid #8A968F; border-radius: var(--money-r-sm, 10px); background: var(--tkh-card); color: var(--tkh-muted); margin-bottom: 12px; }
.tk-faq__search:focus-within { border-color: var(--tkh-accent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--tkh-accent) 35%, transparent); }
.tk-faq__search svg { width: 20px; height: 20px; flex: none; }
.tk-faq__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--tkh-ink); min-height: 44px; }
.tk-faq__clear { flex: none; border: 0; background: none; color: var(--tkh-accent); font: inherit; font-weight: 700; cursor: pointer; min-height: 40px; padding: 0 4px; }
.tk-faq__topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.tk-faq__topic { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--money-r-pill, 999px); border: 1px solid var(--tkh-line); background: var(--tkh-well); color: var(--tkh-ink-2); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.tk-faq__topic:hover { background: var(--tkh-soft); color: var(--tkh-solid); border-color: transparent; }
.tk-faq__say { margin-top: 8px; }
.tk-faq__say:empty { display: none; }
.tk-faq__group { scroll-margin-top: 84px; }
.tk-faq__group > .tk-help__title { margin-bottom: 6px; }
.tk-faq__item { border-top: 1px solid var(--tkh-line); scroll-margin-top: 84px; }
.tk-faq__item:first-of-type { border-top: 0; }
.tk-faq__q { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 2px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--tkh-ink); }
.tk-faq__q > span { min-width: 0; overflow-wrap: anywhere; }
.tk-faq__q::-webkit-details-marker { display: none; }
.tk-faq__q::after { content: ''; flex: none; width: 9px; height: 9px; margin: 6px 4px 0 0; border-right: 2px solid var(--tkh-muted); border-bottom: 2px solid var(--tkh-muted); transform: rotate(45deg); transition: transform 160ms ease; }
.tk-faq__item[open] > .tk-faq__q::after { transform: rotate(225deg); margin-top: 10px; }
.tk-faq__q:hover { color: var(--tkh-accent); }
.tk-faq__a { padding: 0 2px 14px; max-width: 780px; }
.tk-faq__a p { margin: 0 0 8px; }
.tk-faq__a p:last-child { margin-bottom: 0; }
.tk-faq__none .tk-help__note { margin: 0; }

@media (max-width: 720px) {
  .tk-help { font-size: 15px; }
  .tk-help > .tk-panel { padding: 16px 14px; }
  .tk-help__h { font-size: 22px; }
  .tk-help__index ol { grid-template-columns: minmax(0, 1fr); }
  .tk-help__head { gap: 10px; }
  .tk-help__num-big { width: 34px; height: 34px; }
  .tk-help__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .tk-faq__q::after { transition: none; } }
