/* ============================================================
   ABC Landing — ARTBUILD OS
   Dark theme, accent #f97316. Class prefix: .abl
   ============================================================ */

/* ---------- Tokens ---------- */
.abl {
  --abl-bg:        #0a0d13;
  --abl-bg-2:      #0d1119;
  --abl-card:      #121724;
  --abl-card-2:    #171d2c;
  --abl-border:    #1e2636;
  --abl-border-2:  #2a3447;
  --abl-text:      #eaeef6;
  --abl-muted:     #93a0b5;
  --abl-dim:       #6b7689;

  --abl-orange:    #f97316;
  --abl-orange-2:  #fb923c;
  --abl-green:     #22c55e;
  --abl-green-light: #4ade80;
  --abl-green-dark:  #16a34a;
  --abl-blue:      #3b82f6;
  --abl-purple:    #a855f7;
  --abl-purple-light: #c084fc;
  --abl-amber:     #f59e0b;
  --abl-teal:      #14b8a6;
  --abl-skyblue:   #38bdf8;
  --abl-red:       #f87171;
  --abl-star:      #fbbf24;

  /* RGB triplets (no rgba() wrapper) — the single source of truth for
     every rgba(var(--x-rgb), alpha) and color-mix() consumer below.
     Keeping these next to their hex twins means a rebrand is a six-line
     edit instead of a file-wide hunt for magic numbers. */
  --abl-orange-rgb:   249, 115, 22;
  --abl-orange-2-rgb: 251, 146, 60;
  --abl-green-rgb:    34, 197, 94;
  --abl-blue-rgb:     59, 130, 246;
  --abl-purple-rgb:   168, 85, 247;
  --abl-amber-rgb:    245, 158, 11;
  --abl-teal-rgb:     20, 184, 166;
  --abl-skyblue-rgb:  56, 189, 248;
  --abl-red-rgb:      248, 113, 113;

  /* Default ambient glow color for any .abl-glass card that doesn't set
     its own --glow / --glow-rgb. Brand orange, matching --abl-orange-rgb. */
  --glow-rgb: var(--abl-orange-rgb);
  --glow: rgba(var(--glow-rgb), .22);
  --glow-border: rgba(var(--glow-rgb), .28);

  --abl-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --abl-font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --abl-radius:    14px;
  --abl-radius-sm: 10px;
  --abl-radius-lg: 20px;
  --abl-shadow:    0 14px 40px rgba(0, 0, 0, .45);
  --abl-speed:     .22s;
  --abl-ease:      cubic-bezier(.22, 1, .36, 1);

  /* Glass surface — translucent layered card, used across sections */
  --abl-glass-bg:     linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  --abl-glass-border:  rgba(255, 255, 255, .08);
  --abl-glass-border-hover: rgba(255, 255, 255, .16);
  --abl-glass-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 48px -24px rgba(0, 0, 0, .6);
  --abl-glass-shadow-hover: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 32px 64px -24px rgba(0, 0, 0, .7);

  /* Full width inside Twenty Twenty-Five: avoid 100vw (caused
     horizontal shift from the scrollbar). Stretch via
     max-width:none + compensating the theme's root padding. */
  width: auto;
  max-width: none !important;
  margin-left: calc(var(--wp--style--root--padding-left, 0px) * -1);
  margin-right: calc(var(--wp--style--root--padding-right, 0px) * -1);
  overflow-x: clip;

  position: relative;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(var(--abl-orange-rgb), .09), transparent 60%),
    radial-gradient(800px 560px at 92% 8%, rgba(var(--abl-skyblue-rgb), .055), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(var(--abl-green-rgb), .05), transparent 55%),
    var(--abl-bg);
  color: var(--abl-text);
  font-family: var(--abl-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.abl *,
.abl *::before,
.abl *::after { box-sizing: border-box; }

.abl a { text-decoration: none; color: inherit; }
.abl ul { margin: 0; padding: 0; list-style: none; }
.abl h1, .abl h2, .abl h3, .abl h4, .abl p { margin: 0; }

.abl :focus-visible {
  outline: 2px solid var(--abl-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.abl-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.abl-i { flex: none; }

/* ---------- Glass surface primitive ----------
   Reusable translucent card with ambient glow + layered shadow.
   Apply .abl-glass as a base, add a --glow custom property per
   instance for a tinted ambient light unique to that card. */
.abl-glass {
  position: relative;
  isolation: isolate;
  background: var(--abl-glass-bg);
  border: 1px solid var(--abl-glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--abl-glass-shadow);
  transition: transform .28s var(--abl-ease), box-shadow .28s ease, border-color .28s ease;
}
.abl-glass::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  opacity: .5;
  transition: opacity .3s ease;
  pointer-events: none;
}
.abl-glass:hover,
a.abl-glass:hover {
  transform: translateY(-4px);
  border-color: var(--abl-glass-border-hover);
  box-shadow: var(--abl-glass-shadow-hover), 0 0 0 1px var(--glow-border);
}
.abl-glass:hover::before { opacity: .85; }

/* Variant for glass cards that contain photo media and need overflow:hidden
   to keep the image corners clipped. The bleeding ::before glow would be
   cut off by overflow:hidden, so this variant uses an inset glow instead —
   light appears to rise from beneath the photo rather than spill outside. */
.abl-glass--media {
  overflow: hidden;
}
.abl-glass--media::before { display: none; }
.abl-glass--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px transparent;
  background: linear-gradient(180deg, transparent 55%, var(--glow) 100%);
  opacity: .6;
  transition: opacity .3s ease;
  pointer-events: none;
}
.abl-glass--media:hover::after { opacity: 1; }

/* ---------- Buttons / links ---------- */
.abl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--abl-radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background var(--abl-speed), border-color var(--abl-speed),
              color var(--abl-speed), transform var(--abl-speed);
  cursor: pointer;
  white-space: nowrap;
}
.abl-btn--sm { padding: 8px 16px; font-size: 13px; }

.abl-btn--primary {
  background: var(--abl-orange);
  color: #fff;
}
.abl-btn--primary:hover {
  background: var(--abl-orange-2);
  transform: translateY(-1px);
}

/* Conversion actions (post a job, create an estimate, register) — green,
   distinct from the brand-orange primary used for navigation/identity CTAs */
.abl-btn--action {
  background: var(--abl-green);
  color: #fff;
}
.abl-btn--action:hover {
  background: var(--abl-green-dark);
  transform: translateY(-1px);
}

.abl-btn--outline {
  border-color: var(--abl-border-2);
  color: var(--abl-text);
  background: transparent;
}
.abl-btn--outline:hover { border-color: var(--abl-orange); color: var(--abl-orange-2); }

.abl-btn--outline-action {
  border-color: var(--abl-green);
  color: var(--abl-green);
  background: transparent;
}
.abl-btn--outline-action:hover { background: rgba(var(--abl-green-rgb), .1); color: var(--abl-green-light); }

.abl-btn--ghost { color: var(--abl-muted); }
.abl-btn--ghost:hover { color: var(--abl-text); }

.abl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--abl-orange-2);
  font-weight: 600;
  font-size: 14px;
  transition: gap var(--abl-speed), color var(--abl-speed);
}
.abl-link:hover { gap: 10px; color: var(--abl-orange); }
.abl-link--sm { font-size: 12.5px; }

/* ---------- Logo ---------- */
.abl-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.abl-logo__hex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(var(--abl-orange-rgb), .12);
  border: 1px solid rgba(var(--abl-orange-rgb), .35);
  color: var(--abl-orange);
}
.abl-logo__text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.abl-logo__text b {
  font-family: var(--abl-font-display);
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--abl-text);
}
.abl-logo__text b i { color: var(--abl-orange); font-style: normal; }
.abl-logo__text small {
  font-size: 8.5px;
  letter-spacing: .22em;
  color: var(--abl-dim);
  margin-top: 2px;
}

/* ---------- Header ---------- */
.abl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 19, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--abl-border);
  transition: box-shadow var(--abl-speed);
}
body.admin-bar .abl-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .abl-header { top: 46px; }
}
.abl-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }

.abl-header__row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
}
.abl-header__brand { flex: none; }

.abl-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.abl-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--abl-muted);
  transition: color var(--abl-speed), background var(--abl-speed);
}
.abl-nav a:hover { color: var(--abl-text); background: rgba(255, 255, 255, .05); }

.abl-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.abl-header__city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--abl-muted);
}
.abl-header__city .abl-i { color: var(--abl-orange); }

.abl-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.abl-burger span {
  width: 22px;
  height: 2px;
  background: var(--abl-text);
  border-radius: 2px;
  transition: transform var(--abl-speed), opacity var(--abl-speed);
}
.abl-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.abl-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.abl-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.abl-mobilenav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--abl-border);
}
.abl-mobilenav a {
  padding: 11px 6px;
  color: var(--abl-muted);
  border-bottom: 1px solid var(--abl-border);
  font-size: 14px;
}
.abl-mobilenav__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.abl-mobilenav__actions .abl-btn { flex: 1; justify-content: center; }

/* ---------- Hero ---------- */
.abl-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--abl-border);
}

.abl-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
}
.abl-hero__media--ph {
  background:
    radial-gradient(900px 560px at 80% 0%, rgba(var(--abl-orange-rgb), .16), transparent 60%),
    radial-gradient(700px 500px at 15% 90%, rgba(var(--abl-skyblue-rgb), .08), transparent 60%),
    linear-gradient(200deg, #141a26 0%, #0b0f17 55%, #0a0d13 100%);
}

.abl-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  padding-bottom: 60px;
}

.abl-hero__kicker {
  display: block;
  font-family: var(--abl-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--abl-orange-2);
}

.abl-hero__title {
  margin-top: 14px;
  font-family: var(--abl-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.12;
  max-width: 760px;
}

.abl-hero__verbs {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.abl-hero__verbs li {
  font-family: var(--abl-font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.1;
  color: var(--abl-text);
  background: linear-gradient(90deg, var(--abl-text) 0%, var(--abl-text) 60%, var(--abl-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.abl-hero__verbs li:nth-child(1) { color: var(--abl-orange); -webkit-text-fill-color: var(--abl-orange); }
.abl-hero__verbs li:nth-child(2) { color: var(--abl-green); -webkit-text-fill-color: var(--abl-green); }
.abl-hero__verbs li:nth-child(3) { color: var(--abl-skyblue); -webkit-text-fill-color: var(--abl-skyblue); }
.abl-hero__verbs li:nth-child(4) { color: var(--abl-purple-light); -webkit-text-fill-color: var(--abl-purple-light); }

.abl-hero__lead {
  margin-top: 22px;
  max-width: 560px;
  color: var(--abl-muted);
  font-size: 16px;
  line-height: 1.55;
}

.abl-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* What the platform is made of */
.abl-hero__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.abl-pillar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--abl-radius-lg);
}
.abl-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(var(--glow-rgb, 249, 115, 22), .22), rgba(var(--glow-rgb, 249, 115, 22), .05));
  border: 1px solid rgba(var(--glow-rgb, 249, 115, 22), .3);
  color: var(--abl-text);
}
.abl-pillar__title {
  font-family: var(--abl-font-display);
  font-size: 14.5px;
  font-weight: 700;
}
.abl-pillar__text { font-size: 12px; color: var(--abl-muted); line-height: 1.4; }

/* "Is this for me" — compact role teasers */
.abl-hero__roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.abl-role-teaser {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--abl-radius-lg);
  color: var(--abl-text);
}
.abl-role-teaser__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(var(--glow-rgb, 249, 115, 22), .16);
  border: 1px solid rgba(var(--glow-rgb, 249, 115, 22), .32);
  color: rgb(var(--glow-rgb, 249, 115, 22));
}
.abl-role-teaser__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.abl-role-teaser__body strong { font-size: 13.5px; font-weight: 700; }
.abl-role-teaser__body span { font-size: 12px; color: var(--abl-muted); line-height: 1.4; }

/* ---------- Sections (generic) ----------
   Each section owns its own top/bottom spacing via padding-block-*.
   Previously a `.abl-section + .abl-section { padding-top: 0 }` rule
   zeroed the top padding of any section following another — including
   any future section using --compact, since that modifier's `padding`
   shorthand loses a same-specificity-tier fight to the sibling selector's
   higher specificity. Explicit per-section values avoid that class of
   bug entirely: nothing here depends on DOM position. */
.abl-section {
  padding-block-start: 0;
  padding-block-end: 64px;
}
.abl-section--dark { background: var(--abl-bg-2); }
.abl-section--compact {
  padding-block-start: 0;
  padding-block-end: 36px;
}
/* The first section after .abl-hero needs its own breathing room —
   explicit, not inferred from DOM position. */
.abl-section--first { padding-block-start: 64px; }

.abl-section__head { margin-bottom: 32px; }
.abl-section__head--center { text-align: center; }
.abl-section__head--tight { margin-bottom: 18px; }
.abl-section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.abl-section__title {
  font-family: var(--abl-font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: .06em;
}
.abl-section__title--sm { font-size: clamp(16px, 1.8vw, 19px); letter-spacing: .08em; }
.abl-section__subtitle {
  margin-top: 8px;
  color: var(--abl-muted);
  font-size: 14px;
}

/* ---------- Marketplace: tabs ---------- */
.abl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.abl-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--abl-border-2);
  background: var(--abl-card);
  color: var(--abl-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--abl-speed), border-color var(--abl-speed), color var(--abl-speed);
}
.abl-tab:hover { color: var(--abl-text); border-color: var(--abl-border-2); }
.abl-tab:focus-visible { outline-offset: 1px; }
.abl-tab.is-active {
  background: var(--abl-blue);
  border-color: var(--abl-blue);
  color: #fff;
}

/* ---------- Marketplace: listings ---------- */
.abl-listings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.abl-listing {
  display: flex;
  flex-direction: column;
  border-radius: var(--abl-radius-lg);
}
.abl-listing[data-abl-tab-item] {
  display: none;
  opacity: 0;
}
.abl-listing.is-shown {
  display: flex;
  animation: abl-listing-in .25s ease;
}

@keyframes abl-listing-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.abl-listing__media {
  height: 140px;
  border-radius: var(--abl-radius-lg) var(--abl-radius-lg) 0 0;
  background-size: cover;
  background-position: center;
  background-color: var(--abl-card-2);
}
.abl-listing__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}
.abl-listing__title { font-weight: 700; font-size: 14.5px; }
.abl-listing__loc { font-size: 12.5px; color: var(--abl-muted); }
.abl-listing__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--abl-green);
  font-size: 12px;
  font-weight: 700;
}
.abl-listing__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}
.abl-listing__resp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--abl-dim);
}

/* ---------- Marketplace: post actions (Post a Job / Create an Estimate) ----------
   These are .abl-glass cards like everything else on the page. The green
   modifier below tints the *ambient glow* (the actual glass ::before glow),
   not just the icon — previously only the icon picked up green on hover,
   so the card itself stayed orange-tinted underneath. */
.abl-post-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.abl-post-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--abl-radius);
  --glow-rgb: var(--abl-orange-rgb);
  --glow: rgba(var(--glow-rgb), .2);
  --glow-border: rgba(var(--glow-rgb), .26);
}
.abl-post-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: rgb(var(--glow-rgb));
  background: rgba(var(--glow-rgb), .12);
}
.abl-post-action__body { flex: 1; }
.abl-post-action__body h3 { font-family: var(--abl-font-display); font-size: 16.5px; font-weight: 700; }
.abl-post-action__body p { margin-top: 6px; font-size: 13px; color: var(--abl-muted); }
.abl-post-action .abl-btn { align-self: flex-start; }

/* ---------- Common Failures ---------- */
.abl-failures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.abl-failure {
  display: flex;
  flex-direction: column;
  border-radius: var(--abl-radius-lg);
}
.abl-failure__media {
  position: relative;
  height: 140px;
  border-radius: var(--abl-radius-lg) var(--abl-radius-lg) 0 0;
  background-size: cover;
  background-position: center;
  background-color: var(--abl-card-2);
}
.abl-failure__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(10, 13, 19, .7);
  color: var(--abl-amber);
}
/* Explicit per-tag colors. --warning is listed even though it matches the
   base default, so every tag value used in the data has a visible,
   intentional rule here rather than silently falling through. */
.abl-failure__tag--warning { color: var(--abl-amber); }
.abl-failure__tag--error   { color: var(--abl-orange-2); }
.abl-failure__tag--blocked { color: var(--abl-red); }
.abl-failure__tag--water   { color: var(--abl-skyblue); }
.abl-failure__tag--crack   { color: var(--abl-red); }
.abl-failure__body { padding: 16px; display: flex; flex-direction: column; gap: 7px; }
.abl-failure__body h3 { font-size: 15px; font-weight: 700; }
.abl-failure__body p { font-size: 13px; color: var(--abl-muted); }

/* ---------- Verified Ecosystem ---------- */
.abl-ecosystem {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.abl-ecosystem__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border-radius: var(--abl-radius-lg);
  text-align: left;
}
.abl-ecosystem__verified {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(var(--abl-green-rgb), .16);
  border: 1px solid rgba(var(--abl-green-rgb), .4);
  color: var(--abl-green-light);
}
.abl-ecosystem__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(var(--glow-rgb, 249, 115, 22), .22), rgba(var(--glow-rgb, 249, 115, 22), .05));
  border: 1px solid rgba(var(--glow-rgb, 249, 115, 22), .3);
  color: var(--abl-text);
}
.abl-ecosystem__label {
  font-family: var(--abl-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--abl-text);
}
.abl-ecosystem__text {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--abl-muted);
  line-height: 1.5;
}
.abl-ecosystem__cta { display: flex; justify-content: center; margin-top: 28px; }

/* Landing shows a compact 3-card preview; the full directory on /partners/
   uses a different grid entirely (see abc-partners.css), so this modifier
   exists to pin "always 3 on desktop" independent of any future change
   to the base .abl-ecosystem column count. */
.abl-ecosystem--preview { grid-template-columns: repeat(3, 1fr) !important; }

/* ---------- Tools & Education (compact landing preview) ---------- */
.abl-te-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.abl-te-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--abl-radius-lg);
}
.abl-te-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(var(--glow-rgb, 56, 189, 248), .22), rgba(var(--glow-rgb, 56, 189, 248), .05));
  border: 1px solid rgba(var(--glow-rgb, 56, 189, 248), .3);
  color: rgb(var(--glow-rgb, 56, 189, 248));
  margin-bottom: 4px;
}
.abl-te-card__title { font-family: var(--abl-font-display); font-size: 18px; font-weight: 700; }
.abl-te-card__text { font-size: 13.5px; color: var(--abl-muted); line-height: 1.55; margin-bottom: 6px; }

.abl-te-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.abl-te-card__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--abl-muted);
  font-size: 11px;
  font-weight: 600;
}

.abl-te-card__cta { margin-top: auto; align-self: flex-start; }

/* ---------- CTA ---------- */
.abl-section--cta { padding-block-end: 72px; }
.abl-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: var(--abl-radius-lg);
  --glow-rgb: var(--abl-green-rgb);
  --glow: rgba(var(--glow-rgb), .28);
  --glow-border: rgba(var(--glow-rgb), .32);
}
.abl-cta__title {
  font-family: var(--abl-font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
}
.abl-cta__text { margin-top: 7px; font-size: 14px; color: var(--abl-muted); }
.abl-cta__actions {
  display: flex;
  gap: 12px;
  flex: none;
}

/* ---------- Footer ---------- */
.abl-footer {
  background: var(--abl-bg-2);
  border-top: 1px solid var(--abl-border);
  padding-top: 48px;
}
.abl-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.abl-footer__brand p {
  margin-top: 14px;
  font-size: 13px;
  color: var(--abl-muted);
  max-width: 240px;
}
.abl-footer__col { display: flex; flex-direction: column; gap: 9px; }
.abl-footer__col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--abl-dim);
  margin-bottom: 5px;
}
.abl-footer__col a {
  font-size: 13px;
  color: var(--abl-muted);
  transition: color var(--abl-speed);
}
.abl-footer__col a:hover { color: var(--abl-text); }

.abl-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid var(--abl-border);
  font-size: 12.5px;
  color: var(--abl-dim);
}
.abl-footer__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Reveal on scroll ---------- */
[data-abl-reveal] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-abl-reveal].is-visible > * { opacity: 1; transform: none; }
[data-abl-reveal].is-visible > *:nth-child(2) { transition-delay: .05s; }
[data-abl-reveal].is-visible > *:nth-child(3) { transition-delay: .1s; }
[data-abl-reveal].is-visible > *:nth-child(4) { transition-delay: .15s; }
[data-abl-reveal].is-visible > *:nth-child(5) { transition-delay: .2s; }
[data-abl-reveal].is-visible > *:nth-child(6) { transition-delay: .25s; }

/* No JS / reduced motion — show everything immediately */
.abl.no-js [data-abl-reveal] > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .abl *, .abl *::before, .abl *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  [data-abl-reveal] > * { opacity: 1; transform: none; }
}

/* ---------- Accessibility: forced-colors & prefers-contrast ----------
   Windows High Contrast Mode (forced-colors) strips custom backgrounds,
   gradients and backdrop-filter — a .abl-glass card can end up borderless
   and visually flat without this. CanvasText/Canvas are the forced-colors
   system keywords, not arbitrary picks; browsers replace them with the
   user's actual OS contrast theme colors. */
@media (forced-colors: active) {
  .abl-glass,
  .abl-card,
  .abl-card-2 {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
  }
  .abl-glass::before,
  .abl-glass::after {
    display: none !important;
  }
  .abl-btn--primary,
  .abl-btn--action {
    border: 1px solid CanvasText !important;
  }
}

/* Users who ask for more contrast (not necessarily forced-colors) get a
   brighter muted/dim text tier — --abl-muted at #93a0b5 on a translucent
   dark glass card can read under WCAG AA in some browser/zoom combos. */
@media (prefers-contrast: more) {
  .abl {
    --abl-muted: #c2cbda;
    --abl-dim:   #9aa6ba;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .abl-ecosystem { grid-template-columns: repeat(3, 1fr); }
  .abl-failures { grid-template-columns: repeat(2, 1fr); }
  .abl-footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .abl-nav, .abl-header__actions { display: none; }
  .abl-burger { display: flex; }
  .abl-mobilenav[data-abl-open] { display: flex; }

  .abl-hero__pillars { grid-template-columns: repeat(2, 1fr); }
  .abl-hero__roles { grid-template-columns: repeat(2, 1fr); }

  .abl-listings { grid-template-columns: 1fr; }
  .abl-post-actions { grid-template-columns: 1fr; }
  .abl-te-grid { grid-template-columns: 1fr; }
  .abl-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .abl-container { padding: 0 16px; }
  .abl-section { padding-block-end: 44px; }
  .abl-section--compact { padding-block-end: 28px; }
  .abl-section--first { padding-block-start: 44px; }
  .abl-failures, .abl-ecosystem--preview {
    grid-template-columns: repeat(2, 1fr);
  }
  .abl-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .abl-footer__brand { grid-column: 1 / -1; }
  .abl-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .abl-hero__inner { padding-top: 44px; padding-bottom: 40px; }
  .abl-hero__pillars, .abl-hero__roles { margin-top: 28px; }

  .abl-section__head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .abl-cta { padding: 28px 24px; }
  .abl-cta__actions { width: 100%; flex-wrap: wrap; }
  .abl-cta__actions .abl-btn { flex: 1 1 160px; justify-content: center; }

  .abl-te-card { padding: 22px; }
}

@media (max-width: 440px) {
  .abl-failures, .abl-ecosystem, .abl-ecosystem--preview {
    grid-template-columns: 1fr;
  }
  .abl-hero__pillars, .abl-hero__roles { grid-template-columns: 1fr; }
  .abl-hero__cta .abl-btn { width: 100%; justify-content: center; }
  .abl-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .abl-tab { flex: none; }
}

/* ---------- Twenty Twenty-Five neutralization ---------- */
.abl a:where(:not(.wp-element-button)) { text-decoration: none; }

/* Constrained-layout theme adds max-width/auto-margin to children —
   remove it both from the landing root and from <p> if wpautop wrapped the shortcode */
.is-layout-constrained > .abl,
.entry-content > .abl,
.is-layout-constrained > p:has(> .abl),
.entry-content > p:has(> .abl) {
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.is-layout-constrained > p:has(> .abl),
.entry-content > p:has(> .abl) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

/* The theme's global side padding is compensated by the core .alignfull rule;
   duplicated here in case the parent lacks .has-global-padding */
.has-global-padding > .abl.alignfull {
  margin-left: calc(var(--wp--style--root--padding-left) * -1);
  margin-right: calc(var(--wp--style--root--padding-right) * -1);
}

/* Safety net against page-level horizontal scroll */
body:has(#abl-landing) { overflow-x: clip; }
