/*
 * ArrivalBird Learn guides: page layouts, honest product blocks and our own section visuals.
 * Used by pages/learn-view.php. Docs: docs/learn-content-integrity.html and docs/learn-layouts.html.
 * Colors come from the tokens in assets/css/styles.css (navy, brand blue, mint). No purple.
 */

/* ── Product block (real product: photo, name, summary, price, link) ── */
.ib-product { align-items: center; }
.ib-product__img,
.learn-body .ib-product__img { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; margin: 0; padding: 4px; border-radius: 10px; background: var(--color-white); border: 1px solid var(--color-border); box-shadow: none; }
.ib-product__badge { display: inline-block; margin-bottom: 6px; }
.ib-product__price { display: block; margin-top: 6px; font-size: 16px; font-weight: 800; color: var(--color-navy); }
.ib-product__stock { margin-left: 6px; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #991B1B; background: var(--color-red-light); }
.ib-product__link,
.learn-body .ib-product__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--color-teal); color: #fff; text-decoration: none; }
.ib-product__link:hover,
.learn-body .ib-product__link:hover { background: var(--color-teal-hover); color: #fff; }
.ib-product__link:focus-visible { outline: 3px solid var(--color-navy); outline-offset: 2px; }

/* ── Our own section visual ("At a glance"), used instead of stock photos ── */
.learn-visual { display: grid; gap: 16px; margin: 0; padding: 28px; border-radius: 16px; border: 1px solid var(--color-border); background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-brand-soft) 100%); }
.learn-visual__art { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 22px; background: var(--color-white); color: var(--color-teal); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.learn-visual__kicker { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-teal); }
.learn-visual__title { display: block; font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--color-navy); }
.learn-visual__points { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.learn-visual__points li { position: relative; margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--color-navy); }
.learn-visual__points li::before { content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-teal); }

/* ── A matching product photo used as a section visual (links to the product) ── */
.learn-shop-figure { margin: 0; }
.learn-shop-figure__link,
.learn-body .learn-shop-figure__link { display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--color-border); background: var(--color-white); color: inherit; text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.learn-shop-figure__link:hover { box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); transform: translateY(-2px); }
.learn-shop-figure__link:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 3px; }
.learn-shop-figure .learn-media-img,
.learn-body .learn-shop-figure .learn-media-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; margin: 0; padding: 16px; border-radius: 0; background: var(--color-white); box-shadow: none; }
.learn-shop-figure__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--color-border); font-size: 14px; }
.learn-shop-figure__name { font-weight: 600; line-height: 1.35; color: var(--color-navy); }
.learn-shop-figure__price { font-weight: 800; white-space: nowrap; color: var(--color-teal); }

/* ── Heroes: crisp, balanced, zero contrast clashes across shop/hub, tool, and editorial layouts ── */
.learn-hero { padding: 24px 0 48px; border-bottom: 1px solid var(--color-border); }
.learn-hero--editorial { background: linear-gradient(135deg, #FAF9F6 0%, #EAF3FF 100%); }
.learn-hero--tool { background: linear-gradient(135deg, #FAF9F6 0%, #F1F6FE 100%); }
.learn-hero--shop {
    background: linear-gradient(135deg, #121C2C 0%, #192B45 100%);
    color: #FFFFFF;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.learn-hero--shop .learn-guide-title { color: #FFFFFF; }
.learn-hero--shop .learn-guide-excerpt { color: rgba(255, 255, 255, 0.86); }
.learn-hero--shop .learn-guide-stat,
.learn-hero--shop .learn-guide-breadcrumbs,
.learn-hero--shop .learn-guide-breadcrumbs a { color: rgba(255, 255, 255, 0.78); }
.learn-hero--shop .learn-guide-breadcrumbs a:hover { color: #FFFFFF; }
.learn-hero--shop .learn-guide-stat svg { color: #60A5FA; }
.learn-hero--shop .badge-teal { background: #075FE5; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.16); }
.learn-hero--shop .badge-gray { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.18); }
.learn-hero--shop .diff-badge { background: rgba(255, 255, 255, 0.14) !important; color: #FFFFFF !important; border: 1px solid rgba(255, 255, 255, 0.22); }

.learn-hero-shop {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 410px);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}
.learn-hero-shop__copy { padding-top: 4px; }
.learn-hero-shop__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.learn-hero-shop__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.learn-hero-shop__ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
}
.learn-hub-featured {
    margin: 0 0 28px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #FAF9F6;
    aspect-ratio: 16 / 9;
    box-shadow: 0 12px 32px rgba(18, 28, 44, 0.08);
}
.learn-hub-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.learn-picks { padding: 20px; border-radius: 18px; background: var(--color-white); color: var(--color-navy); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24); }
.learn-picks__title { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #075FE5; }
.learn-picks__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.learn-picks__list li { margin: 0; }
.learn-pick { display: grid; grid-template-columns: 28px 60px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 44px; padding: 10px; border: 1px solid var(--color-border); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
.learn-pick:hover { border-color: #075FE5; background: #EAF3FF; }
.learn-pick:focus-visible { outline: 3px solid #075FE5; outline-offset: 2px; }
.learn-pick__rank { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #075FE5; color: #FFFFFF; font-size: 12.5px; font-weight: 800; }
.learn-pick img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background: #FAF9F6; padding: 4px; }
.learn-pick__name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; font-weight: 600; line-height: 1.35; color: #121C2C; }
.learn-pick__price { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; color: #075FE5; }
.learn-picks__all { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 14px; border-radius: 10px; background: #075FE5; color: #FFFFFF; font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background 0.15s ease; }
.learn-picks__all:hover { background: #054EC2; color: #FFFFFF; }
.learn-picks__all:focus-visible { outline: 3px solid var(--color-navy); outline-offset: 2px; }
.learn-picks__note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--color-gray-cool); }

.learn-hero-tool { max-width: 820px; margin: 0 auto; text-align: center; }
.learn-hero-tool .learn-guide-meta,
.learn-hero-tool .learn-guide-stats { justify-content: center; }
.learn-hero-tool .learn-guide-excerpt { margin-left: auto; margin-right: auto; }
.learn-hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.learn-hero-fact { margin: 0; padding: 16px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-white); }
.learn-hero-fact strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--color-navy); }
.learn-hero-fact span { display: block; margin-top: 4px; font-size: 13px; color: var(--color-gray-cool); }
.learn-hero-start { margin-top: 22px; }

.share-top-band--learn {
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
}
.share-top-band--learn .share--top {
    margin-top: 0;
    background: transparent;
    border: 0;
    padding: 4px 0;
    justify-content: flex-start;
}

/* ── Bodies: editorial keeps the sidebar; shop and tool use one column ── */
.learn-body-section { padding-top: 48px; }
.learn-single { max-width: 1040px; margin: 0 auto; }
.learn-single--tool { max-width: 860px; }
.learn-chips { position: sticky; top: 80px; z-index: 5; max-width: 100%; display: flex; gap: 8px; margin-bottom: 24px; padding: 10px 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.97); scrollbar-width: none; }
.learn-chips::-webkit-scrollbar { display: none; }
.learn-chip { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-white); color: var(--color-navy); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.learn-chip:hover,
.learn-chip.is-active { border-color: var(--color-teal); background: var(--color-brand-soft); color: var(--color-teal); }
.learn-chip:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 2px; }
.learn-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 4px; pointer-events: none; }
.learn-topbar__fill { width: 0; height: 100%; background: var(--color-teal); transition: width 0.1s linear; }

/* ── Shop the guide: price filter and trust facts ── */
.learn-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 24px; }
.learn-filter__btn { min-height: 44px; padding: 8px 18px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-white); color: var(--color-navy); font-size: 14px; font-weight: 600; cursor: pointer; }
.learn-filter__btn:hover { border-color: var(--color-teal); }
.learn-filter__btn[aria-pressed="true"] { border-color: var(--color-navy); background: var(--color-navy); color: #fff; }
.learn-filter__btn:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 2px; }
.learn-filter__status { width: 100%; margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--color-gray-cool); }
#learn-products-grid > [hidden] { display: none !important; }
.learn-shop-trust { margin-top: 32px; }
.learn-products-note { margin-top: 8px; font-size: 13px; color: var(--color-gray-cool); }

@media (max-width: 1024px) {
    .learn-hero-shop { grid-template-columns: 1fr; gap: 28px; }
    .learn-picks { max-width: 560px; }
}
@media (max-width: 640px) {
    .ib-product { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; }
    .ib-product__link { width: 100%; }
    .learn-chips { top: 64px; }
    .learn-pick { grid-template-columns: 24px 56px minmax(0, 1fr); }
    .learn-pick img { width: 56px; height: 56px; }
    .learn-hero-fact strong { font-size: 22px; }
    .learn-visual { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .learn-shop-figure__link,
    .learn-pick,
    .learn-topbar__fill,
    .ab-learn-hub-card,
    .ab-learn-card { transition: none; }
    .learn-shop-figure__link:hover,
    .ab-learn-hub-card:hover,
    .ab-learn-card:hover { transform: none; }
}

/* ==========================================================================
   Learning Center Hub (/learn), Topic Hubs (/learn/{topic}), & Mobile Guide UX
   Brand tokens only: Navy #0F172A, Brand Blue #005DD0 / #075FE5, Emerald #0B7A4B,
   Warm Stone #FAF9F6, Ice Blue #F3F7FD. Strictly zero purple. Mobile-first.
   ========================================================================== */

/* Prevent floating sticky guide bar from colliding with cookie banner or drawers */
body.ab-consent-banner-open .ab-sticky-bar,
body.ab-drawer-open .ab-sticky-bar,
body.ab-nav-open .ab-sticky-bar,
body.ab-saved-open .ab-sticky-bar,
body.ab-qv-open .ab-sticky-bar {
    display: none !important;
}

/* Mobile-first Hero (compact above the fold on 320px-430px phones) */
.ab-learn-hero {
    background: linear-gradient(180deg, #F3F7FD 0%, #FFFFFF 100%);
    border-bottom: 1px solid #DFE5EC;
    padding: 20px 0 28px;
}
.ab-learn-hero--topic {
    background: linear-gradient(135deg, #0F172A 0%, #172B4D 100%);
    color: #FFFFFF;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
.ab-learn-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}
.ab-learn-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #EAF3FF;
    color: #005DD0;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.ab-learn-hero--topic .ab-learn-hero__kicker {
    background: rgba(255, 255, 255, 0.14);
    color: #BFDBFE;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.ab-learn-hero__title {
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin: 0 0 10px;
}
.ab-learn-hero--topic .ab-learn-hero__title {
    color: #FFFFFF;
}
.ab-learn-hero .learn-hero-lead {
    font-size: clamp(14.5px, 2.2vw, 17px);
    line-height: 1.58;
    color: #475569;
    margin: 0 0 18px;
    max-width: 68ch;
}
.ab-learn-hero--topic .learn-hero-lead {
    color: rgba(255, 255, 255, 0.86);
}

/* Instant Search Bar right inside Hero */
.ab-learn-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 2px solid #CBD5E1;
    border-radius: 14px;
    padding: 5px 6px 5px 14px;
    max-width: 660px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ab-learn-search:focus-within {
    border-color: #005DD0;
    box-shadow: 0 0 0 3px rgba(0, 93, 208, 0.14);
}
.ab-learn-search__icon {
    color: #64748B;
    flex: 0 0 auto;
    display: inline-flex;
}
.ab-learn-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #0F172A;
    font-size: 16px;
    line-height: 1.4;
    padding: 8px 4px;
    outline: none;
}
.ab-learn-search__input::placeholder {
    color: #64748B;
}
.ab-learn-search__clear {
    border: 0;
    background: #F1F5F9;
    color: #334155;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ab-learn-search__clear:hover {
    background: #E2E8F0;
    color: #0F172A;
}
.ab-learn-search__btn {
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 0;
    background: #005DD0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
}
.ab-learn-search__btn:hover {
    background: #054EC2;
}

/* Quick-Jump Chips & Verified Proof Strip */
.ab-learn-quickchips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ab-learn-quickchips::-webkit-scrollbar { display: none; }
.ab-learn-quickchip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ab-learn-quickchip:hover {
    border-color: #005DD0;
    background: #EAF3FF;
    color: #005DD0;
}
.ab-learn-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E2E8F0;
    font-size: 13px;
    color: #475569;
}
.ab-learn-hero--topic .ab-learn-hero-metrics {
    border-top-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
}
.ab-learn-hero-metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ab-learn-hero-metric strong {
    color: #0F172A;
    font-weight: 800;
}
.ab-learn-hero--topic .ab-learn-hero-metric strong {
    color: #FFFFFF;
}
.ab-learn-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Section Headings (Mobile-First Compact Spacing) */
.ab-learn-section {
    padding: 36px 0;
}
.ab-learn-section--alt {
    background: #FAF9F6;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}
.ab-learn-section--tint {
    background: #F3F7FD;
    border-top: 1px solid #DCE8FA;
    border-bottom: 1px solid #DCE8FA;
}
.ab-learn-sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 22px;
}
.ab-learn-sec-head h2 {
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 800;
    color: #0F172A;
    margin: 4px 0 4px;
    line-height: 1.2;
}
.ab-learn-sec-head p {
    font-size: 14.5px;
    color: #475569;
    margin: 0;
    max-width: 62ch;
}

/* Topic Hubs Grid */
.ab-learn-hubs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.ab-learn-hub-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #DFE5EC;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ab-learn-hub-card:hover {
    border-color: #005DD0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
.ab-learn-hub-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #EAF3FF;
    overflow: hidden;
}
.ab-learn-hub-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ab-learn-hub-card__count {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
}
.ab-learn-hub-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.ab-learn-hub-card__title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.28;
    color: #0F172A;
    margin: 0 0 8px;
}
.ab-learn-hub-card__title a {
    color: inherit;
    text-decoration: none;
}
.ab-learn-hub-card__title a:hover {
    color: #005DD0;
}
.ab-learn-hub-card__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 14px;
}
.ab-learn-hub-card__preview {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 0 0;
    border-top: 1px solid #EEF2F6;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ab-learn-hub-card__preview a {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    text-decoration: none;
    line-height: 1.38;
}
.ab-learn-hub-card__preview a:hover {
    color: #005DD0;
    text-decoration: underline;
}
.ab-learn-hub-card__step {
    font-size: 10.5px;
    font-weight: 800;
    color: #005DD0;
    background: #EAF3FF;
    padding: 1px 6px;
    border-radius: 999px;
    flex: 0 0 auto;
}
.ab-learn-hub-card__foot {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.ab-learn-hub-card__foot .btn {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    justify-content: center;
}

/* Filter & Sort Controls Bar */
.ab-learn-controls {
    background: #FFFFFF;
    border: 1px solid #DFE5EC;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ab-learn-controls__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ab-learn-pill-rail {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.ab-learn-pill-rail::-webkit-scrollbar { display: none; }
.ab-learn-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ab-learn-pill:hover {
    border-color: #005DD0;
    color: #005DD0;
}
.ab-learn-pill.is-active,
.ab-learn-pill[aria-pressed="true"] {
    background: #005DD0;
    border-color: #005DD0;
    color: #FFFFFF;
}
.ab-learn-pill__ct {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
}
.ab-learn-pill.is-active .ab-learn-pill__ct,
.ab-learn-pill[aria-pressed="true"] .ab-learn-pill__ct {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}
.ab-learn-sort-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.ab-learn-select {
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}
.ab-learn-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #EEF2F6;
    font-size: 13px;
    color: #475569;
}
.ab-learn-status-bar strong {
    color: #0F172A;
}
.ab-learn-reset-btn {
    border: 0;
    background: none;
    color: #005DD0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 2px;
}

/* Featured Start-Here Guide Banner */
.ab-learn-start-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #FFFFFF;
    border: 1.5px solid #BFD7FA;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.ab-learn-start-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: #EAF3FF;
    overflow: hidden;
}
.ab-learn-start-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ab-learn-start-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ab-learn-start-card__title {
    font-size: clamp(19px, 2.6vw, 24px);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    margin: 8px 0 10px;
}
.ab-learn-start-card__title a {
    color: inherit;
    text-decoration: none;
}
.ab-learn-start-card__title a:hover {
    color: #005DD0;
}

/* Guide Card Grid (Mobile-first 1-col -> 2-col -> 3-col, always opacity: 1 for SEO) */
.ab-learn-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.ab-learn-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #DFE5EC;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ab-learn-card[hidden] {
    display: none !important;
}
.ab-learn-card:hover {
    border-color: #005DD0;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
.ab-learn-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #EAF3FF 0%, #F8FAFC 100%);
    overflow: hidden;
    border-bottom: 1px solid #EEF2F6;
}
.ab-learn-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ab-learn-card__media--fallback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
    color: #FFFFFF;
    text-decoration: none;
}
.ab-learn-card__media--fallback span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: 4px;
}
.ab-learn-card__media--fallback strong {
    font-size: 15px;
    line-height: 1.3;
    color: #FFFFFF;
}
.ab-learn-card__step-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
}
.ab-learn-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.ab-learn-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
}
.ab-learn-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}
.ab-learn-tag--type {
    background: #EAF3FF;
    color: #005DD0;
}
.ab-learn-tag--topic {
    background: #F1F5F9;
    color: #334155;
}
.ab-learn-tag--topic:hover {
    background: #DCE8FA;
    color: #005DD0;
}
.ab-learn-tag--diff-beginner { background: #ECFDF5; color: #065F46; }
.ab-learn-tag--diff-intermediate { background: #FEF3C7; color: #92400E; }
.ab-learn-tag--diff-advanced { background: #FEE2E2; color: #991B1B; }
.ab-learn-card__title {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.32;
    color: #0F172A;
    margin: 0 0 8px;
}
.ab-learn-card__title a {
    color: inherit;
    text-decoration: none;
}
.ab-learn-card__title a:hover {
    color: #005DD0;
}
.ab-learn-card__excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 14px;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ab-learn-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #EEF2F6;
    font-size: 12.5px;
    color: #64748B;
}
.ab-learn-card__cta {
    color: #005DD0;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.ab-learn-card__cta:hover {
    text-decoration: underline;
}
.ab-learn-more-wrap {
    text-align: center;
    margin-top: 24px;
}

/* Answer-First Quick Answers Accordion (AI Search & Google Overviews) */
.ab-learn-qa-list {
    display: grid;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
}
.ab-learn-qa-item {
    background: #FFFFFF;
    border: 1px solid #DFE5EC;
    border-radius: 14px;
    overflow: hidden;
}
.ab-learn-qa-item summary {
    padding: 16px 18px;
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ab-learn-qa-item summary::-webkit-scrollbar,
.ab-learn-qa-item summary::-webkit-details-marker { display: none; }
.ab-learn-qa-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 700;
    color: #005DD0;
    flex: 0 0 auto;
}
.ab-learn-qa-item[open] summary::after {
    content: '-';
}
.ab-learn-qa-answer {
    padding: 0 18px 16px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    margin: 0;
}

/* Complete Crawler-Friendly Guide Index */
.ab-learn-dir-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.ab-learn-dir-group {
    background: #FFFFFF;
    border: 1px solid #DFE5EC;
    border-radius: 14px;
    padding: 16px 18px;
}
.ab-learn-dir-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #EEF2F6;
}
.ab-learn-dir-group__head h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    color: #0F172A;
}
.ab-learn-dir-group__head a {
    color: inherit;
    text-decoration: none;
}
.ab-learn-dir-group__head a:hover {
    color: #005DD0;
}
.ab-learn-dir-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.ab-learn-dir-list a {
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    line-height: 1.4;
    display: inline-block;
}
.ab-learn-dir-list a:hover {
    color: #005DD0;
    text-decoration: underline;
}

/* Individual Guide Page: Mobile Quick-Jump TOC + Key Takeaway + Series Outline */
.ab-learn-mob-toc {
    display: none;
    margin-bottom: 20px;
    background: #F3F7FD;
    border: 1px solid #BFD7FA;
    border-radius: 12px;
    overflow: hidden;
}
.ab-learn-mob-toc summary {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ab-learn-mob-toc summary::-webkit-details-marker { display: none; }
.ab-learn-mob-toc summary::after {
    content: '+';
    font-size: 18px;
    color: #005DD0;
    font-weight: 800;
}
.ab-learn-mob-toc[open] summary::after { content: '-'; }
.ab-learn-mob-toc__list {
    list-style: none;
    margin: 0;
    padding: 0 16px 14px;
    display: grid;
    gap: 6px;
}
.ab-learn-mob-toc__list a {
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #005DD0;
    text-decoration: none;
    border-top: 1px solid rgba(0, 93, 208, 0.1);
}
.ab-learn-series-outline {
    margin-top: 20px;
    background: #FFFFFF;
    border: 1px solid #DFE5EC;
    border-radius: 14px;
    overflow: hidden;
}
.ab-learn-series-outline summary {
    padding: 14px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ab-learn-series-outline summary::-webkit-details-marker { display: none; }
.ab-learn-series-outline summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 800;
    color: #005DD0;
}
.ab-learn-series-outline[open] summary::after { content: '-'; }
.ab-learn-series-list {
    list-style: none;
    margin: 0;
    padding: 0 18px 16px;
    display: grid;
    gap: 6px;
}
.ab-learn-series-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    text-decoration: none;
    color: #1E293B;
    border: 1px solid transparent;
}
.ab-learn-series-item:hover {
    background: #F3F7FD;
    border-color: #BFD7FA;
    color: #005DD0;
}
.ab-learn-series-item.is-current {
    background: #EAF3FF;
    border-color: #005DD0;
    color: #0F172A;
    font-weight: 700;
}
.ab-learn-series-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #0F172A;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.ab-learn-series-item.is-current .ab-learn-series-num {
    background: #005DD0;
    color: #FFFFFF;
}

@media (max-width: 1024px) {
    .ab-learn-mob-toc[data-ready="1"] { display: block; }
}
@media (max-width: 768px) {
    .learn-guide-breadcrumbs {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow: hidden;
        white-space: nowrap;
        font-size: 12px;
        gap: 4px;
        margin-bottom: 14px;
    }
    .learn-guide-breadcrumbs > a,
    .learn-guide-breadcrumbs > .sep { flex: 0 0 auto; margin: 0 2px; }
    .learn-guide-breadcrumbs > span:last-child {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ab-learn-search__btn { padding: 8px 12px; font-size: 13px; }
    .ab-learn-sort-wrap { width: 100%; margin-left: 0; }
    .ab-learn-select { flex: 1 1 auto; }
}
@media (min-width: 640px) {
    .ab-learn-hubs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-learn-dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .ab-learn-hero { padding: 44px 0 52px; }
    .ab-learn-section { padding: 72px 0; }
    .ab-learn-hubs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .ab-learn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .ab-learn-dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .ab-learn-start-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
    .ab-learn-start-card__body { padding: 28px 32px; }
}
@media (min-width: 1200px) {
    .ab-learn-section { padding: 80px 0; }
}

/* ==========================================================================
   Collection-Style Themed Mascot Hero Stage, Mascot Dock, 2-Tap Matcher &
   Individual Guide Companion (Zero purple, GPU-composited, mobile-first)
   ========================================================================== */
.ab-learn-hero .container,
.ab-learn-section .container,
.learn-hero .container,
.learn-body-section .container {
    max-width: 1290px;
}

.ab-learn-tone-blue  { --learn-tone: #005DD0; --learn-tone-soft: #EAF3FF; --learn-tone-ring: #93C5FD; }
.ab-learn-tone-teal  { --learn-tone: #0F766E; --learn-tone-soft: #E6F6F4; --learn-tone-ring: #5EEAD4; }
.ab-learn-tone-amber { --learn-tone: #B45309; --learn-tone-soft: #FEF3C7; --learn-tone-ring: #FCD34D; }
.ab-learn-tone-rose  { --learn-tone: #BE123C; --learn-tone-soft: #FFE4E6; --learn-tone-ring: #FDA4AF; }

/* Mobile compact mascot header (keeps H1 + Search bar immediately above the fold on phones) */
.ab-learn-hero__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ab-learn-hero__mobile-mascot {
    width: 78px;
    height: 78px;
    object-fit: contain;
    flex: 0 0 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid #BFD7FA;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.ab-learn-hero--topic .ab-learn-hero__mobile-mascot {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

/* Desktop Collection-Style Mascot Stage */
.ab-learn-mascot-col,
.ab-learn-mascot-stage {
    display: none;
}
@media (min-width: 960px) {
    .ab-learn-hero__mobile-mascot {
        display: none;
    }
    .ab-learn-hero__grid--split {
        grid-template-columns: minmax(0, 1.18fr) minmax(320px, 430px);
        gap: clamp(28px, 4vw, 56px);
        align-items: center;
    }
    .ab-learn-mascot-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .ab-learn-mascot-stage {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 390px;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
    }
    .ab-learn-mascot-disc {
        position: absolute;
        inset: 9%;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22) 0%, rgba(96, 165, 250, 0.18) 65%, rgba(15, 23, 42, 0.28) 100%);
        border: 2px solid rgba(147, 197, 253, 0.34);
    }
    .ab-learn-mascot-disc::before {
        content: '';
        position: absolute;
        inset: -7%;
        border-radius: 50%;
        border: 2px dashed rgba(147, 197, 253, 0.36);
    }
    .ab-learn-mascot-stage--light .ab-learn-mascot-disc {
        background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #DCEBFE 72%, #CFE3FC 100%);
        border-color: #93C5FD;
        box-shadow: 0 18px 44px rgba(0, 93, 208, 0.10);
    }
    .ab-learn-mascot-stage--light .ab-learn-mascot-disc::before {
        border-color: #BFD7FA;
    }
    .ab-learn-mascot-trail {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: visible;
    }
    .ab-learn-mascot-trail path {
        fill: none;
        stroke: #60A5FA;
        stroke-width: 3.5;
        stroke-linecap: round;
        stroke-dasharray: 1 14;
        opacity: 0.55;
    }
    .ab-learn-mascot-stage--light .ab-learn-mascot-trail path {
        stroke: #005DD0;
        opacity: 0.42;
    }
    .ab-learn-mascot-bird {
        position: relative;
        z-index: 2;
        width: 88%;
        height: 88%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ab-learn-mascot-bird img,
    .ab-learn-mascot-bird .ab-lottie-fallback {
        width: 92%;
        height: 92%;
        object-fit: contain;
        filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.18));
    }
    .ab-learn-mascot-bird--custom img {
        border-radius: 24px;
        object-fit: cover;
        width: 82%;
        height: 82%;
        border: 3px solid rgba(255, 255, 255, 0.85);
    }
    .ab-learn-mascot-floatcard {
        position: absolute;
        z-index: 3;
        bottom: 6px;
        right: 0;
        left: 0;
        margin: 0 auto;
        max-width: 300px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 13px;
        border-radius: 14px;
        background: #FFFFFF;
        color: #0F172A;
        border: 1px solid #CBD5E1;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
        text-decoration: none;
        transition: transform 0.18s ease, border-color 0.18s ease;
    }
    .ab-learn-mascot-floatcard:hover {
        transform: translateY(-2px);
        border-color: #005DD0;
    }
    .ab-learn-mascot-floatcard img {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        object-fit: contain;
        background: #F8FAFC;
        flex: 0 0 42px;
    }
    .ab-learn-mascot-floatcard span {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.25;
    }
    .ab-learn-mascot-floatcard small {
        font-size: 10.5px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #005DD0;
    }
    .ab-learn-mascot-floatcard strong {
        font-size: 13px;
        font-weight: 700;
        color: #0F172A;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ab-learn-mascot-floatcard em {
        font-style: normal;
        font-size: 12.5px;
        font-weight: 800;
        color: #0B7A4B;
    }
}

/* Dressed Topic Mascot Switcher Dock under /learn Hero Stage */
.ab-learn-mascot-dock {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.ab-learn-mascot-dock__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.ab-learn-mascot-dock__item:hover {
    border-color: #005DD0;
    color: #005DD0;
    transform: translateY(-2px);
}
.ab-learn-mascot-dock__item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
    background: #EAF3FF;
}

/* Topic Hub Card Dressed Mascot Corner Badge & Full Mascot Stage */
.ab-learn-hub-card__media--mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, var(--learn-tone-soft, #EAF3FF) 85%);
}
.ab-learn-hub-card__media img.ab-learn-hub-card__mascot-hero {
    width: auto;
    height: 88%;
    max-width: 88%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
}
.ab-learn-hub-card__mascot-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid var(--learn-tone-ring, #93C5FD);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    pointer-events: none;
}
.ab-learn-hub-card__mascot-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

/* Interactive 2-Tap Guide & Product Matcher (#guide-matcher) */
.ab-learn-matcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F3F7FD 100%);
    border: 1.5px solid #BFD7FA;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}
.ab-learn-matcher__controls h2 {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 800;
    color: #0F172A;
    margin: 4px 0 6px;
    line-height: 1.22;
}
.ab-learn-matcher__sub {
    font-size: 14px;
    color: #475569;
    margin: 0 0 16px;
}
.ab-learn-matcher__step {
    margin-top: 14px;
}
.ab-learn-matcher__label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    margin-bottom: 8px;
}
.ab-learn-matcher__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ab-learn-matcher__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ab-learn-matcher__pill img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    background: #EAF3FF;
}
.ab-learn-matcher__pill:hover {
    border-color: #005DD0;
    color: #005DD0;
}
.ab-learn-matcher__pill.is-active,
.ab-learn-matcher__pill[aria-pressed="true"] {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
}
.ab-learn-matcher__result {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #DFE5EC;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.ab-learn-matcher__mascot-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 0%, #DCEBFE 100%);
    border: 2px solid #93C5FD;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex: 0 0 auto;
}
.ab-learn-matcher__mascot-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ab-learn-matcher__rec-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #0F172A;
    margin: 4px 0 8px;
}
.ab-learn-matcher__rec-title a {
    color: inherit;
    text-decoration: none;
}
.ab-learn-matcher__rec-title a:hover {
    color: #005DD0;
}
.ab-learn-matcher__rec-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 14px;
}
.ab-learn-matcher__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
@media (min-width: 960px) {
    .ab-learn-matcher {
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
        align-items: center;
        padding: 28px 32px;
    }
    .ab-learn-matcher__result {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding: 24px;
    }
    .ab-learn-matcher__mascot-wrap {
        width: 118px;
        height: 118px;
    }
}
@media (max-width: 640px) {
    .ab-learn-matcher__pills {
        position: relative;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .ab-learn-matcher__pills::-webkit-scrollbar { display: none; }
    .ab-learn-matcher__pill { flex: 0 0 auto; white-space: nowrap; }
}

/* Individual Guide Page: Mascot Quick-Takeaway Companion & Hero Mascot Chip */
.learn-guide-hero-art {
    position: relative;
}
.learn-guide-hero-art--mascot {
    background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #DCEBFE 100%) !important;
    border-color: #93C5FD !important;
}
.learn-guide-hero-mascot-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #93C5FD;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.learn-guide-hero-mascot-chip img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 0 !important;
}
.ab-learn-guide-companion {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F3F7FD 0%, #FFFFFF 100%);
    border: 1px solid #BFD7FA;
}
.ab-learn-guide-companion__mascot {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #93C5FD;
    padding: 4px;
    object-fit: contain;
    flex: 0 0 58px;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}
.ab-learn-guide-companion__body {
    flex: 1 1 auto;
    min-width: 0;
}
.ab-learn-guide-companion__kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #005DD0;
    margin-bottom: 3px;
}
.ab-learn-guide-companion__text {
    font-size: 14px !important;
    line-height: 1.52 !important;
    color: #1E293B !important;
    margin: 0 !important;
}
.ab-learn-guide-companion__hublink {
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 700;
    color: #005DD0 !important;
    text-decoration: none !important;
    padding: 7px 12px;
    border-radius: 999px;
    background: #EAF3FF;
    border: 1px solid #BFD7FA;
    white-space: nowrap;
}
.ab-learn-guide-companion__hublink:hover {
    background: #005DD0;
    color: #FFFFFF !important;
}
@media (max-width: 640px) {
    .ab-learn-guide-companion {
        flex-wrap: wrap;
        padding: 12px 14px;
    }
    .ab-learn-guide-companion__hublink {
        width: 100%;
        text-align: center;
    }
}

/* Interactive 2-Item Free-Shipping Starter Pair Builder */
.ab-learn-pair {
    margin: 0 0 28px;
    padding: 20px 22px;
    background: #FFFFFF;
    border: 1.5px solid #BFD7FA;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.ab-learn-pair__title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.ab-learn-pair__mascot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #EAF3FF;
    border: 1.5px solid #93C5FD;
    padding: 4px;
    object-fit: contain;
    flex: 0 0 56px;
}
.ab-learn-pair__kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #005DD0;
    margin-bottom: 2px;
}
.ab-learn-pair__title {
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 3px;
    line-height: 1.25;
}
.ab-learn-pair__sub {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}
.ab-learn-pair__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.ab-learn-pair__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1.5px solid #DCE5F2;
    background: #FAF9F6;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.ab-learn-pair__item:hover {
    border-color: #005DD0;
    background: #F4F8FF;
}
.ab-learn-pair__item.is-selected {
    border-color: #005DD0;
    background: #EAF3FF;
    box-shadow: 0 4px 12px rgba(0, 93, 208, 0.1);
}
.ab-learn-pair__check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #94A3B8;
    background: #FFFFFF;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
}
.ab-learn-pair__item.is-selected .ab-learn-pair__check {
    background: #005DD0;
    border-color: #005DD0;
    color: #FFFFFF;
}
.ab-learn-pair__item img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 3px;
    flex: 0 0 54px;
}
.ab-learn-pair__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.ab-learn-pair__name {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}
.ab-learn-pair__price {
    font-size: 13px;
    font-weight: 800;
    color: #005DD0;
}
.ab-learn-pair__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #E2E8F0;
}
.ab-learn-pair__status {
    font-size: 13.5px;
    color: #1E293B;
    line-height: 1.45;
    flex: 1 1 260px;
}
.ab-learn-pair__unlocked {
    color: #0B7A4B;
}
.ab-learn-pair__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
@media (max-width: 640px) {
    .ab-learn-pair {
        padding: 16px;
    }
    .ab-learn-pair__title-wrap {
        align-items: flex-start;
    }
    .ab-learn-pair__actions,
    .ab-learn-pair__cta {
        width: 100%;
        justify-content: center;
    }
}
