/* Barred datasheet. Shared by the landing page and the release notes. */
:root {
  --paper: #fbfaf6;
  --ink: #15161a;
  --muted: #5d5f68;
  --rule: #15161a;
  --hair: #d9d6cc;
  --shade: #efede6;
  --accent: #a8740c;
  --owl: #f2c865;
  --code-bg: #efede6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111216;
    --ink: #e9e7e1;
    --muted: #9c9ea8;
    --rule: #e9e7e1;
    --hair: #2b2d35;
    --shade: #1a1c22;
    --accent: #f2c865;
    --code-bg: #1d1f26;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .9em; }
code { background: var(--code-bg); padding: .05em .3em; border-radius: 3px; overflow-wrap: anywhere; }
.sheet { max-width: 980px; margin: 0 auto; padding: 0 16px 48px; }
@media (min-width: 700px) { .sheet { padding: 0 32px 64px; } }

/* Running header, like the top of a datasheet page */
.runhead {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0 8px; border-bottom: 3px solid var(--rule);
  font: 500 13px/1.3 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .04em;
}
.runhead .part { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.runhead img { width: 26px; height: 26px; border-radius: 6px; }
.runhead nav { display: flex; gap: 16px; }
.runhead nav a { color: var(--muted); text-decoration: none; }
.runhead nav a:hover { color: var(--ink); }
@media (max-width: 600px) { .runhead nav a:not(:last-child) { display: none; } }
.subhead {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 6px 0; border-bottom: 1px solid var(--rule);
  font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}

h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.12; letter-spacing: -.015em; font-weight: 600; margin: 28px 0 28px; max-width: 22em; }
h2 {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 19px; font-weight: 600; margin: 44px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--rule);
}
h2 .n { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--accent); min-width: 1.6em; }
h3 { font-size: 16px; font-weight: 600; margin: 22px 0 4px; }
h3 .n { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); font-weight: 500; margin-right: 10px; }
p { margin: 0 0 12px; }

/* Page one: features and applications side by side, description below */
.page1 { display: grid; gap: 0 40px; }
@media (min-width: 820px) { .page1 { grid-template-columns: 1fr 1fr; } }
.page1 h2 { margin-top: 8px; }
ul.ds { margin: 0 0 8px; padding-left: 18px; }
ul.ds li { margin: 3px 0; }
ul.ds li::marker { color: var(--accent); }

.desc { display: grid; gap: 28px; align-items: start; }
@media (min-width: 820px) { .desc { grid-template-columns: 1.15fr .85fr; } }

/* Figures */
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
figcaption b { color: var(--ink); font-weight: 600; }
.fig-box { border: 1px solid var(--hair); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 18px; background: var(--shade); }

/* Order box */
.order { border: 1px solid var(--rule); margin-top: 18px; }
.order .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--ink);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 12px; }
th, td { text-align: left; vertical-align: top; padding: 7px 10px; border: 1px solid var(--hair); }
thead th { background: var(--shade); border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
td.k { white-space: nowrap; font-weight: 500; }
td ul { margin: 0; padding-left: 18px; }
td li { margin: 2px 0; }
.order table { margin: 0; font-size: 13.5px; }
.order td, .order th { border: 0; border-bottom: 1px solid var(--hair); }
.order tr:last-child td { border-bottom: 0; }
.wrap-x { overflow-x: auto; }

.note { font-size: 14px; color: var(--muted); }

/* Owl tile (the app icon, live) */
.owl-btn { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 24%; width: min(60vw, 230px); aspect-ratio: 1; display: block; }
.owl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.tile { width: 100%; height: 100%; border-radius: 22.5%; background: linear-gradient(#1a2248, #0e1330); display: grid; place-items: center; }
.owl { width: 70%; height: 70%; color: var(--owl); overflow: visible; }
.owl .open { opacity: 0; transform: scaleY(.1); transform-box: fill-box; transform-origin: center; transition: opacity .12s ease, transform .22s cubic-bezier(.3,1.6,.5,1); }
.owl .shut { opacity: 1; transition: opacity .12s ease; }
.awake .owl .open { opacity: 1; transform: scaleY(1); }
.awake .owl .shut { opacity: 0; }
@media (hover: hover) {
  .owl-btn:hover .owl .open { opacity: 1; transform: scaleY(1); }
  .owl-btn:hover .owl .shut { opacity: 0; }
}
.ring { fill: none; stroke: currentColor; stroke-width: 8.5; stroke-linecap: butt; animation: orbit 7s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: 100; } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } .owl .open { transition: none; } }

/* Menu bar mock */
.menubar { width: 100%; max-width: 380px; border: 1px solid var(--hair); background: var(--paper); font-size: 13px; border-radius: 8px; overflow: hidden; }
.menubar .bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 5px 12px; background: var(--shade); border-bottom: 1px solid var(--hair); }
.menubar .bar .glyph { height: 18px; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.menubar ul { list-style: none; margin: 0; padding: 6px; }
.menubar li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 3px 10px; border-radius: 5px; }
.menubar li:hover { background: var(--shade); }
.menubar hr { border: 0; border-top: 1px solid var(--hair); margin: 5px 8px; }
.sw { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--hair); flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sw.on { background: var(--accent); }
.sw.on::after { left: 14px; }
.seg { display: inline-flex; border-radius: 5px; background: var(--shade); padding: 2px; font-size: 12px; }
.seg i { font-style: normal; padding: 0 9px; border-radius: 3px; color: var(--muted); }
.seg i.sel { background: var(--hair); color: var(--ink); }

.perched { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }

footer.foot {
  margin-top: 56px; padding-top: 8px; border-top: 3px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font: 12px/1.5 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted);
}
footer.foot a { color: var(--muted); }

/* Release notes inside Sparkle's update window: just the bullets */
body.sparkle { background: transparent; }
body.sparkle .sheet { padding: 12px 16px; }
