/* OLO brand styling — aligned with olo-internal-docs (quartz/styles/custom.scss). */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --olo-cornflower: #6666ff;
  --olo-magenta: #f230ff;
  --olo-mint: #59e58c;
  --olo-yellow: #fdc400;
  --olo-black: #241f21;
  --olo-grey-mid: #e5e5e5;
  --olo-grey-pale: #f2f2f2;
  --olo-newsprint: #fbf9f5;
  --olo-surface: #ffffff;
  --olo-surface-dark: #221d20;
  --olo-canvas-dark: #1a1618;
  --olo-shadow-sm: 0 1px 2px rgba(36, 31, 33, 0.06);
  --olo-shadow-md: 0 4px 24px rgba(36, 31, 33, 0.08);
  --olo-shadow-dark-md: 0 4px 24px rgba(0, 0, 0, 0.4);
}

body,
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-foreground-primary);
}

/* Flat canvas — newsprint (light) / stone (dark), no tinted aurora */
body[data-theme="light"],
body[data-theme="auto"] {
  background-color: var(--olo-newsprint);
}

@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] {
    background-color: var(--olo-canvas-dark);
  }
}

body[data-theme="dark"] {
  background-color: var(--olo-canvas-dark);
}

.page {
  min-height: 100vh;
}

.page::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: linear-gradient(
    90deg,
    var(--olo-cornflower) 0%,
    var(--olo-magenta) 35%,
    var(--olo-mint) 70%,
    var(--olo-yellow) 100%
  );
}

.sidebar-drawer {
  background: var(--color-sidebar-background);
  border-right: 1px solid var(--color-background-border);
  box-shadow: none;
  min-height: 100vh;
}

/* Bleed surface tone to the viewport edge like internal docs */
@media (min-width: 63.01em) {
  .sidebar-drawer {
    position: relative;
  }

  .sidebar-drawer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 50vw;
    background: var(--color-sidebar-background);
    pointer-events: none;
  }
}

.main {
  background: var(--color-background-secondary);
  min-height: 100vh;
}

.content {
  background: transparent;
}

.content .article-container > article[role="main"] {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--color-content-foreground);
  padding: 2rem 0 1rem;
  margin-top: 0;
}

@media (min-width: 67em) {
  .content {
    padding-left: 2.5rem;
    padding-right: 2rem;
  }
}

body[data-theme="dark"] .sidebar-drawer {
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] .sidebar-drawer {
    box-shadow: none;
  }
}

.mobile-header {
  background: var(--color-header-background);
  border-bottom-color: var(--color-header-border);
  color: var(--color-header-text);
}

.mobile-header .brand,
.mobile-header .header-center a {
  color: var(--color-header-text);
}

.sidebar-brand .sidebar-logo {
  height: 2rem;
  width: auto;
  max-width: 100%;
}

.olo-sidebar-brand-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.olo-sidebar-version {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}

.olo-sidebar-version-base {
  font-family: var(--font-stack--monospace);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-foreground-muted);
}

.olo-sidebar-version-tag {
  padding: 0.14rem 0.42rem;
  border-radius: 9999px;
  background: rgba(253, 196, 0, 0.18);
  border: 1px solid rgba(253, 196, 0, 0.4);
  color: #7a6200;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-theme="dark"] .olo-sidebar-version-tag {
  background: rgba(253, 196, 0, 0.12);
  border-color: rgba(253, 196, 0, 0.32);
  color: #fdc400;
}

@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] .olo-sidebar-version-tag {
    background: rgba(253, 196, 0, 0.12);
    border-color: rgba(253, 196, 0, 0.32);
    color: #fdc400;
  }
}

.mobile-header .brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

article blockquote {
  border-left: 4px solid var(--olo-cornflower);
  background: rgba(102, 102, 255, 0.12);
  border-radius: 0 12px 12px 0;
  color: var(--color-content-foreground);
}

body[data-theme="dark"] article blockquote {
  background: rgba(102, 102, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] article blockquote {
    background: rgba(102, 102, 255, 0.2);
  }
}
article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  color: var(--color-content-foreground);
}

.olo-centered-table th:first-child,
.olo-centered-table td:first-child {
  text-align: center;
  vertical-align: middle;
  width: 20%;
}

.olo-centered-table th:last-child,
.olo-centered-table td:last-child {
  text-align: left;
  vertical-align: top;
}

footer {
  color: var(--color-foreground-secondary);
}
