/* Blog article pages: classic blog-detail layout (markup from scripts/blog-v5.py).
   Title banner + breadcrumb, article card on the left, sidebar widgets on the right. Loaded last. */
.ax { --ink: #12212f; --tx: #33414e; --mut: #6b7886; --ln: #ece4d9; --o: #f7861e; --od: #c25e00; --bg: #f6f2ec; background: var(--bg); }

/* reading progress */
.ax-prog { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: 3px; pointer-events: none; }
.ax-prog i { display: block; height: 100%; background: linear-gradient(90deg, #ffb066, var(--o)); transform: scaleX(0); transform-origin: left; }

/* ---------- title banner ---------- */
.ax-banner { position: relative; overflow: hidden; padding: calc(88px + clamp(44px, 5vw, 72px)) 0 clamp(44px, 5vw, 68px); text-align: center;
  background: radial-gradient(ellipse at 15% 0%, rgba(255, 190, 120, .45), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(255, 170, 90, .35), transparent 55%), linear-gradient(180deg, #fff1df, #ffe6c9); border-bottom: 1px solid #f1d8b8; }
.ax-banner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(194, 94, 0, .14) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); }
.ax-banner .wrap { position: relative; }
.ax-h1 { max-width: 900px; margin: 0 auto; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.ax-crumb { justify-content: center; margin-top: 16px; font-size: 14px; }

/* ---------- layout ---------- */
.ax-body { padding: clamp(36px, 4vw, 56px) 0 clamp(56px, 6vw, 88px); }
.ax-lay { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 40px); align-items: stretch; max-width: 1200px; }

/* ---------- article card ---------- */
.ax-card { min-width: 0; padding: clamp(18px, 2.4vw, 28px) clamp(18px, 3vw, 40px) clamp(28px, 3vw, 40px); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 33, 47, .05), 0 30px 60px -50px rgba(40, 25, 10, .45); align-self: start; }
.ax-cover { margin: 0 calc(-1 * clamp(4px, 1.2vw, 16px)); }
.ax-cover .bpc { border-radius: 14px; }
.ax-cover .bpc::after { display: none; }
.ax-metarow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--ln); font-size: 14px; font-weight: 600; color: var(--mut); }
.ax-metarow > * { display: inline-flex; align-items: center; gap: 7px; }
.ax-metarow svg { color: var(--o); }
.ax-metarow a { color: var(--mut) !important; text-decoration: none !important; } .ax-metarow a:hover { color: var(--od) !important; }
.ax-mr-a b { color: var(--ink); }
.ax-mr-a .ba-av, .ax-short-by .ba-av { width: 30px !important; height: 30px !important; flex: none; }
.ax-art .ax-lead { margin: 22px 0 0 !important; font-size: clamp(17.5px, 1.3vw, 19.5px) !important; line-height: 1.7 !important; color: #4a5968 !important; }

/* typography inside the card */
.ax-art.ba-art-body p, .ax-art.ba-art-body li { font-size: 17.5px; line-height: 1.8; color: var(--tx); }
.ax-art > h2 { margin: 56px 0 0 !important; padding-top: 0 !important; border-top: 0 !important; font-size: clamp(24px, 2.1vw, 29px) !important; line-height: 1.22 !important; letter-spacing: -.028em !important; color: var(--ink); scroll-margin-top: 110px; }
.ax-art > h2::before { margin-bottom: 10px !important; font-size: 12px !important; color: var(--o) !important; }
.ax-art > h2 + p, .ax-art > h2 + ul, .ax-art > h2 + ol { margin-top: 14px !important; }
.ax-art > p + p { margin-top: 18px; }
.ax-art > ul, .ax-art > ol { margin: 18px 0 0 !important; }

/* short answer as a quote box */
.ax-short { position: relative; margin: 28px 0 0 !important; padding: 26px 28px 22px 84px !important; border: 0 !important; border-radius: 16px !important; background: #fff4e8 !important; box-shadow: inset 0 0 0 1px #f8dcbd !important; }
.ax-short::before { display: none !important; }
.ax-qm { position: absolute; left: 24px; top: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--o); color: #fff; font: 800 40px/1 Georgia, serif; padding-top: 14px; box-sizing: border-box; }
.ax-short-k { display: block; margin-bottom: 8px; font: 800 11.5px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--od); }
.ax-art .ax-short p { margin: 0; font-size: 18px; line-height: 1.7; font-style: italic; color: var(--ink); }
.ax-short-by { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; }
.ax-short-by b { color: var(--ink); } .ax-short-by small { color: var(--mut); }

/* tables, notes */
.ax-art .pg-tw { margin-top: 22px !important; border-radius: 14px !important; box-shadow: 0 0 0 1px var(--ln) !important; overflow: hidden; }
.ax-art table { box-shadow: none !important; }
.ax-art th { background: #faf6f0 !important; font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; color: #6b5a48 !important; }
.ax-art td { font-size: 15.5px !important; line-height: 1.55 !important; border-color: #f1ebe3 !important; }
.ax-art .ba-note { margin-top: 20px !important; padding: 16px 20px !important; border: 0 !important; border-radius: 12px !important; background: #f5f7fa !important; box-shadow: inset 0 0 0 1px #e5eaf0 !important; font-size: 16px !important; line-height: 1.65 !important; color: #3c4a58 !important; }

/* FAQ */
.ax-faq { margin-top: 56px; }
.ax-faq-h { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; font-size: clamp(24px, 2.1vw, 29px) !important; letter-spacing: -.028em; color: var(--ink); scroll-margin-top: 110px; }
.ax-faq-h::before { display: none !important; }
.ax-faq details { border-bottom: 1px solid var(--ln); }
.ax-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff4e8; }
.ax-faq summary i::before, .ax-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 2px; background: var(--od); translate: -50% -50%; transition: rotate .25s; }
.ax-faq summary i::after { rotate: 90deg; } .ax-faq details[open] summary i::after { rotate: 0deg; }
.ax-faq summary:hover { color: var(--od); }
.ax-art .ax-faq details p { margin: -4px 0 18px; font-size: 16.5px; line-height: 1.7; color: #4a5968; }

/* topics + share row */
.ax-tagrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 44px; padding: 18px 0; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.ax-tr-l, .ax-tr-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ax-tagrow b { margin-right: 4px; font-size: 15px; color: var(--ink); }
.ax-tr-r .ba-share { display: flex; gap: 6px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ax-tr-r .ba-share > span { display: none; }
.ax-tr-r .ba-sh { width: 34px !important; height: 34px !important; }
.ax-chip { display: inline-block; padding: 6px 12px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #e9dccb; font-size: 13.5px; font-weight: 600; color: #4a5968 !important; text-decoration: none !important; transition: background .2s, color .2s, box-shadow .2s; }
.ax-chip:hover { background: var(--o); color: #fff !important; box-shadow: none; }

/* call to action */
.ax-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 36px; align-items: center; margin-top: 32px; padding: clamp(24px, 3vw, 32px); border-radius: 18px; background: linear-gradient(135deg, #fff6ec, #ffefdc); box-shadow: inset 0 0 0 1px #f5dcc0; }
.ax-cta-k { font: 800 11.5px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--od); }
.ax-art .ax-cta h2 { margin: 8px 0 0 !important; padding: 0 !important; border: 0 !important; font-size: clamp(21px, 1.9vw, 25px) !important; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.ax-art .ax-cta h2::before { display: none !important; }
.ax-art .ax-cta p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: #5a6878; }
.ax-cta-b { display: grid; justify-items: center; gap: 12px; }
.ax-cta-b .btn-primary { color: #fff !important; white-space: nowrap; }
.ax-link { font-size: 14.5px; font-weight: 700; color: var(--od) !important; text-decoration: none !important; }
.ax-link:hover { text-decoration: underline !important; text-underline-offset: 4px; }

/* ---------- sidebar widgets ---------- */
.ax-sb { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ax-wg { padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 33, 47, .05), 0 24px 44px -40px rgba(40, 25, 10, .45); }
.ax-wh { position: relative; margin: 0 0 18px; padding-bottom: 12px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); border-bottom: 1px solid var(--ln); }
.ax-wh::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; background: var(--o); }
.ax-srch { display: flex; border-radius: 12px; box-shadow: inset 0 0 0 1px #e6dbcd; overflow: hidden; }
.ax-srch input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: transparent; font: 500 15px Inter, system-ui, sans-serif; color: var(--ink); outline: none; }
.ax-srch button { display: grid; place-items: center; width: 48px; border: 0; background: var(--o); color: #fff; cursor: pointer; }
.ax-srch:focus-within { box-shadow: inset 0 0 0 1.5px var(--o); }
.ax-cats { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ax-cats li { margin: 0; } .ax-cats li::before { display: none; }
.ax-cats a { display: grid; grid-template-columns: 1fr auto 16px; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px #eee4d7; font-size: 14.5px; font-weight: 600; color: var(--ink) !important; text-decoration: none !important; transition: background .2s, color .2s, box-shadow .2s; }
.ax-cats em { font-style: normal; font-size: 12px; font-weight: 700; color: #a89580; }
.ax-cats svg { color: #c9b39a; }
.ax-cats a:hover { background: #fff6ec; box-shadow: inset 0 0 0 1px #f5d3ad; }
.ax-cats a.on { background: var(--o); color: #fff !important; box-shadow: none; }
.ax-cats a.on em, .ax-cats a.on svg { color: #fff; }
.ax-recent { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ax-recent li { margin: 0; } .ax-recent li::before { display: none; }
.ax-recent a { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; text-decoration: none !important; }
.ax-rt .bpc { border-radius: 8px; } .ax-rt .bpc::after { display: none; }
.ax-recent b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; color: var(--ink); transition: color .2s; }
.ax-recent small { display: block; margin-top: 4px; font-size: 12px; color: #8a96a3; }
.ax-recent a:hover b { color: var(--od); }
.ax-auth { display: grid; justify-items: center; text-align: center; }
.ax-auth .ba-av { width: 64px !important; height: 64px !important; }
.ax-auth b { margin-top: 10px; font-size: 16px; color: var(--ink); }
.ax-auth small { font-size: 13px; color: var(--mut); }
.ax-auth p { margin: 10px 0 12px; font-size: 14px; line-height: 1.6; color: #5a6878; }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-sticky { position: sticky; top: 108px; }
.ax-tocw .bl-toc { padding: 0 !important; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ax-lay { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
  .ax-sb { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .ax-sticky { display: none; }
}
@media (max-width: 640px) {
  .ax-sb { grid-template-columns: 1fr; }
  .ax-body .wrap { padding-left: 12px; padding-right: 12px; }
  .ax-card { border-radius: 16px; }
  .ax-short { padding: 70px 18px 18px !important; } .ax-qm { left: 18px; top: 16px; }
  .ax-cta { grid-template-columns: 1fr; } .ax-cta-b { justify-items: start; }
  .ax-art.ba-art-body p, .ax-art.ba-art-body li { font-size: 16.5px; }
}
.ax-banner { padding-top: calc(88px + clamp(48px, 5vw, 76px)) !important; padding-bottom: clamp(48px, 5vw, 72px) !important; }
.ax-srch input, .ax-srch input:focus { height: 48px !important; margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.ax-srch button { height: 48px; }
.ax form.ax-srch { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 12px !important; background: #fff !important; box-shadow: inset 0 0 0 1px #e6dbcd !important; gap: 0 !important; max-width: none !important; } .ax form.ax-srch:focus-within { box-shadow: inset 0 0 0 1.5px #f7861e !important; }

/* ===== v2 polish: wider layout, cover flush to the card, richer details ===== */
.ax-lay { max-width: 1440px !important; grid-template-columns: minmax(0, 1fr) 360px !important; gap: clamp(28px, 3vw, 48px) !important; }
.ax-banner .wrap { max-width: 1440px; }
.ax-h1 { max-width: 1100px !important; font-size: clamp(34px, 4vw, 58px) !important; }
.ax-banner { background: radial-gradient(ellipse at 12% 0%, rgba(255, 176, 96, .55), transparent 55%), radial-gradient(ellipse at 92% 110%, rgba(255, 150, 60, .4), transparent 55%), linear-gradient(180deg, #fff3e4, #ffe2c2) !important; }
.ax-banner::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: min(560px, 80%); height: 3px; translate: -50% 0; border-radius: 3px; background: linear-gradient(90deg, transparent, #f7861e, transparent); }
.ax-crumb { display: inline-flex !important; margin-top: 20px !important; padding: 8px 18px; border-radius: 99px; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px #f2d5b2; backdrop-filter: blur(6px); }

/* the card: cover runs edge to edge at the top */
.ax-card { padding: 0 0 clamp(32px, 3vw, 48px) !important; overflow: hidden; border-radius: 24px !important; box-shadow: 0 0 0 1px rgba(16, 33, 47, .05), 0 40px 80px -56px rgba(40, 25, 10, .55) !important; }
.ax-card > *:not(.ax-cover) { margin-left: clamp(20px, 4vw, 64px) !important; margin-right: clamp(20px, 4vw, 64px) !important; }
.ax-cover { margin: 0 !important; overflow: hidden; }
.ax-cover .bpc { border-radius: 0 !important; aspect-ratio: 16 / 8.5 !important; }
.ax-cover .bpc img { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.ax-card:hover .ax-cover .bpc img { transform: scale(1.03); }
.ax-metarow { margin-top: 26px !important; gap: 10px !important; }
.ax-metarow > * { padding: 7px 13px; border-radius: 99px; background: #faf6f0; box-shadow: inset 0 0 0 1px #efe5d8; }
.ax-metarow > .ax-mr-a { padding: 4px 14px 4px 4px; background: #fff4e8; box-shadow: inset 0 0 0 1px #f8dcbd; }
.ax-metarow > a:hover { background: #fff4e8; }
.ax-art.ba-art-body p, .ax-art.ba-art-body li { font-size: 18px; }
.ax-art > h2 { font-size: clamp(26px, 2.3vw, 32px) !important; }
.ax-art > h2::before { display: inline-grid !important; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 99px; background: #fff1e2; box-shadow: inset 0 0 0 1px #f6d3ad; }
.ax-art > ul > li::marker, .ax-art > ol > li::marker { color: #f7861e; font-weight: 800; }
.ax-short { padding: 30px 32px 26px 92px !important; background: linear-gradient(135deg, #fff6ec, #ffeedb) !important; }
.ax-qm { left: 28px !important; top: 28px !important; box-shadow: 0 12px 22px -10px rgba(247, 134, 30, .8); }

/* sidebar: softer cards, hover lift */
.ax-wg { padding: 26px !important; border-radius: 20px !important; transition: box-shadow .3s, transform .3s; }
.ax-wg:hover { box-shadow: 0 0 0 1px rgba(247, 134, 30, .25), 0 30px 50px -40px rgba(247, 134, 30, .45); }
.ax-recent a { grid-template-columns: 104px 1fr !important; }
.ax-recent .ax-rt .bpc img { transition: transform .6s; } .ax-recent a:hover .bpc img { transform: scale(1.06); }
.ax-auth .ba-av { width: 76px !important; height: 76px !important; box-shadow: 0 0 0 6px #fff4e8, 0 0 0 7px #f6d3ad; }

@media (max-width: 1080px) { .ax-lay { max-width: 860px !important; grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 640px) {
  .ax-card > *:not(.ax-cover) { margin-left: 18px !important; margin-right: 18px !important; }
  .ax-cover .bpc { aspect-ratio: 16 / 10 !important; }
  .ax-short { padding: 72px 18px 18px !important; } .ax-qm { left: 18px !important; top: 18px !important; }
  .ax-metarow > * { padding: 6px 11px; font-size: 13px; }
}
.ax-art > h2::before { display: flex !important; align-items: center; justify-content: center; width: fit-content; margin: 0 0 12px !important; }

/* ===== v3 perfection pass ===== */
/* comfortable line length: ~75 characters */
.ax-card > *:not(.ax-cover) { margin-left: clamp(22px, 6vw, 92px) !important; margin-right: clamp(22px, 6vw, 92px) !important; }
.ax-art > .ax-short + p, .ax-art > .ax-short + h2 { margin-top: 32px !important; }
.ax-art > .ax-lead { padding-bottom: 4px; }
/* tables: both columns read left to right, tool names as small orange links */
.ax-art td:last-child, .ax-art th:last-child { text-align: left !important; }
.ax-art td:first-child { font-weight: 600; color: #12212f; }
.ax-art td a { text-decoration: none !important; font-weight: 700; color: #c25e00 !important; border-bottom: 1.5px solid #f7c79a; }
.ax-art td a:hover { border-color: #f7861e; }
.ax-art tbody tr { transition: background .2s; } .ax-art tbody tr:hover { background: #fffaf4; }
/* "See … →" link rows become neat link pills */
.ax-art > p.ax-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px !important; font-size: 0 !important; }
.ax-art > p.ax-links a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #f1d9bd; font-size: 14.5px; font-weight: 700; color: #c25e00 !important; text-decoration: none !important; transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.ax-art > p.ax-links a:hover { background: #f7861e; color: #fff !important; box-shadow: none; transform: translateY(-2px); }
/* numbered steps: line up the circles with the first text line */
.ax-art > ol > li { padding-left: 4px; }
/* quieter heading numbers */
.ax-art > h2::before { font-size: 11.5px !important; }

/* ===== v4 type scale: calmer, smaller text ===== */
.ax-h1 { font-size: clamp(28px, 3vw, 44px) !important; line-height: 1.15 !important; max-width: 960px !important; }
.ax-art.ba-art-body p, .ax-art.ba-art-body li { font-size: 16.5px !important; line-height: 1.75 !important; }
.ax-art .ax-lead { font-size: 17px !important; }
.ax-art > h2 { font-size: clamp(21px, 1.8vw, 25px) !important; margin-top: 48px !important; }
.ax-art > h2 + p, .ax-art > h2 + ul, .ax-art > h2 + ol { margin-top: 12px !important; }
.ax-art .ax-short p { font-size: 16.5px !important; line-height: 1.7 !important; }
.ax-faq-h { font-size: clamp(21px, 1.8vw, 25px) !important; }
.ax-faq summary { font-size: 15.5px !important; padding: 16px 0 !important; }
.ax-art .ax-faq details p { font-size: 15.5px !important; }
.ax-art td { font-size: 14.5px !important; }
.ax-art .ba-note { font-size: 15px !important; }
.ax-art .ax-cta h2 { font-size: clamp(19px, 1.6vw, 22px) !important; }
.ax-art .ax-cta p { font-size: 15px !important; }
.ax-metarow { font-size: 13px !important; }
.ax-wh { font-size: 16.5px !important; }
.ax-cats a { font-size: 14px !important; padding: 10px 13px !important; }
.ax-recent b { font-size: 13.5px !important; }
@media (max-width: 640px) {
  .ax-h1 { font-size: 26px !important; }
  .ax-art.ba-art-body p, .ax-art.ba-art-body li { font-size: 15.5px !important; }
  .ax-art > h2 { font-size: 20px !important; margin-top: 40px !important; }
}
main.ax .ax-art.ba-art-body > h2, main.ax .ax-art .ax-faq-h { font-size: clamp(21px, 1.8vw, 25px) !important; line-height: 1.25 !important; }
@media (max-width: 640px) { main.ax .ax-art.ba-art-body > h2, main.ax .ax-art .ax-faq-h { font-size: 20px !important; } }

/* ===== v5: full width, content edge to edge in the card, smaller type ===== */
.ax-body .wrap.ax-lay, .ax-banner .wrap { max-width: 1680px !important; padding-left: clamp(16px, 2.5vw, 40px) !important; padding-right: clamp(16px, 2.5vw, 40px) !important; }
.ax-lay { grid-template-columns: minmax(0, 1fr) 320px !important; gap: clamp(20px, 2vw, 32px) !important; }
.ax-body { padding-top: clamp(24px, 3vw, 40px) !important; }
.ax-banner { padding-top: calc(88px + clamp(32px, 3.5vw, 52px)) !important; padding-bottom: clamp(32px, 3.5vw, 52px) !important; }
.ax-h1 { font-size: clamp(26px, 2.6vw, 38px) !important; }
.ax-crumb { margin-top: 14px !important; font-size: 13px !important; padding: 6px 14px !important; }
/* card: content uses the full width */
.ax-card > *:not(.ax-cover) { margin-left: clamp(18px, 2.4vw, 36px) !important; margin-right: clamp(18px, 2.4vw, 36px) !important; }
.ax-cover .bpc { aspect-ratio: 16 / 7 !important; }
.ax-cover .bpc img { object-position: center 45%; }
.ax-metarow { margin-top: 20px !important; padding-bottom: 16px !important; }
.ax-metarow > * { padding: 5px 11px !important; font-size: 12.5px !important; }
main.ax .ax-art.ba-art-body p, main.ax .ax-art.ba-art-body li { font-size: 15.5px !important; line-height: 1.75 !important; }
main.ax .ax-art .ax-lead { font-size: 16px !important; margin-top: 18px !important; }
main.ax .ax-art.ba-art-body > h2, main.ax .ax-art .ax-faq-h { font-size: clamp(19px, 1.5vw, 22px) !important; margin-top: 40px !important; }
.ax-art > h2::before { margin-bottom: 8px !important; height: 20px !important; min-width: 30px !important; font-size: 10.5px !important; }
main.ax .ax-art .ax-short p { font-size: 15.5px !important; }
.ax-short { padding: 22px 24px 18px 76px !important; margin-top: 22px !important; }
.ax-qm { left: 22px !important; top: 22px !important; width: 38px !important; height: 38px !important; font-size: 34px !important; padding-top: 12px !important; }
.ax-short-by { margin-top: 12px !important; font-size: 13px !important; }
main.ax .ax-art td { font-size: 14px !important; padding-top: 12px !important; padding-bottom: 12px !important; }
main.ax .ax-faq summary { font-size: 15px !important; }
main.ax .ax-art .ax-faq details p { font-size: 14.5px !important; }
/* sidebar: tighter */
.ax-sb { gap: 16px !important; }
.ax-wg { padding: 20px !important; border-radius: 16px !important; }
.ax-wh { font-size: 15.5px !important; margin-bottom: 14px !important; padding-bottom: 10px !important; }
.ax .ax-srch input, .ax .ax-srch button, .ax form.ax-srch { height: 42px !important; }
.ax .ax-srch input { font-size: 14px !important; }
.ax-cats { gap: 6px !important; }
.ax-cats a { font-size: 13.5px !important; padding: 8px 12px !important; }
.ax-recent { gap: 12px !important; }
.ax-recent a { grid-template-columns: 84px 1fr !important; gap: 10px !important; }
.ax-recent b { font-size: 13px !important; }
.ax-recent small { font-size: 11.5px !important; }
.ax-auth .ba-av { width: 56px !important; height: 56px !important; }
.ax-auth b { font-size: 14.5px !important; } .ax-auth p { font-size: 13px !important; }
.ax-chip { font-size: 12.5px !important; padding: 5px 10px !important; }
.ax-tocw .bl-toc a { font-size: 13px !important; }
@media (max-width: 1080px) { .ax-lay { grid-template-columns: minmax(0, 1fr) !important; max-width: 900px !important; } }
@media (max-width: 640px) { .ax-cover .bpc { aspect-ratio: 16 / 9 !important; } }
.ax-tagrow { border-bottom: 0 !important; padding-bottom: 0 !important; }

/* ===== v6: numbered steps fixed + list polish ===== */
main.ax .ax-art > ol { counter-reset: none; }
main.ax .ax-art > ol > li { position: relative; padding: 10px 0 10px 48px !important; margin-top: 4px !important; }
main.ax .ax-art > ol > li::before { left: 0 !important; top: 8px !important; width: 30px !important; height: 30px !important; }
main.ax .ax-art > ol > li:not(:last-child)::after { left: 14.25px !important; top: 42px !important; bottom: -6px !important; }
main.ax .ax-art > ul > li { margin-top: 8px !important; }
/* steps sit in a soft panel so they read as one sequence */
main.ax .ax-art > ol { padding: 10px 20px !important; border-radius: 14px; background: #fcfaf7; box-shadow: inset 0 0 0 1px #f1e9df; }
main.ax .ax-art > ul > li { margin-top: 2px !important; padding-top: 6px !important; padding-bottom: 6px !important; }
main.ax .ax-art > ul > li::before { top: 17px !important; }

/* ===== v7: phones (clean, compact) ===== */
@media (max-width: 640px) {
  .ax-card > *:not(.ax-cover) { margin-left: 16px !important; margin-right: 16px !important; }
  main.ax .ax-art.ba-art-body p, main.ax .ax-art.ba-art-body li { font-size: 14.5px !important; line-height: 1.65 !important; }
  main.ax .ax-art .ax-lead { font-size: 15px !important; }
  main.ax .ax-art.ba-art-body > h2, main.ax .ax-art .ax-faq-h { font-size: 18.5px !important; margin-top: 32px !important; }
  .ax-h1 { font-size: 23px !important; }
  /* short answer: badge + label on one line, text full width */
  .ax-short { padding: 16px !important; margin-top: 18px !important; }
  .ax-qm { position: static !important; display: inline-grid !important; width: 30px !important; height: 30px !important; font-size: 26px !important; padding-top: 9px !important; border-radius: 9px !important; vertical-align: middle; margin-right: 10px; }
  .ax-short-k { display: inline-block !important; margin: 0 !important; vertical-align: middle; }
  main.ax .ax-art .ax-short p { margin-top: 10px !important; font-size: 14.5px !important; line-height: 1.65 !important; }
  .ax-short-by { flex-wrap: wrap; gap: 4px 8px !important; font-size: 12.5px !important; }
  .ax-short-by small { flex-basis: 100%; padding-left: 38px; margin-top: -4px; }
  /* tables become stacked cards: need on top, tool underneath */
  main.ax .ax-art .pg-tw { box-shadow: none !important; border-radius: 0 !important; overflow: visible; }
  main.ax .ax-art table, main.ax .ax-art tbody, main.ax .ax-art tr, main.ax .ax-art td { display: block; width: 100% !important; }
  main.ax .ax-art thead { display: none; }
  main.ax .ax-art tr { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #fcfaf7; box-shadow: inset 0 0 0 1px #efe6db; }
  main.ax .ax-art td { padding: 0 !important; border: 0 !important; font-size: 14px !important; line-height: 1.5 !important; }
  main.ax .ax-art td:last-child { margin-top: 6px; font-size: 13.5px !important; color: #6b7886; }
  main.ax .ax-art td:last-child::before { content: "→ "; color: #f7861e; font-weight: 800; }
  /* lists: tighter */
  main.ax .ax-art > ul > li { padding-top: 4px !important; padding-bottom: 4px !important; padding-left: 22px !important; }
  main.ax .ax-art > ul > li::before { top: 14px !important; left: 2px !important; width: 6px !important; height: 6px !important; }
  main.ax .ax-art > ol { padding: 6px 12px !important; }
  main.ax .ax-art > ol > li { padding-left: 40px !important; }
  main.ax .ax-art .ba-note { font-size: 13.5px !important; padding: 12px 14px !important; }
  .ax-art > p.ax-links a { padding: 8px 12px; font-size: 13px; }
  .ax-metarow { gap: 6px !important; } .ax-metarow > * { font-size: 12px !important; padding: 4px 9px !important; }
  main.ax .ax-faq summary { font-size: 14.5px !important; }
  main.ax .ax-art .ax-faq details p { font-size: 14px !important; }
  .ax-tagrow { gap: 10px !important; } .ax-tagrow b { font-size: 13.5px; }
}

/* ===== v8: phones — widgets fit the screen, in a reader-friendly order ===== */
@media (max-width: 1080px) {
  .ax-sb { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ax-wg { min-width: 0; }
}
@media (max-width: 640px) {
  .ax-body .wrap.ax-lay { padding-left: 12px !important; padding-right: 12px !important; }
  .ax-lay, .ax-sb { width: 100%; max-width: 100% !important; }
  .ax-sb { display: flex !important; flex-direction: column; gap: 12px !important; }
  /* after the article: 1 keep reading, 2 browse topics, 3 search. Author + tag cloud are desktop extras */
  .wg-recent { order: 1; } .wg-cat { order: 2; } .wg-search { order: 3; }
  .wg-author, .wg-tags { display: none !important; }
  .ax-wg { padding: 16px !important; border-radius: 14px !important; }
  .ax-wh { font-size: 15px !important; margin-bottom: 12px !important; }
  /* categories: a compact chip cloud instead of 9 tall rows */
  .ax-cats { display: flex !important; flex-wrap: wrap; gap: 6px !important; }
  .ax-cats a { display: inline-flex !important; gap: 6px !important; padding: 7px 11px !important; border-radius: 99px !important; font-size: 13px !important; }
  .ax-cats a svg { display: none; }
  .ax-cats em { font-size: 11px !important; }
  .ax-recent a { grid-template-columns: 88px minmax(0, 1fr) !important; }
  .ax .ax-srch input, .ax .ax-srch button, .ax form.ax-srch { height: 44px !important; }
  .ax .ax-srch input { font-size: 16px !important; } /* 16px stops iPhone zooming in */
  /* topics + share on one tidy block */
  .ax-tagrow { flex-direction: column; align-items: flex-start !important; }
}
