/* TerraNava platform hubs: editorial directory layer.
   Scoped to the hub shell so maps and operational tools keep their own UI. */

body.tnv2-platform {
  background: var(--tnv2-ivory);
}

body.tnv2-platform .tnv2-page {
  padding-block: clamp(42px, 6vw, 82px);
}

body.tnv2-platform .tnv2-shell {
  width: min(1220px, calc(100% - 48px));
}

body.tnv2-platform .tnv2-platform-top {
  background: var(--tnv2-ivory);
}

body.tnv2-platform .tnv2-platform-header {
  background: rgba(245, 241, 234, .98);
  backdrop-filter: none;
}

body.tnv2-platform .tnv2-platform-bar {
  background: var(--tnv2-ivory-soft);
  color: var(--tnv2-navy);
}

body.tnv2-platform .tnv2-platform-title {
  color: var(--tnv2-gold-ink);
}

body.tnv2-platform .tnv2-global-nav,
body.tnv2-platform .tnv2-platform-nav {
  min-width: 0;
}

body.tnv2-platform .tnv2-platform-nav a {
  color: var(--tnv2-navy);
}

body.tnv2-platform .tnv2-platform-nav a[aria-current="page"] {
  border-bottom-color: var(--tnv2-gold);
}

body.tnv2-platform .tnv2-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .55fr);
  gap: clamp(38px, 8vw, 116px);
  align-items: start;
  padding-top: clamp(12px, 2vw, 24px);
}

body.tnv2-platform .tnv2-hero h1 {
  max-width: 13ch;
  margin-top: 12px;
  font-size: clamp(44px, 7vw, 78px);
}

body.tnv2-platform .tnv2-hero p {
  max-width: 58ch;
  font-size: clamp(17px, 1.6vw, 21px);
}

body.tnv2-platform .tnv2-hero-aside {
  min-height: 100%;
  padding: 6px 0 0 clamp(24px, 4vw, 52px);
}

body.tnv2-platform .tnv2-section {
  padding-block: clamp(38px, 5vw, 66px);
}

body.tnv2-platform .tnv2-section h2 {
  max-width: 18ch;
  font-size: clamp(30px, 4vw, 50px);
}

body.tnv2-platform .tnv2-section__intro {
  max-width: 68ch;
  margin-bottom: 26px;
  font-size: 17px;
}

/* Directory rows replace the visual weight of a card grid. */
body.tnv2-platform .tnv2-grid {
  display: block;
  border-top: 1px solid var(--tnv2-line-strong);
}

body.tnv2-platform .tnv2-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(150px, .28fr) minmax(230px, .7fr) minmax(240px, 1.05fr) minmax(150px, .36fr);
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--tnv2-line);
  border-radius: 0;
  background: transparent;
}

body.tnv2-platform .tnv2-card:hover {
  background: rgba(255, 253, 248, .55);
}

body.tnv2-platform .tnv2-card__meta {
  align-self: start;
  padding-top: 3px;
  color: var(--tnv2-gold-ink);
  line-height: 1.35;
}

body.tnv2-platform .tnv2-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.05;
}

body.tnv2-platform .tnv2-card p {
  margin: 0;
  max-width: 44ch;
  color: var(--tnv2-muted);
  line-height: 1.5;
}

body.tnv2-platform .tnv2-card__footer {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  border-top: 0;
  padding-top: 0;
}

body.tnv2-platform .tnv2-status {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.tnv2-platform .tnv2-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--tnv2-navy);
  border-radius: 4px;
  color: var(--tnv2-navy);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

body.tnv2-platform .tnv2-link:hover {
  color: var(--tnv2-white);
  background: var(--tnv2-navy);
  text-decoration: none;
}

body.tnv2-platform .tnv2-filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(160px, .28fr));
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tnv2-line);
}

body.tnv2-platform .tnv2-input,
body.tnv2-platform .tnv2-select {
  min-height: 44px;
  border-radius: 4px;
  border-color: var(--tnv2-line-strong);
  background: var(--tnv2-white);
}

body.tnv2-platform .tnv2-input:focus,
body.tnv2-platform .tnv2-select:focus {
  border-color: var(--tnv2-navy);
  box-shadow: 0 0 0 2px rgba(14, 29, 97, .12);
}

body.tnv2-platform .tnv2-platform-footer {
  background: var(--tnv2-navy);
}

body.tnv2-platform .tnv2-platform-footer__row {
  min-height: 150px;
}

@media (max-width: 920px) {
  body.tnv2-platform .tnv2-hero {
    grid-template-columns: 1fr;
  }

  body.tnv2-platform .tnv2-global-nav,
  body.tnv2-platform .tnv2-platform-nav {
    width: 100%;
    max-width: 100%;
  }

  body.tnv2-platform .tnv2-platform-nav {
    justify-content: flex-start;
  }

  body.tnv2-platform .tnv2-card {
    grid-template-columns: minmax(130px, .3fr) minmax(210px, .8fr) minmax(180px, 1fr);
  }

  body.tnv2-platform .tnv2-card__footer {
    grid-column: 2 / -1;
    justify-content: flex-start;
    padding-top: 8px;
  }

  body.tnv2-platform .tnv2-filterbar {
    grid-template-columns: 1fr 1fr;
  }

  body.tnv2-platform .tnv2-input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.tnv2-platform .tnv2-shell {
    width: min(100% - 28px, 1220px);
  }

  body.tnv2-platform .tnv2-hero {
    gap: 28px;
  }

  body.tnv2-platform .tnv2-card {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 20px 0;
  }

  body.tnv2-platform .tnv2-card__footer {
    grid-column: auto;
    justify-content: space-between;
    padding-top: 10px;
  }

  body.tnv2-platform .tnv2-filterbar {
    grid-template-columns: 1fr;
  }

  body.tnv2-platform .tnv2-input {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tnv2-platform * {
    scroll-behavior: auto;
  }
}
