:root {
  --eghev-ink: #15202b;
  --eghev-muted: #5e6c79;
  --eghev-line: #d9e1e7;
  --eghev-surface: #ffffff;
  --eghev-soft: #f3f7f8;
  --eghev-accent: #0f6675;
  --eghev-accent-2: #123c57;
  --eghev-good: #1f6a4f;
  --eghev-shadow: 0 18px 48px rgba(18, 41, 56, .16);
}

.eghev {
  width: min(100%, 1080px);
  margin: 34px auto;
  border: 1px solid rgba(132, 154, 168, .24);
  border-radius: 24px;
  overflow: hidden;
  background: var(--eghev-surface);
  box-shadow: var(--eghev-shadow);
  color: var(--eghev-ink);
  font-family: inherit;
  isolation: isolate;
}

.eghev *, .eghev *::before, .eghev *::after { box-sizing: border-box; }

.eghev__hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #173447;
}

.eghev__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
}

.eghev__hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 29, .92) 0%, rgba(7, 19, 29, .80) 34%, rgba(7, 19, 29, .42) 64%, rgba(7, 19, 29, .18) 100%),
    linear-gradient(0deg, rgba(7, 19, 29, .54) 0%, rgba(7, 19, 29, .05) 62%);
}

.eghev__hero-copy {
  position: relative;
  z-index: 2;
  width: min(690px, 74%);
  padding: 32px 36px 34px;
  color: #fff;
}

.eghev__badges, .eghev__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eghev__badges span, .eghev__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .02em;
  color: #f7fbfd;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}

.eghev__eyebrow {
  margin: 18px 0 6px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #ccecf1;
}

.eghev__title {
  margin: 0;
  max-width: 620px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 850;
  color: #fff;
}

.eghev__lede {
  margin: 10px 0 15px;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.55;
  color: #eff7f9;
}

.eghev__body { padding: 28px 32px 34px; }

.eghev__section-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(260px, 1.2fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
}

.eghev__section-head h3 {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.18;
  color: var(--eghev-ink);
}

.eghev__section-head > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--eghev-muted);
}

.eghev__kicker {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--eghev-accent);
}

.eghev__era-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.eghev__era-tabs button {
  appearance: none;
  border: 1px solid var(--eghev-line);
  border-radius: 12px;
  padding: 9px 8px;
  background: #fff;
  color: #293844;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.eghev__era-tabs button:hover { border-color: #8eb2bb; transform: translateY(-1px); }
.eghev__era-tabs button.is-active { background: #e9f6f8; border-color: #60a4b2; color: #0a5361; box-shadow: inset 0 0 0 1px rgba(15,102,117,.08); }

.eghev__milestone {
  border: 1px solid var(--eghev-line);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%);
}

.eghev__milestone-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eghev__milestone-year {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 850;
  color: var(--eghev-accent);
}

.eghev__milestone-top h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--eghev-ink);
}

.eghev__architecture {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--eghev-accent-2);
}

.eghev__milestone-summary {
  margin: 11px 0 16px;
  font-size: 14px;
  line-height: 1.62;
  color: #384854;
}

.eghev__fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.eghev__fact-grid article {
  padding: 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e0e7eb;
}

.eghev__fact-grid span, .eghev__takeaway span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #75838e;
}

.eghev__fact-grid strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #22313d;
}

.eghev__takeaway {
  margin-top: 12px;
  padding: 14px 15px;
  border-radius: 14px;
  background: #eaf4ef;
  border: 1px solid #cfe2d9;
}

.eghev__takeaway p { margin: 0; font-size: 13px; line-height: 1.55; color: #244a3a; }
.eghev__divider { height: 1px; margin: 28px 0; background: var(--eghev-line); }

.eghev__compare-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
}

.eghev__compare-controls label span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  color: #40515e;
}

.eghev__compare-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c8d4dc;
  border-radius: 11px;
  background: #fff;
  color: #182630;
  padding: 8px 34px 8px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
}

.eghev__vs {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #edf2f5;
  color: #5b6b76;
  font-size: 10px;
  font-weight: 900;
}

.eghev__compare {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  margin-top: 14px;
  border: 1px solid var(--eghev-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.eghev__compare > div {
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--eghev-line);
  font-size: 13px;
  line-height: 1.48;
  color: #33434f;
}

.eghev__compare > div:nth-last-child(-n+3) { border-bottom: 0; }
.eghev__compare > div:not(:nth-child(3n+1)) { border-left: 1px solid var(--eghev-line); }
.eghev__compare .eghev__row-label { background: #f5f8fa; font-weight: 800; color: #566773; }
.eghev__compare .eghev__column-head { background: #153e53; color: #fff; font-weight: 800; }

.eghev__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.eghev__button {
  appearance: none;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid #c7d3da;
  background: #fff;
  color: #263843;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
}

.eghev__button--primary { background: var(--eghev-accent); color: #fff; border-color: var(--eghev-accent); }
.eghev__source-note { margin: 15px 0 0; font-size: 11px; line-height: 1.5; color: #6c7a85; }

.eghev-report-portal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 24px;
  background: rgba(7, 18, 25, .82);
}

.eghev-report-shell { width: min(100%, 230mm); }
.eghev-report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.eghev-report-actions button { min-height: 38px; padding: 8px 13px; border: 0; border-radius: 9px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.eghev-report-actions .print { background: #0f6675; color: #fff; }
.eghev-report-actions .close { background: #fff; color: #1f303a; }

.eghev-report-page {
  width: 210mm;
  min-height: 297mm;
  max-height: 297mm;
  overflow: hidden;
  margin: 0 auto;
  padding: 14mm 15mm 12mm;
  background: #fff;
  color: #172630;
  box-shadow: 0 18px 54px rgba(0,0,0,.28);
  font-family: Arial, Helvetica, sans-serif;
}

.eghev-report-page * { box-sizing: border-box; }
.eghev-report-page .r-kicker { margin: 0 0 2mm; font-size: 8pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0f6675; }
.eghev-report-page h1 { margin: 0; font-size: 20pt; line-height: 1.08; color: #153e53; }
.eghev-report-page .r-sub { margin: 3mm 0 7mm; font-size: 10pt; line-height: 1.45; color: #566772; }
.eghev-report-page .r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.eghev-report-page .r-card { border: .3mm solid #d7e0e6; border-radius: 3mm; padding: 5mm; }
.eghev-report-page .r-year { margin: 0 0 1mm; font-size: 9pt; font-weight: 800; color: #0f6675; }
.eghev-report-page .r-card h2 { margin: 0 0 3mm; font-size: 13pt; line-height: 1.2; color: #1b2f3b; }
.eghev-report-page dl { margin: 0; }
.eghev-report-page dt { margin-top: 2.5mm; font-size: 7.5pt; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #74838d; }
.eghev-report-page dd { margin: .6mm 0 0; font-size: 9.5pt; line-height: 1.4; color: #263943; }
.eghev-report-page .r-insight { margin-top: 6mm; padding: 5mm; border-radius: 3mm; background: #eaf4ef; border: .3mm solid #cfe2d9; }
.eghev-report-page .r-insight h3 { margin: 0 0 1.5mm; font-size: 10pt; color: #244a3a; }
.eghev-report-page .r-insight p { margin: 0; font-size: 9.5pt; line-height: 1.45; color: #315745; }
.eghev-report-page .r-table { width: 100%; border-collapse: collapse; margin-top: 6mm; }
.eghev-report-page .r-table th, .eghev-report-page .r-table td { padding: 2.6mm 3mm; border: .25mm solid #d8e1e6; font-size: 8.8pt; line-height: 1.35; text-align: left; vertical-align: top; }
.eghev-report-page .r-table th { background: #153e53; color: #fff; }
.eghev-report-page .r-footer { margin-top: 6mm; padding-top: 4mm; border-top: .25mm solid #d8e1e6; font-size: 7.8pt; line-height: 1.4; color: #6b7881; }

@media (max-width: 760px) {
  .eghev { border-radius: 18px; }
  .eghev__hero { min-height: 360px; }
  .eghev__hero-img { object-position: 62% 50%; }
  .eghev__hero-scrim { background: linear-gradient(0deg, rgba(7,19,29,.92) 0%, rgba(7,19,29,.76) 54%, rgba(7,19,29,.28) 100%); }
  .eghev__hero-copy { width: 100%; padding: 26px 22px 24px; }
  .eghev__title { font-size: clamp(20px, 7vw, 24px); max-width: 520px; }
  .eghev__lede { font-size: 13px; max-width: 520px; }
  .eghev__body { padding: 22px 18px 26px; }
  .eghev__section-head { grid-template-columns: 1fr; gap: 6px; }
  .eghev__era-tabs { grid-template-columns: repeat(3, 1fr); }
  .eghev__fact-grid { grid-template-columns: 1fr; }
  .eghev__milestone-top { flex-direction: column; }
  .eghev__compare-controls { grid-template-columns: 1fr; }
  .eghev__vs { display: none; }
  .eghev__compare { grid-template-columns: 105px 1fr 1fr; overflow-x: auto; }
  .eghev__compare > div { padding: 10px; font-size: 12px; min-width: 115px; }
  .eghev__compare .eghev__row-label { min-width: 105px; }
  .eghev__compare-controls select { font-size: 16px; }
  .eghev-report-portal { padding: 10px; place-items: start center; }
  .eghev-report-shell { min-width: 210mm; }
}

@media (prefers-color-scheme: dark) {
  .eghev {
    --eghev-ink: #ecf4f7;
    --eghev-muted: #b3c1ca;
    --eghev-line: #344753;
    --eghev-surface: #14212a;
    --eghev-soft: #1b2a34;
    background: var(--eghev-surface);
    border-color: #314450;
  }
  .eghev__body { background: #14212a; }
  .eghev__section-head h3, .eghev__milestone-top h3 { color: #eef6f8; }
  .eghev__section-head > p { color: #b9c6cd; }
  .eghev__era-tabs button { background: #192933; border-color: #3b4f5b; color: #d8e3e8; }
  .eghev__era-tabs button.is-active { background: #153a43; border-color: #4f95a3; color: #d7f4f7; }
  .eghev__milestone { background: linear-gradient(180deg, #182731 0%, #15232c 100%); border-color: #3a4b56; }
  .eghev__milestone-summary { color: #cfdae0; }
  .eghev__fact-grid article { background: #1b2c36; border-color: #3a4c57; }
  .eghev__fact-grid strong { color: #eef5f7; }
  .eghev__takeaway { background: #17362b; border-color: #2b5a47; }
  .eghev__takeaway p { color: #c8eadb; }
  .eghev__compare-controls label span { color: #c7d4da; }
  .eghev__compare-controls select { background: #192933; border-color: #3c505c; color: #edf5f7; color-scheme: dark; }
  .eghev__compare { background: #172731; border-color: #3a4d59; }
  .eghev__compare > div { color: #d9e4e8; border-color: #3a4d59; }
  .eghev__compare .eghev__row-label { background: #1d303b; color: #c0ced5; }
  .eghev__button { background: #1a2b35; border-color: #3e5360; color: #e5eff2; }
  .eghev__button--primary { background: #15778a; border-color: #15778a; color: #fff; }
  .eghev__source-note { color: #9eb0ba; }
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  body > *:not(.eghev-report-portal) { display: none !important; }
  .eghev-report-portal { position: static !important; display: block !important; padding: 0 !important; overflow: visible !important; background: #fff !important; }
  .eghev-report-shell { width: 210mm !important; margin: 0 !important; }
  .eghev-report-actions { display: none !important; }
  .eghev-report-page {
    width: 210mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    box-shadow: none !important;
    margin: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
