:root {
  color-scheme: light;
  --ink: #151922;
  --muted: #5c6675;
  --line: #d9e0ea;
  --surface: #ffffff;
  --soft: #f3f6fa;
  --blue: #0f5fff;
  --red: #df1f2d;
  --green: #0f7a5a;
  --amber: #a45f06;
  --shadow: 0 18px 50px rgba(26, 38, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: #edf2f8;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.edge-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 224, 234, 0.9);
  backdrop-filter: blur(18px);
}

.edge-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.edge-brand img {
  width: 114px;
  height: auto;
}

.edge-brand span {
  color: var(--muted);
}

.edge-nav,
.edge-actions,
.region-actions,
.hero-actions,
.edge-footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.edge-nav {
  justify-content: center;
}

.edge-nav a,
.edge-footer a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.edge-nav a:hover,
.edge-footer a:hover {
  color: var(--ink);
}

.region-pill,
.portal-link,
.button,
.region-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  background: var(--surface);
}

.portal-link,
.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #10151e;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  opacity: 0.74;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 19, 0.82), rgba(8, 12, 19, 0.35) 54%, rgba(8, 12, 19, 0.15));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 5vw, 72px) clamp(40px, 8vh, 88px);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero .eyebrow {
  color: #ff4655;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 8vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.region-band {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 72px);
  background: white;
  border-bottom: 1px solid var(--line);
}

.region-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.region-actions a.active {
  border-color: var(--green);
  color: var(--green);
}

.directory-grid,
.catalog-grid,
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 5vw, 72px);
}

.directory-card,
.record-card,
.region-card,
.empty-state {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.directory-card,
.region-card {
  padding: 24px;
}

.directory-card span,
.region-card span,
.record-topline span {
  color: var(--red);
  font-weight: 900;
}

.directory-card h2,
.region-card h2,
.record-card h2 {
  margin: 14px 0 10px;
  font-size: 1.45rem;
}

.directory-card p,
.region-card p,
.record-card p,
.page-heading p,
.empty-state p {
  color: var(--muted);
  line-height: 1.65;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.page-heading {
  padding: 38px 0 28px;
}

.page-heading h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
}

.page-heading.compact h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.catalog-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.catalog-meta span,
.stale-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #103d82;
  font-weight: 800;
}

.stale-note {
  border-radius: 8px;
  background: #fff3dc;
  color: var(--amber);
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.record-card {
  padding: 22px;
}

.record-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

code {
  overflow-wrap: anywhere;
  color: var(--muted);
}

dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.region-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.region-card.selected {
  border-color: var(--green);
}

.region-card.china {
  border-color: rgba(223, 31, 45, 0.35);
}

.empty-state {
  padding: clamp(28px, 5vw, 52px);
  text-align: left;
}

.edge-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #151922;
  color: white;
}

.edge-footer span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.edge-footer a {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 920px) {
  .edge-header {
    grid-template-columns: 1fr;
  }

  .edge-nav,
  .edge-actions {
    justify-content: flex-start;
  }

  .directory-grid,
  .catalog-grid,
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-band,
  .edge-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .edge-header {
    padding: 14px 16px;
  }

  .edge-brand img {
    width: 96px;
  }

  .edge-nav a,
  .edge-actions a {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 680px;
  }

  .hero-copy {
    width: calc(100% - 32px);
    margin: 0 16px 38px;
  }

  .directory-grid,
  .catalog-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .region-actions,
  .hero-actions {
    width: 100%;
  }

  .region-actions a,
  .hero-actions a {
    flex: 1 1 170px;
  }
}
