/* "Nasıl kullanılır" — the training page (templates/help.html, 23 Oct 2026).
   Colours only from the palette's --ds-* tokens (palettes.css, tokens.css): the page is right in all
   ten palettes, light and dark. Checked by scripts/css_colour_audit.py (tests/test_help_page_2026_10_23.py). */

/* ── tones: one per tool, from the palette ──────────────────────────────── */
.hg-tone-accent { --hg-tone: var(--ds-accent); --hg-tone-ink: var(--ds-accent-ink); --hg-tone-rgb: var(--ds-accent-rgb); }
.hg-tone-secondary { --hg-tone: var(--ds-secondary); --hg-tone-ink: var(--ds-secondary-ink); --hg-tone-rgb: var(--ds-secondary-rgb); }
.hg-tone-ok { --hg-tone: var(--ds-ok); --hg-tone-ink: var(--ds-ok-ink); --hg-tone-rgb: var(--ds-ok-rgb); }
.hg-tone-warn { --hg-tone: var(--ds-warn); --hg-tone-ink: var(--ds-warn-ink); --hg-tone-rgb: var(--ds-warn-rgb); }
.hg-tone-danger { --hg-tone: var(--ds-danger); --hg-tone-ink: var(--ds-danger-ink); --hg-tone-rgb: var(--ds-danger-rgb); }
.hg-kind-tahmin { --hg-k: var(--ds-accent); --hg-k-rgb: var(--ds-accent-rgb); }
.hg-kind-onay { --hg-k: var(--ds-ok); --hg-k-rgb: var(--ds-ok-rgb); }
.hg-kind-tavan { --hg-k: var(--ds-warn); --hg-k-rgb: var(--ds-warn-rgb); }

/* ── page ───────────────────────────────────────────────────────────────── */
/* Every rule below is under .hg-page: the guide also lives inside the panel (26 Oct 2026, .hg-embed),
   where nothing here may reach the app. */
.hg-page, .hg-page *, .hg-page *::before, .hg-page *::after { box-sizing: border-box; }
.hg-page { -webkit-text-size-adjust: 100%; }
/* No smooth scrolling: on a page this long it was cut short (a jump to #edit stopped mid-way). */
body.hg-page { margin: 0; min-height: 100vh; }
.hg-page {
    background: var(--ds-bg);
    color: var(--ds-ink);
    font: 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.hg-page h1, .hg-page h2, .hg-page h3, .hg-page h4 { font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif; color: var(--ds-ink); }
.hg-page img { display: block; max-width: 100%; }
/* zero specificity: a link styled as a button keeps its own text colour (accent-ink on accent) */
:where(.hg-page) a { color: inherit; }
.hg-page :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; border-radius: 6px; }
.hg-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .hg-wrap { padding: 0 28px; } }
.hg-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hg-skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ds-accent); color: var(--ds-accent-ink); font-weight: 700; text-decoration: none; }
.hg-skip:focus { left: 16px; }
.hg-page[hidden], .hg-page [hidden] { display: none !important; }

/* ── top bar ────────────────────────────────────────────────────────────── */
.hg-top {
    position: sticky; top: 0; z-index: 30;
    background: rgba(var(--ds-bg-rgb), 0.86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--ds-line);
}
.hg-top-row { display: flex; align-items: center; gap: 14px; height: 60px; }
.hg-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; letter-spacing: -0.01em; text-decoration: none; color: var(--ds-ink); }
.hg-logo .ds-glyph { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ds-accent); color: var(--ds-accent-ink); font-size: 13px; font-weight: 800; }
.hg-logo .ds-dot { color: var(--ds-accent-text); }
.hg-top-title { color: var(--ds-muted); font-size: 14px; padding-left: 14px; border-left: 1px solid var(--ds-line); }
.hg-top-cta { margin-left: auto; }
@media (max-width: 560px) {
    .hg-top-title { display: none; }
    .hg-logo > span:last-child { display: none; }
}

/* ── buttons, chips, pills ──────────────────────────────────────────────── */
.hg-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; min-height: 42px;
    border: 1px solid var(--ds-line-strong); border-radius: var(--radius-btn, 10px);
    background: var(--ds-surface); color: var(--ds-ink);
    font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hg-btn:hover { border-color: var(--ds-accent); transform: translateY(-1px); }
.hg-btn-primary { background: var(--ds-accent); border-color: var(--ds-accent); color: var(--ds-accent-ink); }
/* hover keeps the accent ground: accent-ink on accent-hover is under 4.5 in one light palette */
.hg-btn-primary:hover { background: var(--ds-accent); color: var(--ds-accent-ink); box-shadow: 0 0 0 3px var(--ds-accent-soft); }
.hg-top-cta { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.hg-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
    color: var(--ds-accent-text); font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
}
.hg-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hg-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--ds-accent-soft); color: var(--ds-ink); font: 600 11px/1.6 "Inter", system-ui, sans-serif; vertical-align: middle; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hg-hero {
    position: relative; overflow: hidden;
    padding: 44px 0 56px;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(var(--ds-accent-rgb), 0.16), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(var(--ds-secondary-rgb), 0.12), transparent 70%);
    border-bottom: 1px solid var(--ds-line);
}
.hg-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hg-hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } .hg-hero { padding: 72px 0 80px; } }
.hg-hero h1 { margin: 0 0 18px; font-size: clamp(36px, 6.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.hg-lead { margin: 0 0 22px; max-width: 34em; color: var(--ds-ink-2); font-size: clamp(16px, 2vw, 19px); }
.hg-lead-sm { margin: -4px 0 26px; max-width: 46em; color: var(--ds-ink-2); }
.hg-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.hg-chip-row li { padding: 5px 12px; border: 1px solid var(--ds-line-strong); border-radius: 999px; background: rgba(var(--ds-surface-rgb), 0.7); color: var(--ds-ink-2); font-size: 13px; font-weight: 550; }
.hg-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* three columns, each picture at its own shape (nothing cropped); the middle column sits lower */
.hg-collage { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.hg-collage-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hg-collage-col:nth-child(2) { margin-top: 36px; }
@media (min-width: 560px) { .hg-collage, .hg-collage-col { gap: 12px; } .hg-collage-col:nth-child(2) { margin-top: 56px; } }
.hg-collage-cell { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--ds-shadow-md); background: var(--ds-surface-2); }
.hg-collage-cell .hg-media { border-radius: 0; }
.hg-float {
    position: absolute; z-index: 2;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 12px; border-radius: 12px;
    background: var(--ds-surface); border: 1px solid var(--ds-line-strong); box-shadow: var(--ds-shadow-lg);
    color: var(--ds-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.hg-float i { color: var(--ds-accent-text); }
.hg-float-1 { left: 4%; bottom: -16px; }
.hg-float-2 { right: 2%; top: -14px; }
@media (max-width: 420px) { .hg-float-2 { display: none; } }

/* ── layout: sticky nav + content ───────────────────────────────────────── */
.hg-layout { display: block; }
.hg-side {
    position: sticky; top: 60px; z-index: 20;
    margin: 0 -16px; padding: 10px 16px 8px;
    background: rgba(var(--ds-bg-rgb), 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ds-line);
}
.hg-search { position: relative; display: block; }
.hg-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ds-muted); font-size: 14px; pointer-events: none; }
.hg-search input {
    width: 100%; height: 42px; padding: 0 12px 0 38px;
    border: 1px solid var(--ds-line-strong); border-radius: 12px;
    background: var(--ds-surface); color: var(--ds-ink); font: inherit; font-size: 15px;
}
.hg-search input::placeholder { color: var(--ds-muted); }
.hg-search input:focus { outline: none; border-color: var(--ds-accent); box-shadow: 0 0 0 3px var(--ds-accent-soft); }
.hg-search-status { min-height: 0; margin: 6px 2px 0; color: var(--ds-muted); font-size: 13px; }
.hg-search-status:empty { display: none; }
.hg-toc ol { display: flex; gap: 6px; margin: 8px 0 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.hg-toc ol::-webkit-scrollbar { display: none; }
.hg-toc a {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 11px; border-radius: 999px; border: 1px solid var(--ds-line);
    color: var(--ds-ink-2); font-size: 13.5px; font-weight: 550; text-decoration: none; white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hg-toc a i { width: 16px; text-align: center; color: var(--ds-muted); font-size: 12px; }
.hg-toc a:hover { color: var(--ds-ink); border-color: var(--ds-line-strong); }
.hg-toc a.is-active { background: var(--ds-accent); border-color: var(--ds-accent); color: var(--ds-accent-ink); }
.hg-toc a.is-active i { color: var(--ds-accent-ink); }
@media (min-width: 720px) { .hg-side { margin: 0 -28px; padding: 10px 28px 8px; } }
@media (min-width: 1080px) {
    .hg-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 52px; }
    .hg-side { top: 84px; align-self: start; margin: 32px 0 0; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .hg-side-inner { max-height: calc(100vh - 110px); overflow-y: auto; padding: 2px 4px 24px 2px; }
    .hg-toc ol { display: block; margin-top: 16px; overflow: visible; }
    .hg-toc li { margin-bottom: 2px; }
    .hg-toc a { border: 0; border-radius: 10px; padding: 7px 10px; white-space: normal; }
    .hg-toc .hg-toc-sub a { padding-left: 14px; font-size: 13.5px; }
    .hg-toc a:hover { background: var(--ds-surface); }
}

.hg-main { min-width: 0; outline: none; }
.hg-empty { margin: 32px 0; padding: 20px; border: 1px dashed var(--ds-line-strong); border-radius: 14px; color: var(--ds-ink-2); text-align: center; }

/* ── sections ───────────────────────────────────────────────────────────── */
.hg-section { padding: 52px 0; border-top: 1px solid var(--ds-line); scroll-margin-top: 172px; }
.hg-main > .hg-section:first-of-type { border-top: 0; }
@media (min-width: 1080px) { .hg-section { padding: 64px 0; scroll-margin-top: 80px; } }
.hg-section h2 { margin: 0 0 14px; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; }
.hg-h3 { margin: 38px 0 16px; font-size: 20px; letter-spacing: -0.01em; }
.hg-h3 small { margin-left: 8px; color: var(--ds-muted); font: 500 13px/1 "Inter", system-ui, sans-serif; }
.hg-note {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 20px 0 0; padding: 14px 16px;
    border: 1px solid var(--ds-line); border-radius: 14px; background: var(--ds-surface);
    color: var(--ds-ink-2); font-size: 14.5px;
}
.hg-note i { margin-top: 4px; color: var(--ds-accent-text); }

/* ── pictures and placeholders ──────────────────────────────────────────── */
.hg-media { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--ds-surface-2); }
.hg-r-land { aspect-ratio: 4 / 3; }
.hg-r-portrait { aspect-ratio: 3 / 4; }
.hg-r-square { aspect-ratio: 1 / 1; }
.hg-r-wide { aspect-ratio: 16 / 9; }
.hg-r-post { aspect-ratio: 4 / 5; }
.hg-r-tall { aspect-ratio: 9 / 16; }
.hg-r-fill { width: 100%; height: 100%; }
.hg-media img, .hg-media video { width: 100%; height: 100%; object-fit: cover; }
.hg-media video { display: block; background: var(--ds-bg); }
.hg-video-cap { margin: 8px 2px 0; color: var(--ds-ink-2); font-size: 13.5px; line-height: 1.45; }
.hg-ph {
    position: absolute; inset: 0;
    display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px;
    border: 1.5px dashed var(--ds-line-strong); border-radius: inherit;
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(var(--ds-ink-rgb), 0.025) 14px 28px),
        linear-gradient(160deg, rgba(var(--hg-tone-rgb, var(--ds-accent-rgb)), 0.10), transparent 70%);
    color: var(--ds-ink-2); text-align: center; font-size: 12.5px; font-weight: 550;
}
.hg-ph i { font-size: 22px; color: var(--hg-tone, var(--ds-accent)); opacity: .85; }
.hg-media-tag {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(var(--ds-media-glass-rgb), 0.66); color: var(--ds-on-media);
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.hg-media figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    display: grid; gap: 2px; padding: 22px 12px 10px;
    background: linear-gradient(to top, rgba(var(--ds-media-glass-rgb), 0.82), rgba(var(--ds-media-glass-rgb), 0));
    color: var(--ds-on-media); font-size: 12.5px; line-height: 1.4;
}
.hg-media figcaption { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hg-strip figcaption, .hg-collage figcaption, .hg-card-media figcaption, .hg-compare-layer figcaption,
.hg-inset figcaption, .hg-recipe-in figcaption, .hg-mosaic figcaption, .hg-social-in figcaption { display: none; }

/* girdi → sonuç recipes */
.hg-recipe { display: grid; gap: 12px; align-items: center; }
.hg-recipe + .hg-recipe { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--ds-line-strong); }
.hg-recipe-in { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hg-recipe-in .hg-media { width: 104px; flex: none; }
.hg-recipe-out { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hg-recipe-out.hg-n-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.hg-recipe-brief { grid-column: 1 / -1; display: flex; gap: 10px; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ds-surface); border: 1px solid var(--ds-line); color: var(--ds-ink-2); font-size: 14px; line-height: 1.5; }
.hg-recipe-brief i { margin-top: 4px; color: var(--hg-tone, var(--ds-accent)); }
.hg-recipe-brief strong { margin-right: 6px; color: var(--ds-ink); }
.hg-strip + .hg-recipe-brief { margin-top: 12px; }
@media (min-width: 820px) {
    .hg-recipe { grid-template-columns: auto auto minmax(0, 1fr); gap: 18px; }
    .hg-recipe > .hg-recipe-out:first-child { grid-column: 1 / -1; }
    .hg-recipe-in { flex-direction: column; flex-wrap: nowrap; }
    .hg-recipe-in .hg-media { width: 150px; }
    .hg-recipe-out.hg-n-3 { grid-template-columns: repeat(3, 1fr); }
    .hg-recipe-out.hg-n-4 { grid-template-columns: repeat(4, 1fr); }
    .hg-recipe .hg-flow-arrow i { transform: none; }
}

/* a result with the picture it came from */
.hg-pairs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 720px) { .hg-pairs { grid-template-columns: repeat(3, 1fr); gap: 16px; } .hg-pairs-4 { grid-template-columns: repeat(4, 1fr); } }
.hg-pairs + .hg-recipe-brief { margin-top: 12px; }
.hg-pair, .hg-scene-media { position: relative; }
.hg-inset { position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 32%; max-width: 120px; border: 2px solid var(--ds-surface); border-radius: 12px; overflow: hidden; box-shadow: var(--ds-shadow-md); }
.hg-inset .hg-media { border-radius: 0; }
.hg-inset > span { position: absolute; z-index: 2; top: 4px; left: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(var(--ds-media-glass-rgb), 0.7); color: var(--ds-on-media); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hg-scene-media .hg-inset { bottom: auto; top: 10px; }

/* films, mosaic, social frames */
.hg-films-lead { margin-bottom: 14px; }
@media (min-width: 720px) { .hg-films-lead { grid-template-columns: repeat(2, 1fr) !important; } }
.hg-films-more { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)) !important; }
.hg-films { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); align-items: start; }
.hg-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.hg-mosaic .hg-media { border-radius: 8px; }
.hg-social-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.hg-social-in .hg-mini-h { margin: 0 6px 0 0 !important; }
.hg-social-in .hg-media { width: 56px; border-radius: 10px; }
.hg-social-grid { columns: 3 160px; column-gap: 10px; }
.hg-social-grid .hg-media { break-inside: avoid; margin-bottom: 10px; }
.hg-formats-legend { margin: 0 0 12px !important; }

/* screenshot frames */
.hg-ui-grid { display: grid; gap: 16px; margin-top: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.hg-ui { margin: 0; overflow: hidden; border: 1px solid var(--ds-line); border-radius: 14px; background: var(--ds-surface); box-shadow: var(--ds-shadow-sm); }
.hg-ui-chrome { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--ds-line); background: var(--ds-surface-2); }
.hg-ui-chrome span { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-line-strong); }
.hg-ui-chrome em { margin-left: 8px; color: var(--ds-ink-2); font-size: 11px; font-style: normal; }
.hg-ui-body { position: relative; aspect-ratio: 16 / 10; background: var(--ds-bg); }
.hg-ui-body img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hg-ui-body .hg-ph { border-radius: 0; border: 0; }
.hg-ui figcaption { padding: 10px 12px; color: var(--ds-ink-2); font-size: 13px; line-height: 1.45; border-top: 1px solid var(--ds-line); }

/* ── 3 steps + concepts ─────────────────────────────────────────────────── */
.hg-steps { display: grid; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.hg-step { position: relative; padding: 22px 18px 18px; border: 1px solid var(--ds-line); border-radius: 18px; background: var(--ds-surface); }
.hg-step-n {
    display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
    border-radius: 12px; background: var(--ds-accent); color: var(--ds-accent-ink);
    font: 700 18px/1 "Space Grotesk", system-ui, sans-serif;
}
.hg-step h3 { margin: 0 0 6px; font-size: 19px; }
.hg-step p { margin: 0 0 16px; color: var(--ds-ink-2); font-size: 15px; }
.hg-step .hg-ui { box-shadow: none; }
.hg-concepts { display: grid; gap: 10px; margin-top: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.hg-concept { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--ds-line); border-radius: 14px; }
.hg-concept i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ds-accent-soft); color: var(--ds-accent-text); }
.hg-concept strong { display: block; font-size: 15px; }
.hg-concept span { display: block; color: var(--ds-ink-2); font-size: 13.5px; line-height: 1.45; }

/* ── tool cards ─────────────────────────────────────────────────────────── */
.hg-cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.hg-card-link {
    display: flex; flex-direction: column; height: 100%;
    overflow: hidden; border: 1px solid var(--ds-line); border-radius: 18px; background: var(--ds-surface);
    text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hg-card-link:hover { transform: translateY(-3px); border-color: var(--hg-tone); box-shadow: var(--ds-shadow-md); }
.hg-card-media .hg-media { border-radius: 0; }
.hg-card-body { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 30px 16px 16px; }
.hg-card-icon {
    position: absolute; top: -22px; left: 16px;
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 13px; border: 3px solid var(--ds-surface);
    background: var(--hg-tone); color: var(--hg-tone-ink); font-size: 17px;
}
.hg-card-body h3 { margin: 0; font-size: 18px; }
.hg-card-body p { margin: 0 0 6px; color: var(--ds-ink-2); font-size: 14px; line-height: 1.5; }
.hg-kind {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto;
    padding: 3px 10px; border-radius: 999px;
    background: rgba(var(--hg-k-rgb), 0.14); color: var(--ds-ink); font-size: 12px; font-weight: 650;
}
.hg-kind i { color: var(--hg-k); }

/* ── a tool's section ───────────────────────────────────────────────────── */
.hg-tool-head { display: flex; gap: 16px; align-items: flex-start; }
.hg-tool-icon {
    flex: none; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 4px;
    border-radius: 16px; background: var(--hg-tone); color: var(--hg-tone-ink); font-size: 23px;
    box-shadow: 0 10px 30px -12px rgba(var(--hg-tone-rgb), 0.8);
}
@media (max-width: 520px) { .hg-tool-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 13px; } }
.hg-tool-head h2 { margin-bottom: 6px; }
.hg-tagline { margin: 0; color: var(--ds-ink-2); font-size: clamp(16px, 2vw, 18px); max-width: 40em; }
.hg-where { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 24px; padding: 11px 14px; border-radius: 12px; background: rgba(var(--hg-tone-rgb), 0.10); border: 1px solid rgba(var(--hg-tone-rgb), 0.28); font-size: 14.5px; }
.hg-where i { margin-top: 4px; color: var(--hg-tone); }

.hg-flow { display: grid; gap: 14px; align-items: center; }
.hg-flow-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--hg-tone); font-size: 20px; }
.hg-flow-arrow i { transform: rotate(90deg); }
.hg-flow-arrow em { color: var(--ds-muted); font-size: 12px; font-style: normal; font-weight: 600; }
.hg-flow-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hg-flow > .hg-media { max-width: 260px; width: 100%; justify-self: center; }
@media (min-width: 720px) {
    .hg-flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 2fr); gap: 18px; }
    .hg-flow > .hg-media { max-width: none; }
    .hg-flow-arrow i { transform: none; }
}
.hg-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: 16px; background: var(--ds-surface); border: 1px solid var(--ds-line); align-items: start; }
@media (min-width: 900px) {
    .hg-strip { grid-template-columns: repeat(6, 1fr); }
    .hg-strip-3 { grid-template-columns: repeat(3, 1fr); }
    .hg-strip-4 { grid-template-columns: repeat(4, 1fr); }
    .hg-strip-5 { grid-template-columns: repeat(5, 1fr); }
}
.hg-strip-frame.is-input .hg-media { outline: 2px dashed var(--ds-line-strong); outline-offset: -2px; }
.hg-strip-frame { position: relative; }
.hg-strip-frame .hg-media { border-radius: 8px; }
.hg-strip-frame:not(.is-input) .hg-media-tag { display: none; }
.hg-strip-n { position: absolute; z-index: 3; top: 6px; left: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(var(--ds-media-glass-rgb), 0.7); color: var(--ds-on-media); font: 700 10.5px/1.5 "Inter", system-ui, sans-serif; }
.hg-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (min-width: 720px) { .hg-gallery { grid-template-columns: repeat(3, 1fr); } .hg-gallery-1 { grid-template-columns: minmax(0, 420px); } .hg-gallery-2 { grid-template-columns: repeat(2, 1fr); } }

/* compare slider */
.hg-compare { margin: 0; }
.hg-compare + .hg-compare, .hg-flow + .hg-compare, .hg-gallery + .hg-compare, .hg-strip + .hg-compare { margin-top: 18px; }
.hg-compare-stage { --pos: 50%; position: relative; overflow: hidden; border-radius: 18px; background: var(--ds-surface-2); border: 1px solid var(--ds-line); touch-action: pan-y; }
.hg-compare-portrait, .hg-compare-tall, .hg-compare-post { max-width: 460px; }
.hg-compare-square { max-width: 560px; }
.hg-compare-row { display: grid; gap: 16px; align-items: start; }
.hg-compare-row.is-many { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.hg-compare-row.is-many .hg-compare { max-width: none; }
.hg-compare-input { max-width: 240px; }
@media (min-width: 820px) { .hg-compare-row.has-input:not(.is-many) { grid-template-columns: minmax(160px, 240px) minmax(0, 560px); } }
.hg-compare-cap { margin: 8px 2px 0; color: var(--ds-ink-2); font-size: 13.5px; line-height: 1.45; }
.hg-compare-layer { position: absolute; inset: 0; }
.hg-compare-layer .hg-media { position: absolute; inset: 0; border-radius: 0; }
.hg-compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.hg-compare-after .hg-media-tag { left: auto; right: 10px; }
.hg-compare-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ds-on-media); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; }
.hg-compare-handle span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(var(--ds-media-glass-rgb), 0.72); border: 2px solid var(--ds-on-media); color: var(--ds-on-media);
}
.hg-compare-stage:focus-within .hg-compare-handle span { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
.hg-compare-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.hg-compare-hint { margin: 8px 2px 0; color: var(--ds-muted); font-size: 13px; }

/* in → out cards */
.hg-io { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 820px) { .hg-io { grid-template-columns: repeat(3, 1fr); } }
.hg-io-card { padding: 16px 18px; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.hg-io-card h3, .hg-panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.hg-io-card h3 i { color: var(--hg-tone); }
.hg-io-card p, .hg-io-card li { color: var(--ds-ink-2); font-size: 14.5px; }
.hg-io-card p { margin: 0; }
.hg-io-card ul, .hg-panel ul { margin: 0; padding-left: 18px; }
.hg-io-card li + li, .hg-panel li + li { margin-top: 5px; }

/* creative's scenes */
.hg-scenes { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hg-scenes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .hg-scenes { grid-template-columns: repeat(4, 1fr); } }
.hg-scene { overflow: hidden; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.hg-scene .hg-media { border-radius: 0; }
.hg-scene-body { padding: 14px 16px 16px; }
.hg-scene-body h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.hg-scene-body h4 i { color: var(--hg-tone); }
.hg-scene-body p { margin: 0; color: var(--ds-ink-2); font-size: 14px; }
.hg-scene-brief { margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed var(--ds-line-strong); color: var(--ds-ink) !important; font-style: italic; }

/* two panels, tags */
.hg-two { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 820px) { .hg-two { grid-template-columns: 1fr 1fr; } }
.hg-panel { padding: 18px; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.hg-panel > p { margin: 0 0 12px; color: var(--ds-ink-2); font-size: 14.5px; }
.hg-panel h3 i { color: var(--hg-tone); }
.hg-mini-h { margin: 12px 0 6px !important; color: var(--ds-muted) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hg-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; list-style: none; }
.hg-tags li { margin: 0 !important; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ds-line-strong); color: var(--ds-ink-2); font-size: 13px; }
.hg-tags-paid li { border-color: rgba(var(--ds-warn-rgb), 0.55); }
.hg-tips li::marker { content: "✓  "; color: var(--ds-ok); }
.hg-mistakes li::marker { content: "✕  "; color: var(--ds-danger); }
.hg-tips h3 i { color: var(--ds-ok); }
.hg-mistakes h3 i { color: var(--ds-danger); }
.hg-tips ul, .hg-mistakes ul { padding-left: 22px; color: var(--ds-ink-2); font-size: 14.5px; }
.hg-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; margin: 4px 0 14px; }
.hg-format span { display: block; margin-top: 6px; color: var(--ds-muted); font-size: 11.5px; font-weight: 600; text-align: center; }
.hg-format .hg-media-tag { display: none; }
.hg-format .hg-ph span { display: none; }

/* options */
.hg-options { display: grid; gap: 0 28px; margin: 0; }
@media (min-width: 760px) { .hg-options { grid-template-columns: 1fr 1fr; } }
.hg-options > div { padding: 12px 0; border-top: 1px solid var(--ds-line); }
.hg-options dt { font-weight: 650; font-size: 15px; }
.hg-options dd { margin: 2px 0 0; color: var(--ds-ink-2); font-size: 14.5px; }
.hg-options-tight { grid-template-columns: 1fr !important; }
.hg-options-tight > div { padding: 8px 0; }

/* examples */
.hg-examples { display: grid; gap: 14px; }
@media (min-width: 960px) { .hg-examples { grid-template-columns: repeat(3, 1fr); } }
.hg-example { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.hg-example h4 { margin: 0 0 10px; font-size: 16px; }
.hg-brief { margin: 0 0 10px; padding: 12px 14px; border-left: 3px solid var(--hg-tone); border-radius: 4px 12px 12px 4px; background: var(--ds-surface-2); }
.hg-brief p { margin: 0; font-size: 15px; line-height: 1.5; }
.hg-settings { margin: 0 0 12px; color: var(--ds-muted); font-size: 13px; }
.hg-settings i { margin-right: 4px; }
.hg-copy {
    align-self: flex-start; margin-top: auto;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 11px; border: 1px solid var(--ds-line-strong); border-radius: 9px;
    background: transparent; color: var(--ds-ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.hg-copy:hover { color: var(--ds-ink); border-color: var(--hg-tone); }
.hg-copy.is-done { border-color: var(--ds-ok); color: var(--ds-ink); }

/* price */
.hg-price {
    display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px;
    border: 1px solid rgba(var(--hg-k-rgb), 0.45); border-radius: 16px; background: rgba(var(--hg-k-rgb), 0.08);
}
.hg-price h3 { margin: 0 0 4px; font-size: 16px; }
.hg-price h3 span { color: var(--ds-ink-2); font-weight: 500; }
.hg-price p { margin: 0; color: var(--ds-ink-2); font-size: 14.5px; }
.hg-price-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(var(--hg-k-rgb), 0.18); color: var(--hg-k); }
.hg-price-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.hg-price-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--ds-line); border-top: 3px solid var(--hg-k); border-radius: 16px; background: var(--ds-surface); }
.hg-price-card h3 { margin: 4px 0 0; font-size: 17px; }
.hg-price-card p { margin: 0; color: var(--ds-ink-2); font-size: 14.5px; }
.hg-sample { align-self: flex-start; margin-top: auto; padding: 5px 10px; border: 1px dashed var(--ds-line-strong); border-radius: 8px; background: var(--ds-surface-2); color: var(--ds-ink); font: 600 12.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
.hg-checks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hg-checks li { position: relative; padding-left: 26px; color: var(--ds-ink-2); font-size: 15px; }
.hg-checks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ds-accent); }

/* agent */
.hg-journey { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.hg-journey li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.hg-journey li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--ds-line-strong); }
.hg-journey li:last-child::before { display: none; }
.hg-journey-dot { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ds-surface); border: 2px solid var(--hg-tone); color: var(--hg-tone); }
.hg-journey strong { display: block; margin-top: 2px; font-size: 16px; }
.hg-journey p { margin: 2px 0 0; color: var(--ds-ink-2); font-size: 14.5px; }
@media (min-width: 960px) {
    .hg-journey { grid-template-columns: repeat(5, 1fr); gap: 14px; }
    .hg-journey li { flex-direction: column; padding: 0; }
    .hg-journey li::before { left: 44px; right: -14px; top: 21px; bottom: auto; width: auto; height: 2px; }
}
.hg-decisions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.hg-decision { padding: 14px 16px; border: 1px solid var(--ds-line); border-left: 3px solid var(--ds-warn); border-radius: 12px; background: var(--ds-surface); }
.hg-decision strong { font-size: 15px; }
.hg-decision p { margin: 4px 0 0; color: var(--ds-ink-2); font-size: 14px; }

/* brands */
.hg-parts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.hg-part { padding: 16px; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.hg-part-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 11px; background: rgba(var(--hg-tone-rgb), 0.16); color: var(--hg-tone); }
.hg-part h4 { margin: 0 0 4px; font-size: 16px; }
.hg-part p { margin: 0; color: var(--ds-ink-2); font-size: 14px; }

/* packages: numbered timeline */
.hg-timeline { counter-reset: hgstep; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .hg-timeline { grid-template-columns: repeat(3, 1fr); } }
.hg-timeline li { counter-increment: hgstep; position: relative; padding: 16px 16px 16px 58px; border: 1px solid var(--ds-line); border-radius: 14px; background: var(--ds-surface); }
.hg-timeline li::before {
    content: counter(hgstep); position: absolute; left: 14px; top: 14px;
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    background: var(--hg-tone); color: var(--hg-tone-ink); font: 700 15px/1 "Space Grotesk", system-ui, sans-serif;
}
.hg-timeline strong { font-size: 15.5px; }
.hg-timeline p { margin: 3px 0 0; color: var(--ds-ink-2); font-size: 14px; }

/* tables */
.hg-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.hg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hg-table caption { caption-side: top; padding: 14px 16px 4px; color: var(--ds-muted); font-size: 13px; font-weight: 600; text-align: left; }
.hg-table th, .hg-table td { padding: 12px 16px; border-bottom: 1px solid var(--ds-line); text-align: left; vertical-align: top; }
.hg-table thead th { color: var(--ds-muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hg-table tbody tr:last-child > * { border-bottom: 0; }
.hg-table tbody th { font-weight: 600; color: var(--ds-ink); }
.hg-table td { color: var(--ds-ink-2); }
.hg-tool-chip {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 4px 11px; border-radius: 999px;
    border: 1px solid rgba(var(--hg-tone-rgb), 0.5); background: rgba(var(--hg-tone-rgb), 0.14);
    color: var(--ds-ink); font-size: 13px; font-weight: 650; text-decoration: none;
}
.hg-tool-chip i { color: var(--hg-tone); }
.hg-tool-chip:hover { background: rgba(var(--hg-tone-rgb), 0.24); }
@media (max-width: 640px) {
    .hg-picker thead { display: none; }
    .hg-picker tr { display: grid; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--ds-line); }
    .hg-picker tbody tr:last-child { border-bottom: 0; }
    .hg-picker th, .hg-picker td { display: block; padding: 0; border: 0; }
}
.hg-picker-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hg-chip {
    padding: 7px 14px; min-height: 36px; border-radius: 999px;
    border: 1px solid var(--ds-line-strong); background: var(--ds-surface); color: var(--ds-ink-2);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.hg-chip:hover { color: var(--ds-ink); border-color: var(--ds-accent); }
.hg-chip[aria-pressed="true"] { background: var(--ds-accent); border-color: var(--ds-accent); color: var(--ds-accent-ink); }

/* faq */
.hg-faq { border-top: 1px solid var(--ds-line); }
.hg-faq-item { border-bottom: 1px solid var(--ds-line); }
.hg-faq-item summary {
    position: relative; padding: 16px 40px 16px 0; cursor: pointer; list-style: none;
    font-weight: 650; font-size: 16px;
}
.hg-faq-item summary::-webkit-details-marker { display: none; }
.hg-faq-item summary::after {
    content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--ds-line-strong); color: var(--ds-ink-2); font-weight: 500; transition: transform .2s ease;
}
.hg-faq-item[open] summary::after { content: "−"; }
.hg-faq-item p { margin: 0 0 18px; max-width: 48em; color: var(--ds-ink-2); font-size: 15px; }

/* footer */
.hg-foot { border-top: 1px solid var(--ds-line); padding: 26px 0 40px; color: var(--ds-muted); font-size: 14px; }
.hg-foot-row { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.hg-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.hg-foot a { color: var(--ds-ink-2); text-decoration: none; }
.hg-foot a:hover { color: var(--ds-ink); }

@media (prefers-reduced-motion: reduce) {
    .hg-page *, .hg-page *::before, .hg-page *::after { transition: none !important; }
}

/* the TOC's active item keeps its ground on hover and focus (it was the surface: label lost) */
.hg-toc a.is-active, .hg-toc a.is-active:hover, .hg-toc a.is-active:focus-visible { background: var(--ds-accent); border-color: var(--ds-accent); color: var(--ds-accent-ink); }
.hg-toc a:focus-visible { color: var(--ds-ink); }

/* ── a tool's default view: three steps and one tip; the rest behind Ayrıntılar ── */
.hg-how { margin-top: 26px; }
.hg-how .hg-h3 { margin-top: 0; }
.hg-howto { counter-reset: hghow; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .hg-howto { grid-template-columns: repeat(3, 1fr); } }
.hg-howto li { counter-increment: hghow; position: relative; padding: 14px 16px 14px 54px; border: 1px solid var(--ds-line); border-radius: 14px; background: var(--ds-surface); color: var(--ds-ink); font-size: 15px; line-height: 1.5; }
.hg-howto li::before {
    content: counter(hghow); position: absolute; left: 14px; top: 13px;
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
    background: var(--hg-tone); color: var(--hg-tone-ink); font: 700 14px/1 "Space Grotesk", system-ui, sans-serif;
}
.hg-tip { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(var(--ds-ok-rgb), 0.10); border: 1px solid rgba(var(--ds-ok-rgb), 0.35); color: var(--ds-ink); font-size: 15px; }
.hg-tip i { margin-top: 4px; color: var(--ds-ok); }
.hg-more { margin-top: 22px; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-bg); }
.hg-more > summary {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
    padding: 14px 48px 14px 18px; position: relative; cursor: pointer; list-style: none; border-radius: 16px;
    color: var(--ds-ink); font-weight: 700; font-size: 16px;
}
.hg-more > summary::-webkit-details-marker { display: none; }
.hg-more > summary small { color: var(--ds-ink-2); font-weight: 500; font-size: 13.5px; }
.hg-more > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ds-line-strong); color: var(--ds-ink); font-weight: 500; }
.hg-more[open] > summary::after { content: "−"; }
.hg-more > summary:hover { background: var(--ds-surface); }
.hg-more-body { padding: 0 18px 20px; }
.hg-more-body > .hg-io:first-child { margin-top: 4px; }
@media (min-width: 820px) { .hg-more-body .hg-io { grid-template-columns: repeat(2, 1fr); } }

/* ── lightbox (help-page.js) ─────────────────────────────────────────────── */
.hg-zoomable { cursor: zoom-in; }
.hg-zoomable:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
html.hg-lb-open, html.hg-lb-open .main-content { overflow: hidden; }
.hg-lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(var(--ds-media-glass-rgb), 0.94); color: var(--ds-on-media); }
.hg-lb[hidden] { display: none !important; }
.hg-lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.hg-lb-count { margin-right: auto; font-size: 14px; font-weight: 600; }
.hg-lb-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(var(--ds-on-media-rgb), 0.4); background: rgba(var(--ds-media-glass-rgb), 0.6);
    color: var(--ds-on-media); font-size: 17px; cursor: pointer;
}
.hg-lb-btn:hover { border-color: var(--ds-on-media); }
.hg-lb-btn:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
.hg-lb-btn[disabled] { opacity: .35; cursor: default; }
.hg-lb-stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; }
/* the picture fills the row between the bar and the caption and is fitted inside it, any shape */
.hg-lb-stage img { position: absolute; top: 0; bottom: 0; left: 60px; right: 60px; width: calc(100% - 120px); height: 100%; object-fit: contain; }
.hg-lb-prev, .hg-lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.hg-lb-prev { left: 8px; }
.hg-lb-next { right: 8px; }
.hg-lb-cap { margin: 0; padding: 12px 16px 18px; max-width: 60em; justify-self: center; text-align: center; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 560px) { .hg-lb-stage img { left: 8px; right: 8px; width: calc(100% - 16px); } .hg-lb-prev, .hg-lb-next { top: auto; bottom: 8px; transform: none; z-index: 2; } }
.hg-lb-prev, .hg-lb-next { z-index: 2; }
.hg-lb-cap { max-height: 22vh; overflow-y: auto; }

/* ── Markalar: one brand's story — products → style and brief → the same look across products ── */
.hg-brand-story { display: grid; gap: 14px; }
@media (min-width: 980px) { .hg-brand-story { grid-template-columns: 1fr 1fr; } .hg-brand-result { grid-column: 1 / -1; } }
.hg-brand-step { padding: 18px; border: 1px solid var(--ds-line); border-radius: 16px; background: var(--ds-surface); }
.hg-brand-h { margin: 0 0 4px; font-size: 17px; }
.hg-brand-step > p { margin: 0 0 14px; color: var(--ds-ink-2); font-size: 14.5px; }
.hg-brand-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hg-brand-brief { margin: 0; padding: 14px 16px; border-left: 3px solid var(--hg-tone); border-radius: 4px 12px 12px 4px; background: var(--ds-surface-2); }
.hg-brand-brief span { display: block; margin-bottom: 4px; color: var(--ds-ink-2); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hg-brand-brief p { margin: 0; color: var(--ds-ink); font-size: 15.5px; line-height: 1.5; }
.hg-brand-looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 720px) { .hg-brand-looks { grid-template-columns: repeat(6, 1fr); } }
.hg-aside { margin-top: 26px; padding: 16px 18px; border: 1px dashed var(--ds-line-strong); border-radius: 16px; }
.hg-aside .hg-h3 { margin: 0 0 4px; font-size: 16px; }
.hg-aside p { margin: 0 0 12px; color: var(--ds-ink-2); font-size: 14.5px; }
.hg-aside-pics { display: flex; gap: 10px; align-items: flex-start; }
.hg-aside-pics .hg-media { width: 140px; }
.hg-brand-products figcaption, .hg-brand-looks figcaption, .hg-aside-pics figcaption { display: none; }

/* a section's other stories: no input of their own, shown apart */
.hg-extra { margin-top: 18px; }
.hg-extra-h { margin: 0 0 8px; color: var(--ds-ink-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hg-extra-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr)); gap: 8px; max-width: 760px; }
.hg-extra-row figcaption { display: none; }
.hg-brand-shot { margin-top: 12px; }
.hg-brand-shot .hg-ui figcaption { display: none; }
.hg-films-lead { align-items: start; }


/* ── no lone item on a last line (owner, 23 Oct): counts that divide, or a last row that stretches ── */
.hg-chip-row { display: grid; grid-template-columns: repeat(2, max-content); }
@media (min-width: 560px) { .hg-chip-row { grid-template-columns: repeat(3, max-content); } }
.hg-concepts { grid-template-columns: 1fr; }
@media (min-width: 700px) {
    .hg-concepts { grid-template-columns: repeat(6, 1fr); }
    .hg-concepts > * { grid-column: span 2; }
    .hg-concepts > :nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 1240px) {
    .hg-concepts { grid-template-columns: repeat(5, 1fr); }
    .hg-concepts > *, .hg-concepts > :nth-last-child(-n+2) { grid-column: auto; }
    .hg-concept { flex-direction: column; gap: 8px; }
}
.hg-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); }
.hg-options > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hg-ui-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) {
    .hg-ui-grid { grid-template-columns: repeat(2, 1fr); }
    .hg-ui-grid > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
    .hg-ui-grid > :only-child { max-width: 640px; }
}
@media (min-width: 1100px) {
    .hg-ui-n-3, .hg-ui-n-5 { grid-template-columns: repeat(6, 1fr); }
    .hg-ui-n-3 > *, .hg-ui-n-5 > * { grid-column: span 2 !important; }
    .hg-ui-n-5 > :nth-last-child(-n+2) { grid-column: span 3 !important; }
}
.hg-decisions { grid-template-columns: 1fr; }
@media (min-width: 700px) {
    .hg-decisions { grid-template-columns: repeat(6, 1fr); }
    .hg-decisions > * { grid-column: span 2; }
    .hg-decisions > :nth-last-child(-n+2) { grid-column: span 3; }
}
.hg-price-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .hg-price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .hg-price-grid { grid-template-columns: repeat(4, 1fr); } }
.hg-recipe-out.hg-n-3 { grid-template-columns: repeat(3, 1fr); }
.hg-pairs-3 { grid-template-columns: repeat(3, 1fr); }
.hg-pairs-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .hg-pairs-4 { grid-template-columns: repeat(4, 1fr); } }
.hg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hg-social-in { display: grid; grid-template-columns: repeat(4, 56px); }
.hg-social-in .hg-mini-h { grid-column: 1 / -1; }
.hg-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hg-tags li { text-align: center; }
.hg-picker-chips { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .hg-picker-chips { grid-template-columns: repeat(4, max-content); } }
.hg-strip-7, .hg-strip-8 { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 899px) { .hg-strip-5 { grid-template-columns: repeat(5, 1fr); } .hg-strip-4 { grid-template-columns: repeat(4, 1fr); } .hg-strip-6 { grid-template-columns: repeat(3, 1fr); } }
/* four step cards: one row on desktop, 2×2 in between, stacked on mobile; screenshots the same size */
.hg-steps { grid-template-columns: 1fr; }
.hg-step { display: flex; flex-direction: column; }
.hg-step .hg-ui { margin-top: auto; }
@media (min-width: 640px) { .hg-steps { grid-template-columns: repeat(2, 1fr); } }
.hg-step .hg-ui figcaption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2.9em + 20px); }

/* touch screens (25 Oct): no grey tap flash, no double-tap wait, and no zoom into the search */
@media (hover: none) and (pointer: coarse) {
    .hg-page { -webkit-tap-highlight-color: transparent; }
    .hg-page button, .hg-page a, .hg-page input, .hg-page select, .hg-page textarea { touch-action: manipulation; }
}

/* iOS Safari zooms into a focused field under 16px */
@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .hg-page input, .hg-page select, .hg-page textarea { font-size: 16px !important; }
    }
}

/* ── inside the panel (26 Oct 2026) ─────────────────────────────────────────
   The guide as a view of the main area (static/js/modes/help-mode.js). The scroller is the panel's
   .main-content, so the sticky search and contents stick to ITS top, not the window's; the public
   page's own top bar (60px) is not here. */
.hg-embed { background: transparent; min-height: 0; padding-bottom: 24px; }
.hg-embed .hg-wrap { padding: 0; }
.hg-embed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.hg-embed-title { display: flex; align-items: center; gap: 10px; margin: 0; font: 750 22px/1.2 "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; color: var(--ds-ink); }
.hg-embed-title i { color: var(--ds-accent-text); font-size: 18px; }
/* a sticky box sticks inside the scroller's padding: --hg-pad (set by help-page.js from the panel's own
   padding) lets the narrow bar reach the very top, so nothing scrolls past above it */
.hg-embed .hg-side { top: calc(-1 * var(--hg-pad, 0px)); margin: 0; padding: 10px 0 8px; }
.hg-embed .hg-section { scroll-margin-top: 130px; }
.hg-embed .hg-hero { padding-top: 8px; }
@media (min-width: 1080px) {
    .hg-embed .hg-side { top: 8px; margin: 24px 0 0; padding: 0; }
    .hg-embed .hg-side-inner { max-height: calc(100dvh - var(--header-height, 60px) - 56px); }
    .hg-embed .hg-section { scroll-margin-top: 16px; }
}
