/* BalloonBuilder help pages (Columns + Walls), 28 Oct 2026. Same colours as the v2 designer (bb-tokens.css). */
:root {
  --ground: #f4f7fa;
  --chrome: #eaf2fb;
  --chrome-2: #dde9f5;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #5e6874;
  --line: #cfdbe7;
  --primary: #337ab7;
  --primary-soft: #e3eef8;
  --success: #1a7a63;
  --success-soft: #dff2ec;
  --danger: #c0392b;
  --danger-soft: #fbe6e3;
  --magic: #6f42c1;
  --magic-soft: #efe8fb;
  --warning: #8a5a00;
  --warning-soft: #fff1cc;
  --r: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #12161c; --chrome: #1a2130; --chrome-2: #243045; --surface: #1e2633;
    --ink: #e6ebf2; --muted: #9aa6b5; --line: #2f3b4f; --primary: #6aa8e0; --primary-soft: #1f3550;
    --success: #4cc3a3; --success-soft: #173b33; --danger: #ef7a6c; --danger-soft: #3d1f1c;
    --magic: #b195ee; --magic-soft: #2c2342; --warning: #f0c060; --warning-soft: #3a2f14;
  }
}
:root[data-theme="dark"] {
  --ground: #12161c; --chrome: #1a2130; --chrome-2: #243045; --surface: #1e2633;
  --ink: #e6ebf2; --muted: #9aa6b5; --line: #2f3b4f; --primary: #6aa8e0; --primary-soft: #1f3550;
  --success: #4cc3a3; --success-soft: #173b33; --danger: #ef7a6c; --danger-soft: #3d1f1c;
  --magic: #b195ee; --magic-soft: #2c2342; --warning: #f0c060; --warning-soft: #3a2f14;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 120px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); }

.top { background: var(--chrome); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-inner { max-width: 1040px; margin: 0 auto; padding: 10px 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand img { height: 40px; width: auto; }
.brand h1 { font-size: 19px; margin: 0; line-height: 1.2; }
.brand .sub { color: var(--muted); font-size: 13px; }
.brand .other { margin-left: auto; font-size: 13px; }

.tabs { display: flex; gap: 2px; overflow-x: auto; margin-top: 8px; scrollbar-width: thin; }
.tabs a { flex: 0 0 auto; padding: 8px 12px; border-radius: 8px 8px 0 0; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 14px; border: 1px solid transparent; border-bottom: none; }
.tabs a:hover { color: var(--ink); background: var(--chrome-2); }
.tabs a[aria-selected="true"] { background: var(--ground); color: var(--ink); border-color: var(--line); position: relative; top: 1px; }
.tabs a.problems { color: var(--danger); }

main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 60px; }
.js .tab-panel { display: none; }
.js .tab-panel.on { display: block; }
.tab-panel > h2 { font-size: 24px; margin: 18px 0 6px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
h4 { font-size: 15px; margin: 18px 0 4px; }
.lead { color: var(--muted); font-size: 16px; margin-top: 0; }

figure { margin: 14px 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
figure img { display: block; margin: 0 auto; border-radius: 6px; cursor: zoom-in; }
figure.small { max-width: 520px; }
figure.phone { max-width: 300px; display: inline-block; vertical-align: top; margin-right: 12px; }
figcaption { color: var(--muted); font-size: 13px; padding: 6px 4px 0; }
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.figs figure { margin: 0; }

.callout { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; margin: 14px 0; }
.callout.tip { border-color: var(--success); background: var(--success-soft); }
.callout.warn { border-color: var(--warning); background: var(--warning-soft); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 10px 0 18px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--chrome); font-size: 13px; }
tr:last-child td { border-bottom: none; }
td:first-child { white-space: nowrap; font-weight: 600; }
.wrap td:first-child { white-space: normal; }
.tbl { overflow-x: auto; }

kbd { font: 12px var(--font); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }
.ui { font-weight: 600; white-space: nowrap; }
.btn-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; color: #fff; }
.btn-chip.green { background: #1a7a63; } .btn-chip.blue { background: #337ab7; } .btn-chip.purple { background: #6f42c1; }
.btn-chip.red { background: transparent; color: var(--danger); border: 1px solid var(--danger); } .btn-chip.amber { background: #f0b03c; color: #3a2600; }

.plan { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 0 6px; border-radius: 4px; vertical-align: 1px; margin-left: 4px; white-space: nowrap; }
.plan.free { background: var(--success-soft); color: var(--success); }
.plan.entry { background: var(--warning-soft); color: var(--warning); }
.plan.pro { background: var(--primary-soft); color: var(--primary); }
.plan.full { background: var(--magic-soft); color: var(--magic); }

.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font-size: 14px; }
.mode b { display: block; margin-bottom: 2px; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 10px 40px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }

details.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0; }
details.q > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; list-style: none; }
details.q > summary::before { content: "▸ "; color: var(--muted); }
details.q[open] > summary::before { content: "▾ "; }
details.q > div { padding: 0 14px 10px; }

.foot { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 12px; }

.zoom { position: fixed; inset: 0; background: rgba(10, 14, 20, .86); display: none; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; padding: 16px; }
.zoom.on { display: flex; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 6px; }

@media (max-width: 640px) {
  body { font-size: 15px; }
  html { scroll-padding-top: 10px; }
  .top { position: static; }
  .brand .sub { display: none; }
  .brand .other { margin-left: 0; width: 100%; }
  figure.phone { max-width: 100%; display: block; margin-right: 0; }
  td:first-child { white-space: normal; }
}
@media print {
  .top { position: static; }
  .tabs { display: none; }
  .js .tab-panel { display: block !important; }
  figure img { cursor: default; }
}
