/* English /help topic pages (ht-*) and the 24 guides (hg-*), Ink and Lime (Vytas, 2026-11-03). Templates: frontend/help/help_topic_ink.pug
   and help_guide_ink.pug. Loads after ink/home.css (tokens, header, hero type, FAQ, close) and ink/help.css (the hub's topic panels and
   chat card, reused here so the 30 help pages look like one family). Layout follows the page type (INK-SYSTEM.md section 6): a guide is
   one readable column with the answer first; a topic page lists every guide on the first screen. No colour frames, nothing loops. */

/* ==================== Shared hero parts ==================== */
html body.ik:not(#_) :is(.hg-hero__copy, .ht-hero__copy) { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
html body.ik:not(#_):not(#_) :is(.hg-hero__copy, .ht-hero__copy) h1.ik-h1 { max-width: 740px; font-size: clamp(46px, 5.9vw, 88px) !important; line-height: .98; text-align: left; }
html body.ik:not(#_) :is(.hg-hero__copy, .ht-hero__copy) p.ik-hero__sub { max-width: 600px; text-align: left; }
html body.ik:not(#_) nav.hg-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 14px; color: #6e6e74; }
html body.ik:not(#_) .hg-crumb a { color: var(--cf-on-ink-2); text-decoration: none; }
@media (hover: hover) { html body.ik:not(#_) .hg-crumb a:hover { color: var(--cf-lime); } }
html body.ik:not(#_) .hg-crumb a:focus-visible { outline: 2px solid var(--cf-lime); outline-offset: 2px; }

/* ==================== Guide ==================== */

/* Hero: crumb, label, H1, the answer and the date on the left; "On this page" beside it. */
html body.ik:not(#_) .hg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-bottom: var(--ik-y); }
html body.ik:not(#_) p.hg-lead strong { font-weight: 500; color: var(--cf-on-ink); }
html body.ik:not(#_) p.hg-lead a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html body.ik:not(#_) p.hg-date { margin-top: 18px; font-size: 14px; color: var(--cf-on-ink-2); }
html body.ik:not(#_) .hg-toc { justify-self: end; width: min(420px, 100%); padding: 22px 22px 14px; border-radius: 28px; background: #fff; color: var(--cf-text); }
html body.ik:not(#_) p.hg-toc__h { font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
html body.ik:not(#_) .hg-toc ol { margin-top: 8px; }
html body.ik:not(#_) .hg-toc li + li { border-top: 1px solid var(--cf-line); }
html body.ik:not(#_) .hg-toc a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--cf-text); text-decoration: none; }
html body.ik:not(#_) .hg-toc a .hg-toc__n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cf-mist); font-size: 12px; font-weight: 600; color: var(--cf-text-2); transition: background-color .15s var(--ease), color .15s var(--ease); }
@media (hover: hover) { html body.ik:not(#_) .hg-toc a:hover .hg-toc__n { background: var(--cf-lime); color: var(--cf-ink); } }
html body.ik:not(#_) .hg-toc a:focus-visible { outline: 2px solid var(--cf-ink); outline-offset: 2px; border-radius: 8px; }

/* Body: the guide in one column, the topic's guides beside it. */
html body.ik:not(#_) .hg-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(260px, 300px); justify-content: space-between; gap: 64px; align-items: start; }
html body.ik:not(#_) .hg-article { min-width: 0; color: var(--cf-text); }
html body.ik:not(#_) section.hg-sec { margin: 0; padding: 0; scroll-margin-top: 100px; }
html body.ik:not(#_) section.hg-sec + section.hg-sec { margin-top: 48px; }
html body.ik:not(#_):not(#_) [role="main"] h2.hg-h2 { font-size: clamp(26px, 2.3vw, 32px) !important; font-weight: 500 !important; line-height: 1.15; letter-spacing: -.03em; color: var(--cf-text); text-align: left; }
html body.ik:not(#_) .hg-article p { margin-top: 12px; font-size: 17px; line-height: 1.65; color: var(--cf-text-2); }
html body.ik:not(#_) .hg-article strong { font-weight: 600; color: var(--cf-text); }
html body.ik:not(#_) .hg-article :is(p, li, td) a { color: var(--cf-text); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { html body.ik:not(#_) .hg-article :is(p, li, td) a:hover { text-decoration-thickness: 2px; } }

/* Numbered steps: one white row per step, the number in lime. */
html body.ik:not(#_) ol.hg-steps { margin-top: 18px; }
html body.ik:not(#_) .hg-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
html body.ik:not(#_) .hg-steps li + li { margin-top: 8px; }
html body.ik:not(#_) .hg-steps li > div { min-width: 0; }
.hg-steps__n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cf-lime); font-size: 14px; font-weight: 600; color: var(--cf-ink); }
html body.ik:not(#_):not(#_) [role="main"] .hg-steps h3 { margin-top: 3px; font-size: 17px !important; font-weight: 500 !important; line-height: 1.35; letter-spacing: -.01em; color: var(--cf-text); text-align: left; }
html body.ik:not(#_) .hg-article .hg-steps p { margin-top: 6px; font-size: 16px; line-height: 1.6; }

/* Plain list rows (tips, options, errors, what CreatorFlow does not do): a dot, the bold title, then its line. Not cards. */
html body.ik:not(#_) ul.hg-items { margin-top: 14px; }
html body.ik:not(#_) .hg-items li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
html body.ik:not(#_) .hg-items li + li { border-top: 1px solid var(--cf-line); }
html body.ik:not(#_) .hg-items li > div { min-width: 0; }
.hg-items__ico { flex: none; width: 8px; height: 8px; margin: 10px 4px 0 2px; border-radius: 50%; background: var(--cf-ink); }
html body.ik:not(#_) .hg-items b { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--cf-text); }
html body.ik:not(#_) .hg-article .hg-items p { margin-top: 2px; font-size: 16px; line-height: 1.6; }
/* A checklist the guide file writes as paragraphs: the same rows, one line each, no title. */
html body.ik:not(#_) .hg-items--plain li { padding: 9px 0; }
html body.ik:not(#_) .hg-article .hg-items--plain p { margin-top: 0; font-size: 17px; color: var(--cf-text); }
/* "Still need help?" closes its section, quieter than the steps above it. */
html body.ik:not(#_) .hg-article p.hg-help { margin-top: 16px; font-size: 15px; color: var(--cf-text-3); }
/* Hyphenated words in headings and link titles stay on one line. */
.hg-nb { white-space: nowrap; }

/* A note that matters: a white box with a thin line, its title in bold. */
html body.ik:not(#_) aside.hg-callout { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--cf-line); border-left: 3px solid var(--cf-ink); border-radius: 14px; background: #fff; }
html body.ik:not(#_) .hg-callout b { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--cf-text); }
html body.ik:not(#_) .hg-article .hg-callout p { margin-top: 4px; font-size: 16px; line-height: 1.6; }

html body.ik:not(#_) .hg-table { margin-top: 18px; overflow-x: auto; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
html body.ik:not(#_) .hg-table table { width: 100%; border-collapse: collapse; }
html body.ik:not(#_) .hg-table :is(th, td) { padding: 13px 16px; font-size: 15px; line-height: 1.45; color: var(--cf-text); text-align: left; vertical-align: top; }
html body.ik:not(#_) .hg-table th { font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
html body.ik:not(#_) .hg-table tbody td { border-top: 1px solid var(--cf-line); }
html body.ik:not(#_) .hg-table td:first-child { font-weight: 500; }
html body.ik:not(#_) figure.hg-shot { margin: 20px 0 0; overflow: hidden; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
html body.ik:not(#_) .hg-shot img { display: block; width: 100%; height: auto; }
html body.ik:not(#_) .hg-shot figcaption { padding: 10px 16px; font-size: 14px; color: var(--cf-text-3); }

html body.ik:not(#_) .hg-article .ik-faq { margin-top: 16px; }
html body.ik:not(#_) .hg-article .ik-faq p { margin-top: 0; }

/* After the guide: previous and next, related guides as one line, then the small print. */
html body.ik:not(#_) nav.hg-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
html body.ik:not(#_) a.hg-pn__a { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 20px; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; color: var(--cf-text); text-decoration: none; transition: border-color .2s var(--ease); }
html body.ik:not(#_) a.hg-pn__a.is-next { align-items: flex-end; text-align: right; }
.hg-pn__a span { font-size: 13px; color: var(--cf-text-3); }
.hg-pn__a b { font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
@media (hover: hover) { html body.ik:not(#_) a.hg-pn__a:hover { border-color: var(--cf-ink); } }
html body.ik:not(#_) a.hg-pn__a:focus-visible { outline: 2px solid var(--cf-ink); outline-offset: 2px; }
html body.ik:not(#_) .hg-article p.hg-also { margin-top: 24px; font-size: 16px; line-height: 1.6; }
html body.ik:not(#_) .hg-article p.hg-also a { white-space: normal; }
html body.ik:not(#_) .hg-article :is(p.hg-note, p.hg-sum) { margin-top: 20px; font-size: 14px; line-height: 1.55; color: var(--cf-text-3); }
html body.ik:not(#_) .hg-article p.hg-sum { margin-top: 8px; }
html body.ik:not(#_) .hg-article p.hg-sum a { color: var(--cf-text-2); }

/* The topic's guides beside the guide, sticky on desktop. */
html body.ik:not(#_) .hg-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 20px 14px 14px; border: 1px solid var(--cf-line); border-radius: 24px; background: #fff; color: var(--cf-text); }
html body.ik:not(#_) p.hg-side__h { padding: 0 8px 6px; }
html body.ik:not(#_) .hg-side p.hg-side__h a { font-size: 15px; font-weight: 600; color: var(--cf-text); text-decoration: none; }
@media (hover: hover) { html body.ik:not(#_) .hg-side p.hg-side__h a:hover { text-decoration: underline; text-underline-offset: 3px; } }
html body.ik:not(#_) p.hg-side__part { margin: 16px 0 4px; padding: 12px 8px 0; border-top: 1px solid var(--cf-line); font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
html body.ik:not(#_) .hg-side :is(ol, ul) a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--cf-text-2); text-decoration: none; }
html body.ik:not(#_) .hg-side ul a span { flex: none; font-size: 13px; color: var(--cf-text-3); }
/* Guide titles are plain text with no-wrap spans inside, so the link is a block, not a flex row that splits them. */
html body.ik:not(#_) .hg-side ol a { display: block; }
html body.ik:not(#_) .hg-side li.is-on a { background: var(--cf-mist); font-weight: 500; color: var(--cf-text); }
@media (hover: hover) { html body.ik:not(#_) .hg-side li:not(.is-on) a:hover { background: var(--cf-mist); color: var(--cf-text); } }
html body.ik:not(#_) a.hg-side__all { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--cf-mist); font-size: 14px; font-weight: 600; color: var(--cf-text); text-decoration: none; transition: background-color .2s var(--ease); }
@media (hover: hover) { html body.ik:not(#_) a.hg-side__all:hover { background: var(--cf-lime); } }
html body.ik:not(#_) .hg-side a:focus-visible { outline: 2px solid var(--cf-ink); outline-offset: -2px; }

/* ==================== Topic page ==================== */
html body.ik:not(#_) .ht-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-bottom: var(--ik-y); }
html body.ik:not(#_) a.ht-back { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 15px; font-weight: 500; color: var(--cf-on-ink); text-decoration: underline; text-underline-offset: 4px; }
html body.ik:not(#_) a.ht-back svg { transition: transform .2s var(--ease); }
@media (hover: hover) { html body.ik:not(#_) a.ht-back:hover svg { transform: translateX(3px); } }
html body.ik:not(#_) a.ht-back:focus-visible { outline: 2px solid var(--cf-lime); outline-offset: 4px; }
html body.ik:not(#_) ol.ht-list { justify-self: end; width: 100%; max-width: 600px; padding: 8px; border-radius: 28px; background: #fff; color: var(--cf-text); }
html body.ik:not(#_) .ht-list li + li { border-top: 1px solid #f0f0f2; }
html body.ik:not(#_) .ht-list a { display: flex; align-items: center; gap: 16px; padding: 15px 12px 15px 18px; border-radius: 20px; color: var(--cf-text); text-decoration: none; transition: background-color .2s var(--ease); }
html body.ik:not(#_) .ht-list a > span:first-child { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
html body.ik:not(#_) .ht-list b { font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
html body.ik:not(#_) .ht-list i { font-size: 14px; font-style: normal; line-height: 1.45; color: var(--cf-text-2); }
html body.ik:not(#_) .ht-list__m { flex: none; font-size: 13px; color: var(--cf-text-3); white-space: nowrap; }
@media (hover: hover) {
  html body.ik:not(#_) .ht-list a:hover { background: var(--cf-mist); }
  html body.ik:not(#_) .ht-list a:hover .hp-go { border-color: var(--cf-lime); background: var(--cf-lime); }
}
html body.ik:not(#_) .ht-list a:focus-visible { outline: 2px solid var(--cf-ink); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes htUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  html body.ik:not(#_) :is(.ht-list, .hg-toc) { animation: htUp .9s var(--ease-out) .25s both; }
}

/* ==================== Tablets and phones ==================== */
@media (max-width: 1099px) {
  html body.ik:not(#_) :is(.hg-hero__grid, .ht-hero__grid) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  html body.ik:not(#_) :is(.hg-toc, .ht-list) { justify-self: start; max-width: 720px; }
  html body.ik:not(#_) .hg-toc { width: 100%; }
  /* Long answers read left-aligned on every screen, unlike the homepage hero. */
  html body.ik:not(#_):not(#_) :is(.hg-hero__copy, .ht-hero__copy) :is(h1.ik-h1, p.ik-hero__sub) { text-align: left; }
  html body.ik:not(#_) .hg-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  html body.ik:not(#_) .hg-side { position: static; max-height: none; max-width: 720px; }
}
@media (max-width: 767px) {
  html body.ik:not(#_) .hg-hero__grid, html body.ik:not(#_) .ht-hero__grid { gap: 24px; }
  html body.ik:not(#_) .hg-toc { padding: 18px 16px 10px; border-radius: 22px; }
  html body.ik:not(#_) .hg-article p, html body.ik:not(#_) .hg-items b { font-size: 16px; }
  html body.ik:not(#_) section.hg-sec + section.hg-sec { margin-top: 40px; }
  /* The number sits beside the step title; the step text uses the full width of the box. */
  html body.ik:not(#_) .hg-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 0 12px; padding: 14px 16px; }
  html body.ik:not(#_) .hg-steps li > div { display: contents; }
  html body.ik:not(#_) .hg-article .hg-steps p { grid-column: 1 / -1; }
  html body.ik:not(#_) .hg-article .hg-steps p, html body.ik:not(#_) .hg-article .hg-items p, html body.ik:not(#_) .hg-article .hg-callout p { font-size: 15.5px; }
  /* Tables become one block per row: the first cell as its title, each other cell with its column name. */
  html body.ik:not(#_) .hg-table thead { display: none; }
  html body.ik:not(#_) .hg-table :is(table, tbody, tr, td) { display: block; }
  html body.ik:not(#_) .hg-table tr { padding: 12px 16px; }
  html body.ik:not(#_) .hg-table tbody tr + tr { border-top: 1px solid var(--cf-line); }
  html body.ik:not(#_) .hg-table tbody td { padding: 3px 0; border-top: 0; }
  html body.ik:not(#_) .hg-table td:first-child { padding-bottom: 6px; }
  /* Column name left, value beside it, both left-aligned, so a long value wraps under itself and not ragged on the left. */
  html body.ik:not(#_) .hg-table td[data-th]:not(:first-child) { display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); gap: 12px; text-align: left; }
  html body.ik:not(#_) .hg-table td[data-th]:not(:first-child)::before { content: attr(data-th); color: var(--cf-text-3); }
  html body.ik:not(#_) nav.hg-pn { grid-template-columns: minmax(0, 1fr); }
  html body.ik:not(#_) a.hg-pn__a.is-next { align-items: flex-start; text-align: left; }
  html body.ik:not(#_) ol.ht-list { padding: 6px; border-radius: 24px; }
  html body.ik:not(#_) .ht-list a { gap: 12px; padding: 14px 8px 14px 14px; border-radius: 18px; }
  html body.ik:not(#_) .ht-list b { font-size: 16px; }
  html body.ik:not(#_) .ht-list__m { display: none; }
}
