/* TicAte Help. Clean docs: white pages, the logo's typeface for headings,
   the brand's coral as the one accent. Light and dark follow the device. */

:root {
  --ink: #141414;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #ececec;
  --bg: #ffffff;
  --soft: #f7f6f4;
  --coral: #ff5a36;
  /* Coral dark enough to read as text on white (about 5:1). */
  --accent: #c93a18;
  --accent-soft: #fff1ec;
  --head: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --side-w: 272px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f3f1;
    --text: #dcdad6;
    --muted: #a3a09b;
    --faint: #75726d;
    --line: #262524;
    --bg: #0f0f0f;
    --soft: #181716;
    --accent: #ff8a6b;
    --accent-soft: #2a1913;
    color-scheme: dark;
  }
  .light { display: none !important; }
}
@media (prefers-color-scheme: light) { .dark { display: none !important; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.i { flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; }
.brand span { font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.products { display: flex; gap: 20px; height: 100%; }
.products a { display: flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; }
.products a:hover { color: var(--ink); text-decoration: none; }
.products a.on { color: var(--ink); border-bottom-color: var(--coral); }
.support { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink); padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.support:hover { text-decoration: none; border-color: var(--ink); }
.top .ask + .support { margin-left: 0; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }

/* ---- search ---- */
.ask { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; width: 300px; max-width: 40vw; padding: 0 10px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--faint); }
.ask:focus-within { border-color: var(--ink); background: var(--bg); }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 14px; }
.ask input::-webkit-search-cancel-button { display: none; }
.ask kbd { font: 12px Inter, sans-serif; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; background: var(--bg); }
.ask.big { width: 100%; max-width: 640px; height: 56px; margin: 28px 0 0; padding: 0 8px 0 18px; border-radius: 12px; background: var(--bg); border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -16px rgba(0, 0, 0, .18); }
.ask.big input { font-size: 16px; }
.ask.big button { height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3); overflow: hidden; text-align: left; }
.suggest a { display: block; padding: 10px 14px; color: var(--text); border-top: 1px solid var(--line); }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a.hi { background: var(--soft); text-decoration: none; }
.suggest strong { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.suggest span { font-size: 12px; color: var(--muted); }
.suggest .all { font-size: 13px; color: var(--accent); font-weight: 500; }

/* ---- layout ---- */
.shell { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 40px 24px 64px; }
.shell.with-side { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 48px; max-width: 1360px; padding-left: 0; }
.main { min-width: 0; }

/* ---- table of contents (left) ---- */
.side { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; padding: 24px 16px 40px 24px; border-right: 1px solid var(--line); font-size: 14px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { color: var(--text); }
.side a:hover { color: var(--ink); text-decoration: none; }
.side-home { display: block; font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--ink) !important; margin-bottom: 18px; }
.side-group { margin-bottom: 18px; }
.side-head { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint) !important; }
.side-head.on { color: var(--accent) !important; }
.side summary { display: flex; align-items: center; gap: 6px; padding: 5px 8px; margin-left: -8px; border-radius: 6px; cursor: pointer; list-style: none; color: var(--text); }
.side summary::-webkit-details-marker { display: none; }
.side summary::before { content: ""; width: 6px; height: 6px; margin-right: 2px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.side details[open] > summary::before { transform: rotate(45deg); }
.side summary:hover { background: var(--soft); }
.side summary.on { color: var(--ink); font-weight: 600; }
.side .n { margin-left: auto; font-size: 11px; color: var(--faint); }
.side details ul { margin: 2px 0 6px 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.side details li a { display: block; padding: 4px 8px; margin-left: -11px; border-left: 2px solid transparent; line-height: 1.4; color: var(--muted); }
.side details li a:hover { color: var(--ink); }
.side details li a.on { color: var(--accent); border-left-color: var(--coral); font-weight: 500; }
/* Sticks to the top of the phone menu, which scrolls itself to the guide being read. */
.side-search { display: none; margin-bottom: 20px; }
.side-search .ask { display: flex; width: 100%; max-width: none; margin: 0; }
.side-search .ask kbd { display: none; }
.side-soon { display: flex; padding: 5px 0 5px 12px; color: var(--faint); }
.side-soon em { margin-left: auto; font-style: normal; font-size: 11px; }

/* ---- type ---- */
h1, h2, h3, .page-title { font-family: var(--head); color: var(--ink); letter-spacing: -.02em; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 680px; }
.muted { color: var(--muted); }
.label { margin: 48px 0 16px; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* ---- start pages ---- */
.hero { padding: 24px 0 8px; }
.hero.center { text-align: center; padding-top: 56px; }
.hero.center .lead { margin-left: auto; margin-right: auto; }
.hero h1 { font-size: 48px; line-height: 1.05; margin: 0 0 14px; }
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.start-grid a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); transition: border-color .15s, transform .15s; }
.start-grid a:hover { text-decoration: none; border-color: var(--ink); transform: translateY(-1px); }
.start-grid .num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-bottom: 6px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.start-grid strong { color: var(--ink); font-size: 16px; }
.start-grid a > span:last-child { font-size: 14px; color: var(--muted); }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 32px; }
.sec h2 { margin: 0 0 4px; font-size: 20px; }
.sec h2 a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.sec h2 .i { color: var(--coral); }
.sec > p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.sec ul { list-style: none; margin: 0; padding: 0; }
.sec li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sec li span { color: var(--faint); font-size: 13px; }
.sec li a { color: var(--text); }
.sec li a:hover { color: var(--accent); }
.sec li.soon { color: var(--faint); }
.product-list { display: grid; gap: 14px; max-width: 760px; margin: 40px auto 0; }
.product-list a { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.product-list a:hover { text-decoration: none; border-color: var(--ink); }
.product-list img { height: 34px; }
.product-list em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }

/* ---- section and topic pages ---- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs .here { color: var(--text); }
.panel-nav { display: none; gap: 2px; margin-right: 6px; }
.panel-nav button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.page-title { font-size: 40px; line-height: 1.1; margin: 0 0 10px; }
.topic-block { margin-top: 40px; }
.topic-block h2 { margin: 0 0 2px; font-size: 22px; }
.topic-block h2 a { color: var(--ink); }
.topic-block > p { margin: 0 0 12px; font-size: 14px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows a { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.rows a:hover { text-decoration: none; background: var(--soft); }
.rows strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.rows a:hover strong { color: var(--accent); }
.empty-note { padding: 16px 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }

/* ---- articles ---- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; }
.article { max-width: 760px; }
.article h1 { font-size: 44px; line-height: 1.08; margin: 0 0 12px; }
.article .lead { margin-bottom: 14px; }
.meta { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.copy-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.copy-link:hover { color: var(--accent); }
.copy-link.done { color: #15803d; }

.prose { font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 27px; line-height: 1.25; margin: 48px 0 12px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--coral); }
/* Numbered steps: a circle per step and a line joining them. */
.prose ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; }
.prose ol > li { position: relative; counter-increment: step; padding: 2px 0 14px 44px; margin: 0; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; }
.prose ol > li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.prose code { padding: 2px 6px; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); font-size: .88em; }
.prose figure { margin: 28px 0 32px; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .35); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose .shot-missing { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; border-radius: 12px; border: 1px dashed var(--line); color: var(--faint); background: var(--soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--soft); }
.callout { margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--ink); border-radius: 0 10px 10px 0; background: var(--soft); }
.callout p:last-child { margin-bottom: 0; }
.callout.tip { border-left-color: #16a34a; }
.callout.important { border-left-color: var(--coral); background: var(--accent-soft); }

.toc { position: sticky; top: 96px; align-self: start; font-size: 13px; }
.toc p { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--muted); line-height: 1.35; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.on { color: var(--ink); border-left-color: var(--coral); font-weight: 500; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 56px 0 0; }
.pager a { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.pager a:hover { text-decoration: none; border-color: var(--ink); }
.pager span { display: block; font-size: 12px; color: var(--faint); }
.pager .next { text-align: right; grid-column: 2; }
.still { margin-top: 28px; padding: 18px 20px; border-radius: 10px; background: var(--soft); font-size: 15px; color: var(--muted); }
.still strong { color: var(--ink); }

/* ---- search page ---- */
#search-results .result { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
#search-results .result:hover { text-decoration: none; background: var(--soft); }
#search-results .result strong { display: block; font-size: 17px; color: var(--ink); }
#search-results .result em { display: block; font-style: normal; font-size: 12px; color: var(--faint); }
#search-results .result span { font-size: 14px; }
#search-results mark { background: var(--accent-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.foot a { color: var(--faint); }

/* ---- inside an app's help panel ---- */
.embed .products, .embed .foot, .embed .brand span, .embed .support { display: none; }
.embed .top { padding: 0 16px; gap: 14px; }
.embed .panel-nav { display: inline-flex; }
.embed .shell { padding-top: 28px; }

/* ---- narrower screens ---- */
@media (max-width: 1180px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .shell.with-side { display: block; padding-left: 24px; }
  .menu-btn { display: inline-flex; }
  /* The menu replaces the page while open: in the normal flow, below the header. */
  .side { display: none; position: static; max-height: none; overflow: visible; border-right: 0; padding: 0 0 40px; }
  .side-open .side { display: block; }
  .side-open .main { display: none; }
  .products { display: none; }
}
@media (max-width: 640px) {
  .top { gap: 12px; padding: 0 16px; }
  .top .ask { display: none; }
  .side-search { display: block; }
  .support { padding: 7px 10px; font-size: 13px; }
  .shell, .shell.with-side { padding: 24px 16px 48px; }
  .hero h1 { font-size: 34px; }
  .page-title, .article h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; }
  .product-list a { grid-template-columns: 1fr; gap: 10px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
