/* event-horizon-telescope lesson-specific styles. Extracted during theme polish Phase 4. */
body {
      margin: 0;
      color: #d9e6ff;
      background:
        radial-gradient(1200px 520px at 12% -10%, rgba(108, 84, 255, 0.18), transparent 58%),
        radial-gradient(900px 460px at 100% 0%, rgba(56, 124, 255, 0.18), transparent 54%),
        linear-gradient(180deg, #02040f 0%, #050919 100%);
      overflow-x: hidden;
    }

    .eht-topbar {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(14px) saturate(150%);
      background: rgba(2, 4, 15, 0.9);
      border-bottom: 1px solid rgba(108, 130, 255, 0.18);
    }

    .eht-topbar-inner,
    .eht-wrap,
    .eht-info {
      width: min(1380px, calc(100% - 2rem));
      margin: 0 auto;
    }

    .eht-topbar-inner {
      min-height: 50px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .eht-topbar a {
      color: #9db7ff;
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 700;
    }

    .eht-topbar a:hover {
      color: #ffffff;
    }

    .eht-topbar-title {
      font-size: 0.92rem;
      font-weight: 800;
      color: #dbe8ff;
      letter-spacing: -0.01em;
    }

    .eht-hero {
      max-width: 820px;
      margin: 0 auto;
      padding: 2rem 1rem 1rem;
      text-align: center;
    }

    .eht-hero h1 {
      margin: 0 0 0.45rem;
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      line-height: 1.03;
      letter-spacing: -0.04em;
      color: #ffffff;
    }

    .eht-hero p {
      margin: 0;
      font-size: 0.94rem;
      color: rgba(216, 229, 255, 0.76);
      line-height: 1.65;
    }

    .eht-wrap {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 1rem;
      align-items: start;
      padding-bottom: 1.1rem;
    }

    @media (max-width: 980px) {
      .eht-wrap {
        grid-template-columns: 1fr;
      }
    }

    .eht-stage-shell,
    .eht-card,
    .eht-info-card {
      border-radius: 22px;
      border: 1px solid rgba(92, 114, 174, 0.22);
      background: rgba(6, 10, 26, 0.72);
      box-shadow: 0 22px 42px rgba(2, 6, 16, 0.28);
      backdrop-filter: blur(12px);
    }

    .eht-stage-shell {
      overflow: hidden;
    }

    .eht-stage-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.82fr);
      gap: 0;
      min-height: 560px;
    }

    @media (max-width: 980px) {
      .eht-stage-grid {
        grid-template-columns: 1fr;
      }
    }

    .eht-map-panel,
    .eht-image-panel {
      position: relative;
      min-height: 280px;
    }

    .eht-map-panel {
      background:
        radial-gradient(circle at 55% 8%, rgba(74, 136, 255, 0.2), transparent 34%),
        linear-gradient(180deg, #081224 0%, #09182e 100%);
      border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .eht-image-panel {
      background:
        radial-gradient(circle at 50% 20%, rgba(255, 166, 94, 0.12), transparent 34%),
        linear-gradient(180deg, #060914 0%, #0a0e18 100%);
    }

    @media (max-width: 980px) {
      .eht-map-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      }
    }

    .eht-map-head,
    .eht-image-head {
      position: absolute;
      left: 16px;
      top: 16px;
      z-index: 2;
      display: grid;
      gap: 0.45rem;
      pointer-events: none;
    }

    .eht-badge,
    .eht-note-badge {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      min-height: 1.8rem;
      padding: 0.28rem 0.7rem;
      border-radius: 999px;
      background: rgba(4, 8, 20, 0.76);
      border: 1px solid rgba(158, 188, 255, 0.2);
      color: #dbefff;
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      backdrop-filter: blur(8px);
    }

    .eht-note-badge {
      text-transform: none;
      letter-spacing: 0.02em;
      font-weight: 700;
      color: rgba(220, 234, 255, 0.82);
    }

    #ehtMap {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
    }

    .eht-map-hint,
    .eht-image-hint {
      position: absolute;
      left: 50%;
      bottom: 14px;
      transform: translateX(-50%);
      color: rgba(202, 220, 240, 0.4);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      pointer-events: none;
      text-align: center;
      white-space: nowrap;
    }

    #reconstructionCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
    }

    .eht-stage-footer {
      padding: 0.9rem 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(5, 9, 20, 0.74);
      color: rgba(219, 232, 255, 0.74);
      font-size: 0.84rem;
      line-height: 1.55;
    }

    .eht-panel {
      display: grid;
      gap: 0.9rem;
    }

    .eht-card {
      padding: 1rem;
    }

    .eht-kicker {
      margin: 0 0 0.35rem;
      color: rgba(166, 190, 240, 0.56);
      font-size: 0.74rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .eht-card h3 {
      margin: 0;
      color: #ffffff;
      font-size: 1.02rem;
      letter-spacing: -0.02em;
    }

    .eht-card p,
    .eht-card li,
    .eht-info-card p,
    .eht-info-card li {
      color: rgba(215, 229, 255, 0.76);
      line-height: 1.6;
    }

    .eht-control-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-top: 0.85rem;
    }

    .eht-control-row button,
    .eht-station-button {
      appearance: none;
      border-radius: 999px;
      border: 1px solid rgba(200, 220, 255, 0.16);
      background: rgba(255, 255, 255, 0.06);
      color: #eef6ff;
      font: inherit;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.46rem 0.78rem;
      cursor: pointer;
      transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    }

    .eht-control-row button:hover,
    .eht-station-button:hover {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(140, 188, 255, 0.34);
    }

    .eht-sync-button.is-on {
      background: linear-gradient(180deg, rgba(62, 198, 144, 0.3), rgba(60, 124, 255, 0.2));
      border-color: rgba(118, 226, 180, 0.42);
    }

    .eht-readout-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.7rem;
      margin-top: 0.85rem;
    }

    .eht-readout-card {
      padding: 0.82rem;
      border-radius: 16px;
      background: rgba(10, 20, 42, 0.58);
      border: 1px solid rgba(155, 182, 222, 0.12);
      display: grid;
      gap: 0.25rem;
    }

    .eht-readout-card span {
      color: rgba(166, 190, 240, 0.56);
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .eht-readout-card strong {
      color: #ffffff;
      font-size: 0.95rem;
      letter-spacing: -0.02em;
    }

    .eht-alert {
      margin-top: 0.9rem;
      padding: 0.72rem 0.82rem;
      border-radius: 14px;
      border: 1px solid transparent;
      font-size: 0.82rem;
      line-height: 1.5;
    }

    .eht-alert.safe {
      background: rgba(44, 178, 113, 0.12);
      border-color: rgba(72, 214, 138, 0.26);
      color: #8aefb4;
    }

    .eht-alert.warn {
      background: rgba(255, 181, 76, 0.12);
      border-color: rgba(255, 181, 76, 0.28);
      color: #ffcf86;
    }

    .eht-alert.danger {
      background: rgba(255, 96, 96, 0.12);
      border-color: rgba(255, 96, 96, 0.28);
      color: #ffabab;
    }

    .eht-station-list {
      display: grid;
      gap: 0.55rem;
      margin-top: 0.85rem;
    }

    .eht-station-button {
      width: 100%;
      text-align: left;
      border-radius: 16px;
      padding: 0.76rem 0.82rem;
      display: grid;
      gap: 0.2rem;
      background: rgba(10, 20, 42, 0.46);
      border-color: rgba(155, 182, 222, 0.12);
    }

    .eht-station-button.is-active {
      background: linear-gradient(180deg, rgba(64, 130, 255, 0.24), rgba(55, 92, 196, 0.18));
      border-color: rgba(134, 182, 255, 0.34);
    }

    .eht-station-button strong {
      font-size: 0.84rem;
      color: #f4f8ff;
      letter-spacing: -0.01em;
    }

    .eht-station-button small {
      color: rgba(201, 218, 246, 0.66);
      font-size: 0.72rem;
    }

    .eht-info {
      padding-bottom: 3rem;
    }

    .eht-info-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.9rem;
    }

    .eht-info-card {
      padding: 1rem;
    }

    .eht-info-card h4 {
      margin: 0 0 0.35rem;
      color: #ffffff;
      font-size: 0.95rem;
      letter-spacing: -0.02em;
    }

    .eht-info-card ul {
      margin: 0.65rem 0 0;
      padding-left: 1.05rem;
      display: grid;
      gap: 0.45rem;
    }

    .eht-info-card ul li::marker {
      color: #86bcff;
    }

    @media (max-width: 980px) {
      .eht-info-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 760px) {
      .eht-readout-grid {
        grid-template-columns: 1fr;
      }

      .eht-topbar-title {
        display: none;
      }

      .eht-map-hint,
      .eht-image-hint {
        white-space: normal;
        width: calc(100% - 2rem);
      }
    }

    .map-grid line {
      stroke: rgba(233, 243, 255, 0.07);
      stroke-width: 1;
    }

    .world path {
      fill: rgba(84, 112, 162, 0.18);
      stroke: rgba(188, 209, 244, 0.08);
      stroke-width: 1.5;
    }

    .baseline-line {
      stroke: rgba(127, 196, 255, 0.18);
      stroke-width: 1.4;
    }

    .station-dot {
      stroke: rgba(255, 255, 255, 0.18);
      stroke-width: 1.3;
    }

    .station-label {
      fill: rgba(230, 240, 255, 0.84);
      font: 700 14px/1 var(--font-sans);
      pointer-events: none;
      text-anchor: middle;
    }

    .eht-panel-note {
      color: var(--text-muted);
      font-size: 0.75rem;
      margin: 0 0 0.5rem;
    }

    .eht-attribution-label,
    .eht-attribution-link {
      color: var(--accent);
    }

    /* ── ll-viewport overrides ── */
    .ll-viewport {
      --ll-panel-bg:      rgba(2, 4, 15, 0.97);
      --ll-panel-border:  rgba(108, 130, 255, 0.18);
      --ll-tab-color:     rgba(166, 190, 240, 0.56);
      --ll-tab-active-bg: rgba(100, 130, 255, 0.14);
      --ll-tab-active:    #9db7ff;
      --ll-toggle-bg:     rgba(2, 4, 15, 0.97);
    }
    .eht-wrap { display: block; padding: 0 1rem 0.5rem; max-width: 1380px; margin: 0 auto; }
    .eht-stage-shell { max-height: calc(100dvh - 140px); }
    .ll-viewport .eht-stage-grid { min-height: clamp(320px, 52vh, 560px); }
    .ll-viewport .eht-map-panel,
    .ll-viewport .eht-image-panel { min-height: clamp(200px, 28vh, 280px); }
