/* AtSocials help center. Same warm neutrals and coral accent as the app. */
:root {
  --bg: #ffffff;
  --side: #fafaf9;
  --ink: #1c1b19;
  --ink-2: #44423d;
  --muted: #6f6c65;
  --line: #e7e5e0;
  --line-2: #f1f0ec;
  --accent: #ff5b57;
  --accent-ink: #d93c38;
  --accent-soft: #fff1f0;
  --tip: #f0f7f3;
  --tip-line: #cde5d6;
  --warn: #fff8e8;
  --warn-line: #f1dfae;
  --radius: 12px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Geist, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: #c9c6be; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

/* Top bar */
.hc-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 24px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.hc-brand img { height: 26px; width: auto; display: block; }
.hc-brand span { padding-left: 10px; border-left: 1px solid var(--line); }
.hc-search { position: relative; margin-left: auto; width: min(360px, 40vw); }
.hc-search input {
  width: 100%; height: 38px; padding: 0 12px 0 36px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 15px; color: var(--ink);
}
.hc-search input:focus { outline: none; border-color: #1c1b19; }
.hc-search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.hc-results {
  position: absolute; top: 44px; left: 0; right: 0; max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(28, 27, 25, .12);
  padding: 6px; display: none;
}
.hc-results.open { display: block; }
.hc-results a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.hc-results a:hover, .hc-results a.active { background: var(--line-2); }
.hc-results b { display: block; font-size: 15px; font-weight: 600; }
.hc-results small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.hc-results .empty { padding: 10px; color: var(--muted); font-size: 14px; }
.hc-app { flex: none; height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.hc-app:hover { background: var(--accent-ink); }
.hc-menu { display: none; height: 38px; width: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }

/* Layout */
.hc-wrap { display: grid; grid-template-columns: 264px minmax(0, 1fr) 220px; max-width: 1440px; margin: 0 auto; }
.hc-side {
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto;
  padding: 24px 16px 40px; background: var(--side); border-right: 1px solid var(--line);
}
.hc-side h4 { margin: 18px 10px 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.hc-side h4:first-child { margin-top: 0; }
.hc-side a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.hc-side a:hover { background: var(--line-2); }
.hc-side a.current { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.hc-main { min-width: 0; padding: 40px 56px 96px; max-width: 900px; }
.hc-toc { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; padding: 40px 20px; font-size: 14px; }
.hc-toc b { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.hc-toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); line-height: 1.4; }
.hc-toc a:hover { color: var(--ink); }
.hc-toc a.on { color: var(--ink); border-left-color: var(--accent); }

/* Article */
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; }
h2 { font-size: 24px; letter-spacing: -.01em; line-height: 1.3; margin: 52px 0 12px; padding-top: 8px; }
h3 { font-size: 18px; line-height: 1.35; margin: 32px 0 8px; }
p, li { color: var(--ink-2); }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--line-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
kbd { border-bottom-width: 2px; }
pre { background: #1c1b19; color: #f3f2ee; padding: 16px 18px; border-radius: var(--radius); overflow: auto; font-size: 14px; line-height: 1.55; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
.ui { font-weight: 600; color: var(--ink); white-space: nowrap; }
.path { color: var(--muted); font-size: .95em; }

/* Figures */
figure { margin: 22px 0 26px; }
figure img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 8px 24px rgba(28, 27, 25, .06);
  cursor: zoom-in; background: #fff;
}
figure.narrow img { max-width: 560px; }
figure.mid img { max-width: 720px; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: start; }
.figs figure { margin: 0; }

/* Numbered legend matching the coral callouts in the screenshots */
ol.callouts { list-style: none; padding: 0; margin: 14px 0 26px; counter-reset: c; display: grid; gap: 10px; }
ol.callouts > li { counter-increment: c; position: relative; padding: 2px 0 2px 40px; margin: 0; }
ol.callouts > li::before {
  content: counter(c); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; line-height: 26px; text-align: center;
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .2);
}
ol.callouts > li > b:first-child { color: var(--ink); }

/* Steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 8px;
  background: #1c1b19; color: #fff; font-weight: 600; font-size: 14px; line-height: 26px; text-align: center;
}

/* Notes */
.note, .tip, .warn { border-radius: var(--radius); padding: 14px 16px 14px 18px; margin: 20px 0; border: 1px solid var(--line); background: var(--side); }
.note > :first-child, .tip > :first-child, .warn > :first-child { margin-top: 0; }
.note > :last-child, .tip > :last-child, .warn > :last-child { margin-bottom: 0; }
.tip { background: var(--tip); border-color: var(--tip-line); }
.warn { background: var(--warn); border-color: var(--warn-line); }
.note b.t, .tip b.t, .warn b.t { display: block; margin-bottom: 2px; color: var(--ink); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink); background: var(--side); }
td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; }

/* Home page cards */
.hero { padding: 8px 0 12px; }
.hero h1 { font-size: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.card {
  display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: #cfccc4; box-shadow: 0 6px 20px rgba(28, 27, 25, .06); }
.card b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.card span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { flex: 1; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pager a:hover { border-color: #cfccc4; }
.pager small { display: block; color: var(--muted); font-size: 13px; }
.pager b { font-size: 15px; }
.pager .next { text-align: right; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(28, 27, 25, .82); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); background: #fff; }

@media (max-width: 1180px) {
  .hc-wrap { grid-template-columns: 248px minmax(0, 1fr); }
  .hc-toc { display: none; }
}
@media (max-width: 860px) {
  .hc-top { padding: 0 16px; gap: 10px; }
  .hc-brand span { display: none; }
  .hc-search { width: auto; flex: 1; }
  .hc-search input { font-size: 16px; }
  .hc-app { display: none; }
  .hc-menu { display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .hc-wrap { display: block; }
  .hc-side { position: fixed; top: 64px; left: 0; bottom: 0; width: 280px; height: auto; z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
  .hc-side.open { transform: none; }
  .hc-main { padding: 28px 16px 72px; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 30px; }
  h2 { font-size: 21px; margin-top: 40px; }
  .pager { flex-direction: column; }
}
