@import url('/assets/ui/tokens.css');
/* Shared Lookout tokens (UI-2); public/assets/ui/tokens.css mirrors src/lookout/ui/tokens.css. */
:root { --ink: var(--lk-ink); --muted: var(--lk-muted); --paper: var(--lk-ground); --line: var(--lk-line); --accent: var(--lk-link); }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--lk-font-sans); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lk-focus); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 2; background: var(--lk-panel); padding: 12px; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 76px; display: flex; align-items: center; gap: 24px; padding: 16px max(24px, calc((100vw - 1280px) / 2)); color: var(--lk-header-muted); background: var(--lk-header-bg); }
.site-header a { color: var(--lk-header-ink); text-decoration: none; }
.brand { font: 600 28px/1.2 var(--lk-font-serif); }
.site-header > span { padding-left: 24px; border-left: 1px solid var(--lk-header-line); font-size: 14px; }
.app-link { margin-left: auto; padding: 8px 14px; border: 1px solid var(--lk-header-line); border-radius: 5px; font-size: 14px; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; max-width: 1280px; margin: 0 auto; padding: 54px 24px 24px; }
.contents { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; padding: 0 8px 10px 0; }
.eyebrow { color: var(--accent); font-size: 12px; line-height: 1.6; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.contents ol { list-style: none; padding: 0; margin: 20px 0; border-left: 1px solid var(--line); }
.contents li { margin: 0; }
.contents a { display: block; padding: 9px 16px; color: var(--muted); font-size: 14px; text-decoration: none; }
.contents a:hover, .contents a:focus-visible { color: var(--lk-accent-strong); background: var(--lk-selected); }
.contents-note { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 12px; }
main { min-width: 0; }
h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-family: var(--lk-font-serif); font-weight: 500; letter-spacing: -.025em; }
h1 { font-size: clamp(36px, 5vw, 60px); margin: 16px 0; }
h2 { font-size: 32px; margin: 0 0 24px; }
h3 { font-size: 18px; line-height: 1.45; }
p { margin: 0 0 18px; }
.lede { max-width: 600px; font-size: 22px; color: var(--muted); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 28px 0 40px; font-size: 14px; }
.button { display: inline-block; padding: 12px 18px; border-radius: 5px; background: var(--lk-accent); color: var(--lk-on-accent); text-decoration: none; font-weight: 650; }
.workflow { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 22px 0; border-block: 1px solid var(--line); font-size: 14px; }
.workflow b { color: var(--accent); margin-right: 8px; font-variant-numeric: tabular-nums; }
section { padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
li { margin: 12px 0; padding-left: 4px; }
ol, ul { padding-left: 24px; }
li::marker { color: var(--accent); font-weight: 700; }
.note { margin-top: 26px; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--lk-info-soft); }
.note p { margin: 6px 0 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin: 24px 0; background: var(--lk-panel); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th, td { padding: 15px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead { background: var(--lk-info-soft); }
tbody th { min-width: 140px; font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
.cards { display: grid; gap: 18px; }
.card { padding: 24px; border: 1px solid var(--line); background: var(--lk-panel); border-radius: 8px; }
.card h3 { margin: 0 0 12px; color: var(--accent); }
.card p { margin: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .layout { gap: 32px; grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 720px) {
  .site-header { padding: 16px 20px; gap: 12px; flex-wrap: wrap; }
  .site-header > span { padding-left: 12px; }
  .layout { display: block; padding: 28px 20px 10px; }
  .contents { position: static; max-height: none; padding: 0; margin-bottom: 32px; }
  .contents ol { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0; }
  .contents a { padding: 8px 10px; font-size: 13px; }
  .contents-note { display: none; }
  h2 { font-size: 28px; }
  .lede { font-size: 19px; }
  section { padding: 32px 0; }
  th, td { padding: 12px; overflow-wrap: anywhere; }
  tbody th { min-width: 100px; }
}
@media print {
  /* Print on the light palette even when the device is dark; :root:root:root outranks the token dark blocks. */
  :root:root:root { color-scheme: light; --lk-ground: #F4F2ED; --lk-panel: #FFFFFF; --lk-ink: #1E2830; --lk-muted: #4A5963; --lk-line: #DDD7C8; --lk-line-strong: #857C68; --lk-accent: #1F6F78; --lk-accent-strong: #15525A; --lk-on-accent: #FFFFFF; --lk-link: #15525A; --lk-info-soft: #E2EFF0; --lk-selected: #D6ECEC; }
  body { background: white; color: #111; font-size: 11pt; }
  .site-header, .contents, .hero-actions, .skip-link, footer a { display: none; }
  .layout { display: block; max-width: none; padding: 0; }
  section { padding: 20px 0; }
  h2, h3 { break-after: avoid; }
  tr, .card, .note { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  a { color: inherit; }
}
/* Documentation library, local search, reference tables and illustrated tutorials. */
.search-shell { max-width: 1280px; margin: auto; padding: 22px 24px 0; }
#doc-search { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#doc-search label { font-size: 14px; font-weight: 650; }
#search-query { flex: 1; min-width: 200px; padding: 12px 14px; font: inherit; color: var(--ink); border: 1px solid var(--lk-line-strong); border-radius: 5px; background: var(--lk-panel); }
button { cursor: pointer; font: inherit; }
#doc-search button { padding: 12px 20px; border: 1px solid var(--lk-accent); background: var(--lk-accent); color: var(--lk-on-accent); border-radius: 5px; }
#search-status { font-size: 14px; margin: 8px 0 0; }
#search-results { margin-top: 18px; padding: 18px 28px; border: 1px solid var(--line); background: var(--lk-panel); border-radius: 6px; }
#search-list { margin: 0; }
#search-list p { font-size: 14px; margin: 4px 0 16px; color: var(--muted); overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.manuals { margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.manuals ul { list-style: none; padding: 0; }
.manuals a[aria-current="page"] { color: var(--lk-accent-strong); background: var(--lk-selected); font-weight: 700; }
pre { padding: 20px; background: var(--lk-header-bg); color: var(--lk-header-ink); border-radius: 6px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
code { font-family: var(--lk-font-mono); }
.code-label { margin-top: 22px; font-weight: 650; }
.references { margin-top: 28px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
figure { margin: 28px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
figcaption { margin: 10px 0; font-size: 13px; color: var(--muted); }
.button { border: 1px solid var(--lk-accent); }
main p, main li, main th, main td { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .search-shell { padding: 18px 20px 0; }
  #doc-search label { width: 100%; }
  #search-query { min-width: 0; width: 100%; }
  #doc-search button { padding: 12px; }
  .contents ol { max-height: 240px; overflow-y: auto; }
}
@media print {
  .search-shell, .references, #download-openapi, #download-status, noscript { display: none; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #eee; color: #111; }
  .card, .note { break-inside: auto; }
  figure { break-inside: avoid; }
}
h1, h2, h3, .contents a { overflow-wrap: anywhere; }
.button { max-width: 100%; white-space: normal; }
