.espa-hub {
  --hub-ink: #142a40;
  --hub-muted: #43566c;
  --hub-line: #d7e0e8;
  --hub-accent: #1d527e;
  --hub-gold: #d5ab45;
  line-height: 1.6;
}

.espa-hub .espa-shell,
.espa-hub .ae-header-inner {
  width: min(calc(100% - 2rem), 1180px);
  margin-inline: auto;
}

.espa-hub :is(a, button, input):focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 3px;
}

.espa-hub .ae-header-inner { gap: .75rem 1.5rem; }
.espa-hub .ae-nav { display: flex; flex-wrap: wrap; gap: .25rem .875rem; }
.espa-hub .ae-nav a { line-height: 1.35; padding-block: .4rem; }

.espa-hub .hub-hero {
  padding: clamp(2.25rem, 5vw, 4.5rem) 0;
  background: #10243b;
  color: #fff;
}

.espa-hub .hub-hero-grid { display: grid; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); }
.espa-hub .hub-hero h1 {
  margin: 0 0 .85rem;
  font-size: clamp(1.95rem, 4.3vw, 3.5rem);
  line-height: 1.12;
  color: #fff;
  text-wrap: balance;
}

.espa-hub .hub-hero p { margin: .65rem 0 0; max-width: 62ch; }
.espa-hub .hub-hero img { border-radius: .85rem; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.espa-hub .hub-hero a { color: #f7d575; display: inline-block; padding-block: .4rem; text-decoration: underline; }
.espa-hub .hub-hero a:focus-visible { outline-color: #f7d575; }

.espa-hub .hub-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 1rem 0;
  list-style: none;
}

.espa-hub .hub-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 1px solid var(--hub-line);
  border-radius: .45rem;
  color: var(--hub-accent);
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: none;
}

.espa-hub .hub-nav a:hover,
.espa-hub .hub-card-link a:hover { background: #e8eff5; }

.espa-hub .hub-section {
  padding: clamp(1.75rem, 4vw, 3.5rem) 0;
  border-top: 1px solid #e8eff5;
  scroll-margin-top: 6rem;
}

.espa-hub .hub-section:nth-child(even) { background: #f5f8fc; }
.espa-hub .hub-section > .espa-shell > h2 {
  margin: 0 0 .85rem;
  color: var(--hub-ink);
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  font-weight: 720;
  line-height: 1.25;
  text-wrap: balance;
}

.espa-hub .hub-section > .espa-shell > :is(p, ul) { max-width: 80ch; }
.espa-hub .hub-section :is(p, ul, table) { margin-block: .75rem; }
.espa-hub .hub-section ul { padding-inline-start: 1.4rem; list-style: disc; }
.espa-hub .hub-section li + li { margin-block-start: .4rem; }
.espa-hub .hub-section a { text-underline-offset: .16em; }
.espa-hub .hub-section :is(table a, li a, p a):not(.button) { color: var(--hub-accent); text-decoration: underline; }

.espa-hub .hub-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--hub-line);
  border-radius: .6rem;
  background: white;
}

.espa-hub .hub-section th,
.espa-hub .hub-section td {
  border-bottom: 1px solid var(--hub-line);
  text-align: start;
  vertical-align: top;
  padding: .65rem .8rem;
  overflow-wrap: break-word;
}

.espa-hub .hub-section tr:last-child td { border-bottom: 0; }
.espa-hub .hub-section tbody tr:nth-child(even) { background: #f5f8fc; }
.espa-hub .hub-section th { color: var(--hub-ink); background: #e8eff5; font-weight: 700; }
.espa-hub #calendar td:first-child { font-variant-numeric: tabular-nums; }

.espa-hub .hub-cards {
  display: grid;
  gap: clamp(.85rem, 2.25vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  margin-block: 1rem;
}

.espa-hub .hub-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--hub-line);
  border-radius: .8rem;
  background: white;
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.espa-hub .hub-card img { display: block; width: 100%; aspect-ratio: 2.4; object-fit: cover; }
.espa-hub .hub-card-inner { display: flex; flex: 1; flex-direction: column; padding: clamp(.85rem, 2vw, 1.2rem); }
.espa-hub .hub-card h3 { margin: 0; color: var(--hub-ink); font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.espa-hub .hub-geo { margin: 0 0 .45rem; color: var(--hub-muted); font-weight: 650; font-size: .86rem; }
.espa-hub .hub-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .6rem;
  margin-block: .9rem .25rem;
}

.espa-hub .hub-facts div { min-width: 0; padding: .4rem .55rem; border-inline-start: 2px solid var(--hub-gold); background: #fafbfd; }
.espa-hub .hub-facts dt { font-size: .84rem; font-weight: 700; color: var(--hub-ink); }
.espa-hub .hub-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.espa-hub .hub-card .hub-note { margin: .3rem 0 0; font-size: .9rem; color: var(--hub-muted); }
.espa-hub .hub-card .hub-card-link { margin: auto 0 0; padding-top: .35rem; }
.espa-hub .hub-card-link a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .65rem;
  border: 1px solid var(--hub-line);
  border-radius: .4rem;
  font-weight: 650;
}

.espa-hub #sources ul { max-width: none; }
.espa-hub #sources h3 { color: var(--hub-ink); font-size: 1.1rem; font-weight: 700; }
.espa-hub #our-support .ae-contact-panel { margin: 1rem 0; max-width: 38rem; }
.espa-hub [data-platform-contact] { margin-inline: 0; padding-inline: 0; }
.espa-hub [data-platform-contact] .funding-contact { margin-inline: 0; }
.espa-hub .espa-footer { color: var(--hub-muted); }

@media (min-width: 768px) {
  .espa-hub #sources ul { columns: 2; column-gap: 2rem; }
  .espa-hub #sources li { break-inside: avoid; }
}

@media (min-width: 900px) {
  .espa-hub .hub-hero-grid { grid-template-columns: 1.35fr 1fr; }
}

@media (max-width: 640px) {
  .espa-hub .ae-header-inner { flex-wrap: wrap; align-items: center; padding-block: .5rem; }
  .espa-hub .ae-nav { width: 100%; gap: .125rem .7rem; }
  .espa-hub .ae-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .88rem; }
  .espa-hub .hub-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .espa-hub .hub-nav a { height: 100%; padding-inline: .5rem; }
  .espa-hub .hub-section table { table-layout: fixed; font-size: .88rem; line-height: 1.4; }
  .espa-hub .hub-section :is(th, td) { padding: .48rem .4rem; }
  .espa-hub #calendar th:first-child { width: 29%; }
  .espa-hub #calendar th:nth-child(2) { width: 18%; }
  .espa-hub #regions th:first-child { width: 28%; }
  .espa-hub #regions th:last-child { width: 24%; }
  .espa-hub #funding-contact button[type="submit"] { min-height: 2.75rem; }
}
