/* Axial Labs — light theme overrides on top of Clarity main_free.css */
:root {
  --al-bg: #f5f5f2;
  --al-surface: #ffffff;
  --al-surface-warm: #ece9e2;
  --al-border: #d9d5cc;
  --al-border-strong: #b8b2a3;
  --al-text: #1a1a1a;
  --al-text-soft: #353535;
  --al-muted: #6b6b6b;
  --al-accent: #d97706;          /* warm orange */
  --al-accent-hover: #b45309;
  --al-accent-soft: #fef3e2;
  --al-code-bg: #1a1a1a;
  --al-code-fg: #e5e1d5;
  --al-mono: 'Fira Code', ui-monospace, Menlo, monospace;
  --al-sans: 'Poppins', 'Helvetica Neue', system-ui, sans-serif;
  --al-serif: 'Charter', Georgia, serif;
}

html, body { background-color: var(--al-bg) !important; }

.container.blog,
.container.blog p,
.container.blog li {
  color: var(--al-text-soft);
}
.container.blog p.text,
.container.blog p {
  font-family: var(--al-serif);
  font-size: 18px;
  line-height: 1.75;
}
.container.blog h1,
.container.blog h2,
.container.blog h3,
.container.blog h4 {
  font-family: var(--al-sans);
  color: var(--al-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.container.blog h1 { font-size: 2.1rem; margin-top: 1.2em; margin-bottom: 0.5em; }
.container.blog h2 { font-size: 1.4rem; margin-top: 1.4em; margin-bottom: 0.4em; color: var(--al-accent); }
.container.blog h3 { font-size: 1.1rem; margin-top: 1.1em; margin-bottom: 0.3em; }

.container.blog a {
  color: var(--al-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
.container.blog a:hover {
  color: var(--al-accent-hover);
  border-bottom-color: var(--al-accent-hover);
}

.container.blog.main.gray,
.container.blog.gray {
  background-color: var(--al-surface-warm) !important;
}

/* Title page */
.blog-title .title {
  font-family: var(--al-sans);
  font-weight: 700;
  color: var(--al-text);
  letter-spacing: -0.02em;
}
.blog-title .abstract {
  font-family: var(--al-serif);
  color: var(--al-text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 680px;
}

/* Clarity .button.icon */
.button.icon {
  background-color: var(--al-accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--al-accent);
  padding: 9px 18px;
  border-radius: 4px;
  font-family: var(--al-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background-color 120ms ease;
}
.button.icon:hover {
  background-color: var(--al-accent-hover) !important;
  border-color: var(--al-accent-hover);
  color: #ffffff !important;
}
.button.icon.ghost {
  background-color: transparent !important;
  color: var(--al-accent) !important;
  border-color: var(--al-accent);
}
.button.icon.ghost:hover {
  background-color: var(--al-accent-soft) !important;
  color: var(--al-accent-hover) !important;
}

/* Code */
.container.blog code,
.container.blog pre {
  font-family: var(--al-mono);
  background: var(--al-code-bg);
  color: var(--al-code-fg);
  border: 0;
  border-radius: 4px;
}
.container.blog code {
  padding: 2px 6px;
  font-size: 0.88em;
}
.container.blog pre {
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 20px 0;
}
.container.blog pre code { background: transparent; padding: 0; color: inherit; }

/* Tables */
.container.blog table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: var(--al-sans);
  font-size: 0.95rem;
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-radius: 4px;
  overflow: hidden;
}
.container.blog th,
.container.blog td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--al-border);
}
.container.blog th {
  background: var(--al-surface-warm);
  font-weight: 600;
  color: var(--al-text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.container.blog td { color: var(--al-text-soft); }
.container.blog td:first-child { color: var(--al-text); font-weight: 500; }
.container.blog tr:last-child td { border-bottom: 0; }

/* Lists */
.container.blog ul, .container.blog ol {
  padding-left: 1.4em;
  margin: 12px 0 18px;
  font-family: var(--al-serif);
  font-size: 18px;
  line-height: 1.75;
}
.container.blog ul li { list-style: disc outside; margin-bottom: 6px; }
.container.blog ol li { list-style: decimal outside; margin-bottom: 6px; }

/* ==== Axial Labs components ==== */

.al-nav {
  position: sticky;
  top: 0;
  background: rgba(245,245,242,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--al-border);
  z-index: 200;
}
.al-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--al-sans);
  font-size: 14px;
}
.al-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 0 !important;
}
.al-nav-brand svg { height: 36px; width: auto; display: block; }
.al-nav-links { display: flex; gap: 22px; }
.al-nav-links a {
  color: var(--al-text-soft) !important;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent !important;
  padding-bottom: 2px;
}
.al-nav-links a:hover,
.al-nav-links a.active {
  color: var(--al-accent) !important;
  border-bottom-color: var(--al-accent) !important;
}
.al-nav-right { margin-left: auto; font-size: 13px; }
.al-nav-right a { color: var(--al-muted) !important; }

.al-footer {
  border-top: 1px solid var(--al-border);
  padding: 48px 28px 60px;
  margin-top: 40px;
  text-align: center;
  color: var(--al-muted);
  font-family: var(--al-sans);
  font-size: 13px;
  line-height: 1.9;
  background: var(--al-surface-warm);
}
.al-footer a { color: var(--al-muted); }
.al-footer a:hover { color: var(--al-accent); }
.al-footer .brand { font-weight: 600; color: var(--al-text); letter-spacing: 0.04em; }

/* Stats bar */
.al-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  padding: 26px 0;
  border-top: 1px solid var(--al-border);
  border-bottom: 1px solid var(--al-border);
  margin: 20px 0 30px;
  font-family: var(--al-sans);
}
.al-stats .stat {
  color: var(--al-accent);
  font-size: 1.55rem;
  font-weight: 600;
  white-space: nowrap;
}
.al-stats .stat .label {
  display: block;
  color: var(--al-muted);
  font-size: 11px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Cards */
.al-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 30px 0;
}
.al-card {
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  padding: 28px;
  border-radius: 6px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.al-card:hover {
  border-color: var(--al-accent);
  transform: translateY(-2px);
}
.al-card .meta {
  font-family: var(--al-mono);
  font-size: 11px;
  color: var(--al-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.al-card h3 {
  margin: 0 0 10px !important;
  font-family: var(--al-sans) !important;
  color: var(--al-text) !important;
  font-size: 1.2rem !important;
}
.al-card p {
  color: var(--al-text-soft);
  font-family: var(--al-serif);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0 0 14px;
}
.al-card a.more {
  font-family: var(--al-sans);
  font-weight: 500;
  color: var(--al-accent);
  text-decoration: none;
  font-size: 0.92rem;
}

/* Research/deployment list */
.al-list { list-style: none !important; padding: 0 !important; margin: 18px 0; font-family: var(--al-sans); }
.al-list li {
  list-style: none !important;
  border-bottom: 1px solid var(--al-border);
  padding: 18px 0;
  margin: 0 !important;
}
.al-list li:last-child { border-bottom: 0; }
.al-list .title {
  font-family: var(--al-sans);
  color: var(--al-text);
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-block;
}
.al-list a.title { color: var(--al-text); }
.al-list a.title:hover { color: var(--al-accent); }
.al-list .desc {
  color: var(--al-text-soft);
  font-family: var(--al-serif);
  font-size: 0.95rem;
  display: block;
  margin-top: 4px;
  line-height: 1.6;
}
.al-list .tag {
  display: inline-block;
  font-family: var(--al-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--al-border-strong);
  border-radius: 3px;
  color: var(--al-muted);
  margin-left: 10px;
  vertical-align: middle;
}
.al-list .tag.ship { color: var(--al-accent); border-color: var(--al-accent); }

/* Arch cards (3 tiers) */
.al-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.al-tier {
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-top: 4px solid var(--al-accent);
  border-radius: 6px;
  padding: 24px;
}
.al-tier .num {
  font-family: var(--al-mono);
  font-size: 11px;
  color: var(--al-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.al-tier h3 {
  margin: 4px 0 12px !important;
  font-family: var(--al-sans) !important;
  font-weight: 600 !important;
  color: var(--al-text) !important;
  font-size: 1.15rem !important;
}
.al-tier p {
  font-family: var(--al-serif);
  color: var(--al-text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 10px;
}
.al-tier .stat-line {
  font-family: var(--al-mono);
  font-size: 12px;
  color: var(--al-muted);
  padding-top: 10px;
  border-top: 1px dashed var(--al-border);
  margin-top: 10px;
}

/* ASCII / diagram box */
.al-ascii {
  background: var(--al-code-bg);
  color: var(--al-code-fg);
  font-family: var(--al-mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 22px 26px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre;
  margin: 22px 0;
}

.meta-strip {
  font-family: var(--al-mono);
  color: var(--al-muted);
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.meta-strip a { color: var(--al-muted); border-bottom: 0 !important; }
.meta-strip a:hover { color: var(--al-accent); }

.note {
  font-size: 0.9rem;
  color: var(--al-muted);
  font-style: italic;
  margin-top: 10px;
  font-family: var(--al-serif);
}

.container.blog { padding-top: 36px; padding-bottom: 36px; }

.container.blog hr {
  border-top: 1px solid var(--al-border);
  border-bottom: 0;
  margin: 30px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .al-cards, .al-tiers { grid-template-columns: 1fr; }
  .al-nav-inner { flex-wrap: wrap; gap: 14px; padding: 12px 16px; }
  .al-nav-links { gap: 14px; font-size: 13px; flex-wrap: wrap; }
  .al-nav-right { display: none; }
  .al-stats { gap: 26px; }
  .al-stats .stat { font-size: 1.25rem; }
  .al-nav-brand svg { height: 32px; }
}

/* ============================================================
   Splide hero slider (axllabs.org)
   ============================================================ */
.axl-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  height: min(78vh, 680px);
  min-height: 460px;
  background: #1a1a1a;
  overflow: hidden;
}
.axl-hero .splide__track,
.axl-hero .splide__list,
.axl-hero .splide__slide {
  height: 100%;
}
.axl-hero .splide__slide {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.axl-hero .splide__slide picture,
.axl-hero .splide__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}
.axl-hero .splide__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.15) 0%,
    rgba(10,10,10,0.35) 55%,
    rgba(10,10,10,0.78) 100%);
  pointer-events: none;
}

.axl-hero__caption {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding: 48px 60px 72px;
  color: #ffffff;
  font-family: var(--al-sans);
}
.axl-hero__kicker {
  font-family: var(--al-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--al-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.axl-hero__caption h2 {
  font-family: var(--al-sans) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: clamp(2rem, 4.2vw, 3.2rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.axl-hero__caption p {
  font-family: var(--al-serif);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: #e8e5df;
  margin: 0 0 22px;
  max-width: 58ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.axl-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.axl-hero__caption .button.icon {
  padding: 11px 22px;
  font-size: 14px;
}
.axl-hero__caption .button.icon.ghost {
  background-color: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.5);
}
.axl-hero__caption .button.icon.ghost:hover {
  background-color: rgba(255,255,255,0.18) !important;
  border-color: #ffffff;
  color: #ffffff !important;
}

/* Splide arrows */
.axl-hero .splide__arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.axl-hero .splide__arrow {
  pointer-events: auto;
  background: rgba(10,10,10,0.45);
  border: 1px solid rgba(255,255,255,0.3);
  opacity: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: background 160ms ease, border-color 160ms ease;
}
.axl-hero .splide__arrow svg {
  fill: #ffffff;
  width: 18px;
  height: 18px;
}
.axl-hero .splide__arrow:hover:not(:disabled) {
  background: var(--al-accent);
  border-color: var(--al-accent);
}
.axl-hero .splide__arrow--prev { left: 28px; }
.axl-hero .splide__arrow--next { right: 28px; }

/* Splide pagination */
.axl-hero .splide__pagination {
  bottom: 18px;
  gap: 10px;
  z-index: 3;
}
.axl-hero .splide__pagination__page {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.55);
  opacity: 1;
  margin: 0;
  transition: background 160ms ease, transform 160ms ease;
}
.axl-hero .splide__pagination__page.is-active {
  background: var(--al-accent);
  border-color: var(--al-accent);
  transform: scale(1.3);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .axl-hero .splide__slide { transition: none !important; }
}

/* Responsive */
@media (max-width: 900px) {
  .axl-hero { height: min(72vh, 560px); min-height: 420px; }
  .axl-hero__caption { padding: 32px 24px 60px; }
  .axl-hero__caption h2 { font-size: 1.8rem !important; }
  .axl-hero__caption p { font-size: 0.98rem; }
  .axl-hero .splide__arrow--prev { left: 12px; }
  .axl-hero .splide__arrow--next { right: 12px; }
  .axl-hero .splide__arrow { width: 38px; height: 38px; }
}

/* ============================================================
   Content figures and inline diagrams
   ============================================================ */
figure.al-figure {
  margin: 30px 0;
  padding: 0;
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-radius: 6px;
  overflow: hidden;
}
figure.al-figure picture,
figure.al-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100% !important;
}
figure.al-figure figcaption {
  padding: 12px 18px;
  background: var(--al-surface-warm);
  color: var(--al-muted);
  font-family: var(--al-mono);
  font-size: 12px;
  line-height: 1.55;
  border-top: 1px solid var(--al-border);
  letter-spacing: 0.01em;
}
figure.al-figure.wide {
  margin-left: -20px;
  margin-right: -20px;
}

figure.al-diagram {
  margin: 36px 0;
  padding: 0;
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-top: 4px solid var(--al-accent);
  border-radius: 6px;
  overflow: hidden;
}
figure.al-diagram picture,
figure.al-diagram img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100% !important;
  background: #ffffff;
}
figure.al-diagram figcaption {
  padding: 14px 22px;
  background: var(--al-surface-warm);
  border-top: 1px solid var(--al-border);
  font-family: var(--al-sans);
  font-size: 13px;
  color: var(--al-text-soft);
  line-height: 1.55;
}
figure.al-diagram figcaption .label {
  font-family: var(--al-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--al-accent);
  font-size: 11px;
  display: block;
  margin-bottom: 3px;
}

/* Card cover image (for index al-cards) */
.al-card picture,
.al-card .al-card__cover {
  display: block;
  margin: -28px -28px 18px;
  border-bottom: 1px solid var(--al-border);
}
.al-card picture img,
.al-card .al-card__cover img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  max-width: 100% !important;
}

/* Page sub-hero (illustration banner under title page) */
.al-subhero {
  margin: 0 0 10px;
  border-top: 1px solid var(--al-border);
  border-bottom: 1px solid var(--al-border);
  background: var(--al-surface);
  overflow: hidden;
}
.al-subhero picture,
.al-subhero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  max-width: 100% !important;
}

/* Tier illustrations grid (swarm page) */
.al-tier-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.al-tier-figures figure {
  margin: 0;
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-radius: 6px;
  overflow: hidden;
}
.al-tier-figures figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100% !important;
}
.al-tier-figures figcaption {
  padding: 12px 16px;
  font-family: var(--al-mono);
  font-size: 11px;
  color: var(--al-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .al-tier-figures { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero slider safety net (show first slide even without JS)
   ============================================================ */
.axl-hero.splide:not(.is-initialized):not(.is-rendered) {
  visibility: visible !important;
}
.axl-hero.splide:not(.is-initialized):not(.is-rendered) .splide__list {
  display: block !important;
  position: relative;
  height: 100%;
}
.axl-hero.splide:not(.is-initialized):not(.is-rendered) .splide__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.axl-hero.splide:not(.is-initialized):not(.is-rendered) .splide__slide:first-child {
  opacity: 1;
  z-index: 2;
}
