/**
 * PlanetronLabs /earth -  embed layout (iframe to planetron.io/earth).
 */
:root {
  --bg-dark: #0a0a0a;
  --bg-panel: rgba(10, 12, 18, 0.82);
  --green-bright: #00ff88;
  --text-primary: #fafafa;
  --text-dim: #a3a3a3;
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

body.earth-embed-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
}

@media (min-width: 901px) {
  body.earth-embed-page {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }
}

body.earth-embed-page .topbar__cta {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.earth-embed-page .nav a[aria-current="page"],
body.earth-embed-page .mobileNav__links a[aria-current="page"] {
  color: var(--green-bright);
  border-color: rgba(0, 255, 136, 0.25);
  background: rgba(0, 255, 136, 0.06);
}

.earth-embed-badge {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  opacity: 0.95;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .earth-embed-badge {
    display: none;
  }
}

.earth-embed-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

@media (min-width: 901px) {
  .earth-embed-main {
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100dvh - var(--topbar-h, 64px));
    min-height: calc(100vh - var(--topbar-h, 64px));
  }
}

.earth-embed-panel {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 28px 24px 32px;
  max-width: 100%;
  background: linear-gradient(
    165deg,
    rgba(12, 14, 20, 0.94) 0%,
    rgba(8, 10, 14, 0.88) 50%,
    rgba(6, 8, 12, 0.82) 100%
  );
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (min-width: 901px) {
  .earth-embed-panel {
    flex: 0 0 min(38vw, 420px);
    max-width: min(38vw, 440px);
    border-bottom: none;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 32px 28px 40px;
  }
}

.earth-embed-eyebrow {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin: 0 0 10px;
}

.earth-embed-title {
  font-family: "Space Grotesk", var(--font-sans);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.earth-embed-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.88);
}

.earth-embed-lead a {
  color: var(--green-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.earth-embed-lead a:hover {
  opacity: 0.9;
}

.earth-embed-list {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.earth-embed-list li {
  margin-bottom: 8px;
}

.earth-embed-list strong {
  color: rgba(250, 250, 250, 0.9);
  font-weight: 600;
}

.earth-embed-note {
  margin: 0 0 22px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(163, 163, 163, 0.95);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 136, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.earth-embed-note code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.earth-embed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.earth-embed-btn-solid {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.35);
  color: var(--green-bright);
}

.earth-embed-btn-solid:hover {
  background: #22c55e;
  border-color: #16a34a;
  color: #052e16;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.earth-embed-frame-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: min(58vh, 620px);
  background: #07090f;
}

@media (min-width: 901px) {
  .earth-embed-frame-wrap {
    min-height: 0;
  }
}

/* Crop Planetron’s in-frame header on wide screens so the globe reads as a hero background */
.earth-embed-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(58vh, 620px);
  border: 0;
  background: #07090f;
}

@media (min-width: 901px) {
  .earth-embed-frame-wrap {
    overflow: hidden;
  }
  .earth-embed-iframe {
    position: absolute;
    left: 0;
    top: -52px;
    width: 100%;
    height: calc(100% + 52px);
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .earth-embed-frame-wrap {
    min-height: 56vh;
    order: 2;
  }
  .earth-embed-panel {
    order: 1;
  }
}
