@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap");
/* Shared Alex Bot Hub masthead identity. The script equalises the two measured lines. */
.abh-brand-block {
  display: flex !important;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}

.abh-brand-block .abh-brand-name,
.abh-brand-block .abh-brand-sub {
  display: block !important;
  width: max-content;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  white-space: nowrap !important;
  word-break: normal;
  overflow-wrap: normal;
  text-transform: none;
}

.abh-brand-block .abh-brand-name {
  font-weight: 800;
  line-height: 1.08;
}

.abh-brand-block .abh-brand-sub {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

/* Keep both lines present on narrow screens; scale the complete lock-up through font sizes. */
@media (max-width: 720px) {
  .site-header .abh-brand-block .abh-brand-name,
  .case-nav .abh-brand-block .abh-brand-name,
  .article-nav .abh-brand-block .abh-brand-name,
  .ab-header .abh-brand-block .abh-brand-name { font-size: 11px !important; }
  .site-header .abh-brand-block .abh-brand-sub,
  .case-nav .abh-brand-block .abh-brand-sub,
  .article-nav .abh-brand-block .abh-brand-sub,
  .ab-header .abh-brand-block .abh-brand-sub { font-size: 7px !important; }
}

@media (max-width: 380px) {
  .site-header .abh-brand-block .abh-brand-name,
  .case-nav .abh-brand-block .abh-brand-name,
  .article-nav .abh-brand-block .abh-brand-name,
  .ab-header .abh-brand-block .abh-brand-name { font-size: 10px !important; }
  .site-header .abh-brand-block .abh-brand-sub,
  .case-nav .abh-brand-block .abh-brand-sub,
  .article-nav .abh-brand-block .abh-brand-sub,
  .ab-header .abh-brand-block .abh-brand-sub { font-size: 6.5px !important; }
}

/* Legacy service and premium rules hide or wrap the subtitle. The shared lock-up is authoritative. */
.topnav a.brand .abh-brand-sub,
.site-header .abh-brand-sub,
.article-nav .abh-brand-sub,
.case-nav .abh-brand-sub,
.ab-header .abh-brand-sub {
  display: block !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.topnav a.brand .abh-brand-block { gap: 2px; }
.topnav a.brand .abh-brand-name { font-size: 18px; }
.topnav a.brand .abh-brand-sub { font-size: 11px; }
.site-header .abh-brand-name { font-size: 12px; letter-spacing: .13em; }
.site-header .abh-brand-sub { font: 8px/1.12 var(--mono, monospace); letter-spacing: .11em; }
.article-nav .abh-brand-name,
.case-nav .abh-brand-name { font: 800 12px/1.08 var(--sans, Inter, system-ui, sans-serif); letter-spacing: .14em; }
.article-nav .abh-brand-sub,
.case-nav .abh-brand-sub { font: 600 8px/1.12 var(--mono, monospace); letter-spacing: .08em; }
.ab-header .ab-brand-copy.abh-brand-block .abh-brand-name { font-size: 12px !important; letter-spacing: .12em !important; }
.ab-header .ab-brand-copy.abh-brand-block .abh-brand-sub { margin-top: 5px; font: 600 9px/1.12 var(--mono, monospace) !important; letter-spacing: .06em !important; }

/* First-version dark nav and second-version premium nav keep their own color tokens. */
.topnav a.brand .abh-brand-name,
.topnav a.brand .abh-brand-sub { color: inherit; }

.logo-text.abh-brand-block .abh-brand-name { font-size: inherit; }
.logo-text.abh-brand-block .abh-brand-sub { font-size: .72em; color: inherit; }
.top .abh-brand-block { gap: 2px; color: inherit; }
.top .abh-brand-name { font-family: inherit; font-weight: 800; font-size: 1em; line-height: 1.08; letter-spacing: .04em; }
.top .abh-brand-sub { font-family: inherit; font-weight: 600; font-size: .62em; line-height: 1.12; letter-spacing: .04em; }

@media (max-width: 720px) {
  .topnav a.brand .abh-brand-name { font-size: 14px !important; }
  .topnav a.brand .abh-brand-sub { font-size: 9px !important; }
  .logo-text.abh-brand-block .abh-brand-name { font-size: clamp(14px, 4.4vw, 18px); }
  .logo-text.abh-brand-block .abh-brand-sub { font-size: clamp(9px, 2.7vw, 12px); }
  .top .abh-brand-name { font-size: 12px; }
  .top .abh-brand-sub { font-size: 7px; }
}

@media (max-width: 380px) {
  .topnav a.brand .abh-brand-name { font-size: 12px !important; }
  .topnav a.brand .abh-brand-sub { font-size: 8px !important; }
  .logo-text.abh-brand-block .abh-brand-name { font-size: 13px; }
  .logo-text.abh-brand-block .abh-brand-sub { font-size: 8.5px; }
  .top .abh-brand-name { font-size: 11px; }
  .top .abh-brand-sub { font-size: 6.5px; }
}

/* Every public header uses the same lock-up as the main page. */
header .abh-brand-block .abh-brand-name {
  font-family: "Exo 2", Inter, system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.5px !important;
  color: transparent !important;
  background: linear-gradient(135deg, #00c6ff 0%, #3b82f6 52%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
header .abh-brand-block .abh-brand-sub {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12.6px !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.1px !important;
  color: #64748f !important;
  text-transform: none !important;
}
header .article-brand,
header .case-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}
header .abh-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}
@media (max-width: 720px) {
  header .abh-brand-logo { width: 40px !important; height: 40px !important; border-radius: 10px; }
  header .abh-brand-block .abh-brand-name { font-size: 15px !important; letter-spacing: -0.35px !important; }
  header .abh-brand-block .abh-brand-sub { font-size: 10px !important; letter-spacing: 0 !important; }
}
@media (max-width: 380px) {
  header .abh-brand-logo { width: 34px !important; height: 34px !important; border-radius: 9px; }
  header .abh-brand-block .abh-brand-name { font-size: 13px !important; letter-spacing: -0.25px !important; }
  header .abh-brand-block .abh-brand-sub { font-size: 8.6px !important; }
}

/* Give the legacy legal and course headers the same lock-up priority. */
header.topnav a.brand .abh-brand-block .abh-brand-name,
header.site-header .brand-copy.abh-brand-block .abh-brand-name,
header.article-nav .article-brand .abh-brand-block .abh-brand-name,
header.case-nav .case-brand .abh-brand-block .abh-brand-name,
header.top .abh-brand-block .abh-brand-name,
header.ab-header .ab-brand-copy.abh-brand-block .abh-brand-name {
  font-family: "Exo 2", Inter, system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.5px !important;
  color: transparent !important;
  background: linear-gradient(135deg,#00c6ff 0%,#3b82f6 52%,#7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

header.topnav a.brand .abh-brand-block .abh-brand-sub,
header.site-header .brand-copy.abh-brand-block .abh-brand-sub,
header.article-nav .article-brand .abh-brand-block .abh-brand-sub,
header.case-nav .case-brand .abh-brand-block .abh-brand-sub,
header.top .abh-brand-block .abh-brand-sub,
header.ab-header .ab-brand-copy.abh-brand-block .abh-brand-sub {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12.6px !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.1px !important;
  color: #64748f !important;
  text-transform: none !important;
}

@media (max-width: 720px) {
  header.topnav a.brand .abh-brand-block .abh-brand-name,
  header.site-header .brand-copy.abh-brand-block .abh-brand-name,
  header.article-nav .article-brand .abh-brand-block .abh-brand-name,
  header.case-nav .case-brand .abh-brand-block .abh-brand-name,
  header.top .abh-brand-block .abh-brand-name,
  header.ab-header .ab-brand-copy.abh-brand-block .abh-brand-name { font-size: 15px !important; letter-spacing: -0.35px !important; }
  header.topnav a.brand .abh-brand-block .abh-brand-sub,
  header.site-header .brand-copy.abh-brand-block .abh-brand-sub,
  header.article-nav .article-brand .abh-brand-block .abh-brand-sub,
  header.case-nav .case-brand .abh-brand-block .abh-brand-sub,
  header.top .abh-brand-block .abh-brand-sub,
  header.ab-header .ab-brand-copy.abh-brand-block .abh-brand-sub { font-size: 10px !important; letter-spacing: 0 !important; }
}

@media (max-width: 380px) {
  header.topnav a.brand .abh-brand-block .abh-brand-name,
  header.site-header .brand-copy.abh-brand-block .abh-brand-name,
  header.article-nav .article-brand .abh-brand-block .abh-brand-name,
  header.case-nav .case-brand .abh-brand-block .abh-brand-name,
  header.top .abh-brand-block .abh-brand-name,
  header.ab-header .ab-brand-copy.abh-brand-block .abh-brand-name { font-size: 13px !important; letter-spacing: -0.25px !important; }
  header.topnav a.brand .abh-brand-block .abh-brand-sub,
  header.site-header .brand-copy.abh-brand-block .abh-brand-sub,
  header.article-nav .article-brand .abh-brand-block .abh-brand-sub,
  header.case-nav .case-brand .abh-brand-block .abh-brand-sub,
  header.top .abh-brand-block .abh-brand-sub,
  header.ab-header .ab-brand-copy.abh-brand-block .abh-brand-sub { font-size: 8.6px !important; letter-spacing: 0 !important; }
}

/* The first-version home hero uses a larger desktop mark; scale the whole lock-up on phones. */
.nav .logo > img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
@media (max-width: 720px) {
  .nav .logo > img { width: 40px !important; height: 40px !important; border-radius: 10px; }
  .nav .logo-text.abh-brand-block .abh-brand-name { font-size: 15px !important; letter-spacing: -0.35px !important; }
  .nav .logo-text.abh-brand-block .abh-brand-sub { font-size: 10px !important; letter-spacing: 0 !important; }
}
@media (max-width: 380px) {
  .nav .logo > img { width: 34px !important; height: 34px !important; border-radius: 9px; }
  .nav .logo-text.abh-brand-block .abh-brand-name { font-size: 13px !important; letter-spacing: -0.25px !important; }
  .nav .logo-text.abh-brand-block .abh-brand-sub { font-size: 8.6px !important; letter-spacing: 0 !important; }
}
