﻿:root {
  --as-bg: #0f172a;
  --as-panel: #1e293b;
  --as-text: #ffffff;
  --as-text-muted: #cbd5e1;
  --as-meta: #94a3b8;
  --as-border: rgba(148, 163, 184, 0.15);
  --as-accent: #38bdf8;
  --as-accent-hover: #0ea5e9;
  --as-positive: #84cc16;
  --as-warning: #f59e0b;
  --as-negative: #ef4444;
}

body {
  background: var(--as-bg);
}

.md-header__button.md-logo {
  border-radius: 0.6rem;
}

.md-header__button.md-logo:hover {
  background: rgba(255, 255, 255, 0.04);
}

.md-logo img {
  background: transparent !important;
  height: 1.9rem;
  width: auto;
  border-radius: 0.5rem;
  opacity: 0.92;
}

/* Use the pill logo as the site wordmark; hide duplicate site-name text */
.md-header__topic:first-child {
  display: none;
}

.md-grid {
  max-width: 1440px;
}

.md-header,
.md-tabs {
  background: var(--as-bg);
  border-bottom: 1px solid var(--as-border);
}

.md-main__inner {
  padding-top: 1rem;
}

.md-content,
.md-sidebar {
  color: var(--as-text-muted);
}

.md-typeset {
  max-width: 1120px;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: var(--as-text);
}

.md-typeset h1 {
  letter-spacing: -0.02em;
}

.md-typeset a {
  color: var(--as-accent);
}

.md-typeset a:hover {
  color: var(--as-accent-hover);
}

.md-typeset .md-button {
  border-radius: 10px;
}

.md-typeset .md-button--primary {
  background: var(--as-accent);
  border-color: var(--as-accent);
  color: #001018;
}

.md-typeset .md-button--primary:hover {
  background: var(--as-accent-hover);
  border-color: var(--as-accent-hover);
  color: #001018;
}

.md-typeset .as-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.1rem 0 1.25rem 0;
}

.md-typeset .as-disclosure {
  color: var(--as-meta);
  font-size: 0.85rem;
  margin: -0.5rem 0 1rem 0;
}

.md-typeset .as-disclosure a {
  color: var(--as-meta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.md-typeset .as-disclosure a:hover {
  color: var(--as-text-muted);
}

.md-typeset .as-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--as-panel);
  border: 1px solid var(--as-border);
  border-radius: 14px;
}

.md-typeset .as-author__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--as-border);
}

.md-typeset img.as-author-avatar {
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--as-border);
  display: block;
  margin: 0 auto 1rem auto;
}

.md-typeset .as-author__kicker {
  color: var(--as-meta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}

.md-typeset .as-author__name a {
  color: var(--as-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.md-typeset .as-author__name a:hover {
  color: var(--as-text-muted);
}

.md-typeset .as-author__meta {
  color: var(--as-meta);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.md-typeset .as-author__sep {
  margin: 0 0.35rem;
}

.md-typeset .as-author__blurb {
  color: var(--as-text-muted);
  margin-top: 0.4rem;
}

@media (max-width: 600px) {
  .md-typeset .as-author {
    flex-direction: column;
  }
}

.md-typeset .as-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem 0;
}

.md-typeset .as-grid.as-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .md-typeset .as-grid {
    grid-template-columns: 1fr;
  }

  .md-typeset .as-grid.as-grid-2 {
    grid-template-columns: 1fr;
  }
}

.md-typeset .as-kicker {
  color: var(--as-meta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.78rem;
}

.md-typeset .as-card {
  background: var(--as-panel);
  border: 1px solid var(--as-border);
  border-radius: 14px;
  padding: 1rem;
  margin: 0.8rem 0;
}

.md-typeset .as-card > h3 {
  margin-top: 0.1rem;
  margin-bottom: 0.35rem;
}

.md-typeset .as-card > p:last-child {
  margin-bottom: 0;
}

.md-typeset img {
  border-radius: 12px;
}

.md-typeset .as-hero {
  max-width: 560px;
  margin: 0.25rem 0 0.75rem 0;
  display: block;
}

.md-typeset hr {
  border-bottom: 1px solid var(--as-border);
}

.md-footer {
  background: var(--as-bg);
  border-top: 1px solid var(--as-border);
  position: relative;
  z-index: 10;
}

.md-footer-meta {
  position: relative;
  z-index: 11;
}

.md-sidebar--primary {
  z-index: 1;
}

.md-sidebar--primary .md-sidebar__scrollwrap {
  bottom: 2.2rem !important;
}

.md-footer-meta {
  padding: 0.35rem 0;
}

.md-typeset .as-footer small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(203, 213, 225, 0.9);
}

.md-typeset .as-footer a {
  color: rgba(203, 213, 225, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.md-typeset .as-footer a:hover {
  color: var(--as-text);
}

.md-typeset .as-footer__sep {
  margin: 0 0.35rem;
  opacity: 0.7;
}

.as-email-copied { margin-left: .5rem; opacity: .85; font-size: .9em; }

