/*
 * Portal-owned styles: the landing page and the product headers above each
 * reference. Spends the --k-* tokens from theme.css, exactly as docs.css does.
 *
 * theme.css and docs.css are byte-for-byte copies of kike-backoffice/public/
 * api-docs/ (re-copy them when the back-office reference changes its skin); this
 * file is the one stylesheet with no twin over there.
 */

/* ------------------------------------------------------------------ hero ---- */
.portal-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem;
}

.portal-hero__prompt {
  font-family: var(--k-font-mono);
  font-size: 0.85rem;
  color: var(--k-glow);
  margin-bottom: 0.75rem;
}

.portal-hero h1 {
  font-family: var(--k-font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.portal-hero p {
  max-width: 46rem;
  color: var(--k-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* ------------------------------------------------------------------ grid ---- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1rem;
  padding: 1.5rem 0 1rem;
}

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem;
  background: var(--k-panel);
  border: 1px solid var(--k-line);
  transition: border-color 0.2s ease;
}

.portal-card:hover {
  border-color: var(--k-glow);
}

.portal-card__idx {
  font-family: var(--k-font-mono);
  font-size: 0.7rem;
  color: var(--k-glow);
  letter-spacing: 0.12em;
}

.portal-card h2 {
  font-family: var(--k-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.portal-card__title {
  color: var(--k-fg);
  text-decoration: none;
}

.portal-card:hover .portal-card__title {
  color: var(--k-glow);
}

.portal-card__desc {
  color: var(--k-dim);
  font-size: 0.85rem;
  margin: 0;
  flex-grow: 1;
}

.portal-card__meta {
  font-family: var(--k-font-mono);
  font-size: 0.68rem;
  color: var(--k-dim);
  letter-spacing: 0.06em;
}

.portal-card__links {
  display: flex;
  gap: 1.25rem;
  font-family: var(--k-font-mono);
  font-size: 0.78rem;
  padding-top: 0.4rem;
}

.portal-card__links a {
  color: var(--k-glow);
  text-decoration: none;
}

.portal-card__links a:hover {
  text-decoration: underline;
}

.portal-note {
  color: var(--k-dim);
  font-size: 0.78rem;
  font-family: var(--k-font-mono);
  padding-bottom: 2.5rem;
}

/* ------------------------------------------------------------------ logo ---- */
/* The brand says which site you are on: kike_group/api-portal — the portal's
   home is this site's root, unlike the cockpit reference, whose brand leads
   back to the main marketing site. The kike.group ↗ link in the nav carries
   that connection instead. */
.docs-brand__path {
  color: var(--k-dim);
}

/* -------------------------------------------------------- product header ---- */
.portal-api-head {
  padding: 2rem 0 1.25rem;
}

.portal-api-head__idx {
  font-family: var(--k-font-mono);
  font-size: 0.7rem;
  color: var(--k-glow);
  letter-spacing: 0.12em;
}

.portal-api-head h1 {
  font-family: var(--k-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin: 0.35rem 0 0.4rem;
  line-height: 1.15;
}

.portal-api-head p {
  color: var(--k-dim);
  font-size: 0.88rem;
  max-width: 46rem;
  margin: 0;
}
