/* Guia do Eclipse 2026 — estilos partilhados por index.html e pdf.html.
   Reutiliza /styles.css (fundo estrelado, botões, focus-visible); aqui vive
   apenas o que é específico da guia. */

.eclipse-page {
  --ec-accent: oklch(0.78 0.13 78);
  --ec-accent-bright: oklch(0.85 0.13 78);
  --ec-ink: oklch(0.95 0.01 90);
  --ec-muted: oklch(0.75 0.02 260);
  --ec-dim: oklch(0.68 0.02 260);
  --ec-faint: oklch(0.56 0.02 260);
  --ec-body: oklch(0.87 0.01 260);
  --ec-body-strong: oklch(0.9 0.01 260);
  width: 100%;
  overflow-x: hidden;
  color: var(--ec-ink);
  font-family: 'Work Sans', sans-serif;
}
.eclipse-page,
.eclipse-page *,
.eclipse-page *::before,
.eclipse-page *::after { box-sizing: border-box; }

.eclipse-page a { color: var(--ec-accent); }
.eclipse-page a:hover { color: var(--ec-accent-bright); }
.eclipse-page a.gata-btn-primary,
.eclipse-page a.gata-btn-primary:hover { color: oklch(0.14 0.02 260); }
.eclipse-page a.gata-btn-secondary,
.eclipse-page a.gata-btn-secondary:hover { color: oklch(0.9 0.01 90); }
.eclipse-page strong { color: #fff; }

.ec-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px) clamp(16px, 3.4vw, 44px) clamp(24px, 3vw, 32px);
}

/* ---- Cabeçalho ---- */
.ec-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ec-logo {
  width: clamp(64px, 12vw, 92px);
  height: clamp(64px, 12vw, 92px);
  object-fit: contain;
  flex-shrink: 0;
}
.ec-header-copy { flex: 1; min-width: 240px; }
.ec-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--ec-accent);
  margin-bottom: 8px;
}
.ec-title {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.05;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.ec-accent { color: var(--ec-accent); }
.ec-subtitle { font-size: 17px; color: var(--ec-muted); margin-top: 8px; }

/* Enlaces utilitários (voltar / descarregar) — só na versão web */
.ec-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
}
.ec-footer-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
}
.ec-topbar a,
.ec-footer-links a { color: var(--ec-dim); }
.ec-topbar a:hover,
.ec-footer-links a:hover { color: var(--ec-accent); }

/* ---- Aviso de segurança ---- */
.ec-safety {
  margin: 20px 0 30px;
  padding: 18px 22px 20px;
  border-left: 4px solid var(--ec-accent);
  background: oklch(0.78 0.13 78 / 0.09);
  border-radius: 8px;
}
.ec-safety-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ec-safety-icon { position: relative; width: 30px; height: 27px; flex-shrink: 0; }
.ec-safety-triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 27px solid var(--ec-accent);
}
.ec-safety-mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1;
}
.ec-safety-title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.2px; }
.ec-safety-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
  line-height: 1.45;
  color: #ffdad4;
}
.ec-safety-item { display: flex; gap: 10px; }
.ec-safety-item > span:first-child { color: var(--ec-accent); flex-shrink: 0; }

/* ---- Cabeçalhos de secção ---- */
.ec-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ec-section-head-mt { margin-top: 34px; }
.ec-diamond {
  width: 10px;
  height: 10px;
  background: var(--ec-accent);
  display: inline-block;
  transform: rotate(45deg);
}
.ec-section-title { font-size: 26px; font-weight: 600; margin: 0; letter-spacing: 0.3px; }
.ec-section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, oklch(0.78 0.13 78 / 0.6), rgba(255,255,255,0.05));
}
.ec-section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ec-dim);
}

/* ---- Linha temporal ---- */
.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 28px 15px;
  margin-top: 24px;
}
.tl-col { display: flex; flex-direction: column; }
.tl-time {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}
.tl-guide { position: relative; height: 18px; margin-bottom: 16px; }
.tl-line {
  position: absolute;
  left: -8px;
  right: -7px;
  top: 8px;
  height: 2px;
  background: rgba(170,179,196,0.5);
}
.tl-arrow {
  position: absolute;
  right: -13px;
  top: 1px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid rgba(170,179,196,0.8);
  opacity: 0;
}
.tl-marker {
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ec-accent);
  box-shadow: 0 0 0 3px #0a0a12, 0 0 8px 1px oklch(0.78 0.13 78 / 0.7);
}
.tl-card {
  position: relative;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tl-card-hi { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.tl-photo {
  position: relative;
  aspect-ratio: 590 / 393;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #0c0d15;
}
.tl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-badge-wrap { position: absolute; top: -14px; right: -12px; z-index: 3; }
.tl-badge {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.tl-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.tl-heading { margin: 0 0 11px; font-weight: 700; color: #fff; font-size: 16px; line-height: 1.35; }
.tl-list {
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-item { display: flex; gap: 9px; font-size: 14px; line-height: 1.45; color: var(--ec-body); }
.tl-bullet { color: var(--ec-accent); font-size: 15px; line-height: 1.35; flex-shrink: 0; }
.tl-bullet-soft { color: oklch(0.89 0.01 260); }
.tl-reco { margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.09); }
.tl-reco-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--ec-accent);
}
.tl-reco-label-strong { font-weight: 700; }
.tl-reco-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tl-reco-item {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.42;
  color: var(--ec-body-strong);
  font-weight: 400;
}
.tl-reco-item-strong { font-weight: 700; }
.tl-reco-arrow { color: var(--ec-dim); flex-shrink: 0; }

/* ---- Painel final ---- */
.ec-cta {
  margin-top: 34px;
  padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 30px);
  border-radius: 8px;
  background: linear-gradient(120deg, oklch(0.78 0.13 78 / 0.14), oklch(0.72 0.15 55 / 0.1));
  border: 1px solid oklch(0.78 0.13 78 / 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 26px;
}
.ec-cta-copy { flex: 1; min-width: 260px; }
.ec-cta-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--ec-accent-bright);
  font-weight: 600;
  margin-bottom: 8px;
}
.ec-cta-title { font-size: clamp(21px, 3.4vw, 26px); font-weight: 700; margin: 0 0 8px; color: #fff; }
.ec-cta-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ec-body); max-width: 840px; }
.ec-cta > .gata-btn-primary { flex-shrink: 0; }

/* QR (versão PDF) */
.ec-qr { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ec-qr-frame { background: #fff; padding: 8px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.ec-qr-frame img { width: 108px; height: 108px; display: block; }
.ec-qr-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--ec-accent-bright);
}

/* ---- Rodapé ---- */
.ec-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  padding-top: 24px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.ec-footer-logo { width: 46px; height: 46px; object-fit: contain; }
.ec-footer-brand { flex: 1; min-width: 180px; }
.ec-footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}
.ec-footer-sub { font-size: 13px; color: var(--ec-dim); }
.ec-footer-note { font-size: 12px; color: var(--ec-faint); text-align: right; }

/* ---- Impressão (geração do PDF a partir de pdf.html) ---- */
@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  html,
  body {
    width: 297mm;
    min-width: 297mm;
    height: 210mm;
    min-height: 210mm;
    margin: 0;
    padding: 0;
    background: #050911;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .eclipse-page {
    min-height: 210mm;
    background: #050911;
  }

  .ec-container {
    width: 297mm;
    max-width: none;
    min-height: 210mm;
    padding: 7mm 8mm 6mm;
    display: flex;
    flex-direction: column;
    gap: 3mm;
  }

  main {
    display: flex;
    flex-direction: column;
    gap: 3mm;
    flex: 1;
    min-height: 0;
  }

  .ec-safety,
  .ec-section-head,
  .tl-col,
  .ec-cta,
  .ec-footer { break-inside: avoid; }
  .ec-section-head { break-after: avoid; }

  .ec-header {
    gap: 3mm 4mm;
    padding-bottom: 2.5mm;
  }

  .ec-logo {
    width: 14mm;
    height: 14mm;
  }

  .ec-kicker {
    font-size: 7px;
    letter-spacing: 1.4px;
    margin-bottom: 1mm;
  }

  .ec-title {
    font-size: 16px;
    letter-spacing: -0.2px;
  }

  .ec-subtitle {
    font-size: 8px;
    margin-top: 1mm;
  }

  .ec-safety {
    margin: 0;
    padding: 2.5mm 3mm;
    border-left-width: 2px;
    border-radius: 3mm;
  }

  .ec-safety-head {
    gap: 2mm;
    margin-bottom: 1.2mm;
  }

  .ec-safety-icon {
    width: 5mm;
    height: 4.5mm;
  }

  .ec-safety-triangle {
    border-left-width: 2.5mm;
    border-right-width: 2.5mm;
    border-bottom-width: 4.5mm;
  }

  .ec-safety-mark {
    font-size: 9px;
    bottom: 0;
  }

  .ec-safety-title {
    font-size: 9px;
  }

  .ec-safety-list {
    gap: 1mm;
    font-size: 7.3px;
    line-height: 1.25;
  }

  .ec-section-head {
    gap: 1.5mm 2mm;
  }

  .ec-section-head-mt {
    margin-top: 0.5mm;
  }

  .ec-diamond {
    width: 2mm;
    height: 2mm;
  }

  .ec-section-title {
    font-size: 11px;
  }

  .ec-section-tag {
    font-size: 6.8px;
    letter-spacing: 0.6px;
  }

  .tl-grid {
    margin-top: 0;
    gap: 2.4mm 2mm;
  }

  main > [data-tl-grid] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  main > [data-tl-grid] + .ec-section-head + [data-tl-grid] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tl-col {
    min-width: 0;
    padding-top: 3.5mm;
  }

  .tl-time {
    font-size: 7.2px;
    margin-bottom: 0.8mm;
  }

  .tl-guide {
    height: 4mm;
    margin-bottom: 2mm;
  }

  .tl-line {
    left: -1.2mm;
    right: -1.2mm;
    top: 1.7mm;
    height: 0.35mm;
  }

  .tl-arrow {
    right: -1.7mm;
    top: 0.45mm;
    border-top-width: 1.2mm;
    border-bottom-width: 1.2mm;
    border-left-width: 2mm;
  }

  .tl-marker {
    top: 0.55mm;
    width: 2.4mm;
    height: 2.4mm;
    box-shadow: 0 0 0 0.5mm #0a0a12, 0 0 1.5mm 0.25mm oklch(0.78 0.13 78 / 0.7);
  }

  .tl-card {
    border-radius: 2.3mm;
  }

  .tl-photo {
    aspect-ratio: 16 / 7.2;
    border-radius: 2.3mm 2.3mm 0 0;
  }

  .tl-badge-wrap {
    top: -2.2mm;
    right: -1.8mm;
  }

  .tl-badge {
    width: 11.5mm;
    height: 11.5mm;
    border-radius: 1.8mm;
    border-width: 0.35mm;
    box-shadow: 0 1mm 2.2mm rgba(0,0,0,0.45);
  }

  .tl-body {
    padding: 2mm 2mm 2.2mm;
  }

  .tl-heading {
    margin-bottom: 1.1mm;
    font-size: 7.4px;
    line-height: 1.2;
  }

  .tl-list {
    margin-bottom: 1.3mm;
    gap: 0.7mm;
  }

  .tl-item {
    gap: 1mm;
    font-size: 6.35px;
    line-height: 1.24;
  }

  .tl-bullet {
    font-size: 7px;
    line-height: 1.15;
  }

  .tl-reco {
    padding-top: 1.3mm;
  }

  .tl-reco-label {
    font-size: 5.3px;
    letter-spacing: 0.6px;
    margin-bottom: 0.8mm;
  }

  .tl-reco-list {
    gap: 0.6mm;
  }

  .tl-reco-item {
    gap: 0.9mm;
    font-size: 5.95px;
    line-height: 1.22;
  }

  .ec-cta {
    margin-top: 0;
    padding: 2.7mm 3mm;
    border-radius: 3mm;
    gap: 2mm 3mm;
  }

  .ec-cta-copy {
    min-width: 0;
  }

  .ec-cta-kicker {
    font-size: 6.2px;
    letter-spacing: 1px;
    margin-bottom: 0.7mm;
  }

  .ec-cta-title {
    font-size: 9px;
    margin-bottom: 0.8mm;
  }

  .ec-cta-text {
    font-size: 6.7px;
    line-height: 1.24;
    max-width: none;
  }

  .ec-qr {
    gap: 1mm;
  }

  .ec-qr-frame {
    padding: 1.2mm;
    border-radius: 2mm;
  }

  .ec-qr-frame img {
    width: 15mm;
    height: 15mm;
  }

  .ec-qr-label {
    font-size: 5.8px;
  }

  .ec-footer {
    margin-top: 0;
    padding-top: 2mm;
    gap: 2mm 3mm;
  }

  .ec-footer-logo {
    width: 8mm;
    height: 8mm;
  }

  .ec-footer-name {
    font-size: 7px;
  }

  .ec-footer-sub,
  .ec-footer-note {
    font-size: 5.7px;
    line-height: 1.2;
  }
}
