:root {
  --concept-orange: #e8500a;
  --concept-ink: #171512;
  --concept-paper: #f2efe9;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 38px !important;
}

x-dc,
.site-shell {
  display: block;
  max-width: 100%;
}

img,
input,
select,
textarea,
button { max-width: 100%; }

input,
select,
textarea { width: 100%; }

a,
button { touch-action: manipulation; }

.concept-disclosure {
  position: fixed;
  inset: auto 0 0;
  z-index: 10000;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 18px;
  border-top: 2px solid var(--concept-paper);
  background: var(--concept-orange);
  color: #fff;
  font: 600 11px/1.35 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.concept-disclosure strong { color: var(--concept-ink); }

@media (max-width: 900px) {
  .site-shell {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  body > div:not(.concept-disclosure),
  body > div > div,
  x-dc > div,
  .site-shell > *,
  .site-shell > * > * {
    min-width: 0 !important;
  }

  nav {
    position: sticky !important;
    top: 0 !important;
    padding: 18px 22px !important;
  }

  nav > div:last-child {
    gap: 14px !important;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  header,
  section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  header > div,
  section[style*="grid-template-columns"][style*="220px 1fr 340px"],
  section[style*="grid-template-columns"][style*="1fr 1fr"],
  section > div[style*="grid-template-columns"][style*="220px 1fr"],
  section > div[style*="grid-template-columns"][style*="1fr 1fr"],
  div[style*="grid-template-columns"][style*="220px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  section[style*="grid-template-columns"][style*="220px 1fr 340px"] {
    gap: 26px !important;
  }

  section[style*="grid-template-columns"][style*="1fr 1fr"] > div:first-child {
    border-right: 0 !important;
    border-bottom: 2px solid var(--concept-ink);
  }

  div[style*="grid-template-columns"][style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  div[style*="grid-template-columns"][style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns"][style*="repeat(3, 1fr)"] > div[style*="border-right"] {
    border-right: 0 !important;
    border-bottom: 2px solid var(--concept-ink);
  }

  h1 { font-size: clamp(46px, 11vw, 76px) !important; }
  h2 { font-size: clamp(38px, 8vw, 56px) !important; }

  p[style*="max-width"],
  div[style*="max-width"] { max-width: 100% !important; }

  div[style*="height"][style*="460px"],
  div[style*="min-height"][style*="460px"] {
    height: 320px !important;
    min-height: 320px !important;
  }

  div[style*="min-height"][style*="480px"] { min-height: 360px !important; }

  footer {
    padding: 34px 22px !important;
    flex-wrap: wrap;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body { padding-bottom: 62px !important; }

  .site-shell > div:first-child {
    justify-content: center !important;
    padding: 7px 14px !important;
    text-align: center;
  }

  .site-shell > div:first-child > span:first-child { display: none !important; }

  .site-shell > div:first-child > span:last-child {
    display: block !important;
    font-size: 9px;
  }

  nav {
    padding: 13px 16px !important;
    gap: 10px;
  }

  nav > a:first-child { flex: 0 1 auto; }

  nav > div:last-child {
    flex: 0 0 auto;
    gap: 0 !important;
  }

  nav > div:last-child a:not(:last-child) { display: none !important; }

  nav > div:last-child a:last-child {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 13px !important;
    font-size: 12px;
    white-space: nowrap;
  }

  header,
  section {
    padding: 52px 18px !important;
  }

  header [style*="position"][style*="absolute"] { display: none !important; }

  h1 {
    font-size: clamp(40px, 12vw, 54px) !important;
    line-height: 1.02 !important;
  }

  h2 {
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.06 !important;
  }

  h1,
  h2,
  h3,
  p,
  a,
  span { overflow-wrap: break-word; }

  input,
  select,
  textarea { font-size: 16px !important; }

  nav > a:first-child { min-height: 44px; }

  section a[style*="border-bottom"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  div[style*="grid-template-columns"][style*="repeat(4, 1fr)"],
  div[style*="grid-template-columns"][style*="repeat(2, 1fr)"],
  div[style*="grid-template-columns"][style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="display"][style*="flex"][style*="justify-content"][style*="space-between"] {
    flex-wrap: wrap;
    gap: 22px;
  }

  header div[style*="display"][style*="flex"][style*="gap"][style*="14px"] {
    width: 100%;
    flex-wrap: wrap;
  }

  header div[style*="display"][style*="flex"][style*="gap"][style*="14px"] > a {
    flex: 1 1 145px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 18px !important;
    padding-right: 18px !important;
    text-align: center;
  }

  section > div[style*="padding"][style*="90px 48px"],
  section > div[style*="padding"][style*="70px 48px"],
  section > div[style*="padding"][style*="56px 48px"] {
    padding: 48px 18px !important;
  }

  section > div[style*="padding"][style*="90px 48px"] > div[style*="padding"][style*="36px"],
  div[style*="padding"][style*="34px"][style*="background"] {
    padding: 22px 16px !important;
  }

  div[style*="padding"][style*="20px 24px"][style*="justify-content"][style*="space-between"] {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 7px !important;
  }

  div[style*="height"][style*="460px"],
  div[style*="min-height"][style*="460px"] {
    height: 260px !important;
    min-height: 260px !important;
  }

  div[style*="min-height"][style*="480px"] { min-height: 300px !important; }

  div[style*="height"][style*="300px"] { height: 260px !important; }

  footer {
    padding: 32px 18px 40px !important;
    align-items: flex-start !important;
  }

  footer > div:last-child { align-items: flex-start !important; }

  footer > div[style*="height"][style*="26px"] { display: none !important; }

  footer a {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
  }

  .concept-disclosure {
    min-height: 0;
    flex-wrap: wrap;
    gap: 3px 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    font-size: 8px;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
