/* Graphic site frame; the lab's original instrument colors and JS stay intact. */
html,
body {
  background: #f7f3e9;
}
body {
  background-image: none;
}
.lab-masthead,
.lab-introduction,
.lab-footer {
  color: #f7f3e9;
  background: #191816;
  padding-inline: clamp(24px, 5vw, 88px);
}
.lab-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 96px;
  padding-top: 23px;
  padding-bottom: 23px;
  border-bottom: 1px solid #45413a;
}
.lab-name {
  font:
    600 23px/1.6 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -0.055em;
  color: inherit;
  text-decoration: none;
}
.lab-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
.lab-navigation a {
  font:
    14px/1.5 Arial,
    Helvetica,
    sans-serif;
  color: #eee;
  text-decoration: none;
  padding-block: 8px;
}
.lab-navigation a:hover,
.lab-navigation a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.lab-introduction {
  padding-top: 55px;
  padding-bottom: 42px;
}
.lab-kicker {
  font:
    13px/1.5 Arial,
    Helvetica,
    sans-serif;
  margin: 0 0 32px;
  color: #b5b5b5;
}
.lab-introduction h1 {
  font:
    400 clamp(44px, 7.5vw, 112px)/0.98 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -0.065em;
  max-width: 1050px;
  margin: 0 0 36px;
}
.lab-introduction > p:not(.lab-kicker) {
  font:
    20px/1.5 Arial,
    Helvetica,
    sans-serif;
  max-width: 660px;
}
.lab-introduction .lab-caption {
  font:
    13px/1.6 Arial,
    Helvetica,
    sans-serif !important;
  color: #bdbdbd;
  margin-bottom: 0;
}
.shell {
  background: #101418;
  padding: 28px;
  width: 100%;
  margin: 0;
  border-block: 1px solid #30404a;
}
.brand h2 {
  margin: 0 0 8px;
  font: 500 20px/1.3 var(--font-sans);
}
.lab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 42px;
  font:
    13px/1.5 Arial,
    Helvetica,
    sans-serif;
}
.lab-footer a {
  color: #fff;
}
.lab-signature {
  font:
    20px/1.4 Arial,
    Helvetica,
    sans-serif;
}
.lab-skip {
  position: absolute;
  top: 8px;
  left: 16px;
  transform: translateY(-180%);
  background: #fff;
  color: #080808;
  padding: 12px;
  z-index: 10;
}
.lab-skip:focus {
  transform: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (max-width: 650px) {
  .lab-masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .lab-navigation {
    gap: 20px;
  }
  .lab-introduction {
    padding-top: 35px;
  }
  .lab-introduction h1 {
    font-size: clamp(42px, 11vw, 68px);
  }
  .lab-introduction > p:not(.lab-kicker) {
    font-size: 17px;
  }
  .shell {
    padding: 14px;
  }
  .lab-footer {
    flex-wrap: wrap;
    gap: 18px;
  }
}

@font-face {
  font-family: "Eczar";
  src: url('/assets/fonts/Eczar.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
.lab-signature {
  font-family: "Eczar", "Kohinoor Devanagari", serif;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.lab-navigation { gap: 36px; }
.lab-navigation a { font-size: 15px; letter-spacing: .015em; }
@media (max-width: 1000px) {
  .lab-navigation { gap: 24px; }
}
@media (max-width: 700px) {
  .lab-navigation { gap: 14px 24px; }
  .lab-navigation a { font-size: 14px; }
}

/* Indic display typography, with instrument text and data colours preserved. */
.lab-introduction h1 {
  font-family: "Eczar", "Kohinoor Devanagari", serif;
  font-size: clamp(34px, 5.4vw, 80px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.lab-sanskrit {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  color: #dcc6ad;
  font: 400 23px/1.5 "Eczar", "Kohinoor Devanagari", serif;
}
.brand h2, .panel-title h2 {
  font-family: "Eczar", "Kohinoor Devanagari", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.lab-introduction { border-bottom: 2px solid #91755d; }
@media (max-width: 650px) {
  .lab-introduction h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .brand h2, .panel-title h2 { font-size: 22px; }
}

/* Match the public site's frame without changing the replay instrument. */
.lab-name { white-space: nowrap; }
.lab-name:hover,
.lab-navigation a:hover,
.lab-footer a:hover { color: #dcc6ad; }
.lab-navigation a[aria-current="page"] { text-decoration-color: #dcc6ad; }
.lab-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  padding-block: 30px;
  font-size: 15px;
}
.lab-footer > :last-child { justify-self: end; }
.lab-signature { text-align: center; }
@media (max-width: 720px) {
  .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .lab-masthead { align-items: flex-start; flex-direction: column; gap: 16px; }
  .lab-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0 18px;
  }
  .lab-navigation a { min-height: 44px; display: flex; align-items: center; }
  .lab-footer { font-size: 13px; padding-block: 25px; }
}
@media (max-width: 360px) {
  .lab-footer { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .lab-signature { grid-column: 1 / -1; grid-row: 1; }
  .lab-footer > :first-child,
  .lab-footer > :last-child { grid-row: 2; }
}
