@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@500;600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Same look as the Linea client portal docs: theme-simple's light sidebar and white
   page, Montserrat for navigation and headings, the brand navy and teal as accents. */
:root {
  --ink: #111c28;
  --brand: #21caab;
  --brand-strong: #0c8c72;

  --theme-color: var(--brand-strong);
  --link-color: var(--brand-strong);
  --sidebar-nav-link-color--active: var(--brand-strong);
}

.navbar,
.sidebar,
.sidebar-nav,
.app-name {
  font-family: 'Montserrat', sans-serif;
}

pre,
code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace !important;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section h5,
.markdown-section h6 {
  font-family: 'Montserrat', sans-serif;
}

.markdown-section {
  max-width: 900px;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3 {
  margin-top: 1.25em;
}

/* Section labels in the sidebar are muted, as in the portal docs. */
.sidebar-nav > ul > li {
  color: #a1a1aa;
}

.sidebar-toggle .sidebar-toggle-button {
  background-color: var(--ink);
}

/* The wordmark, as in the app's sidebar. */
.app-name-link { display: block; text-decoration: none; }
.brand {
  display: block;
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-sub {
  display: block;
  margin-top: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #71717a;
}

/* Screenshots: a quiet frame so white UI does not melt into the white page. */
.markdown-section figure { margin: 1.75rem 0; }
.markdown-section figure img {
  display: block;
  margin: 0 auto;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
}
.markdown-section figure.narrow img { max-width: 520px; width: 100%; }
.markdown-section figure.medium img { max-width: 720px; width: 100%; }
.markdown-section figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #71717a;
  margin-top: 0.6rem;
}
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 720px) { .figure-row { grid-template-columns: 1fr; } }

/* Cards on the home page. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; margin: 1.25rem 0; }
.cards a.card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s;
}
.cards a.card:hover { border-color: var(--brand-strong); }
.cards a.card strong { display: block; font-family: 'Montserrat', sans-serif; color: var(--ink); margin-bottom: 0.25rem; }
.cards a.card span { font-size: 0.9rem; color: #52525b; }

.page-footer { font-size: 0.9em; }

/* Dark mode: as in the portal docs, only the sidebar and accents change. */
@media (prefers-color-scheme: dark) {
  :root {
    --theme-color: var(--ink);
    --sidebar-toggle-offset-left: 1rem;
    --sidebar-toggle-icon-color: white;
    --sidebar-background: var(--ink);
    --sidebar-nav-link-color--active: var(--brand);
    --sidebar-nav-link-color: white;
    --search-result-heading-color: var(--brand);
  }
  .brand { color: white; }
  .brand-sub { color: #a1a1aa; }
  .sidebar .search a { color: white; }
}
