/* ULIAU page CSS. The :root block is exactly as start.mjs printed it (palette white-link-blue, type mona);
   everything below sits inside a visual, places a fragment, or carries the page's three languages.
   No inline style anywhere on the page: the site's CSP is style-src 'self'. */
:root {
  --p-bg: #ffffff; --p-surface: #f4f4f4; --p-ink: #111111; --p-muted: #6b6b6b;
  --p-accent: #1a4be0; --p-accent-ink: #ffffff; --p-action: #1a4be0; --p-action-ink: #ffffff;
  --p-inv-bg: #111111; --p-inv-surface: #1e1e1e; --p-inv-ink: #ffffff; --p-inv-muted: #9a9a9a;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #111111; --p-inv-action: #ffffff; --p-inv-action-ink: #111111;
  --font-display: "Mona Sans", system-ui, sans-serif;
  --font-text: "Mona Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --display-stretch: 104%;
  --ly-scale: 0.96;
}

/* Chinese and Japanese: the dealt Latin face first, then each language's own CJK faces (CJK web fonts
   run to megabytes, so these come from the visitor's system). */
html:lang(zh) {
  --font-display: "Mona Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-text: var(--font-display);
  --display-tracking: -0.01em; --display-tracking-xl: -0.015em;
}
html:lang(ja) {
  --font-display: "Mona Sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", "Noto Sans JP", system-ui, sans-serif;
  --font-text: var(--font-display);
  --display-tracking: -0.01em; --display-tracking-xl: -0.015em;
}
/* CJK headlines break only at the <wbr> between phrases; Japanese headings by phrase where supported */
html:lang(zh) h1, html:lang(ja) h1 { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) :is(h2, h3) { word-break: auto-phrase; }

/* the language words beside the main button */
.lang { display: flex; align-items: center; }
.lang .lang__link { padding-inline: var(--s-2); font-size: 14px; color: var(--muted); }
.lang .lang__link[aria-current="true"] { color: var(--ink); }
.footer__langs { display: inline-flex; gap: var(--s-4); }
.footer__langs a[aria-current="true"] { color: var(--ink); }

/* ---------- hero collage: the effect as its lit ground, three sets of pieces ---------- */
/* the effect is the collage's own ground, so its pause button is the one the set rotation uses */
.ly-collage { container-type: inline-size; border-radius: var(--r-lg); overflow: hidden; }
.ly-collage__set { z-index: 1; }
.ly-collage .ly-piece { box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 22px 48px -22px rgb(0 0 0 / .38); }
.ly-collage .pc { background: #fff; }
.pc { color: #161616; padding: 3.2cqw 3.6cqw; display: grid; align-content: start; gap: 1.6cqw;
      font: 400 max(13px, 2.1cqw)/1.4 var(--font-text); }
.pc__head { display: flex; align-items: center; gap: 1.6cqw; }
.pc__ic { width: max(16px, 3.4cqw); height: max(16px, 3.4cqw); flex: none; }
.pc__mono, .pc code { font-family: var(--font-mono); font-size: max(13px, 1.9cqw); color: #5a5a5a; }
.pc__title { font-weight: 500; font-size: max(14px, 2.6cqw); line-height: 1.25; }
.pc__text { margin: 0; color: #3a3a3a; }
.pc__sev { margin-left: auto; padding: .2cqw 1.2cqw; border-radius: .8cqw; font-weight: 500; font-size: max(13px, 1.8cqw); }
.pc__sev--high { color: #b42318; background: #fef3f2; }
.pc__state { justify-self: start; padding: .2cqw 1.2cqw; border-radius: .8cqw; font-size: max(13px, 1.8cqw); color: #555; background: #f1f1f1; }
.pc__state--ok { color: #067647; background: #ecfdf3; }
.pc__ok-text { color: #067647; }
.pc__row { display: flex; align-items: center; gap: 1.6cqw; padding-top: 1.4cqw; border-top: 1px solid #ececec; }
.pc__row > :last-child { margin-left: auto; }
.pc__dot { width: 1.4cqw; height: 1.4cqw; min-width: 8px; min-height: 8px; border-radius: 50%; background: #12b76a; }
.pc__meter { display: block; height: max(6px, 1.2cqw); border-radius: 99px; background: #e9eefc; overflow: hidden; }
.pc__meter i { display: block; width: 100%; height: 100%; background: var(--p-accent); }
.pc__big-ok { width: max(32px, 7cqw); height: max(32px, 7cqw); border-radius: 50%; display: grid; place-items: center; background: #ecfdf3; color: #067647; }
.pc__big-ok svg { width: 60%; height: 60%; }
.ly-collage .pc-diff { background: #0f1115; }
.pc-diff { color: #d6d9e0; gap: .6cqw; padding: 3cqw 3.2cqw; }
.pc-diff .pc__ln { display: block; white-space: pre; overflow: hidden; color: #c9ced8; font-size: max(13px, 1.85cqw); }
.pc-diff .pc__ln i { font-style: normal; display: inline-block; width: 2.4cqw; }
.pc-diff .pc__ln--add { color: #7ee2a8; background: rgb(46 160 67 / .16); }
.pc-diff .pc__ln--del { color: #ff9b94; background: rgb(248 81 73 / .14); }
.pc-strings { gap: 1cqw; }
.pc-strings > span:not(.pc__mono) { font-size: max(14px, 2.5cqw); padding-top: 1cqw; border-top: 1px solid #ececec; }

/* placements, in % of the collage; one piece per set ends at 96% x 96% (the pause disc sits on its corner) */
.pc-finding { left: 4%; top: 6%; width: 58%; }
.pc-diff    { left: 30%; top: 50%; width: 66%; }
.pc-retest  { left: 52%; top: 76%; width: 44%; height: 20%; }
.pc-hosts   { left: 4%; top: 6%; width: 54%; }
.pc-backup  { left: 46%; top: 50%; width: 50%; height: 46%; align-content: end; }
.pc-alert   { left: 8%; top: 64%; width: 44%; }
.pc-release { left: 38%; top: 6%; width: 58%; }
.pc-strings { left: 4%; top: 30%; width: 40%; }
.pc-build   { left: 30%; top: 70%; width: 66%; height: 26%; align-content: end; }
@media (max-width: 639px) {
  .pc-finding .pc__text, .pc-hosts .pc__row:nth-of-type(n+4), .pc-backup .pc__text, .pc-strings > span:last-child { display: none; }
  .pc-diff .pc__ln:nth-child(2), .pc-retest .pc__big-ok { display: none; }
  .pc-finding, .pc-hosts { width: 70%; }
}

/* ---------- security: the audit window (app-frame recipe, sections-library.md) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* ---------- games: facts as plain lines; the hub's frame as tall as the text column, so the gap to the
   next section matches the others ---------- */
/* the store hub across the wrap, as tall as the section's screen allows */
#games .frame--band { --ratio: 36%; }
@media (max-width: 1023px) { #games .frame--band { --ratio: 62%; } }
@media (max-width: 639px) { #games .frame--band { --ratio: 175%; } }
.plain-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.plain-facts li { padding-top: var(--s-2); border-top: 1px solid var(--line); }

/* ---------- operations: one panel height for the group, each fragment at its place ---------- */
#ops .panel { --p-h: 336px; }
/* 1024 to 1279 (a 768px-tall laptop screen): row 1 holds the three-line h2 and the first two cards in one screen */
@media (min-width: 1024px) and (max-width: 1279px) { #ops .panel { --p-h: 232px; } }
@media (max-width: 639px) { #ops .panel { --p-h: 244px; } }
/* games: the store hub runs wide and short once the split stacks, so the section stays one screen */

.slot-term { --fit-max: 440px; --ax: max(24px, 50% - 220px); --ay: 36px; --ay-sm: 16px; }
.slot-stat { --ax: 32px; --ay: 36px; }
.slot-notify { --fit-max: 380px; --ax: 32px; --ay: calc(100% - 200px); --ay-sm: 24px; }
#ops .ui-term__bar { --p: 1; }
.ui-note__ico--tool { background: #fff; }
.ui-note__ico--tool img { width: 18px; height: 18px; }

/* ---------- the nav's menu card ---------- */
.menu-card .panel { --p-h: 160px; }
.mega-note { --ax: 24px; --ay: 24px; width: 340px; }

/* ---------- FAQ: the report's contents beside the questions ---------- */
.faq-side { display: grid; gap: var(--s-7); align-content: start; }
.report-frame { --ratio: 0px; padding: var(--s-6); background: var(--surface); border: 0; }
.report-doc { width: 100%; background: #fff; border-radius: var(--r-md); padding: var(--s-6); display: grid; gap: var(--s-4);
              box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 18px 40px -24px rgb(0 0 0 / .3); }
.rd__head { display: flex; align-items: center; justify-content: space-between; }
.rd__head .pc__mono { font-size: 13px; color: var(--muted); }
.rd__logo { width: 56px; height: auto; }
.rd__title { font: var(--display-weight) 22px/1.25 var(--font-display); }
.rd__toc { list-style: none; margin: 0; padding: 0; display: grid; }
.rd__toc li { display: flex; gap: var(--s-4); padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.rd__toc li span { font-family: var(--font-mono); color: var(--muted); min-width: 1.5em; }
.rd__sev { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rd__sev .pc__sev { margin-left: 0; font-size: 13px; padding: 2px 8px; border-radius: 4px; }
.rd__sev--m { color: #b54708; background: #fffaeb; }
.rd__sev--l { color: #175cd3; background: #eff8ff; }
.rd__langs { display: flex; gap: var(--s-4); font-size: 14px; color: var(--muted); }

/* ---------- the close: its button drawn like the hero's (one action, one look), the name with room for its caps ---------- */
.close--word .btn--primary { height: 64px; padding-inline: var(--s-6); font-size: var(--t-lead); }
/* the kit sets .86 with overflow: clip; Mona Sans's caps need their full ascent inside the box */
.close--word .close__word { line-height: 1.22; font-size: clamp(36px, 9.4vw, 136px); }
@media (max-width: 639px) { .close--word .close__word { font-size: 9.4vw; } }

/* operations, network card: the network as its admins see it, held still (no diagram reveal) */
.slot-net { --ax: 32px; --ay: 36px; width: min(420px, calc(100% - 64px)); }
.net-map { padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); font-size: 13px; }
.net-map__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--u-line); }
.net-map__core { font-weight: 500; font-size: 14px; }
.net-map code { font-family: var(--font-mono); font-size: 12px; color: var(--u-muted, #666); }
.net-map__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.net-map__rows li { display: flex; align-items: center; gap: var(--s-3); }
.net-map__rows li code { margin-left: auto; }
.net-map .pc__dot { width: 8px; height: 8px; }
