/* ============================================================
   ACX + Longhaul Lab — custom theme
   Azure-inspired palette, hero banner, card grid, polish
   ============================================================ */

/* ---------- colour palette overrides ---------- */
:root {
  --md-primary-fg-color:        #0078d4;
  --md-primary-fg-color--light: #50a0e0;
  --md-primary-fg-color--dark:  #004e8c;
  --md-accent-fg-color:         #00b7c3;
  --md-accent-fg-color--transparent: rgba(0, 183, 195, 0.1);

  --acx-hero-from:   #003d6b;
  --acx-hero-to:     #005a9e;
  --acx-card-border: rgba(0, 120, 212, 0.18);
  --acx-card-hover:  rgba(0, 120, 212, 0.06);
  --acx-shadow-sm:   0 2px 8px rgba(0, 62, 107, 0.12);
  --acx-shadow-md:   0 6px 24px rgba(0, 62, 107, 0.18);
}

/* ---------- header ---------- */
.md-header {
  background: linear-gradient(135deg, #003d6b 0%, #005a9e 100%);
  box-shadow: 0 2px 12px rgba(0, 30, 60, 0.35);
}
.md-header__title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- nav sidebar ---------- */
.md-nav__title {
  font-weight: 700;
  color: var(--md-primary-fg-color);
}
.md-nav__link--active,
.md-nav__link:hover {
  color: var(--md-primary-fg-color) !important;
}

/* ---------- hero banner (homepage only) ---------- */
.acx-hero {
  background: linear-gradient(135deg, var(--acx-hero-from) 0%, var(--acx-hero-to) 60%, #00b7c3 100%);
  border-radius: 12px;
  padding: 3rem 2.5rem 2.5rem;
  margin: -0.8rem -0.8rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.acx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.acx-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}
.acx-hero h1 {
  color: #fff !important;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  line-height: 1.15;
  border: none;
}
.acx-hero__subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.acx-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.acx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.acx-btn:hover { transform: translateY(-2px); box-shadow: var(--acx-shadow-md); }
.acx-btn--primary {
  background: #fff;
  color: #004e8c !important;
  box-shadow: var(--acx-shadow-sm);
}
.acx-btn--secondary {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.35);
}

/* ---------- feature cards ---------- */
.acx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin: 2rem 0;
}
.acx-card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--acx-card-border);
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--acx-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.acx-card:hover {
  box-shadow: var(--acx-shadow-md);
  transform: translateY(-3px);
  background: var(--acx-card-hover);
  border-color: var(--md-primary-fg-color);
}
.acx-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
  display: block;
}
.acx-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.3rem;
}
.acx-card__desc {
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* ---------- quick-start table ---------- */
.acx-steps {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--acx-shadow-sm);
}
.acx-steps th {
  background: linear-gradient(135deg, #003d6b, #005a9e);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.acx-steps td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}
.acx-steps tr:last-child td { border-bottom: none; }
.acx-steps tr:hover td { background: var(--acx-card-hover); }
.acx-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--md-primary-fg-color);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- badge chips ---------- */
.acx-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.acx-badge--blue  { background: rgba(0,120,212,0.12); color: #004e8c; }
.acx-badge--teal  { background: rgba(0,183,195,0.12); color: #005e73; }
.acx-badge--green { background: rgba(0,180,0,0.1);    color: #004b00; }

/* ---------- section dividers ---------- */
.acx-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-primary-fg-color);
  opacity: 0.7;
  margin: 2.5rem 0 0.75rem;
}

/* ---------- content area polish ---------- */
.md-content__inner h1 { font-weight: 800; }
.md-content__inner h2 {
  border-bottom: 2px solid var(--acx-card-border);
  padding-bottom: 0.3rem;
}
.md-typeset a {
  color: var(--md-primary-fg-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.md-typeset a:hover { border-bottom-color: var(--md-primary-fg-color); }

/* ---------- admonitions ---------- */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px;
  box-shadow: var(--acx-shadow-sm);
}

/* ---------- code blocks ---------- */
.md-typeset pre > code {
  border-radius: 8px;
}

/* ---------- footer ---------- */
.md-footer {
  background: linear-gradient(135deg, #001e3c, #003d6b);
}
