/* The public site's own additions, on top of app.css (the app's stylesheet, copied as built).
   Colours are the app's own variables, so light and dark follow [data-theme]. */

.ob-band { padding: 56px 0; border-top: 1px solid var(--color-line); }
.ob-band.ob-tinted { background: var(--color-paper); }
@media (min-width: 640px) { .ob-band { padding: 72px 0; } }

/* A product picture in a window frame. */
.ob-frame {
  margin: 0; overflow: hidden; border: 1px solid var(--color-line); border-radius: 14px;
  background: var(--color-surface); box-shadow: var(--shadow-lift);
}
.ob-frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--color-line); }
.ob-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-strong); opacity: .55; }
.ob-frame img { width: 100%; height: auto; }
.ob-frame img.shot-light { display: block; }
:root[data-theme=dark] .ob-frame img.shot-light { display: none; }
:root[data-theme=dark] .ob-frame img.shot-dark { display: block; }

/* Text beside a picture, alternating sides. */
.ob-rows { display: grid; gap: 64px; }
.ob-row { display: grid; gap: 24px; align-items: center; }
.ob-row-text h3 { margin-top: 12px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.ob-row-text p { margin-top: 8px; max-width: 26rem; font-size: 16px; line-height: 1.6; color: var(--color-muted); }
.ob-num {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--color-accent-100); color: var(--color-accent-600); font-size: 13px; font-weight: 700;
}
@media (min-width: 900px) {
  .ob-row { grid-template-columns: 5fr 7fr; gap: 56px; }
  .ob-row.ob-flip { grid-template-columns: 7fr 5fr; }
  .ob-row.ob-flip .ob-row-text { order: 2; }
  .ob-row.ob-flip .ob-row-pic { order: 1; }
}

.ob-pair { max-width: 1200px; }
.ob-solo { max-width: 920px; margin: 0 auto; }
.ob-caption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--color-muted); }
.ob-side-pic { margin-top: 32px; max-width: 520px; }

/* Nothing on the page may push it wider than the screen. */
html, body { overflow-x: clip; }
img { max-width: 100%; }

/* ---------------------------------------------------------------- the API page (/docs) */
.doc-main { padding: 40px 0 72px; }
.doc-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
  .doc-side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
  .doc-toc > summary { display: none; }
}
.doc-toc { border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); }
.doc-toc > summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600; list-style: none; }
.doc-toc > summary::after { content: "+"; float: right; color: var(--color-muted); }
.doc-toc[open] > summary::after { content: "−"; }
.doc-toc nav { padding: 8px 6px 12px; }
@media (min-width: 1024px) { .doc-toc { border: 0; background: none; } .doc-toc nav { padding: 0; } }
.doc-toc ul ul { margin: 2px 0 8px 6px; }
.doc-toc a { display: block; border-radius: 8px; padding: 5px 8px; font-size: 13.5px; color: var(--color-ink); }
.doc-toc a:hover { background: var(--color-hover); }
.doc-toc .doc-sec { font-weight: 600; }
.doc-toc ul ul a { display: flex; gap: 6px; align-items: baseline; padding: 3px 8px; font-size: 12.5px; color: var(--color-muted); }
.doc-p { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.doc-m { flex: none; min-width: 42px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.doc-m-get { color: var(--color-ink-green); } .doc-m-post { color: var(--color-ink-blue); }
.doc-m-patch, .doc-m-put { color: var(--color-ink-amber); } .doc-m-delete { color: var(--color-ink-rose); }

.doc-top { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--color-line); }
.doc-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-600); }
.doc-top h1 { margin-top: 10px; font-size: 38px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.doc-lead { margin-top: 12px; max-width: 42rem; font-size: 16.5px; line-height: 1.6; color: var(--color-muted); }
.doc-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.doc-btn { display: inline-flex; height: 40px; align-items: center; border-radius: 10px; border: 1px solid var(--color-strong);
  padding: 0 16px; font-size: 14.5px; font-weight: 600; background: var(--color-surface); }
.doc-btn:hover { background: var(--color-hover); }
.doc-btn-primary { border-color: transparent; background: var(--color-accent-500); color: #fff; }
.doc-btn-primary:hover { background: var(--color-accent-600); }

.doc-body { min-width: 0; font-size: 15.5px; line-height: 1.65; }
.doc-body h2 { position: relative; margin-top: 44px; scroll-margin-top: 84px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.doc-body h3 { margin-top: 24px; font-size: 18px; font-weight: 600; }
.doc-hash { position: absolute; left: -1.1em; color: var(--color-muted); opacity: 0; }
.doc-body h2:hover .doc-hash { opacity: 1; }
.doc-body p { margin-top: 12px; }
.doc-body ul, .doc-body ol { margin-top: 12px; padding-left: 1.3em; }
.doc-body ul { list-style: disc; } .doc-body ol { list-style: decimal; }
.doc-body li { margin-top: 6px; scroll-margin-top: 84px; }
.doc-body li:target { background: var(--color-accent-50); border-radius: 6px; }
.doc-body a { color: var(--color-accent-600); text-decoration: underline; text-underline-offset: 2px; }
.doc-body strong { font-weight: 600; }
.doc-body code { border-radius: 5px; background: var(--color-hover); padding: 1px 5px; font-size: .88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.doc-body .tip { margin-top: 14px; border-left: 3px solid var(--color-accent-500); padding: 6px 14px; color: var(--color-muted); }
.doc-code { position: relative; margin-top: 14px; }
.doc-code pre { overflow-x: auto; border-radius: 12px; background: #0f1420; color: #e7ecf5; padding: 16px 18px; padding-right: 76px;
  font-size: 13px; line-height: 1.6; }
:root[data-theme=dark] .doc-code pre { background: #0a0e17; border: 1px solid var(--color-line); }
.doc-code pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.doc-copy { position: absolute; top: 10px; right: 10px; border-radius: 8px; border: 1px solid #ffffff33; background: #ffffff14;
  color: #e7ecf5; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.doc-copy:hover { background: #ffffff26; }

/* A step card's own words, beside its picture (the home page's four steps). */
.ob-card-text h3 { font-size: 24px; }
.ob-card-text > p { max-width: 26rem; font-size: 16px; }
.ob-card-text ul { max-width: 26rem; }
@media (max-width: 639px) { .ob-wide-only { display: none; } }
