/* Bandicam AI Studio Help Center
   Shared by the hub (/ai-studio/help/), category pages and article pages.
   Every rule is scoped under .aih so nothing leaks into the rest of the site. */

.aih {
  --aih-bg: #070a12;
  --aih-surface: #0d1320;
  --aih-surface-2: #121a2b;
  --aih-surface-3: #182236;
  --aih-border: #232d42;
  --aih-border-strong: #33405b;
  /* Softer than pure white: on a near-black background white text haloes and tires
     the eye. Lowest value here (--aih-copy) is still ~9:1 against the background. */
  --aih-ink: #e4e9f1;
  --aih-strong: #d3d9e4;
  --aih-copy: #a7b1c2;
  --aih-muted: #939eb2;
  --aih-measure: 72ch;   /* readable line length for running text */
  --aih-accent: #7aa2ff;
  --aih-accent-strong: #3b82f6;
  --aih-accent-soft: rgba(122, 162, 255, .12);
  --aih-green: #4dd4b3;
  --aih-amber: #f5b454;
  --aih-red: #ff7b86;
  --aih-radius: 12px;
  --aih-radius-sm: 8px;
  --aih-header-offset: 112px;
  box-sizing: border-box;
  font-weight: 400;
  --aih-label: #9aa6ba;
  color: var(--aih-copy);
  background: var(--aih-bg);
  font-size: 16px;
  line-height: 1.65;
  padding: 56px 0 96px;
  min-height: 70vh;
}
.aih *, .aih *::before, .aih *::after { box-sizing: border-box; }
.aih a { color: var(--aih-accent); text-decoration: none; }
.aih a:hover { color: #a9c2ff; text-decoration: underline; }
.aih a:focus-visible, .aih button:focus-visible, .aih summary:focus-visible {
  outline: 2px solid var(--aih-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.aih h1, .aih h2, .aih h3, .aih h4 { color: var(--aih-ink); font-family: inherit; letter-spacing: -.01em; }
/* Same width as the AI Studio header (site-wide --bdc-container-* tokens). */
.aih-wrap { width: calc(100% - 30px); max-width: 1440px; margin: 0 auto; padding: 0; }
@media (min-width: 768px) {
  .aih-wrap { width: var(--bdc-container-width, calc(100% - 48px)); max-width: var(--bdc-container-max, 1440px); }
}

/* ---------- Search ---------- */
.aih-search { position: relative; width: 100%; max-width: 640px; margin: 0 auto; }
.aih-search-box {
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 16px;
  background: var(--aih-surface-2);
  border: 1px solid var(--aih-border-strong);
  border-radius: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.aih-search-box:focus-within { border-color: var(--aih-accent); box-shadow: 0 0 0 4px var(--aih-accent-soft); }
.aih-search-box svg { flex: none; width: 20px; height: 20px; color: var(--aih-muted); }
/* The surrounding .aih-search-box shows focus (:focus-within), so the input itself
   must never draw its own border, ring or background - otherwise a second box appears. */
.aih .aih-search-box input,
.aih .aih-search-box input:focus,
.aih .aih-search-box input:focus-visible {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  outline: none !important; box-shadow: none !important;
  color: var(--aih-ink); font: inherit; font-size: 16px;
}
.aih .aih-search-box input::-webkit-search-decoration { -webkit-appearance: none; }
.aih .aih-search-box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--aih-surface-2) inset !important; -webkit-text-fill-color: var(--aih-ink); }
.aih-search-box input::placeholder { color: var(--aih-muted); }
.aih-search-box kbd {
  flex: none; padding: 2px 7px; border: 1px solid var(--aih-border-strong); border-radius: 6px;
  color: var(--aih-muted); font: 12px/1.4 inherit; background: transparent; box-shadow: none;
}
.aih-search-results {
  position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; right: 0;
  max-height: min(60vh, 460px); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--aih-surface-2); border: 1px solid var(--aih-border-strong); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  text-align: left;
}
.aih-search-results[hidden] { display: none; }
.aih-search-results li a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--aih-ink);
}
.aih-search-results li a:hover, .aih-search-results li a[aria-selected="true"] { background: var(--aih-surface-3); text-decoration: none; }
.aih-search-results .aih-sr-cat { display: block; color: var(--aih-muted); font-size: 12px; margin-bottom: 2px; }
.aih-search-results .aih-sr-title { display: block; font-weight: 600; font-size: 15px; }
.aih-search-results .aih-sr-desc { display: block; color: var(--aih-copy); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.aih-search-results mark { background: rgba(122, 162, 255, .25); color: inherit; border-radius: 2px; }
.aih-search-empty { padding: 14px 12px; color: var(--aih-muted); font-size: 14px; }

/* ---------- Hub ---------- */
.aih-hero { text-align: center; padding: 48px 0 56px; }
.aih-hero-kicker { margin: 0 0 12px; color: var(--aih-accent); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.aih-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.aih-hero p.aih-hero-lead { max-width: 560px; margin: 0 auto 30px; color: var(--aih-copy); font-size: 17px; }
.aih-hero-quick { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 13px; line-height: 20px; color: var(--aih-muted); }
.aih-hero-quick > span { margin-right: 2px; }
.aih-hero-quick a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border: 1px solid var(--aih-border); border-radius: 999px; color: var(--aih-copy);
}
.aih-hero-quick a:hover { border-color: var(--aih-border-strong); color: var(--aih-ink); text-decoration: none; }

.aih-section { margin-top: 56px; }
.aih-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.aih-section-head h2 { margin: 0; font-size: 24px; font-weight: 700; }
.aih-section-head p { margin: 0; color: var(--aih-muted); font-size: 14px; }

.aih-popular { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aih-card {
  display: flex; flex-direction: column; min-height: 100%;
  background: var(--aih-surface); border: 1px solid var(--aih-border); border-radius: var(--aih-radius);
  overflow: hidden; color: var(--aih-copy);
  transition: border-color .15s, transform .15s, background-color .15s;
}
.aih a.aih-card:hover { border-color: var(--aih-border-strong); background: var(--aih-surface-2); transform: translateY(-2px); text-decoration: none; color: var(--aih-copy); }
.aih-card-media { aspect-ratio: 16 / 10; background: var(--aih-surface-3); overflow: hidden; }
.aih-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aih-card-media.is-icon {
  display: grid; place-items: center; color: var(--aih-accent);
  background: radial-gradient(120% 120% at 20% 10%, rgba(122, 162, 255, .28), rgba(122, 162, 255, .04) 60%), var(--aih-surface-2);
}
.aih-card-media.is-icon svg { width: 56px; height: 56px; }
.aih-card-media.is-violet { color: #b9a4ff; background: radial-gradient(120% 120% at 20% 10%, rgba(167, 139, 250, .30), rgba(167, 139, 250, .04) 60%), var(--aih-surface-2); }
.aih-card-media.is-amber { color: var(--aih-amber); background: radial-gradient(120% 120% at 20% 10%, rgba(245, 180, 84, .26), rgba(245, 180, 84, .04) 60%), var(--aih-surface-2); }
.aih-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.aih .aih-card-title { color: var(--aih-ink); font-size: 16px; font-weight: 600; line-height: 1.35; }
.aih-card-cat { margin-top: auto; padding-top: 8px; color: var(--aih-label); font-size: 13px; }

.aih-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aih-topic {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; background: var(--aih-surface); border: 1px solid var(--aih-border); border-radius: var(--aih-radius);
  color: var(--aih-copy);
  transition: border-color .15s, background-color .15s;
}
.aih a.aih-topic:hover { border-color: var(--aih-border-strong); background: var(--aih-surface-2); text-decoration: none; color: var(--aih-copy); }
.aih-topic-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--aih-accent-soft); color: var(--aih-accent);
}
.aih-topic-icon svg { width: 20px; height: 20px; }
.aih .aih-topic-name { display: block; color: var(--aih-ink); font-weight: 600; font-size: 16px; }
.aih .aih-topic-desc { display: block; margin-top: 2px; color: var(--aih-copy); font-size: 15px; line-height: 1.55; }
.aih-topic-count { display: block; margin-top: 8px; color: var(--aih-label); font-size: 13px; }

.aih-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding: 24px 28px;
  background: linear-gradient(120deg, rgba(122, 162, 255, .10), rgba(167, 139, 250, .08));
  border: 1px solid var(--aih-border); border-radius: var(--aih-radius);
}
.aih-contact h2 { margin: 0 0 4px; font-size: 20px; }
.aih-contact p { margin: 0; font-size: 15px; }
.aih-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.aih a.aih-btn, .aih button.aih-btn { text-decoration: none; }
.aih-btn-primary { background: #2563eb; color: #fff !important; }
.aih-btn-primary:hover { background: #1d4ed8; }
.aih-btn-ghost { background: transparent; border-color: var(--aih-border-strong); color: var(--aih-ink) !important; }
.aih-btn-ghost:hover { background: var(--aih-surface-2); }
.aih-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Docs layout (category + article) ---------- */
.aih-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.aih-layout.aih-layout-noto { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 1400px) { .aih-layout { grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 40px; } }
.aih-topbar { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--aih-border); }
.aih-topbar-home { color: var(--aih-ink) !important; font-weight: 700; font-size: 17px; white-space: nowrap; }
.aih-topbar-home span { color: var(--aih-muted); font-weight: 500; }
.aih-topbar .aih-search { margin: 0; max-width: 420px; }
.aih-topbar .aih-search-box { height: 42px; border-radius: 10px; }

/* Sidebar */
.aih-side { position: sticky; top: var(--aih-header-offset); max-height: calc(100vh - var(--aih-header-offset) - 24px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.aih-side-toggle { display: none; }
.aih-nav { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.aih-nav > li { margin-bottom: 4px; }
.aih-nav details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; list-style: none;
  color: var(--aih-strong); font-weight: 600;
}
.aih-nav details > summary::-webkit-details-marker { display: none; }
.aih-nav details > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--aih-muted); border-bottom: 1.5px solid var(--aih-muted);
  transform: rotate(-45deg); transition: transform .15s; flex: none;
}
.aih-nav details[open] > summary::after { transform: rotate(45deg); }
.aih-nav details > summary:hover { background: var(--aih-surface-2); }
.aih-nav ul { margin: 2px 0 8px; padding: 0 0 0 10px; list-style: none; border-left: 1px solid var(--aih-border); margin-left: 12px; }
.aih-nav ul a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--aih-copy); line-height: 1.45; }
.aih-nav ul a:hover { color: var(--aih-ink); background: var(--aih-surface-2); text-decoration: none; }
.aih-nav a[aria-current="page"] { color: var(--aih-ink); background: var(--aih-accent-soft); font-weight: 600; }
.aih-nav .aih-nav-cat { display: block; padding: 5px 10px; color: var(--aih-muted); font-size: 13px; }
.aih-nav .aih-nav-cat:hover { color: var(--aih-ink); }

/* Article */
.aih-main { min-width: 0; }
.aih-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--aih-muted); }
.aih-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--aih-border-strong); }
.aih-crumbs a { color: var(--aih-muted); }
.aih-crumbs a:hover { color: var(--aih-ink); }
.aih-article-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.aih-article h1 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.aih-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 13px; color: var(--aih-muted); }
.aih-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--aih-accent-soft); color: var(--aih-accent); font-weight: 600; font-size: 12px; }
.aih-copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; margin-top: 6px;
  background: transparent; border: 1px solid var(--aih-border-strong); border-radius: 8px;
  color: var(--aih-copy); font: inherit; font-size: 13px; cursor: pointer;
}
.aih-copy-btn:hover { color: var(--aih-ink); background: var(--aih-surface-2); }
.aih-copy-btn svg { width: 15px; height: 15px; }
.aih-copy-btn.is-done { color: var(--aih-green); border-color: rgba(77, 212, 179, .5); }

.aih-lead { margin: 0 0 28px; color: #c3cbd8; font-size: 19px; line-height: 1.7; max-width: var(--aih-measure); }
.aih-article h2 { margin: 44px 0 14px; font-size: 24px; font-weight: 700; line-height: 1.3; scroll-margin-top: calc(var(--aih-header-offset) + 12px); }
.aih-article h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; line-height: 1.4; scroll-margin-top: calc(var(--aih-header-offset) + 12px); }
.aih-article p { margin: 0 0 18px; font-size: 17px; line-height: 1.8; font-weight: 400; }
.aih-article ul, .aih-article ol { margin: 0 0 20px; padding-left: 22px; font-size: 17px; line-height: 1.8; font-weight: 400; }
.aih-article li { margin-bottom: 8px; }
.aih-article li::marker { color: var(--aih-muted); }
.aih-article strong, .aih-article b { color: var(--aih-strong); font-weight: 600; }

/* Running text keeps a readable line length; tables, figures and headings stay wide. */
.aih-body > p, .aih-body > ul, .aih-body > ol, .aih-body > .aih-note,
.aih-body > .aih-faq, .aih-body > .aih-steps { max-width: var(--aih-measure); }
.aih-article code {
  padding: 2px 6px; border-radius: 5px; background: var(--aih-surface-3); border: 1px solid var(--aih-border);
  color: var(--aih-ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; white-space: nowrap;
}
.aih-article pre {
  margin: 0 0 18px; padding: 14px 16px; overflow-x: auto;
  background: var(--aih-surface); border: 1px solid var(--aih-border); border-radius: var(--aih-radius-sm);
  color: var(--aih-ink); font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.aih-article pre code { padding: 0; border: 0; background: transparent; white-space: pre; }
.aih-ui { color: var(--aih-strong); font-weight: 600; }

/* Numbered steps */
.aih-steps { counter-reset: aihstep; list-style: none; padding: 0 !important; margin: 0 0 22px; }
.aih-steps > li { counter-increment: aihstep; position: relative; padding: 0 0 0 44px; margin-bottom: 16px; }
.aih-steps > li::before {
  content: counter(aihstep); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--aih-surface-3); border: 1px solid var(--aih-border-strong);
  color: var(--aih-strong); font-size: 13px; font-weight: 700; line-height: 1;
}

/* Screenshots */
.aih-figure { margin: 0 0 24px; }
.aih-figure img {
  display: block; width: 100%; height: auto; max-width: 100%;
  border: 1px solid var(--aih-border); border-radius: var(--aih-radius-sm); background: var(--aih-surface);
}
.aih-figure.is-panel img { max-width: 420px; }
.aih-figure figcaption { margin-top: 8px; color: var(--aih-muted); font-size: 13px; line-height: 1.5; }

/* Callouts */
.aih-note {
  display: flex; gap: 12px; margin: 0 0 20px; padding: 14px 16px;
  background: var(--aih-surface); border: 1px solid var(--aih-border); border-left: 3px solid var(--aih-accent);
  border-radius: var(--aih-radius-sm); font-size: 16px; line-height: 1.75;
}
.aih-note > :last-child { margin-bottom: 0; }
.aih-note-tip { border-left-color: var(--aih-green); }
.aih-note-warn { border-left-color: var(--aih-amber); }
.aih-note strong:first-child { white-space: nowrap; }

/* Tables */
.aih-table-wrap { margin: 0 0 22px; overflow-x: auto; border: 1px solid var(--aih-border); border-radius: var(--aih-radius-sm); }
.aih-article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.aih-article th, .aih-article td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--aih-border); }
.aih-article th { background: var(--aih-surface-2); color: var(--aih-strong); font-weight: 600; white-space: nowrap; }
.aih-article tr:last-child td { border-bottom: 0; }
.aih-article td:first-child { color: var(--aih-copy); font-weight: 500; }

/* FAQ blocks inside articles */
.aih-faq details { border-bottom: 1px solid var(--aih-border); }
.aih-faq summary { padding: 14px 0; cursor: pointer; color: var(--aih-strong); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.aih-faq summary::-webkit-details-marker { display: none; }
.aih-faq summary::after { content: "+"; color: var(--aih-muted); font-weight: 400; font-size: 20px; line-height: 1; }
.aih-faq details[open] summary::after { content: "\2212"; }
.aih-faq details > div { padding: 0 0 14px; }

/* Related + feedback */
.aih-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--aih-border); }
.aih-related h2 { margin: 0 0 12px !important; font-size: 18px !important; }
.aih-related ul { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aih-related li { margin: 0 !important; }
.aih-related a {
  display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--aih-border); border-radius: var(--aih-radius-sm);
  color: var(--aih-ink); font-weight: 500; font-size: 15px;
}
.aih-related a:hover { border-color: var(--aih-border-strong); background: var(--aih-surface-2); text-decoration: none; }
.aih-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.aih-pager a { flex: 1 1 0; max-width: 50%; padding: 12px 16px; border: 1px solid var(--aih-border); border-radius: var(--aih-radius-sm); color: var(--aih-ink); }
.aih-pager a:hover { background: var(--aih-surface-2); text-decoration: none; }
.aih-pager a span { display: block; color: var(--aih-label); font-size: 13px; }
.aih-pager a.aih-pager-next { margin-left: auto; text-align: right; }
.aih-help-foot { margin-top: 40px; padding: 18px 20px; background: var(--aih-surface); border: 1px solid var(--aih-border); border-radius: var(--aih-radius); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.aih-help-foot p { margin: 0; }

/* Category page list */
.aih-cat-desc { margin: -12px 0 24px; font-size: 17px; }
.aih-list { list-style: none; padding: 0 !important; margin: 0; border-top: 1px solid var(--aih-border); }
.aih-list li { margin: 0 !important; border-bottom: 1px solid var(--aih-border); }
.aih-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; color: var(--aih-copy); }
.aih-list a:hover { text-decoration: none; background: var(--aih-surface); }
.aih-list a::after { content: "\2192"; color: var(--aih-muted); flex: none; }
.aih-list strong { display: block; color: var(--aih-ink); font-size: 16px; font-weight: 600; }
.aih-list span { display: block; font-size: 14px; line-height: 1.5; margin-top: 2px; }

/* On-this-page TOC */
/* The column must fill the row, otherwise the sticky rail inside it scrolls away. */
.aih-toc-col { align-self: stretch; }
.aih-rail { position: sticky; top: var(--aih-header-offset); display: flex; flex-direction: column; gap: 20px;
  max-height: calc(100vh - var(--aih-header-offset) - 24px); overflow-y: auto; scrollbar-width: thin; }
.aih-toc { font-size: 14px; }
.aih-toc[hidden] { display: none; }
.aih-toc-title { margin: 0 0 10px; color: var(--aih-label); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.aih-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--aih-border); }
.aih-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--aih-muted); line-height: 1.5; }
.aih-toc a:hover { color: var(--aih-ink); text-decoration: none; }
.aih-toc a.is-active { color: var(--aih-ink); border-left-color: var(--aih-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .aih-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .aih-toc-col { display: none; }
}
@media (max-width: 991px) {
  .aih-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aih-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .aih { --aih-header-offset: 72px; padding-top: 32px; }
  .aih-layout, .aih-layout.aih-layout-noto { display: block; }
  .aih-side { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 24px; }
  .aih-side-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; padding: 0 14px;
    background: var(--aih-surface); border: 1px solid var(--aih-border); border-radius: 10px;
    color: var(--aih-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .aih-side-toggle::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--aih-muted); border-bottom: 1.5px solid var(--aih-muted); transform: rotate(45deg); }
  .aih-side-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .aih-side .aih-nav { display: none; margin-top: 10px; padding: 10px; background: var(--aih-surface); border: 1px solid var(--aih-border); border-radius: 10px; }
  .aih-side.is-open .aih-nav { display: block; }
  .aih-topbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; }
  .aih-topbar .aih-search { max-width: none; }
}
@media (max-width: 767px) {
  /* The site's mobile navbar is fixed (50px) and the AI Studio bar collapses, so clear it. */
  .aih { padding-top: 76px; }
}
@media (max-width: 600px) {
  .aih-wrap { width: calc(100% - 32px); }
  .aih-hero { padding: 28px 0 36px; }
  .aih-popular, .aih-topics, .aih-related ul { grid-template-columns: minmax(0, 1fr); }
  .aih-article-head { flex-direction: column; gap: 0; }
  .aih-copy-btn { margin: 0 0 12px; }
  .aih-pager { flex-direction: column; }
  .aih-pager a { max-width: none; }
  .aih-search-box kbd { display: none; }
  .aih-contact { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .aih *, .aih *::before, .aih *::after { transition: none !important; }
}

/* Right rail help card: gives the column a purpose next to the shorter text measure. */
.aih-rail-card {
  padding: 16px 18px; background: var(--aih-surface); border: 1px solid var(--aih-border);
  border-radius: var(--aih-radius); font-size: 14px; line-height: 1.6;
}
.aih-rail-card h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.aih-rail-card p { margin: 0 0 12px; color: var(--aih-copy); font-size: 14px; line-height: 1.6; }
.aih-rail-card .aih-btn { width: 100%; justify-content: center; height: 36px; font-size: 13px; }
.aih-rail-card .aih-btn + .aih-btn { margin-top: 8px; }
@media (max-width: 1180px) { .aih-rail-card { display: none; } }

/* On wide screens the rail card replaces the block at the end of the article. */
@media (min-width: 1181px) { .aih-help-foot { display: none; } }

/* CJK: denser glyphs need a touch more contrast and no tightened tracking, and the
   surrounding sites default to a light (300) weight that smudges on a dark background. */
:lang(ko) .aih, :lang(ja) .aih, :lang(zh-TW) .aih, :lang(zh-Hant) .aih { --aih-copy: #b3bccb; }
:lang(ko) .aih h1, :lang(ja) .aih h1, :lang(zh-TW) .aih h1, :lang(zh-Hant) .aih h1,
:lang(ko) .aih h2, :lang(ja) .aih h2, :lang(zh-TW) .aih h2, :lang(zh-Hant) .aih h2,
:lang(ko) .aih h3, :lang(ja) .aih h3, :lang(zh-TW) .aih h3, :lang(zh-Hant) .aih h3,
:lang(ko) .aih-hero h1, :lang(ja) .aih-hero h1, :lang(zh-TW) .aih-hero h1 { letter-spacing: normal; }
:lang(ko) .aih-article strong, :lang(ja) .aih-article strong, :lang(zh-TW) .aih-article strong,
:lang(ko) .aih-article b, :lang(ja) .aih-article b, :lang(zh-TW) .aih-article b,
:lang(ko) .aih-ui, :lang(ja) .aih-ui, :lang(zh-TW) .aih-ui { font-weight: 500; }

/* The surrounding sites set `p { font-weight: 300 }`; an element rule beats inheritance,
   so every paragraph in the help pages needs its own weight. */
.aih p, .aih li, .aih td, .aih th, .aih dd, .aih dt { font-weight: 400; }
.aih .aih-hero-lead, .aih .aih-contact p, .aih .aih-rail-card p, .aih .aih-help-foot p,
.aih .aih-note p, .aih .aih-list span, .aih .aih-cat-desc { font-weight: 400; }
.aih .aih-contact p, .aih .aih-rail-card p, .aih .aih-help-foot p { color: var(--aih-copy); }
.aih .aih-list span { color: var(--aih-copy); }
