/* ============================================================
   Artemis III.5b // Project Rhino — Lunar Habitat page
   ============================================================ */

.lr-body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(40, 60, 100, 0.35), transparent 55%),
    var(--bg-deep);
}

.lr-header .logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.lr-class-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--stamp-red);
  border: 1px solid var(--stamp-red);
  padding: 0.3rem 0.5rem;
  background: rgba(185, 28, 28, 0.1);
  white-space: nowrap;
}

.lr-section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.lr-accent { color: var(--accent); }

/* Hero */
.lr-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.lr-hero-brand {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: #080c12;
}

.lr-brand-banner {
  width: 100%;
  height: auto;
  display: block;
}

.lr-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: center;
}

.lr-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--info);
  margin-bottom: 0.5rem;
}

.lr-hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-bright);
  margin-bottom: 0.35rem;
}

.lr-subtitle {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.lr-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.lr-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.lr-hero-stats > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-radius: 2px;
}

.lr-stat-n {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.lr-stat-l {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  line-height: 1.25;
}

.lr-footnote {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

.lr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lr-hero-patch-wrap {
  text-align: center;
}

.lr-hero-patch {
  width: min(320px, 100%);
  height: auto;
  border-radius: 50%;
  border: 3px solid var(--accent-dim);
  box-shadow:
    0 0 0 1px rgba(0, 200, 240, 0.3),
    0 0 40px rgba(100, 160, 255, 0.25),
    0 16px 40px rgba(0, 0, 0, 0.5);
  background: #0a0e14;
}

.lr-patch-cap {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-top: 0.75rem;
}

/* Mission */
.lr-two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.lr-two-col p {
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.lr-quote {
  border-left: 3px solid var(--border-bright);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: var(--bg-card);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lr-quote.ns { border-left-color: #c77dff; }
.lr-quote.cmd { border-left-color: var(--info); }

.lr-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--text-dim);
}

.lr-fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--info);
  padding: 1.1rem 1.15rem;
  border-radius: 3px;
}

.lr-fact-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lr-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #0a0e14;
  background: var(--info);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.lr-fact-card ul {
  margin-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.lr-fact-card li { margin-bottom: 0.55rem; }

.lr-src {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  margin-left: 0.35rem;
  color: var(--accent);
}

.lr-fact-note {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  line-height: 1.45;
  border-top: 1px dashed var(--border);
  padding-top: 0.65rem;
}

/* VHS Player */
.lr-player {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.lr-tv-bezel {
  background: linear-gradient(160deg, #2a2a2e 0%, #1a1a1c 40%, #0e0e10 100%);
  border-radius: 12px;
  padding: 1rem 1rem 0.65rem;
  border: 2px solid #3a3a40;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 50px rgba(0,0,0,0.55);
}

.lr-tv-screen {
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  max-height: 70vh;
  margin: 0 auto;
  border: 3px solid #111;
  box-shadow: inset 0 0 30px rgba(0, 255, 100, 0.05);
}

.lr-tv-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

.lr-tv-static {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: lr-static 0.15s steps(2) infinite;
}

@keyframes lr-static {
  0% { transform: translate(0,0); }
  50% { transform: translate(-2%, 1%); }
  100% { transform: translate(1%, -1%); }
}

.lr-tv-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,255,120,0.04), transparent 30%, transparent 70%, rgba(0,0,0,0.25));
  box-shadow: inset 0 0 40px rgba(0, 40, 20, 0.4);
}

.lr-tv-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #888;
  text-align: center;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
}

.lr-tv-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.lr-ctrl {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 2px;
}

.lr-ctrl:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lr-ctrl-play {
  background: linear-gradient(180deg, #2a3a20, #1a2814);
  border-color: #3a6a30;
  color: #7dffa0;
  min-width: 6.5rem;
}

.lr-ctrl-play.playing {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.lr-speed {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lr-speed select {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.35rem;
}

.lr-timecode {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #7dffa0;
  margin-left: 0.25rem;
}

.lr-tape-meta h3 {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.lr-frame-body {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1rem;
}

.lr-shot-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.lr-shot-list li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
  transition: background 0.15s;
}

.lr-shot-list li:last-child { border-bottom: none; }

.lr-shot-list li:hover,
.lr-shot-list li.active {
  background: rgba(0, 200, 240, 0.1);
}

.lr-shot-list li.active {
  border-left: 3px solid var(--accent);
  color: var(--text-bright);
}

.lr-shot-list .lr-shot-n {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  min-width: 1.5rem;
}

.lr-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.lr-progress span {
  display: block;
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, #2ecc71, var(--accent));
  transition: width 0.25s ease;
}

.lr-filmstrip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.lr-filmstrip button {
  padding: 0;
  border: 2px solid var(--border);
  background: #000;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  transition: border-color 0.15s, transform 0.15s;
}

.lr-filmstrip button:hover,
.lr-filmstrip button.active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.lr-filmstrip img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

/* Patch block */
.lr-patch-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: center;
}

.lr-patch-lg {
  width: 100%;
  max-width: 280px;
  border-radius: 50%;
  border: 3px solid var(--accent-dim);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  margin: 0 auto;
  display: block;
}

.lr-patch-legend {
  margin: 0.75rem 0 0.75rem 1.15rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.lr-patch-legend li { margin-bottom: 0.35rem; }

/* NASA section */
.lr-nasa-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.lr-nasa-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  max-width: 180px;
}

.lr-artemis-logo {
  height: 56px;
  max-width: 220px;
}

.lr-nasa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.lr-nasa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.lr-nasa-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #111;
}

.lr-nasa-card figcaption {
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.lr-nasa-card figcaption strong {
  display: block;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

.lr-nasa-card a {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.lr-articles {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.15rem 1.25rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

.lr-articles h3 {
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.lr-articles ul {
  margin-left: 1.15rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.lr-articles li { margin-bottom: 0.45rem; }

.lr-data-table-wrap h3 {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 0.65rem;
}

.lr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.lr-table th,
.lr-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.lr-table th {
  background: var(--bg-elevated);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.lr-table tr:nth-child(even) td {
  background: rgba(0,0,0,0.15);
}

/* Dossier */
.lr-dossier {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  align-items: start;
}

.lr-dossier-photo {
  position: relative;
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  overflow: hidden;
  background: #000;
}

.lr-dossier-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.lr-stamp-secret {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--stamp-red);
  border: 2px solid var(--stamp-red);
  padding: 0.25rem 0.45rem;
  background: rgba(0,0,0,0.65);
  transform: rotate(8deg);
  font-weight: 700;
}

.lr-dl {
  display: grid;
  gap: 0.5rem;
}

.lr-dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(42, 53, 68, 0.55);
  font-size: 0.95rem;
}

.lr-dl dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.lr-dl dd { color: var(--text); }

.lr-nightshade-box {
  background: linear-gradient(135deg, rgba(120, 40, 160, 0.12), rgba(0, 200, 240, 0.08));
  border: 1px solid rgba(199, 125, 255, 0.35);
  padding: 1.25rem 1.35rem;
  border-radius: 4px;
  max-width: 820px;
}

.lr-nightshade-box h3 {
  color: #c77dff;
  letter-spacing: 0.08em;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.lr-nightshade-box p {
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.lr-ns-sign {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0 !important;
}

.lr-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.55;
  text-align: center;
}

.lr-footer p { margin-bottom: 0.5rem; }

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .lr-hero-grid,
  .lr-two-col,
  .lr-player,
  .lr-patch-block,
  .lr-dossier,
  .lr-nasa-grid {
    grid-template-columns: 1fr;
  }

  .lr-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lr-filmstrip {
    grid-template-columns: repeat(3, 1fr);
  }

  .lr-filmstrip img { height: 90px; }

  .lr-hero-patch {
    width: min(240px, 70vw);
  }

  .lr-tv-screen {
    max-height: 60vh;
    aspect-ratio: 3 / 4;
  }

  .lr-class-badge { display: none; }

  .lr-dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 480px) {
  .lr-hero-stats { grid-template-columns: 1fr 1fr; }

  .lr-filmstrip {
    grid-template-columns: repeat(2, 1fr);
  }

  .lr-nasa-logo { height: 52px; }

  .lr-table { font-size: 0.78rem; }
}

/* ============================================================
   PROJECT RHINO — HUD Nutrition Protocol training bay
   ============================================================ */
.rhino-hud-bay {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.rhino-hud-player {
  background: #071014;
  border: 1px solid rgba(0, 220, 220, 0.35);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.rhino-hud-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #7dffe8;
  background: #051014;
  border-bottom: 1px solid rgba(0, 220, 220, 0.25);
}

.rhino-hud-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #ff6b6b;
  font-weight: 700;
}

.rhino-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 8px #ff3b3b;
  animation: rhino-hud-blink 1s step-end infinite;
}

@keyframes rhino-hud-blink {
  50% { opacity: 0.25; }
}

.rhino-hud-stage {
  background: #000;
  line-height: 0;
}

.rhino-hud-stage video {
  width: 100%;
  max-height: 480px;
  display: block;
  object-fit: contain;
  background: #000;
}

.rhino-hud-cap {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  padding: 0.5rem 0.7rem 0.65rem;
  margin: 0;
  letter-spacing: 0.04em;
}

.rhino-hud-brief h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #7dffe8;
  margin-bottom: 0.65rem;
}

.rhino-hud-brief ul {
  margin: 0 0 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.rhino-hud-brief li {
  margin-bottom: 0.4rem;
}

.rhino-hud-stats {
  border: 1px solid rgba(0, 220, 220, 0.25);
  border-radius: 2px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.rhino-hud-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(0, 220, 220, 0.12);
  color: var(--text-dim);
}

.rhino-hud-stats > div:last-child { border-bottom: none; }

.rhino-hud-stats span:last-child {
  color: #7dffe8;
  text-align: right;
}

.rhino-hud-stills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.rhino-hud-still {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.rhino-hud-still:hover {
  border-color: rgba(0, 220, 220, 0.5);
  transform: translateY(-2px);
}

.rhino-hud-still img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.rhino-hud-still figcaption {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 0.45rem 0.5rem;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .rhino-hud-bay {
    grid-template-columns: 1fr;
  }

  .rhino-hud-stills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .rhino-hud-stills {
    grid-template-columns: 1fr;
  }

  .rhino-hud-still img {
    height: 200px;
  }
}
