/* Public shell (0008). Colours: palette of the old x360 mapped onto Material tokens so no
   default purple remains in components, menus or states. */
@font-face {
  font-family: Roboto; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/roboto-cyrillic-400-normal.caf24554fcdd.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Roboto; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/roboto-latin-400-normal.4279528ce0e7.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Roboto; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/roboto-cyrillic-500-normal.d2fb2eb0b2e3.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Roboto; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/roboto-latin-500-normal.55cfeb5304f0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Roboto; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/roboto-cyrillic-700-normal.60bd52eeef7b.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Roboto; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/roboto-latin-700-normal.10a07810f28f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light dark;
  --md-sys-color-primary: light-dark(#2759d7, #87a9ff);
  --md-sys-color-on-primary: light-dark(#ffffff, #09142d);
  --md-sys-color-primary-container: light-dark(#e9eef6, #202a38);
  --md-sys-color-on-primary-container: light-dark(#17202c, #f1f5fb);
  --md-sys-color-secondary: light-dark(#2759d7, #87a9ff);           /* focus ring */
  --md-sys-color-on-secondary: light-dark(#ffffff, #09142d);
  --md-sys-color-secondary-container: light-dark(#e9eef6, #202a38); /* selected menu item */
  --md-sys-color-on-secondary-container: light-dark(#17202c, #f1f5fb);
  --md-sys-color-tertiary: light-dark(#2759d7, #87a9ff);
  --md-sys-color-surface-tint: light-dark(#2759d7, #87a9ff);
  --md-sys-color-background: light-dark(#f4f6fa, #0f141d);
  --md-sys-color-on-background: light-dark(#17202c, #f1f5fb);
  --md-sys-color-surface: light-dark(#ffffff, #171e29);
  --md-sys-color-on-surface: light-dark(#17202c, #f1f5fb);
  --md-sys-color-on-surface-variant: light-dark(#596578, #abb6c8);
  --md-sys-color-surface-variant: light-dark(#e9eef6, #202a38);
  --md-sys-color-surface-container-lowest: light-dark(#ffffff, #171e29);
  --md-sys-color-surface-container-low: light-dark(#ffffff, #171e29);
  --md-sys-color-surface-container: light-dark(#ffffff, #171e29);
  --md-sys-color-surface-container-high: light-dark(#ffffff, #1c2532);
  --md-sys-color-surface-container-highest: light-dark(#e9eef6, #202a38);
  --md-sys-color-outline: light-dark(#748196, #7d8aa0);
  --md-sys-color-outline-variant: light-dark(#cad3e0, #344154);
  --md-sys-color-shadow: #17202c;
  --md-sys-color-scrim: #17202c;
  --apk-coral: light-dark(#bd513d, #ff9b83);
  --apk-success: light-dark(#1f8a4c, #6fd39a);
  --apk-success-bg: light-dark(#e3f3ea, #163826);
  --apk-error: light-dark(#b3261e, #ff8f86);
  --apk-error-bg: light-dark(#fdeceb, #3a1e1e);
}
/* The saved choice (site.js, in <head> before first paint) wins over the system setting. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* No light-dark() (Chrome < 123, older WebViews): custom properties cannot take a plain fallback line, so the light values are set here. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --md-sys-color-primary: #2759d7;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #e9eef6;
    --md-sys-color-on-primary-container: #17202c;
    --md-sys-color-secondary: #2759d7;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #e9eef6;
    --md-sys-color-on-secondary-container: #17202c;
    --md-sys-color-tertiary: #2759d7;
    --md-sys-color-surface-tint: #2759d7;
    --md-sys-color-background: #f4f6fa;
    --md-sys-color-on-background: #17202c;
    --md-sys-color-surface: #ffffff;
    --md-sys-color-on-surface: #17202c;
    --md-sys-color-on-surface-variant: #596578;
    --md-sys-color-surface-variant: #e9eef6;
    --md-sys-color-surface-container-lowest: #ffffff;
    --md-sys-color-surface-container-low: #ffffff;
    --md-sys-color-surface-container: #ffffff;
    --md-sys-color-surface-container-high: #ffffff;
    --md-sys-color-surface-container-highest: #e9eef6;
    --md-sys-color-outline: #748196;
    --md-sys-color-outline-variant: #cad3e0;
    --apk-coral: #bd513d;
    --apk-success: #1f8a4c;
    --apk-success-bg: #e3f3ea;
    --apk-error: #b3261e;
    --apk-error-bg: #fdeceb;
  }
  footer { background: #17202c; }
}
body {
  margin: 0;
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  font-family: Roboto, system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--md-sys-color-surface); }
header.bar {
  position: sticky; top: 0; z-index: 5;
  background: var(--md-sys-color-surface);
  box-shadow: 0 1px 0 var(--md-sys-color-outline-variant);
}
.bar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 16px; box-sizing: border-box;
  display: flex; align-items: center; gap: 24px; min-height: 62px;
}
@media (min-width: 801px) { .bar-inner { min-height: 68px; padding-inline: 24px; } }
/* Logo: the old x360 wordmark [apk]proof (owner request); font file is used for it only, subset to the letters "apkproof" (pyftsubset). */
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/IBMPlexSans-SemiBold.718fd6888921.woff2") format("woff2");
}
.brand, .foot-brand {
  display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px;
  text-decoration: none; border-radius: 4px;
}
.wordmark {
  display: inline-flex; align-items: baseline;
  font: 600 25px/25px "IBM Plex Sans", Roboto, system-ui, sans-serif;
  letter-spacing: -0.045em; color: var(--md-sys-color-on-surface);
}
@media (max-width: 800px) { .wordmark { font-size: 22px; line-height: 22px; } }
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: ""; position: absolute; inset-block: 0; width: var(--bracket-w, 5px);
  border-block: 2px solid currentColor; pointer-events: none;
}
.bracket::before { left: 0; border-left: 2px solid currentColor; }
.bracket::after { right: 0; border-right: 2px solid currentColor; }
.wordmark__apk { --bracket-w: 6px; margin-right: 3px; padding: 5px 7px 4px; color: var(--md-sys-color-primary); }
.wordmark__proof { color: var(--md-sys-color-on-surface); }
nav.desktop { display: none; gap: 24px; align-self: stretch; margin-left: 10px; }
nav.desktop a, .mobile-nav-inner > a {
  display: inline-flex; position: relative; min-height: 44px; align-items: center;
  color: var(--md-sys-color-on-surface-variant); font-size: 14px; text-decoration: none;
}
nav.desktop a:hover, .mobile-nav-inner > a:hover { color: var(--md-sys-color-on-surface); }
nav.desktop a[aria-current="page"], .mobile-nav-inner > a[aria-current="page"] {
  color: var(--md-sys-color-on-surface); font-weight: 500;
}
nav.desktop a[aria-current="page"]::after, .mobile-nav-inner > a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--md-sys-color-primary);
}
.bar a:focus-visible, .bar summary:focus-visible, .bar button:focus-visible { border-radius: 4px; }
.utilities { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.picker { position: relative; }
.picker > summary {
  display: inline-flex; min-height: 44px; box-sizing: border-box; padding: 0 11px; align-items: center; justify-content: center;
  gap: 7px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: 7px; cursor: pointer; list-style: none;
  color: var(--md-sys-color-on-surface); font-size: 12px; user-select: none;
}
.picker > summary::-webkit-details-marker { display: none; }
.picker .chevron { width: 0; height: 0; border-inline: 4px solid transparent; border-top: 5px solid currentColor; transition: transform 140ms ease; }
.picker[open] .chevron { transform: rotate(180deg); }
.picker .menu {
  position: absolute; z-index: 5; top: calc(100% + 7px); right: 0; min-width: 176px; padding: 6px; box-sizing: border-box;
  border: 1px solid var(--md-sys-color-outline-variant); border-radius: 9px; background: var(--md-sys-color-surface);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--md-sys-color-on-surface) 14%, transparent);
}
.picker .menu a {
  display: flex; min-height: 44px; padding: 9px 10px; box-sizing: border-box; align-items: center; justify-content: space-between;
  gap: 16px; border-radius: 6px; color: var(--md-sys-color-on-surface); font-size: 13px; text-decoration: none;
}
.picker .menu a:hover, .picker .menu a[aria-current] { background: var(--md-sys-color-surface-variant); }
.picker .menu a[aria-current] { font-weight: 500; }
.picker .code { color: var(--md-sys-color-on-surface-variant); }
.theme {
  display: inline-flex; width: 44px; min-height: 44px; padding: 0; align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid var(--md-sys-color-outline-variant); border-radius: 7px; background: transparent;
  color: var(--md-sys-color-on-surface-variant);
}
.theme-glyph::before { content: "☾"; font-size: 18px; line-height: 1; }
.theme[aria-pressed="true"] .theme-glyph::before { content: "☀"; }
.mobile-nav { border-top: 1px solid var(--md-sys-color-outline-variant); }
.mobile-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 16px; box-sizing: border-box;
  display: flex; align-items: stretch; gap: 24px; min-height: 50px;
}
.mobile-nav-inner > a { min-height: 50px; }
.mobile-nav-inner .nav-more { margin-left: auto; display: flex; align-items: stretch; }
.mobile-nav-inner .nav-more > summary { min-height: 50px; border: 0; padding-inline: 8px 0; font-size: 14px; }
@media (min-width: 801px) {
  nav.desktop { display: flex; }
  .mobile-nav { display: none; }
}
@media (max-width: 800px) { .bar-inner { gap: 8px; } .utilities { gap: 3px; } }
main { width: 100%; box-sizing: border-box; max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
@media (min-width: 801px) { main { padding-inline: 24px; padding-top: 38px; } }
/* Footer stays dark in both themes. */
footer { --foot-ink: #f3f6fb; --foot-muted: #b8c2d0; background: light-dark(#17202c, #0a0e14); color: var(--foot-ink); }
footer .wordmark, footer .wordmark__proof { color: var(--foot-ink); }
footer .wordmark__apk { color: #87a9ff; }
.foot-inner {
  max-width: 1120px; margin: 0 auto; padding: 16px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  border-top: 1px solid color-mix(in srgb, var(--foot-ink) 22%, transparent); color: var(--foot-muted); font-size: 12px;
}
@media (min-width: 801px) { .foot-inner { padding-inline: 24px; min-height: 58px; } }
.foot-inner a { color: inherit; }
footer .foot-groups {
  max-width: 1120px; margin: 0 auto; padding: 32px 16px 24px; box-sizing: border-box;
  display: grid; gap: 26px 38px; grid-template-columns: 1fr;
}
@media (min-width: 600px) { footer .foot-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  footer .foot-groups { padding-inline: 24px; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, .65fr)); }
}
footer .foot-groups > * { min-width: 0; overflow-wrap: anywhere; }
.foot-about p { max-width: 300px; margin: 14px 0 0; color: var(--foot-muted); font-size: 13px; line-height: 1.55; }
footer .foot-group p {
  margin: 0 0 12px; font-size: 11px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--foot-muted);
}
footer .foot-group ul { list-style: none; margin: 0; padding: 0; }
footer .foot-group li + li { margin-top: 7px; }
footer .foot-group a {
  display: inline-block; padding: 8px 0; min-height: 28px; box-sizing: border-box; color: var(--foot-ink); font-size: 13px; line-height: 1.45;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
footer .foot-group a:hover { text-decoration: underline; }
footer .foot-group a:focus-visible, footer .foot-brand:focus-visible { outline: 2px solid #87a9ff; outline-offset: 2px; border-radius: 2px; }
footer .foot-group a[aria-current="page"] { font-weight: 500; }

/* Breadcrumbs: one component for the catalog family and the information pages. */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px;
  color: var(--md-sys-color-on-surface-variant); font-size: 14px; line-height: 1.5;
}
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 3px; }
/* Shared controls (0065 U20): the focus ring, fields, buttons and the kicker. Page files only place them. */
:is(a, button, summary, input, textarea, select):focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 3px; }
.input {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--md-sys-color-on-surface-variant);
  border-radius: 7px; background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface);
  font: 16px/24px Roboto, system-ui, sans-serif; overflow-wrap: anywhere;
}
textarea.input { resize: vertical; min-height: 160px; }
/* 0142: a native select gets the chevron of md-outlined-select (10×5 triangle, 19px from the edge, same colour). It is two
   gradient halves, not an SVG data: URI, because a data: image cannot read the colour token (dark theme). */
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image:
    linear-gradient(to bottom left, var(--md-sys-color-on-surface-variant) calc(50% - .5px), transparent calc(50% + .5px)),
    linear-gradient(to bottom right, var(--md-sys-color-on-surface-variant) calc(50% - .5px), transparent calc(50% + .5px));
  background-size: 5px 5px; background-repeat: no-repeat;
  background-position: right 24px center, right 19px center;
}
.input[aria-invalid="true"] { border-color: var(--apk-error); border-width: 2px; }
/* A link or button: filled by default, `.outlined` without the fill. */
.button {
  display: inline-flex; min-height: 44px; box-sizing: border-box; align-items: center; justify-content: center; padding: 9px 15px;
  border: 1px solid var(--md-sys-color-primary); border-radius: 7px; background: var(--md-sys-color-primary); cursor: pointer;
  color: var(--md-sys-color-on-primary); font: 500 14px/20px Roboto, system-ui, sans-serif; text-decoration: none;
}
.button.outlined { background: transparent; color: var(--md-sys-color-primary); }
.button[aria-disabled="true"] { opacity: .38; cursor: default; }
.kicker {
  display: flex; gap: 12px; align-items: center; margin: 0 0 16px; font-size: 12px; line-height: 18px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--md-sys-color-on-surface-variant);
}
.kicker::before { content: ""; flex: 0 0 32px; height: 3px; background: var(--md-sys-color-primary); }
