/* apps-shell.css: the shared nav pill and compact footer (shell.css) on the dark app pages, 2026-11-13.
   Each page sets its own product tokens on body: --app-acc (product colour, used for hovers and the footer
   accent), --app-btn / --app-btn-ink / --app-btn-h (the pill buttons: white on the black apps2 pages, the
   product colour on Lapis and Sandstone), --app-display / --app-body (the page's own fonts), --app-panel. */

body .sn, body .sn-sheet {
  --sn-bg: rgba(16, 17, 19, .9); --sn-ink: #f4f5f7; --sn-mute: rgba(235, 235, 245, .64); --sn-ind: rgba(255, 255, 255, .09);
  --sn-cta: var(--app-btn, #fff); --sn-cta-ink: var(--app-btn-ink, #000); --sn-cta-h: var(--app-btn-h, #e6e6e6);
  --sn-shadow: 0 10px 34px rgba(0, 0, 0, .5); --sn-display: var(--app-display, inherit);
  font-family: var(--app-body, inherit); font-size: 14px; line-height: 1.5;
}
.sn-bar { -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
html.perf .sn-bar, html[data-lite] .sn-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 23, 26, .96); }
.sn-panel { background: var(--app-panel, #141518); }
.sn-cta:hover { color: var(--sn-cta-ink); }
.sn-cta svg, .sn-sheet-cta svg { color: inherit; }

body .sf[data-theme="dark"] {
  --sf-bg: var(--app-foot, rgba(255, 255, 255, .05)); --sf-acc: var(--app-acc, #fff);
  --sf-pill: var(--app-btn, #fff); --sf-pill-h: var(--app-btn-h, #e6e6e6); --sf-pill-ink: var(--app-btn-ink, #000);
  --sf-display: var(--app-display, inherit); --sf-body: var(--app-body, inherit);
  margin-top: clamp(64px, 8vw, 128px); background: transparent; font-size: 14px; line-height: 1.5; letter-spacing: 0;
}
body .sf .sf-logo span { font-weight: 600; font-size: 21px; }
.sf a.sf-pill:hover { color: var(--sf-pill-ink); }

/* ---------- hover language (2026-11-13, shell.css): the app's own colour for the underline and the ring ---------- */
body { --hv: var(--app-acc, #fff); --hv-rest: rgba(255, 255, 255, .28); --hv-hair: rgba(255, 255, 255, .1); }
/* nothing lifts: the black pages' buttons only change their fill (apps2.css used to move them up 2 px) */
.btn:hover { transform: none; }
.btn-l { transition: background-color var(--hv-t) var(--hv-ease); }
@media (hover: hover) {
  .btn-l:hover { background: #e6e6e9; }
  .btn-l.ghost:hover { background: rgba(255, 255, 255, .2); }
  html:not(.film-on) .st-end .btn-l.ghost:hover { background: rgba(0, 0, 0, .14); }
}
.btn-l:focus-visible, .btn:focus-visible, .cta:focus-visible, .sign-in:focus-visible { outline: 2px solid var(--hv); outline-offset: 3px; }
/* text links in the page: the drawn underline in the app colour (white boxes keep black text, the line still draws) */
:is(p, li, dd, .upd, .note) a:not([class]):not(.sf *):not(.sn *):not(.sn-sheet *) {
  text-decoration: none; padding-bottom: 1px;
  background-image: linear-gradient(var(--hv), var(--hv)), linear-gradient(var(--hv-rest), var(--hv-rest)); background-repeat: no-repeat; background-position: 0 100%;
  background-size: 0 var(--hv-w), 100% 1px; transition: background-size var(--hv-t) var(--hv-ease), color var(--hv-t) var(--hv-ease);
}
:is(.pane, .dl-card, .log, .more > div) a:not([class]) { --hv-rest: rgba(0, 0, 0, .25); }
@media (hover: hover) {
  :is(p, li, dd, .upd, .note) a:not([class]):not(.sf *):not(.sn *):not(.sn-sheet *):hover { background-size: 100% var(--hv-w), 100% 1px; color: var(--hv); }
  :is(.pane, .dl-card, .log, .more > div) a:not([class]):hover { color: #000; }
  /* questions and folded lists: the text takes the app colour */
  summary { transition: color var(--hv-t) var(--hv-ease); }
  summary:hover { color: var(--hv); }
  :is(.pane, .dl-card, .log, .more > div) summary:hover { color: inherit; opacity: .72; }
}
:is(p, li, dd, .upd, .note) a:not([class]):not(.sf *):not(.sn *):not(.sn-sheet *):focus-visible { background-size: 100% var(--hv-w), 100% 1px; color: var(--hv); }
summary:focus-visible { outline: 2px solid var(--hv); outline-offset: 2px; border-radius: 8px; }

/* the performance switch lives in the footer's bottom row */
.sf .pm { display: inline-flex; align-items: center; gap: 10px; color: var(--sf-mute); cursor: pointer; font-size: 13px; }
.sf .pm small { color: var(--sf-mute); opacity: .75; font-size: 12px; }
.sf .pm .sw { transform: scale(.82); transform-origin: left center; margin-right: -8px; }

/* keep the page's own reveal timing: shell.css's blur is only for the light pages */
.rv { filter: none; }

/* the black app pages (apps2.css) use the same 1760 wrap and gutters as the rest of the site */
body[class^="app-"] .wrap { width: 100%; max-width: 1760px; padding-inline: var(--sv-pad); }
body[class^="app-"] .lic-page { padding-top: 112px; }

/* wider wrap, readable lines: long text in the boxes keeps a measure */
body[class^="app-"] :is(.pane:not(.log) p, .pane:not(.log) li, .sec-head p, .lic-page > p) { max-width: 78ch; }
/* the changelog fills the wide card in two columns instead of one long thin one */
@media (min-width: 1100px) {
  body[class^="app-"] .log { columns: 2 24rem; column-gap: clamp(40px, 4vw, 72px); }
  body[class^="app-"] .log h2 { column-span: all; }
  body[class^="app-"] .log h3 { break-after: avoid; }
  body[class^="app-"] .log ul, body[class^="app-"] .log p { break-inside: avoid; }
}

/* bold words inside the white boxes were white on white (.lib ol b uses the page's light text colour) */
body[class^="app-"] :is(.pane, .dl-card, .more > div, .log) :is(p, li) > :is(b, strong) { color: #000; }

body[class^="app-"] .pane dl.spec dt { color: #5a5f68; }


/* older versions folded away (2026-11-13: latest four stay open, the rest one click away) */
body[class^="app-"] .log details.log-older { column-span: all; margin-top: 26px; padding-top: 18px; }
body[class^="app-"] .log-older > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--t2, rgba(255, 255, 255, .75)); }
body[class^="app-"] .log-older > summary::-webkit-details-marker { display: none; }
body[class^="app-"] .log-older > summary::after { content: '+'; font-weight: 500; }
body[class^="app-"] .log-older[open] > summary::after { content: '\2212'; }
body[class^="app-"] .log-older > div { columns: 2 24rem; column-gap: clamp(40px, 4vw, 72px); margin-top: 8px; }
