/* Gated area. Inherits the lab palette from ../styles.css. */

.lab-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 5vh, 3.5rem);
  width: min(100%, 62rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lab-back,
.lab-footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  text-decoration: none;
}

.lab-back:hover,
.lab-footer a:hover {
  color: #fff;
}

.lab-gate h1,
.lab-feed__head h1 {
  max-width: 18ch;
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lab-lead {
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.02rem;
  line-height: 1.6;
}

.lab-form {
  margin: clamp(1.75rem, 4vh, 2.75rem) 0 1rem;
}

.lab-form label {
  display: block;
  margin-bottom: 0.5rem;
  font: 400 0.62rem/1 var(--font-mono, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.lab-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 34rem;
}

.lab-field input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  color: inherit;
  font: inherit;
  background: rgba(0, 0, 0, 0.3);
}

.lab-field input:focus-visible,
.lab-signout:focus-visible {
  outline: 2px solid var(--accent, #ff5a35);
  outline-offset: 2px;
}

/* Invisible to people, irresistible to bots. */
.lab-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.lab-status {
  min-height: 1.4rem;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.lab-note {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.84rem;
  line-height: 1.5;
}

.lab-who {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
}

.lab-signout {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  background: transparent;
  cursor: pointer;
}

.lab-feed {
  display: grid;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}

.lab-update {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.lab-update__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  font: 400 0.62rem/1 var(--font-mono, monospace);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.lab-badge {
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(var(--accent-rgb, 255, 90, 53), 0.4);
  border-radius: 2rem;
  color: var(--accent, #ff5a35);
}

.lab-update h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
}

.lab-update p {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.lab-update p:last-child {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .lab-field button {
    width: 100%;
  }
}

/* The hidden attribute is only display:none from the browser stylesheet, so any
   author `display` rule silently defeats it. This puts it back. */
[hidden] {
  display: none !important;
}
