/* =====================================================================
   BLOG — editorial layer of the Waaotools design system.
   Loaded by partials/blog/chrome.blade.php (blog listing + article only),
   on top of home.css (tokens, header, footer, container). Plain CSS, no
   build step; every rule is scoped to .bl-page / .bl-*.
   ===================================================================== */

.bl-i14 { width: 14px; height: 14px; flex-shrink: 0; }
.bl-i16 { width: 16px; height: 16px; flex-shrink: 0; }
.bl-i18 { width: 18px; height: 18px; flex-shrink: 0; }
.bl-i22 { width: 22px; height: 22px; flex-shrink: 0; }
.bl-inline { display: inline-flex; }

/* Shared bits ----------------------------------------------------------- */
.bl-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.8125rem; color: var(--wt-muted-2); margin-bottom: 26px; min-width: 0; }
.bl-crumbs a { display: inline-flex; align-items: center; color: var(--wt-muted); text-decoration: none; }
.bl-crumbs a:hover { color: var(--wt-navy); }
.bl-crumbs [aria-current] { color: var(--wt-text-2); font-weight: 500; }
.bl-crumb-current { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 519px) { .bl-crumb-current { max-width: 18ch; } }

.bl-eyebrow {
    display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--wt-teal); margin-bottom: 12px; text-decoration: none;
}
a.bl-eyebrow-link:hover { color: var(--wt-navy); }
.bl-chip {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 5px;
    font-size: 0.72rem; font-weight: 600; color: var(--wt-teal-strong); background: var(--wt-teal-soft);
    text-decoration: none; white-space: nowrap;
}
a.bl-chip-link:hover { background: var(--wt-accent-hover); color: var(--wt-navy); }
.bl-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--wt-teal-strong); text-decoration: none; }
.bl-link:hover { color: var(--wt-navy); }
.bl-link:hover .bl-i14 { transform: translateX(3px); }
.bl-link .bl-i14 { transition: transform .2s var(--wt-ease); }
.bl-ad { margin: 0 0 28px; }
.bl-ad img { max-width: 100%; height: auto; border-radius: 10px; }

.bl-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 0.78rem; color: var(--wt-muted); }
.bl-meta-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bl-meta-item + .bl-meta-item { padding-left: 16px; border-left: 1px solid var(--wt-border); }
.bl-meta .bl-i14 { color: var(--wt-muted-2); }

/* Listing hero ---------------------------------------------------------- */
.bl-hero {
    background: linear-gradient(180deg, var(--wt-section-deep) 0%, var(--wt-section-light) 100%);
    border-bottom: 1px solid var(--wt-border);
    padding: 28px 0 44px; overflow: hidden;
}
@media (min-width: 1024px) { .bl-hero { padding: 32px 0 56px; } }
.bl-hero-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bl-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.bl-hero-title {
    font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.25rem); line-height: 1.08; font-weight: 700;
    letter-spacing: -0.035em; color: var(--wt-navy);
}
.bl-hero-sub { margin-top: 16px; max-width: 36rem; font-size: 1.0625rem; line-height: 1.65; color: var(--wt-muted); }
.bl-hero-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 0.8125rem; font-weight: 500; color: var(--wt-text-2); }
.bl-hero-count .bl-i16 { color: var(--wt-teal); }

/* Decorative illustration (pure CSS + one icon) */
.bl-hero-art { position: relative; height: 220px; display: none; }
@media (min-width: 900px) { .bl-hero-art { display: block; } }
.bl-art-circle { position: absolute; right: 30px; top: 0; width: 210px; height: 210px; border-radius: 50%; background: var(--wt-accent-tint); }
.bl-art-doc {
    position: absolute; right: 70px; top: 26px; width: 240px; height: 160px; border-radius: 10px;
    background: var(--wt-card); border: 1px solid var(--wt-border); box-shadow: 0 14px 30px -18px rgb(14 34 51 / .35); overflow: hidden;
}
.bl-art-bar { display: flex; gap: 4px; align-items: center; height: 22px; padding: 0 10px; background: var(--wt-navy-2); }
.bl-art-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--wt-on-primary-dot); }
.bl-art-body { display: grid; grid-template-columns: 1fr 72px; gap: 14px; padding: 18px 16px; }
.bl-art-lines { display: grid; gap: 9px; align-content: start; }
.bl-art-lines span { height: 6px; border-radius: 3px; background: var(--wt-skeleton); }
.bl-art-lines .is-short { width: 60%; }
.bl-art-photo { height: 56px; border-radius: 6px; background: var(--wt-teal-soft); display: flex; align-items: center; justify-content: center; color: var(--wt-teal); }
.bl-art-photo-icon { width: 26px; height: 26px; }
.bl-art-pen {
    position: absolute; right: 40px; top: 120px; width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: #fff; background: var(--wt-teal);
    box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--wt-teal) 60%, transparent);
}
.bl-art-pen-icon { width: 24px; height: 24px; }

/* Topic navigation ------------------------------------------------------ */
.bl-topics { position: relative; padding: 24px 0 0; }
.bl-topics-track {
    display: flex; gap: 4px; padding: 5px; overflow-x: auto; scrollbar-width: none;
    background: var(--wt-card); border: 1px solid var(--wt-border); border-radius: 10px;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.bl-topics-track::-webkit-scrollbar { display: none; }
.bl-topic {
    flex-shrink: 0; scroll-snap-align: start;
    display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 7px;
    font-size: 0.8125rem; font-weight: 500; color: var(--wt-muted); text-decoration: none; white-space: nowrap;
    transition: background-color .15s var(--wt-ease), color .15s var(--wt-ease);
}
.bl-topic:hover { background: var(--wt-bg-soft); color: var(--wt-navy); }
.bl-topic.is-active { background: var(--wt-navy-2); color: #fff; font-weight: 600; }

/* Listing --------------------------------------------------------------- */
.bl-listing { padding-top: 40px; display: grid; gap: 28px; }
.bl-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bl-empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    padding: 48px 20px; border: 1px dashed var(--wt-border-strong); border-radius: 12px; background: var(--wt-bg-soft);
}
.bl-empty-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--wt-card); border: 1px solid var(--wt-border); color: var(--wt-muted-2); }
.bl-empty-title { font-weight: 600; color: var(--wt-navy); }

/* Cards ----------------------------------------------------------------- */
.bl-card {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--wt-card); border: 1px solid var(--wt-border); border-radius: 12px; padding: 10px;
    text-decoration: none;
    transition: border-color .2s var(--wt-ease), box-shadow .2s var(--wt-ease), transform .2s var(--wt-ease);
}
.bl-card:hover { border-color: var(--wt-border-strong); box-shadow: var(--wt-shadow-md); transform: translateY(-2px); }
.bl-card-media { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--wt-bg-soft); }
.bl-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--wt-ease); }
.bl-card:hover .bl-img { transform: scale(1.035); }
.bl-card-tag, .bl-card-latest {
    position: absolute; top: 10px; z-index: 1; padding: 4px 9px; border-radius: 6px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.bl-card-tag { left: 10px; color: var(--wt-navy); background: rgb(255 255 255 / .95); box-shadow: 0 1px 2px rgb(14 34 51 / .12); }
.bl-card-latest { right: 10px; color: #fff; background: var(--wt-navy-2); }
.bl-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 8px 8px; min-width: 0; }
.bl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bl-card-title {
    font-size: 1.0625rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.015em; color: var(--wt-navy);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .15s var(--wt-ease);
}
.bl-card:hover .bl-card-title { color: var(--wt-navy); }
.bl-card-excerpt {
    margin-top: 10px; font-size: 0.875rem; line-height: 1.6; color: var(--wt-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-arrow {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--wt-navy); background: var(--wt-bg-soft); border: 1px solid var(--wt-border);
    transition: background-color .2s var(--wt-ease), color .2s var(--wt-ease), border-color .2s var(--wt-ease);
}
.bl-arrow .bl-i16 { transition: transform .2s var(--wt-ease); }
.bl-card:hover .bl-arrow { background: var(--wt-navy-2); border-color: var(--wt-navy-2); color: #fff; }
.bl-card:hover .bl-arrow .bl-i16 { transform: translateX(2px); }

/* Featured card */
.bl-card.is-featured { padding: 12px; }
.bl-card.is-featured .bl-card-title { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; -webkit-line-clamp: 4; }
.bl-card.is-featured .bl-card-excerpt { font-size: 0.975rem; margin-top: 14px; -webkit-line-clamp: 4; }
@media (min-width: 900px) {
    .bl-card.is-featured { flex-direction: row; align-items: stretch; }
    .bl-card.is-featured .bl-card-media { width: 54%; aspect-ratio: 16 / 10; flex-shrink: 0; }
    .bl-card.is-featured .bl-card-body { justify-content: center; padding: 24px 28px 18px 36px; }
    .bl-card.is-featured .bl-card-foot { margin-top: 28px; }
}

/* Image fallback (no featured image) */
.bl-fallback {
    position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 0) 0 50%, rgb(255 255 255 / .35) 50% 100%),
        repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--wt-navy-2) 5%, transparent) 23px 24px),
        repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--wt-navy-2) 5%, transparent) 23px 24px),
        var(--wt-accent-tint);
}
.bl-fallback-icon {
    width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: var(--wt-navy-2); color: #fff; box-shadow: 0 10px 22px -12px rgb(14 34 51 / .55);
}
.bl-fallback-svg { width: 26px; height: 26px; }
.bl-fallback.is-lg .bl-fallback-icon { width: 72px; height: 72px; border-radius: 14px; }
.bl-fallback.is-lg .bl-fallback-svg { width: 32px; height: 32px; }
.bl-fallback-label { font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wt-navy-2); opacity: .7; }
.bl-card-media .bl-fallback-label { display: none; }

/* Pagination ------------------------------------------------------------ */
.bl-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.bl-pager-pages { display: flex; gap: 6px; }
.bl-pager-btn, .bl-pager-num {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; border-radius: 8px; border: 1px solid var(--wt-border);
    font-size: 0.8125rem; font-weight: 600; color: var(--wt-text-2); background: var(--wt-card); text-decoration: none;
    transition: border-color .15s, color .15s, background-color .15s;
}
.bl-pager-btn { padding: 0 14px; }
.bl-pager-num { min-width: 40px; padding: 0 6px; font-variant-numeric: tabular-nums; }
a.bl-pager-btn:hover, a.bl-pager-num:hover { border-color: var(--wt-teal); color: var(--wt-teal-strong); }
.bl-pager-num.is-current { background: var(--wt-navy-2); border-color: var(--wt-navy-2); color: #fff; }
.bl-pager-btn.is-disabled { color: var(--wt-border-strong); background: var(--wt-bg-soft); }
@media (max-width: 519px) { .bl-pager-label { display: none; } .bl-pager-btn { width: 40px; padding: 0; } }

/* =====================================================================
   ARTICLE (blog/show)
   ===================================================================== */

/* Prose — the article body (admin-authored rich HTML) */
.bl-prose { font-size: 1.0625rem; line-height: 1.8; color: var(--wt-prose); overflow-wrap: break-word; }
@media (max-width: 519px) { .bl-prose { font-size: 1rem; line-height: 1.75; } }
.bl-prose > * + * { margin-top: 1.15em; }
.bl-prose > p:first-child { font-size: 1.15em; line-height: 1.7; color: var(--wt-text); }
.bl-prose h1, .bl-prose h2, .bl-prose h3, .bl-prose h4 { color: var(--wt-navy); font-weight: 700; letter-spacing: -0.02em; scroll-margin-top: calc(var(--wt-header-h) + 20px); }
.bl-prose h1 { font-size: 1.9em; line-height: 1.2; margin-top: 1.6em; }
.bl-prose h2 { font-size: 1.5em; line-height: 1.3; margin-top: 1.9em; padding-top: 0.2em; }
.bl-prose h3 { font-size: 1.2em; line-height: 1.4; margin-top: 1.6em; }
.bl-prose h4 { font-size: 1.05em; margin-top: 1.4em; }
.bl-prose h2 + *, .bl-prose h3 + *, .bl-prose h4 + * { margin-top: 0.6em; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose a { color: var(--wt-teal-strong); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--wt-teal) 35%, transparent); text-underline-offset: 3px; }
.bl-prose a:hover { text-decoration-color: currentColor; }
.bl-prose strong, .bl-prose b { color: var(--wt-navy); font-weight: 600; }
.bl-prose ul, .bl-prose ol { padding-left: 1.4em; }
.bl-prose ul { list-style: disc; }
.bl-prose ol { list-style: decimal; }
.bl-prose li { padding-left: 0.2em; }
.bl-prose li + li { margin-top: 0.45em; }
.bl-prose li::marker { color: var(--wt-teal); font-weight: 600; }
.bl-prose blockquote {
    margin-left: 0; padding: 14px 20px; border-left: 3px solid var(--wt-teal); border-radius: 0 8px 8px 0;
    background: var(--wt-bg-soft); color: var(--wt-text-2); font-style: italic;
}
.bl-prose img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--wt-border); }
.bl-prose figure { margin-left: 0; margin-right: 0; }
.bl-prose figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--wt-muted); text-align: center; }
.bl-prose hr { border: 0; border-top: 1px solid var(--wt-border); margin: 2.2em 0; }
.bl-prose code { font-family: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 0.86em; padding: 2px 6px; border-radius: 5px; background: var(--wt-bg-soft); border: 1px solid var(--wt-border); color: var(--wt-navy); }
.bl-prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 10px; background: #0F2433; color: #E3EDF2; font-size: 0.86em; line-height: 1.65; }
.bl-prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.bl-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9em; line-height: 1.5; }
.bl-prose th, .bl-prose td { padding: 10px 14px; border: 1px solid var(--wt-border); text-align: left; vertical-align: top; }
.bl-prose th { background: var(--wt-bg-soft); color: var(--wt-navy); font-weight: 600; }
.bl-prose iframe, .bl-prose video { max-width: 100%; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
    .bl-card, .bl-img, .bl-arrow, .bl-arrow .bl-i16 { transition: none !important; }
    .bl-card:hover { transform: none; }
    .bl-card:hover .bl-img { transform: none; }
}

.bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-i20 { width: 20px; height: 20px; flex-shrink: 0; }

/* Article hero ---------------------------------------------------------- */
html body.bl-page header.ba-hero {           /* beat the old theme's global `header` rule */
    position: static; background: linear-gradient(180deg, var(--wt-section-deep) 0%, var(--wt-section-light) 100%) !important;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--wt-border) !important;
}
.ba-hero { padding: 24px 0 36px; }
@media (min-width: 1024px) { .ba-hero { padding: 28px 0 48px; } }
.ba-hero-grid { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .ba-hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); gap: 48px; } }
.ba-hero-copy { min-width: 0; }
.ba-crumbs { gap: 6px; margin-bottom: 22px; }
.ba-crumbs a { gap: 6px; }
.ba-crumb-sep { width: 12px; height: 12px; color: var(--wt-border-strong); flex-shrink: 0; }

.ba-category {
    display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 6px; margin-bottom: 16px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--wt-teal-strong); background: var(--wt-teal-soft); border: 1px solid var(--wt-accent-border); text-decoration: none;
    transition: background-color .15s, color .15s;
}
.ba-category:hover { background: var(--wt-accent-hover); color: var(--wt-navy); }
.ba-title {
    font-size: clamp(1.8rem, 1.25rem + 2vw, 2.55rem); line-height: 1.18; font-weight: 700;
    letter-spacing: -0.03em; color: var(--wt-navy); text-wrap: balance; max-width: 26ch;
}
@media (max-width: 959px) { .ba-title { max-width: none; } }
.ba-dek { margin-top: 16px; max-width: 40rem; font-size: 1.0625rem; line-height: 1.65; color: var(--wt-muted); }
.ba-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; font-size: 0.8125rem; color: var(--wt-muted); }
.ba-meta li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ba-meta .bl-i16 { color: var(--wt-muted-2); }
.ba-meta strong { color: var(--wt-navy); font-weight: 600; }
.ba-avatar {
    width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--wt-navy-2);
}

/* Hero illustration (decorative) */
.ba-hero-art { position: relative; height: 200px; display: none; }
@media (min-width: 960px) { .ba-hero-art { display: block; } }
.ba-art-circle { position: absolute; right: 24px; top: -6px; width: 200px; height: 200px; border-radius: 50%; background: var(--wt-accent-tint); }
.ba-art-doc {
    position: absolute; right: 90px; top: 18px; width: 230px; height: 150px; border-radius: 10px; overflow: hidden;
    background: var(--wt-card); border: 1px solid var(--wt-border); box-shadow: 0 14px 30px -18px rgb(14 34 51 / .35);
}
.ba-art-bar { display: flex; gap: 4px; align-items: center; height: 22px; padding: 0 10px; background: var(--wt-navy-2); }
.ba-art-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--wt-on-primary-dot); }
.ba-art-body { display: flex; gap: 14px; padding: 20px 16px; align-items: flex-start; }
.ba-art-icon { width: 58px; height: 58px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--wt-teal); background: var(--wt-teal-soft); }
.ba-art-svg { width: 28px; height: 28px; }
.ba-art-lines { flex: 1; display: grid; gap: 9px; padding-top: 4px; }
.ba-art-lines span { height: 6px; border-radius: 3px; background: var(--wt-skeleton); }
.ba-art-lines .is-short { width: 55%; }
.ba-art-card {
    position: absolute; right: 26px; top: 108px; display: grid; gap: 8px; padding: 12px;
    border-radius: 10px; background: var(--wt-card); border: 1px solid var(--wt-border); box-shadow: 0 12px 24px -16px rgb(14 34 51 / .4);
}
.ba-art-card span { height: 20px; display: flex; align-items: center; color: var(--wt-teal); }
.ba-art-card span::after { content: ''; display: block; width: 52px; height: 5px; margin-left: 8px; border-radius: 3px; background: var(--wt-skeleton); }

/* Layout ---------------------------------------------------------------- */
.ba-layout { display: grid; gap: 32px; padding-top: 32px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
    .ba-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 40px; }
}
@media (min-width: 1280px) { .ba-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }
.ba-main { min-width: 0; max-width: 780px; }

.ba-figure { margin: 0 0 32px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--wt-bg-soft); border: 1px solid var(--wt-border); }
@media (max-width: 639px) { .ba-figure { border-radius: 10px; margin-bottom: 24px; } }

/* Prose refinements for the article page */
.ba-prose ul { list-style: none; padding-left: 0; }
.ba-prose ul > li { position: relative; padding-left: 1.75em; }
.ba-prose ul > li::before {
    content: ''; position: absolute; left: 0; top: 0.34em; width: 1.05em; height: 1.05em; border-radius: 50%;
    background: var(--wt-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.ba-prose ul ul > li::before { background: none; border: 2px solid var(--wt-teal); width: .6em; height: .6em; top: .6em; }
.ba-prose ol { counter-reset: none; }
.ba-prose h2 { padding-top: 0.2em; }
.ba-prose blockquote, .ba-callout {
    position: relative; font-style: normal; margin-left: 0; padding: 14px 18px 14px 50px; border: 1px solid var(--tp-info-bd); border-left-width: 1px;
    border-radius: 10px; background: var(--tp-info-soft); color: var(--wt-text-2); font-size: 0.95em; line-height: 1.7;
}
.ba-prose blockquote::before, .ba-callout::before {
    content: ''; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; background: var(--wt-teal);
    -webkit-mask: var(--ba-callout-icon) center / contain no-repeat; mask: var(--ba-callout-icon) center / contain no-repeat;
}
.ba-prose blockquote, .ba-callout.is-info {
    --ba-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
}
.ba-callout.is-tip {
    --ba-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
    background: var(--tp-success-soft); border-color: var(--tp-success-bd);
}
.ba-callout.is-tip::before { background: var(--tp-success); }
.ba-callout.is-important, .ba-callout.is-warning {
    --ba-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2L12 3z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E");
    background: var(--tp-warning-soft); border-color: var(--tp-warning-bd);
}
.ba-callout.is-important::before, .ba-callout.is-warning::before { background: var(--tp-warning); }
.ba-prose blockquote > :first-child { margin-top: 0; }
.ba-prose blockquote > * + * { margin-top: .6em; }

/* Tags + share under the article */
.ba-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
    margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--wt-border); border-bottom: 1px solid var(--wt-border);
}
.ba-foot-tags, .ba-foot-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ba-foot-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--wt-text-2); }
.ba-foot-label .bl-i16 { color: var(--wt-teal); }
.ba-foot + .bl-ad { margin-top: 28px; }

/* Share buttons */
.ba-share { display: flex; flex-wrap: wrap; gap: 8px; }
.ba-share-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-width: 40px; height: 40px; padding: 0 10px; border-radius: 50%;
    font-size: 0.9rem; color: #fff; background: var(--wt-btn); border: 1px solid var(--wt-btn);
    text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.ba-share-btn:hover { background: var(--wt-teal); border-color: var(--wt-teal); transform: translateY(-1px); }
.ba-share-copy { border-radius: 999px; padding: 0 14px; font-size: 0.8125rem; font-weight: 600; background: var(--wt-card); color: var(--wt-navy); border-color: var(--wt-border-strong); }
.ba-share-copy:hover { background: var(--wt-teal-soft); color: var(--wt-teal-strong); border-color: var(--wt-teal); }
.ba-share.is-compact .ba-share-btn { min-width: 36px; width: 36px; height: 36px; padding: 0; font-size: 0.85rem; }
.ba-share.is-compact .ba-share-copy { border-radius: 50%; }
.ba-share-copy.is-copied { background: var(--tp-success-bg); border-color: var(--tp-success-bd); color: var(--tp-success); }

/* Previous / next */
.ba-prevnext { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ba-prevnext { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ba-pn {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-width: 0;
    border: 1px solid var(--wt-border); border-radius: 12px; background: var(--wt-card); text-decoration: none;
    transition: border-color .2s var(--wt-ease), box-shadow .2s var(--wt-ease);
}
.ba-pn:hover { border-color: var(--wt-border-strong); box-shadow: var(--wt-shadow-md); }
.ba-pn.is-next { justify-content: flex-end; text-align: right; }
@media (min-width: 640px) { .ba-pn.is-next { grid-column: 2; } }
.ba-pn-arrow {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    color: var(--wt-navy); background: var(--wt-bg-soft); border: 1px solid var(--wt-border);
    transition: background-color .2s var(--wt-ease), color .2s var(--wt-ease), transform .2s var(--wt-ease);
}
.ba-pn:hover .ba-pn-arrow { background: var(--wt-navy-2); border-color: var(--wt-navy-2); color: #fff; }
.ba-pn.is-prev:hover .ba-pn-arrow { transform: translateX(-2px); }
.ba-pn.is-next:hover .ba-pn-arrow { transform: translateX(2px); }
.ba-pn-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ba-pn-label { font-size: 0.72rem; font-weight: 600; color: var(--wt-muted); }
.ba-pn-title { font-size: 0.9rem; line-height: 1.4; font-weight: 700; color: var(--wt-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ba-pn-spacer { display: none; }
@media (min-width: 640px) { .ba-pn-spacer { display: block; } }

/* Sidebar --------------------------------------------------------------- */
.ba-aside { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 1024px) { .ba-aside { position: sticky; top: calc(var(--wt-header-h) + 20px); } }
.ba-card { padding: 20px; border: 1px solid var(--wt-border); border-radius: 12px; background: var(--wt-card); }
.ba-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.95rem; font-weight: 700; color: var(--wt-navy); }
.ba-card-title .bl-i18 { color: var(--wt-teal); }
.ba-toc-desktop, .ba-side-related { display: none; }
@media (min-width: 1024px) { .ba-toc-desktop, .ba-side-related { display: block; } }
.ba-toc-desktop nav { max-height: 46vh; overflow-y: auto; margin-right: -6px; padding-right: 6px; }

.ba-toc { display: grid; gap: 2px; }
.ba-toc a {
    display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px;
    font-size: 0.84rem; line-height: 1.45; color: var(--wt-text-2); text-decoration: none;
    transition: background-color .15s, color .15s;
}
.ba-toc a:hover { background: var(--wt-bg-soft); color: var(--wt-navy); }
.ba-toc-num {
    min-width: 24px; height: 22px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--wt-muted); background: var(--wt-bg-soft);
    transition: background-color .15s, color .15s;
}
.ba-toc li.is-sub a { padding-left: 44px; font-size: 0.8rem; color: var(--wt-muted); }
.ba-toc a.is-active { background: var(--wt-teal-soft); color: var(--wt-navy); font-weight: 600; }
.ba-toc a.is-active .ba-toc-num { background: var(--wt-teal); color: #fff; }

.ba-toc-mobile { margin-bottom: 28px; border: 1px solid var(--wt-border); border-radius: 12px; background: var(--wt-card); }
@media (min-width: 1024px) { .ba-toc-mobile { display: none; } }
.ba-toc-mobile summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px;
    font-size: 0.9rem; font-weight: 700; color: var(--wt-navy);
}
.ba-toc-mobile summary::-webkit-details-marker { display: none; }
.ba-toc-icon { color: var(--wt-teal); }
.ba-toc-caret { margin-left: auto; color: var(--wt-muted); transition: transform .2s; }
.ba-toc-mobile[open] .ba-toc-caret { transform: rotate(180deg); }
.ba-toc-mobile nav { padding: 0 8px 12px; border-top: 1px solid var(--wt-border); padding-top: 8px; }

/* Related mini list (sidebar) */
.ba-mini { display: grid; gap: 4px; }
.ba-mini-link { display: flex; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; transition: background-color .15s; }
.ba-mini-link:hover { background: var(--wt-bg-soft); }
.ba-mini-thumb { width: 84px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--wt-bg-soft); border: 1px solid var(--wt-border); }
.ba-mini-thumb .bl-fallback-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: none; }
.ba-mini-thumb .bl-fallback-svg { width: 16px; height: 16px; }
.ba-mini-thumb .bl-fallback-label { display: none; }
.ba-mini-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ba-mini-title { font-size: 0.84rem; line-height: 1.4; font-weight: 600; color: var(--wt-navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ba-mini-link:hover .ba-mini-title { color: var(--wt-teal-strong); }
.ba-mini-meta { font-size: 0.72rem; gap: 4px 10px; }
.ba-mini-meta .bl-meta-item + .bl-meta-item { padding-left: 10px; }
.ba-side-ad { margin: 0; }

/* Related articles (bottom) --------------------------------------------- */
.ba-related { margin-top: 64px; }
.ba-related-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-top: 36px; border-top: 1px solid var(--wt-border); }
.ba-related-title { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--wt-navy); }
.ba-related-title .bl-i20 { color: var(--wt-teal); }

@media (prefers-reduced-motion: reduce) {
    .ba-share-btn, .ba-pn-arrow { transition: none !important; }
    .ba-share-btn:hover { transform: none; }
}
