/* Revision articles (blog listing + article). Builds on static-pages.css (blue page hero)
   and articles.css (article cards). Sora headings, Inter body, DM Sans titles, brand blue #245cb5. */
.static-page--blog, .static-page--article {
    --bl-blue: #245cb5;
    --bl-blue-dark: #1b488f;
    --bl-ink: #172d40;
    --bl-text: #334659;
    --bl-muted: #5b6c80;
    --bl-line: #e2eaf4;
    background: #fff;
}

/* ── Hero search (inside the blue page hero) ───────────── */
.bl-search { position: relative; display: flex; align-items: center; width: min(520px, 100%); margin: 24px auto 0; padding: 5px 5px 5px 16px; border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; background: rgb(255 255 255 / .1); transition: background .15s, border-color .15s; }
.bl-search:focus-within { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .45); }
.bl-search > svg { width: 18px; height: 18px; flex-shrink: 0; color: rgb(255 255 255 / .7); }
.bl-search input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; background: transparent; color: #fff; font: 400 15px/1.4 'Inter', system-ui, sans-serif; outline: none; }
.bl-search input::placeholder { color: rgb(255 255 255 / .65); }
.bl-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .7; }
.bl-search button { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--bl-blue); font: 600 14px/1 'DM Sans', system-ui, sans-serif; cursor: pointer; transition: background .15s; }
.bl-search button:hover { background: #edf3fc; }
.bl-search button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── Listing ───────────────────────────────────────────── */
.bl-section { padding: clamp(32px, 4vw, 48px) 0 clamp(64px, 7vw, 96px); background: #f7faff; }
.bl-inner { max-width: 1240px; margin-inline: auto; padding-inline: 28px; }
.bl-cats { display: flex; gap: 8px; margin: 0 0 28px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.bl-cats::-webkit-scrollbar { display: none; }
.bl-cat { flex-shrink: 0; padding: 8px 16px; border: 1px solid var(--bl-line); border-radius: 999px; background: #fff; color: var(--bl-text); font: 500 14px/1.3 'Inter', system-ui, sans-serif; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.bl-cat:hover { border-color: #c9d8ec; color: var(--bl-blue); }
.bl-cat.is-active { border-color: var(--bl-blue); background: var(--bl-blue); color: #fff; }
.bl-cat:focus-visible { outline: 3px solid var(--bl-blue); outline-offset: 2px; }

.bl-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -8px 0 24px; color: var(--bl-muted); font-size: 15px; }
.bl-results p { margin: 0; }
.bl-results strong { color: var(--bl-ink); }
.bl-results a { display: inline-flex; align-items: center; gap: 6px; color: var(--bl-blue); font-weight: 600; font-size: 14px; text-decoration: none; }
.bl-results a svg { width: 15px; height: 15px; }

/* Featured article: large horizontal card */
.bl-featured { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 28px; overflow: hidden; border: 1px solid var(--bl-line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(23, 45, 64, .03), 0 18px 40px -28px rgba(23, 45, 64, .3); transition: border-color .2s, box-shadow .2s; }
.bl-featured:hover { border-color: #cfdcee; box-shadow: 0 1px 2px rgba(23, 45, 64, .03), 0 24px 48px -28px rgba(23, 45, 64, .38); }
.bl-featured__media { display: block; min-height: 280px; overflow: hidden; background: #eaf1f8; }
.bl-featured__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bl-featured:hover .bl-featured__media img { transform: scale(1.03); }
.bl-featured__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 40px); }
.bl-featured__label { padding: 3px 9px; border-radius: 6px; background: var(--bl-blue); color: #fff; font-size: 12px; font-weight: 600; }
.bl-featured__title { margin: 4px 0 0; font: 700 clamp(22px, 2.2vw, 28px)/1.3 'Sora', system-ui, sans-serif; letter-spacing: -.025em; }
.bl-featured__title a { color: var(--bl-ink); text-decoration: none; }
.bl-featured__title a::after { content: ''; position: absolute; inset: 0; }
.bl-featured:has(.bl-featured__title a:focus-visible) { outline: 3px solid var(--bl-blue); outline-offset: 3px; }
.bl-featured__title a:focus-visible { outline: none; }
.bl-featured__excerpt { display: -webkit-box; margin: 12px 0 0; overflow: hidden; color: var(--bl-muted); font-size: 16px; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.bl-byline { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; }
.bl-byline > span:last-child { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; color: var(--bl-muted); }
.bl-byline strong { color: var(--bl-ink); font-size: 14px; font-weight: 600; }

.bl-grid { margin-top: 0; }

/* Author avatar: photo or initials */
.bl-avatar { display: inline-grid; place-items: center; width: var(--size, 36px); height: var(--size, 36px); flex-shrink: 0; overflow: hidden; border-radius: 50%; background: #e7effb; color: var(--bl-blue); font: 600 calc(var(--size, 36px) * .36)/1 'Inter', system-ui, sans-serif; }
.bl-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Pagination */
.bl-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 44px; }
.bl-pages__nums { display: flex; gap: 6px; }
.bl-pages__num, .bl-pages__step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--bl-line); border-radius: 10px; background: #fff; color: var(--bl-text); font: 500 14px/1 'Inter', system-ui, sans-serif; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.bl-pages__num:hover, a.bl-pages__step:hover { border-color: var(--bl-blue); color: var(--bl-blue); }
.bl-pages__num.is-active { border-color: var(--bl-blue); background: var(--bl-blue); color: #fff; }
.bl-pages__step svg { width: 16px; height: 16px; }
.bl-pages__step.is-disabled { opacity: .45; }

/* Empty state + button */
.bl-empty { max-width: 520px; margin: 24px auto 0; padding: 48px 28px; border: 1px solid var(--bl-line); border-radius: 18px; background: #fff; text-align: center; }
.bl-empty__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 14px; background: #edf3fc; color: var(--bl-blue); }
.bl-empty__icon svg { width: 26px; height: 26px; }
.bl-empty h2 { margin: 0; color: var(--bl-ink); font: 700 20px/1.35 'DM Sans', system-ui, sans-serif; }
.bl-empty p { margin: 8px 0 0; color: var(--bl-muted); font-size: 15px; line-height: 1.65; }
.bl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 20px; padding: 0 20px; border-radius: 10px; background: var(--bl-blue); color: #fff; font: 600 15px/1 'DM Sans', system-ui, sans-serif; text-decoration: none; transition: background .15s; }
.bl-btn:hover { background: var(--bl-blue-dark); }
.bl-btn svg { width: 17px; height: 17px; }
.bl-btn--light { margin-top: 0; background: #fff; color: var(--bl-blue); }
.bl-btn--light:hover { background: #edf3fc; }

/* ── Article header ────────────────────────────────────── */
.static-page .bl-hero { padding: clamp(40px, 5vw, 64px) 24px clamp(44px, 5vw, 60px); }
.bl-hero__inner { max-width: 820px; margin-inline: auto; }
.bl-crumbs { display: flex; flex-wrap: wrap; align-items: baseline; line-height: 1.5; gap: 6px 8px; margin-bottom: 18px; color: rgb(255 255 255 / .6); font-size: 13.5px; }
.bl-crumbs a { color: #dbe7fb; text-decoration: none; }
.bl-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bl-hero__title { margin: 0; color: #fff; font: 700 clamp(28px, 3.4vw, 42px)/1.22 'Sora', system-ui, sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.bl-hero__lead { margin: 14px 0 0; color: #d9e6f7; font-size: 17.5px; line-height: 1.7; }
.bl-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .16); color: #d9e6f7; font-size: 14px; }
.bl-hero__author { display: inline-flex; align-items: center; gap: 10px; }
.bl-hero__author strong { color: #fff; font-weight: 600; }
.bl-hero__author .bl-avatar { background: rgb(255 255 255 / .16); color: #fff; }
.bl-hero__facts { display: inline-flex; flex-wrap: wrap; gap: 8px 18px; }
.bl-hero__facts > span { display: inline-flex; align-items: center; gap: 6px; }
.bl-hero__facts svg { width: 15px; height: 15px; opacity: .8; }

/* ── Article body: reading column + sticky contents ────── */
.bl-article { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 56px; max-width: 1180px; margin-inline: auto; padding: clamp(32px, 4vw, 48px) 28px clamp(48px, 6vw, 72px); }
.bl-article.has-toc { grid-template-columns: minmax(0, 760px) 260px; }
.bl-article__main { min-width: 0; }
.bl-cover { margin: 0 0 32px; overflow: hidden; border-radius: 16px; background: #eaf1f8; }
.bl-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }

.bl-toc ol { margin: 0; padding: 0; list-style: none; }
.bl-toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--bl-line); color: var(--bl-muted); font-size: 14px; line-height: 1.45; text-decoration: none; transition: color .15s, border-color .15s; }
.bl-toc a:hover { color: var(--bl-blue); }
.bl-toc a.is-active { border-left-color: var(--bl-blue); color: var(--bl-blue); font-weight: 600; }
.bl-toc--side { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; }
.bl-toc__title { margin: 0 0 10px; color: var(--bl-ink); font: 600 12px/1.4 'Inter', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.bl-toc--inline { display: none; margin-bottom: 28px; border: 1px solid var(--bl-line); border-radius: 12px; background: #f7faff; }
.bl-toc--inline summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--bl-ink); font-weight: 600; font-size: 15px; list-style: none; cursor: pointer; }
.bl-toc--inline summary::-webkit-details-marker { display: none; }
.bl-toc--inline summary svg { width: 17px; height: 17px; color: var(--bl-blue); }
.bl-toc__chevron { margin-left: auto; transition: transform .15s; }
.bl-toc--inline[open] .bl-toc__chevron { transform: rotate(180deg); }
.bl-toc--inline ol { padding: 0 16px 14px; }

/* Article typography */
.bl-prose { color: var(--bl-text); font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose :is(h2, h3, h4, h5, h6) { color: var(--bl-ink); scroll-margin-top: 110px; }
.bl-prose h1 { margin: 2.4em 0 .8em; font: 700 32px/1.25 'Sora', system-ui, sans-serif; letter-spacing: -.03em; }
.bl-prose h2 { margin: 2.2em 0 .7em; font: 700 26px/1.3 'Sora', system-ui, sans-serif; letter-spacing: -.025em; }
.bl-prose h3 { margin: 1.8em 0 .6em; font: 700 20px/1.4 'DM Sans', system-ui, sans-serif; }
.bl-prose h4 { margin: 1.6em 0 .5em; font: 700 18px/1.45 'DM Sans', system-ui, sans-serif; }
.bl-prose :is(h5, h6) { margin: 1.5em 0 .5em; font: 700 16px/1.5 'DM Sans', system-ui, sans-serif; }
.bl-prose p { margin: 0 0 1.25em; }
.bl-prose :is(ul, ol) { margin: 0 0 1.4em; padding-left: 1.4em; }
.bl-prose ul { list-style: disc; }
.bl-prose ol { list-style: decimal; }
.bl-prose li { margin-bottom: .5em; padding-left: .2em; }
.bl-prose li::marker { color: var(--bl-blue); }
.bl-prose a { color: var(--bl-blue); text-decoration: underline; text-decoration-color: rgb(36 92 181 / .35); text-underline-offset: 3px; }
.bl-prose a:hover { text-decoration-color: currentColor; }
.bl-prose strong { color: var(--bl-ink); font-weight: 600; }
.bl-prose blockquote { margin: 1.8em 0; padding: 16px 22px; border-left: 4px solid var(--bl-blue); border-radius: 0 12px 12px 0; background: #f5f9ff; color: var(--bl-ink); font-style: normal; }
.bl-prose blockquote p:last-child { margin-bottom: 0; }
.bl-prose code { padding: .15em .4em; border-radius: 5px; background: #f0f4fa; color: #1d4e9c; font-size: .9em; }
.bl-prose pre { margin: 1.6em 0; padding: 18px 20px; overflow-x: auto; border-radius: 12px; background: #172d40; color: #eef4ff; font-size: 14px; line-height: 1.65; }
.bl-prose pre code { padding: 0; background: transparent; color: inherit; }
.bl-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--bl-line); }
.bl-prose img { display: block; max-width: 100%; height: auto; margin: 1.8em auto; border-radius: 12px; }
.bl-prose figure { margin: 1.8em 0; }
.bl-prose figcaption { margin-top: 8px; color: var(--bl-muted); font-size: 14px; text-align: center; }
.bl-prose table { display: block; width: 100%; max-width: 100%; margin: 1.6em 0; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.bl-prose th, .bl-prose td { padding: 10px 14px; border: 1px solid var(--bl-line); text-align: left; vertical-align: top; }
.bl-prose th { background: #f2f6fc; color: var(--bl-ink); font-weight: 600; }
.bl-prose tr:nth-child(even) td { background: #fafcff; }

/* FAQs (added to the end of the article, or where [FAQS] is placed) */
.bl-prose .faq-section { margin: 2.6em 0 0; }
.bl-prose .faq-section h2 { margin-top: 0; }
.bl-prose .faq-accordion { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--bl-line); border-radius: 12px; background: #fff; transition: border-color .15s; }
.bl-prose .faq-accordion:hover, .bl-prose .faq-accordion[open] { border-color: #c9d8ec; }
.bl-prose .faq-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: var(--bl-ink); font: 600 16px/1.5 'DM Sans', system-ui, sans-serif; list-style: none; cursor: pointer; }
.bl-prose .faq-accordion summary::-webkit-details-marker { display: none; }
.bl-prose .faq-accordion summary::after { content: '+'; flex-shrink: 0; color: var(--bl-blue); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s; }
.bl-prose .faq-accordion[open] summary::after { transform: rotate(45deg); }
.bl-prose .faq-accordion p { margin: 0; padding: 0 18px 16px; color: var(--bl-muted); font-size: 16px; }

/* Article footer: topics, share, author, practice prompt */
.bl-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--bl-line); }
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-tags a { padding: 6px 12px; border: 1px solid #d6e3f5; border-radius: 999px; background: #f5f9ff; color: #214f9f; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.bl-tags a:hover { background: var(--bl-blue); border-color: var(--bl-blue); color: #fff; }
.bl-share { display: flex; align-items: center; gap: 8px; color: var(--bl-muted); font-size: 14px; }
.bl-share > span { margin-right: 4px; }
.bl-share :is(a, button) { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--bl-line); border-radius: 50%; background: #fff; color: var(--bl-text); cursor: pointer; transition: border-color .15s, color .15s; }
.bl-share :is(a, button):hover { border-color: var(--bl-blue); color: var(--bl-blue); }
.bl-share svg { width: 16px; height: 16px; }
.bl-share button.is-copied { border-color: #0ca30c; color: #0a7f0a; }
.bl-share__done { position: absolute; bottom: calc(100% + 6px); left: 50%; padding: 3px 8px; border-radius: 6px; background: var(--bl-ink); color: #fff; font-size: 12px; white-space: nowrap; transform: translateX(-50%); }
.bl-share__done[hidden] { display: none; }

.bl-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 22px; border: 1px solid var(--bl-line); border-radius: 16px; background: #f7faff; }
.bl-author p { margin: 0; }
.bl-author__label { color: var(--bl-muted); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.bl-author__name { margin-top: 2px !important; color: var(--bl-ink); font: 700 17px/1.4 'DM Sans', system-ui, sans-serif; }
.bl-author__bio { margin-top: 6px !important; color: var(--bl-muted); font-size: 15px; line-height: 1.65; }

.bl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; padding: 26px 28px; border-radius: 18px; background: linear-gradient(110deg, #173e70 0%, #20518e 55%, #2a63aa 100%); color: #fff; }
.bl-cta h2 { margin: 0; color: #fff; font: 700 20px/1.35 'Sora', system-ui, sans-serif; letter-spacing: -.02em; }
.bl-cta p { margin: 6px 0 0; color: #d9e6f7; font-size: 15px; line-height: 1.6; }

.bl-related { background: #f7faff; }
.bl-related__title { font-size: clamp(24px, 2.6vw, 30px); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
    .bl-article.has-toc { grid-template-columns: minmax(0, 760px); }
    .bl-article__aside { display: none; }
    .bl-toc--inline { display: block; }
}
@media (max-width: 900px) {
    .bl-featured { grid-template-columns: minmax(0, 1fr); }
    .bl-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
    .bl-inner, .bl-article { padding-inline: 20px; }
    .bl-search button { padding: 0 14px; }
    .bl-prose { font-size: 16px; }
    .bl-prose h2 { font-size: 22px; }
    .bl-prose h3 { font-size: 18px; }
    .bl-article__foot { flex-direction: column; align-items: flex-start; }
    .bl-cta { padding: 22px; }
    .bl-cta .bl-btn { width: 100%; }
    .bl-pages__nums { order: -1; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-featured, .bl-featured__media img, .bl-cat, .bl-toc a { transition: none; }
    .bl-featured:hover .bl-featured__media img { transform: none; }
}

/* static-pages.css styles every `.static-page article` (legal pages); reset that inside the blog. */
.static-page .ar-card, .static-page .bl-featured { color: var(--bl-text); overflow-wrap: normal; }
.static-page .ar-card .ar-card__title { margin: 0; font: 700 18px/1.4 'DM Sans', system-ui, sans-serif; letter-spacing: -.01em; }
.static-page .bl-featured .bl-featured__title { margin: 4px 0 0; font: 700 clamp(22px, 2.2vw, 28px)/1.3 'Sora', system-ui, sans-serif; letter-spacing: -.025em; }
.static-page article.bl-prose { color: var(--bl-text); overflow-wrap: break-word; }
.static-page .bl-prose h2 { margin: 2.2em 0 .7em; font: 700 26px/1.3 'Sora', system-ui, sans-serif; letter-spacing: -.025em; }
.static-page .bl-prose h3 { font: 700 20px/1.4 'DM Sans', system-ui, sans-serif; }
.static-page .bl-prose strong { color: var(--bl-ink); }
.static-page .bl-prose .faq-section h2 { margin-top: 0; }
@media (max-width: 700px) { .static-page .bl-prose h2 { font-size: 22px; } .static-page .bl-prose h3 { font-size: 18px; } }
