:root {
  --bg: #0e1116;
  --card: #151a22;
  --border: #232a36;
  --text: #e6edf3;
  --muted: #8b949e;
  --green: #00d084;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --red: #ff4d4f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.top-nav a.active {
  color: #00d084;
  font-weight: 700;
}

.container {
  max-width: 1200px; /* give breathing room */
  margin: 0px auto;
  padding: 0 24px;
}

h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 20px;
}

.meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
}

.blockquote { border-left:1px solid #333; padding-left:10px; font-weight: bold }

.subtitle.last { margin-bottom:40px }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 10px;
  text-align: left;
}

th {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

tr {
  border-bottom: 1px solid var(--border);
}

tr:last-child {
  border-bottom: none;
}

.endpoint-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.endpoint-link:hover {
  text-decoration: underline;
}

/* Access badges */
.access {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.access.public {
  background: rgba(0, 208, 132, 0.15);
  color: var(--green);
}

.access.key {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.access.internal {
  background: rgba(139, 148, 158, 0.15);
  color: var(--muted);
}

.access.deprecated {
  background: rgba(255, 77, 79, 0.15);
  color: var(--red);
}

/* Status */
.status {
  font-size: 13px;
  font-weight: 600;
}

.status.live { color: var(--green); }
.status.dev { color: var(--orange); }
.status.deprecated { color: var(--red); }

pre {
  background: #0b0f14;
  padding: 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  color: #c9d1d9;
  border: 1px solid var(--border);
}

.footer {
  margin: 60px 0 40px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
a { color:#FFF }
a:hover { text-decoration:none }
.footer a { color: var(--muted); }

.fa-l {
  display: inline-block;
  vertical-align: text-top;
position:relative;
margin-top:-3px
}

/* ============================= */
/* Responsive Stacked Table */
/* ============================= */

@media (max-width: 900px) {

  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
  }

  td {
    padding: 8px 0;
    border: none;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 4px;
  }
h1, .subtitle { text-align:left }
h1 { font-size: 21px }

.blockquote { border-left:none; padding-left:0px }


}

.meta { text-align:center }


/* ============================= */
/* Desktop Table Control */
/* ============================= */

@media (min-width: 901px) {

  table {
    table-layout: fixed;
    width: 100%;
  }

  th, td {
    vertical-align: top;
  }

  th:nth-child(1),
  td:nth-child(1) { width: 30%; } /* Endpoint */

  th:nth-child(2),
  td:nth-child(2) { width: 15%; } /* Method */

  th:nth-child(3),
  td:nth-child(3) { width: 36%; } /* Purpose (wider) */

  th:nth-child(4),
  td:nth-child(4) { width: 9%; } /* Access */

  th:nth-child(5),
  td:nth-child(5) { width: 10%; } /* Status */

/* Service root emphasis */
.service-root td {
  border-top: 1px solid var(--border);
}

/* Child indentation */
.service-child td:first-child {
  padding-left: 10px;
}

.mobile-preface { display:none}

}

td:nth-child(3) {
  font-size: 14px;
  line-height: 1.6;
  color: #c9d1d9;
  word-break: break-word;
}

.access,
.status {
  white-space: nowrap;
}

.top-nav {
  width: 100%;
  padding: 12px 0;
  background: #111;
  border-bottom: 1px solid #222;
  text-align: center;
  font-size: 0.9rem;
}

.nav-inner a {
  color: #ccc;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.nav-inner a:hover {
  color: #fff;
}

.nav-sep {
  color: #555;
}