/* Help center, support and status pages. Builds on site.css; palette follows docs/BRAND_FOUNDATION.md. */
:root {
  --ok: #4cc38a;
  --warn: #e7b14a;
  --bad: #ef6b63;
  --maint: var(--tile-2);
}

/* Readable column for guides and the support page */
.doc { max-width: 760px; margin: 0 auto; }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--tile-3); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.doc .intro { text-align: left; padding-top: 18px; }
.doc .intro .lede { margin-left: 0; }
.doc h2 { margin-top: 44px; font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin-top: 12px; }
.doc strong { color: #fff; font-weight: 600; }
.doc ul.plain { margin-top: 12px; padding-left: 1.3em; display: grid; gap: 6px; }
.doc .ticks { margin-top: 14px; }
.doc .ticks li { color: var(--muted); }
.ui { color: #fff; font-weight: 500; white-space: normal; }
.ui::before { content: "\201C"; color: var(--tile-2); }
.ui::after { content: "\201D"; color: var(--tile-2); }
code.path { font-family: Consolas, "Cascadia Mono", monospace; font-size: .88em; color: #fff; background: rgba(169,200,236,.1); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; margin-top: 18px; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.steps > li::before {
  content: counter(step); position: absolute; left: 18px; top: 15px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tile-1); color: #fff; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .85rem;
}
.steps > li > strong:first-child { display: block; margin-bottom: 2px; }
.steps ul { margin-top: 8px; padding-left: 1.2em; display: grid; gap: 4px; }

/* Tips and notes */
.tip { margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(122,168,220,.35); border-left: 4px solid var(--tile-2); border-radius: 12px; background: rgba(11,35,67,.6); }
.tip h3, .doc .tip h3 { margin: 0 0 6px; font-size: .95rem; }
.tip p:first-child, .tip ul:first-child { margin-top: 0; }
.tip ul { padding-left: 1.2em; display: grid; gap: 6px; }
.tip.caution { border-left-color: var(--warn); }

.on-page { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.on-page a {
  font-size: .85rem; text-decoration: none; color: var(--tile-3);
  padding: 6px 14px; border: 1px solid rgba(169,200,236,.22); border-radius: 999px; background: rgba(11,35,67,.6);
}
.on-page a:hover { color: #fff; border-color: var(--tile-2); }
.doc section[id] { scroll-margin-top: 16px; }

/* Help center: search and the guide list */
.help-search { max-width: 560px; margin: 26px auto 0; }
.help-search input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(169,200,236,.35);
  background: rgba(6,21,40,.8); color: #fff; font: inherit; font-size: 1rem;
}
.help-search input::placeholder { color: rgba(159,176,198,.85); }
.help-search input:focus { outline: 2px solid var(--tile-2); outline-offset: 2px; border-color: var(--tile-2); }
.help-count { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 10px; min-height: 1.4em; }
.guides { margin-top: 24px; }
a.guide { display: block; text-decoration: none; transition: border-color .15s; }
a.guide:hover, a.guide:focus-visible { border-color: rgba(122,168,220,.6); }
a.guide h3 { color: #fff; }
a.guide .more { display: inline-block; margin-top: 10px; font-size: .9rem; color: var(--tile-3); }
a.guide .more::after { content: " \2192"; }
.guide-tag { display: inline-block; margin-bottom: 10px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tile-3); }
.guides [hidden], .no-match[hidden] { display: none !important; }
.no-match { margin: 24px auto 0; max-width: 560px; text-align: center; color: var(--muted); }

/* Support page */
.support-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.support-grid .card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.support-grid .big { font-family: "Montserrat", sans-serif; font-size: 1.35rem; font-weight: 600; overflow-wrap: anywhere; }
.support-grid .big a { color: #fff; text-decoration: none; }
.support-grid .card p { color: var(--muted); }
.support-grid .card p + p { margin-top: 8px; }

/* Status page */
.status-banner {
  margin-top: 32px; display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
}
.status-banner .dot { width: 18px; height: 18px; flex-shrink: 0; }
.status-banner h2, .doc .status-banner h2 { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
.status-banner p, .doc .status-banner p { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.status-banner.operational { border-color: rgba(76,195,138,.5); }
.status-banner.degraded { border-color: rgba(231,177,74,.6); }
.status-banner.outage { border-color: rgba(239,107,99,.65); }
.status-banner.maintenance { border-color: rgba(122,168,220,.6); }
.status-banner.unknown { border-color: rgba(169,200,236,.35); }

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: rgba(169,200,236,.4); }
.dot.operational { background: var(--ok); box-shadow: 0 0 0 4px rgba(76,195,138,.18); }
.dot.degraded { background: var(--warn); box-shadow: 0 0 0 4px rgba(231,177,74,.18); }
.dot.outage { background: var(--bad); box-shadow: 0 0 0 4px rgba(239,107,99,.2); }
.dot.maintenance { background: var(--maint); box-shadow: 0 0 0 4px rgba(122,168,220,.2); }

.status-block { margin-top: 40px; }
.status-block > h2, .doc .status-block > h2 { margin-top: 0; font-size: 1.2rem; }
.status-block > p.muted { margin-top: 6px; font-size: .9rem; }
.components { list-style: none; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.components li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.components li:first-child { border-top: 0; }
.components .name { color: #fff; font-weight: 500; }
.components .detail { flex-basis: 100%; color: var(--muted); font-size: .88rem; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.state .dot { width: 10px; height: 10px; box-shadow: none; }
.state.operational { color: var(--ok); }
.state.degraded { color: var(--warn); }
.state.outage { color: var(--bad); }
.state.maintenance { color: var(--tile-3); }

.incident { margin-top: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.incident.impact-minor { border-left: 4px solid var(--warn); }
.incident.impact-major, .incident.impact-critical { border-left: 4px solid var(--bad); }
.incident.impact-maintenance { border-left: 4px solid var(--maint); }
.incident.resolved { border-left: 4px solid rgba(169,200,236,.3); }
.incident h3, .doc .incident h3 { margin-top: 0; font-size: 1rem; }
.incident .meta, .doc .incident .meta { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.incident .pill {
  display: inline-block; margin-right: 8px; padding: 1px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; background: rgba(169,200,236,.14); color: var(--tile-3);
}
.updates { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.updates li { padding-left: 14px; border-left: 2px solid rgba(169,200,236,.2); }
.updates time { display: block; color: var(--tile-3); font-size: .8rem; }
.updates p, .doc .updates p { margin-top: 2px; color: var(--muted); font-size: .92rem; white-space: pre-line; overflow-wrap: anywhere; }
.empty { margin-top: 12px; color: var(--muted); font-size: .92rem; }

.status-message { margin-top: 24px; padding: 18px 20px; border: 1px solid rgba(231,177,74,.45); border-radius: 14px; background: rgba(11,35,67,.6); color: var(--text); }
.status-message a { color: var(--tile-3); }
.status-foot { margin-top: 28px; color: var(--muted); font-size: .85rem; text-align: center; }

@media (max-width: 700px) {
  .support-grid { grid-template-columns: 1fr; }
  .steps > li { padding: 14px 14px 14px 54px; }
  .steps > li::before { left: 12px; top: 13px; }
  .status-banner { padding: 18px 16px; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
