/*
 * Styles that must not depend on the app's bundle (PLT:G1-001 §4.1 #2, §7.3): the inline unsupported page and the
 * static boot skeleton. Plain, unlayered CSS: the app stylesheet may still load on the unsupported page, and its
 * Tailwind reset lives in @layer base, which unlayered rules always win over — so every element the page uses is
 * styled here, bullets and heading weight included (B0-04 review UX-10). V4: the colours are the design tokens' values
 * as hex literals (DESIGN-SYSTEM §2.1: --text, --border-strong, --bg, --separator), because this file loads before
 * the app stylesheet and cannot read variables; it keeps the system faces (Inter is the app stylesheet's).
 */
.itp-unsupported {
  max-width: 36rem;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1c1b19;
}
.itp-unsupported[hidden],
#root[hidden] {
  display: none;
}
.itp-unsupported h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.itp-unsupported p {
  margin: 1rem 0 0.5rem;
}
.itp-unsupported ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  list-style: disc outside;
}
.itp-unsupported li {
  display: list-item;
  margin: 0.25rem 0;
}
/* The https:// address is the one thing that fixes E1: a link by its underline, not only its colour (WCAG 1.4.1), and a
   long deep link wraps instead of pushing the page sideways on a phone (B0-05 review UX-03). */
.itp-unsupported a {
  color: #1c1b19;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
/* The edge is what makes it a button on a near-white page: --border-strong #8a8579, over 3 : 1 (WCAG 1.4.11; B0-05 review UX-09). */
.itp-unsupported button {
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0 1rem;
  border: 1px solid #8a8579;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #1c1b19;
  font: inherit;
  cursor: pointer;
}

/* The static boot skeleton (UX-16): the top bar and three grey lines of the React skeleton, until React replaces it. */
.itp-boot {
  min-height: 100dvh;
  background: #f6f5f2;
}
.itp-boot-bar {
  height: 3.5rem;
  border-bottom: 1px solid #e8e5de;
  background: #ffffff;
}
.itp-boot-lines {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem;
}
.itp-boot-lines div {
  height: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.25rem;
  background: #e8e5de;
}
.itp-boot-lines div:first-child {
  width: 33%;
  height: 1.5rem;
}
.itp-boot-lines div:nth-child(2) {
  width: 66%;
}
.itp-boot-lines div:nth-child(3) {
  width: 50%;
}

/* Outdoor contrast (DESIGN-SYSTEM §11): contrast-boot.js sets data-contrast on <html> before the first paint, so the
   skeleton and the unsupported page match the app. Hex values of tokens.css' outdoor block: --text, --border-strong,
   --separator, --track on white. */
:root[data-contrast='outdoor'] .itp-unsupported {
  color: #000000;
}
:root[data-contrast='outdoor'] .itp-unsupported a {
  color: #000000;
}
:root[data-contrast='outdoor'] .itp-unsupported button {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
}
:root[data-contrast='outdoor'] .itp-boot {
  background: #ffffff;
}
:root[data-contrast='outdoor'] .itp-boot-bar {
  border-bottom: 2px solid #6b6b6b;
}
:root[data-contrast='outdoor'] .itp-boot-lines div {
  background: #bdbdbd;
}
