/*
 * landing.css - the category landing pages only.
 *
 * Scoped entirely under `.lp-` class names so it cannot reach the reference
 * app, which shares style.css with these pages for its design tokens, type
 * and colour. The two must not be able to break each other: the app is the
 * product and these pages are entry points to it.
 *
 * Everything below reads from style.css's :root custom properties rather
 * than repeating hex values, so a brand change happens in one place.
 */

.lp-body {
  background: var(--bg);
  color: var(--text);
}

/* Header ------------------------------------------------------------- */

.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}

.lp-brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.lp-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  color: var(--brand);
  white-space: nowrap;
}

.lp-cta:hover {
  background: var(--brand);
  color: #fff;
}

/* Layout ------------------------------------------------------------- */

.lp-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.lp-crumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.lp-crumbs span {
  margin: 0 6px;
}

.lp-crumbs span:last-child {
  margin-left: 0;
  color: var(--text-muted);
}

.lp-main h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.lp-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.lp-section {
  margin-top: 44px;
}

.lp-section h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Tables ------------------------------------------------------------- */

/*
 * The wrapper scrolls, not the page. A long endpoint path on a narrow phone
 * is the classic cause of a horizontally scrolling document, and the body
 * already sets overflow-x: hidden, which would clip rather than scroll.
 */
.lp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lp-table th,
.lp-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.lp-table thead th {
  background: var(--bg-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-strong);
}

.lp-table tbody tr:last-child td {
  border-bottom: 0;
}

.lp-path {
  font-family: var(--mono);
  font-size: 13px;
  display: block;
  color: var(--text);
}

.lp-host {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

.lp-method {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: var(--text-muted);
}

.method-get { background: var(--green); }
.method-post { background: var(--brand); }
.method-put { background: var(--amber); }
.method-patch { background: var(--purple); }
.method-delete { background: var(--red); }

/* Code --------------------------------------------------------------- */

.lp-code {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

/* Questions ---------------------------------------------------------- */

.lp-faq {
  margin-top: 20px;
}

.lp-faq h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.lp-faq p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Siblings and footer ------------------------------------------------ */

.lp-siblings {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.lp-siblings h2 {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-siblings ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.lp-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.lp-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .lp-main {
    padding: 24px 16px 48px;
  }
  .lp-main h1 {
    font-size: 27px;
  }
  .lp-lead {
    font-size: 16px;
  }
}
