/* ============================================================================
   TEMS dev environment landing
   Aligned to the EBU-TEMS design language (navy + cyan/teal + magenta).
   Mirrors the visual grammar of the tems-gateway landing — same fonts,
   same palette, same topbar/hero pattern — and reuses the topology
   role colour-coding for the per-participant cards.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/scp-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/scp-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --navy-900: #0a1e3f;
  --navy-800: #102a52;
  --navy-700: #1e3a5f;
  --navy-600: #2a4d7a;
  --ink: #1a2332;
  --ink-soft: #3c4a63;
  --muted: #6b7689;
  --paper: #f5f7fa;
  --paper-2: #eef2f8;
  --white: #ffffff;
  --line: #e1e7f0;
  --line-strong: #cdd6e4;

  --cyan: #00d4ff;
  --teal: #00a8cc;
  --magenta: #ff006e;
  --pink: #ff4d7d;

  /* Role colour-coding (same hues across the four cards) */
  --governance: #f7d77a;
  --matchmaker: var(--teal);
  --consumer: #7af7a0;
  --provider: var(--magenta);
  --internal: var(--cyan);

  --grad-hero: linear-gradient(135deg, #0a1e3f 0%, #1e3a5f 52%, #00a8cc 130%);

  --shadow-sm: 0 1px 3px rgba(10, 30, 63, 0.1);
  --shadow-md: 0 6px 18px rgba(10, 30, 63, 0.1);

  --sans:
    "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Source Code Pro", ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;

  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper-2);
  color: var(--navy-900);
  padding: 1px 6px;
  border-radius: 3px;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- top bar (mirrors the gateway landing) ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--navy-900);
}
.topbar .brand .row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .brand img {
  height: 28px;
  width: auto;
  display: block;
}
.topbar .brand .sep {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}
.topbar .brand b {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
}
.topbar .right {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
}
.topbar .right .pill {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-left: 6px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--navy-700);
}

/* ---------- hero ---------- */
.hero {
  background: var(--grad-hero);
  color: var(--white);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero p {
  margin: 0;
  max-width: 720px;
  color: #d6e3ef;
  font-size: 1.02rem;
  line-height: 1.65;
}
.hero p strong {
  color: var(--white);
  font-weight: 600;
}
.hero .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 22px;
  font-size: 0.82rem;
  color: #d6e3ef;
}
.hero .legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero .legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

/* ---------- sections ---------- */
section {
  padding: 48px 0;
}
section + section {
  padding-top: 0;
}
section h2 {
  margin: 0 0 18px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- topology ASCII block ---------- */
.topology {
  background: var(--navy-900);
  color: #d6e3ef;
  border-radius: 10px;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

/* ---------- card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.card.governance {
  border-left: 4px solid var(--governance);
}
.card.matchmaker {
  border-left: 4px solid var(--matchmaker);
}
.card.consumer {
  border-left: 4px solid var(--consumer);
}
.card.provider {
  border-left: 4px solid var(--provider);
}
.card.internal {
  border-left: 4px solid var(--internal);
}
.card h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy-900);
}
.card .role {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.card.governance .role {
  color: #b48a0e;
}
.card.matchmaker .role {
  color: var(--teal);
}
.card.consumer .role {
  color: #2a8f4d;
}
.card.provider .role {
  color: var(--magenta);
}
.card.internal .role {
  color: var(--teal);
}
.card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  font-size: 0.88rem;
}
.card dt {
  color: var(--muted);
}
.card dd {
  margin: 0;
  word-break: break-word;
  color: var(--ink);
}
.card dd a {
  word-break: break-all;
}

/* ---------- notice ---------- */
.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 20px 0 0;
}
.notice code {
  background: var(--white);
  border: 1px solid var(--line);
}

/* ---------- docs cta (hero) ---------- */
/* Prominent pointer to the central tems-docs portal — sits under the
   hero topology blurb so readers don't miss it. Magenta accent +
   subtle gradient so it stands out against the dark hero background.*/
.docs-cta {
  margin: 24px 0 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--magenta);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  line-height: 1.55;
}
.docs-cta a {
  color: var(--cyan);
}

/* ---------- footer ---------- */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  background: var(--paper);
}
footer code {
  background: var(--white);
  border: 1px solid var(--line);
}
