/* ==========================================================================
   aiwa-blog.css — the public blog: /blog/, category pages and posts.

   Builds on aiwa-core.css (tokens, header, footer) and aiwa-content.css (the
   .content-page shell). Every colour is a token, so dark mode comes from
   aiwa-dark.css with the few overrides at the bottom of this file.

   Prefix: bp- (blog page). Article typography is set on .bp-body only, so the
   rendered post HTML from blog_render_blocks() needs no classes of its own
   beyond the block wrappers it already carries.
   ========================================================================== */

.blog-page { background: var(--aiwa-bg); }
.bp-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.bp-shell-narrow { width: min(820px, calc(100% - 40px)); }
.blog-main .content-kicker { margin: 0 0 10px; }

/* --- breadcrumbs --- */
.bp-crumbs { margin: 0 0 22px; font-size: 13.5px; color: var(--aiwa-muted); }
.bp-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0; padding: 0; list-style: none; }
.bp-crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--aiwa-line-strong); }
.bp-crumbs a { color: var(--aiwa-muted); text-decoration: none; }
.bp-crumbs a:hover { color: var(--aiwa-brand-dark); text-decoration: underline; }
.bp-crumbs [aria-current] { color: var(--aiwa-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; display: inline-block; vertical-align: bottom; }

/* --- hero (index + post) --- */
.bp-hero { position: relative; padding: 48px 0 0; background: var(--aiwa-card); border-bottom: 1px solid var(--aiwa-line); overflow: hidden; }
.bp-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, var(--aiwa-brand-soft), transparent 72%); opacity: 0.9; pointer-events: none; }
.bp-hero::after { content: ""; position: absolute; left: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, var(--aiwa-brand-soft), transparent 70%); opacity: 0.6; pointer-events: none; }
.bp-hero > * { position: relative; }
.bp-hero-index { padding-bottom: 34px; }
.bp-hero h1 { margin: 0 0 14px; font-family: var(--bp-font-heading, "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif); font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; color: var(--aiwa-ink); text-wrap: balance; }
.bp-hero-index h1 { max-width: 14ch; }
.bp-lead { margin: 0; max-width: 700px; color: var(--aiwa-muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; }
.bp-cat { display: inline-block; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--aiwa-brand-soft); color: var(--aiwa-brand-dark); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.bp-cat:hover { background: var(--aiwa-brand); color: #fff; }
.bp-cat-lg { margin-bottom: 16px; }
.bp-catnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bp-catnav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--aiwa-line); border-radius: 999px; background: var(--aiwa-card); color: var(--aiwa-text); font-size: 14px; font-weight: 650; text-decoration: none; transition: border-color 140ms, background-color 140ms, transform 140ms; }
.bp-catnav a span { padding: 1px 7px; border-radius: 999px; background: var(--aiwa-bg); color: var(--aiwa-muted); font-size: 12px; font-weight: 700; }
.bp-catnav a:hover { border-color: var(--aiwa-brand); transform: translateY(-1px); }
.bp-catnav a.is-on { border-color: var(--aiwa-brand); background: var(--aiwa-brand); color: #fff; }
.bp-catnav a.is-on span { background: rgba(255,255,255,0.22); color: #fff; }
/* cover hero: the featured image fills the top of the page, the title sits on it */
.bp-cover { position: relative; display: flex; align-items: flex-end; min-height: min(72vh, 640px); padding: 120px 0 44px; background: #17211b center / cover no-repeat; color: #fff; isolation: isolate; }
.bp-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 13, 0.92) 0%, rgba(10, 18, 13, 0.55) 45%, rgba(10, 18, 13, 0.15) 100%); z-index: -1; }
.bp-cover-in { width: min(900px, calc(100% - 40px)); }
.bp-cover .bp-crumbs, .bp-cover .bp-crumbs a, .bp-cover .bp-crumbs [aria-current] { color: rgba(255,255,255,0.8); } .bp-cover .bp-crumbs li + li::before { color: rgba(255,255,255,0.4); }
.bp-cover h1 { margin: 0 0 14px; font-family: var(--bp-font-heading, "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif); font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.bp-cover .bp-lead { color: rgba(255,255,255,0.86); } .bp-cover .bp-cat { background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(6px); } .bp-cover .bp-cat:hover { background: var(--aiwa-brand); }
.bp-cover .bp-byline-name, .bp-cover .bp-byline-name a { color: #fff; } .bp-cover .bp-byline-meta, .bp-cover .bp-byline-role { color: rgba(255,255,255,0.75); } .bp-cover .bp-dot { color: rgba(255,255,255,0.4); }
.bp-cover .bp-byline { padding-bottom: 0; margin-top: 22px; }
.bp-article.is-hero-cover .bp-layout { padding-top: 52px; }
/* reading progress */
.bp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.bp-progress span { display: block; width: 0; height: 100%; background: var(--aiwa-brand); transition: width 80ms linear; }

/* --- post byline + featured image --- */
.bp-byline { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; padding-bottom: 30px; }
.bp-byline-text { display: flex; flex-direction: column; gap: 2px; }
.bp-byline-name { color: var(--aiwa-ink); font-size: 15px; font-weight: 700; }
.bp-byline-name a { color: inherit; text-decoration: none; }
.bp-byline-name a:hover { text-decoration: underline; }
.bp-byline-meta { color: var(--aiwa-muted); font-size: 14px; }
.bp-dot { margin: 0 7px; color: var(--aiwa-line-strong); }
.bp-avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bp-avatar-initials { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--aiwa-brand), var(--aiwa-brand-dark)); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.bp-hero-media { width: min(100%, 1060px); margin: 0 auto -84px; position: relative; z-index: 1; }
.bp-hero-media img { display: block; width: 100%; height: auto; max-height: 560px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 22px; box-shadow: var(--aiwa-shadow-high); }
.bp-hero.has-media { padding-bottom: 0; }
.bp-hero.has-media + .bp-layout { padding-top: 124px; }

/* --- layout: body + sticky side --- */
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 48px 0 56px; }
.bp-layout.has-side { grid-template-columns: minmax(0, 1fr) 320px; }
.bp-layout > * { min-width: 0; }
.bp-layout:not(.has-side) .bp-body { margin-inline: auto; }
.bp-side { order: 2; }
.bp-side-in { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.bp-side-box, .bp-toc { padding: 18px 18px 16px; border: 1px solid var(--aiwa-line); border-radius: 16px; background: var(--aiwa-card); }
.bp-side-title, .bp-toc-title { margin: 0 0 12px; color: var(--aiwa-ink); font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bp-toc ol { margin: 0; padding: 0; list-style: none; }
.bp-toc li { margin: 0; }
.bp-toc li.lvl-3 { padding-left: 14px; }
.bp-toc a { display: block; padding: 6px 10px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; color: var(--aiwa-muted); font-size: 14px; line-height: 1.45; text-decoration: none; }
.bp-toc a:hover { color: var(--aiwa-ink); background: var(--aiwa-bg); }
.bp-toc a.is-on { border-left-color: var(--aiwa-brand); color: var(--aiwa-brand-dark); font-weight: 650; }
.bp-side-tool, .bp-side-post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 6px; margin: 0 -6px; border-radius: 10px; color: var(--aiwa-text); text-decoration: none; transition: background-color 120ms; }
.bp-side-tool:hover, .bp-side-post:hover { background: var(--aiwa-bg); }
.bp-side-tool > span:last-child, .bp-side-post > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-side-tool b, .bp-side-post b { color: var(--aiwa-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.bp-side-tool small, .bp-side-post small { color: var(--aiwa-muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-side-tool-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--aiwa-brand-soft); }
.bp-side-tool-ico img { width: 20px; height: 20px; }
.bp-side-post img, .bp-side-post-mono { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.bp-side-post-mono { display: grid; place-items: center; background: var(--aiwa-brand-soft); color: var(--aiwa-brand); font-family: "Poppins", sans-serif; font-weight: 800; }
.bp-side-more { display: inline-block; margin-top: 8px; color: var(--aiwa-brand-dark); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.bp-side-more:hover { text-decoration: underline; }
.bp-side-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-side-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--aiwa-line); border-radius: 999px; color: var(--aiwa-text); font-size: 13px; font-weight: 650; text-decoration: none; }
.bp-side-topics a span { color: var(--aiwa-muted); font-size: 11.5px; font-weight: 700; }
.bp-side-topics a:hover { border-color: var(--aiwa-brand); } .bp-side-topics a.is-on { background: var(--aiwa-brand); border-color: var(--aiwa-brand); color: #fff; } .bp-side-topics a.is-on span { color: rgba(255,255,255,0.8); }
.bp-side-rank { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.bp-side-rank li + li { border-top: 1px solid var(--aiwa-line); }
.bp-side-rank a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; color: var(--aiwa-text); text-decoration: none; }
.bp-side-rank a > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.bp-side-rank b { color: var(--aiwa-ink); font-size: 14px; font-weight: 700; line-height: 1.35; } .bp-side-rank a:hover b { color: var(--aiwa-brand-dark); }
.bp-side-rank small { color: var(--aiwa-muted); font-size: 12.5px; }
.bp-rank { font-family: "Poppins", sans-serif; font-size: 22px; font-weight: 800; line-height: 1; color: var(--aiwa-line-strong); }
.bp-side-cta { padding: 20px; border-radius: 16px; background: linear-gradient(135deg, var(--aiwa-brand), var(--aiwa-brand-dark)); color: #fff; }
.bp-side-cta p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.9); }
.bp-side-cta-title { font-family: "Poppins", sans-serif; font-size: 17px !important; font-weight: 800; letter-spacing: -0.01em; color: #fff !important; }
.bp-side-cta-btn { display: inline-block; margin-top: 6px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--aiwa-brand-dark); font-size: 14px; font-weight: 750; text-decoration: none; }
.bp-side-cta-btn:hover { background: var(--aiwa-brand-soft); }

/* --- article typography --- */
.bp-body { width: 100%; max-width: 740px; min-width: 0; color: var(--aiwa-text); font-family: var(--bp-font-body, inherit); font-size: var(--bp-font-size, 18px); line-height: 1.75; overflow-wrap: anywhere; }
.bp-layout > * { min-width: 0; }
.bp-layout:not(.has-toc) .bp-body { margin-inline: auto; }
.bp-body > * { margin: 0 0 1.35em; }
.bp-body p { margin: 0 0 1.35em; }
.bp-body a { color: var(--aiwa-brand-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bp-body a:hover { color: var(--aiwa-brand); }
.bp-body h2, .bp-body h3, .bp-body h4 { color: var(--aiwa-ink); font-family: var(--bp-font-heading, "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif); font-weight: 800; letter-spacing: -0.025em; line-height: 1.22; scroll-margin-top: 96px; }
.bp-body h2 { margin: 2.1em 0 0.7em; font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.bp-body h3 { margin: 1.8em 0 0.6em; font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
.bp-body h4 { margin: 1.5em 0 0.5em; font-size: 1.1rem; }
.bp-body h2:first-child, .bp-body h3:first-child { margin-top: 0; }
.bp-body ul, .bp-body ol { padding-left: 1.45em; }
.bp-body li { margin: 0 0 0.5em; }
.bp-body li > ul, .bp-body li > ol { margin: 0.5em 0 0; }
.bp-body strong, .bp-body b { color: var(--aiwa-ink); font-weight: 700; }
.bp-body mark { padding: 0 4px; border-radius: 4px; background: #fff3bf; color: var(--aiwa-ink); }
.bp-body code { padding: 2px 6px; border-radius: 6px; background: var(--aiwa-bg); border: 1px solid var(--aiwa-line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; color: var(--aiwa-ink); }
.bp-body img { max-width: 100%; height: auto; }

.bp-figure { margin: 2em 0; }
.bp-figure img { display: block; width: 100%; border-radius: 14px; }
.bp-figure.has-border img { border: 1px solid var(--aiwa-line); }
.bp-figure figcaption, .bp-embed figcaption { margin-top: 10px; color: var(--aiwa-muted); font-size: 14.5px; line-height: 1.55; text-align: center; }
.bp-figure.is-wide { width: min(100vw - 40px, 980px); margin-left: 50%; transform: translateX(-50%); }
.bp-quote { margin: 2em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--aiwa-brand); }
.bp-quote p { margin: 0; color: var(--aiwa-ink); font-size: 1.2em; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
.bp-quote footer { margin-top: 10px; color: var(--aiwa-muted); font-size: 15px; }
.bp-quote footer::before { content: "— "; }
.bp-checklist { list-style: none; padding-left: 0; }
.bp-checklist li { position: relative; padding-left: 32px; }
.bp-check { position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border: 2px solid var(--aiwa-line-strong); border-radius: 6px; }
.bp-checklist li.is-done .bp-check { border-color: var(--aiwa-brand); background: var(--aiwa-brand); }
.bp-checklist li.is-done .bp-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bp-tablewrap { margin: 2em 0; max-width: 100%; overflow-x: auto; contain: inline-size; border: 1px solid var(--aiwa-line); border-radius: 12px; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.bp-table.is-many { min-width: 520px; } /* four or more columns scroll sideways on phones; narrower tables wrap */
.bp-table th, .bp-table td { padding: 12px 14px; border-bottom: 1px solid var(--aiwa-line); text-align: left; vertical-align: top; }
.bp-table th { background: var(--aiwa-bg); color: var(--aiwa-ink); font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.bp-table tr:last-child td { border-bottom: 0; }
.bp-code { margin: 2em 0; padding: 18px 20px; overflow-x: auto; contain: inline-size; border-radius: 12px; background: #17211b; color: #e9efeb; font-size: 14.5px; line-height: 1.6; }
.bp-code code { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; }
.bp-delimiter { margin: 2.6em auto; width: 72px; border: 0; border-top: 3px dotted var(--aiwa-line-strong); }
.bp-embed { margin: 2em 0; }
.bp-embed-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.bp-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.bp-callout { margin: 2em 0; padding: 18px 20px 18px 22px; border-radius: 12px; border-left: 4px solid var(--aiwa-brand); background: var(--aiwa-brand-soft); font-size: 0.95em; }
.bp-callout p { margin: 0; }
.bp-callout-title { margin: 0 0 6px !important; color: var(--aiwa-ink); font-weight: 800; }
.bp-callout.is-warning { border-left-color: var(--aiwa-warning); background: #fff4e5; }
.bp-callout.is-note { border-left-color: var(--aiwa-line-strong); background: var(--aiwa-bg); }
.bp-callout.is-tip { border-left-color: #2563eb; background: #eaf1fe; }
.bp-takeaways { margin: 2em 0; padding: 22px 24px; border: 1px solid var(--aiwa-line); border-radius: 14px; background: var(--aiwa-card); box-shadow: var(--aiwa-shadow-low); }
.bp-takeaways-title { margin: 0 0 12px; color: var(--aiwa-ink); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bp-takeaways ul { margin: 0; padding: 0; list-style: none; }
.bp-takeaways li { position: relative; margin: 0 0 8px; padding-left: 28px; font-size: 0.95em; }
.bp-takeaways li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border: solid var(--aiwa-brand); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.bp-faq { margin: 2em 0; border-top: 1px solid var(--aiwa-line); }
.bp-faq-item { border-bottom: 1px solid var(--aiwa-line); }
.bp-faq-item summary { position: relative; padding: 16px 40px 16px 0; color: var(--aiwa-ink); font-weight: 700; cursor: pointer; list-style: none; }
.bp-faq-item summary::-webkit-details-marker { display: none; }
.bp-faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--aiwa-brand); font-size: 22px; font-weight: 500; }
.bp-faq-item[open] summary::after { content: "–"; }
.bp-faq-a { padding: 0 0 18px; font-size: 0.95em; }
.bp-faq-a p { margin: 0; }
.bp-toolcta { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 2.2em 0; padding: 22px 24px; border-radius: 16px; background: var(--aiwa-ink); color: #fff; }
.bp-toolcta-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.1); }
.bp-toolcta-icon img { width: 26px; height: 26px; filter: invert(1); }
.bp-toolcta-body p { margin: 0; color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.5; }
.bp-toolcta-kicker { color: #4cc47c !important; font-size: 12px !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bp-toolcta-title { margin: 3px 0 4px !important; color: #fff !important; font-size: 18px !important; font-weight: 800; letter-spacing: -0.015em; }
.bp-body .bp-toolcta-btn, .bp-toolcta-btn { padding: 12px 20px; border-radius: 999px; background: var(--aiwa-brand); color: #fff; font-size: 15px; font-weight: 750; text-decoration: none !important; white-space: nowrap; }
.bp-body .bp-toolcta-btn:hover, .bp-toolcta-btn:hover { background: #2fae63; color: #fff; }

/* --- tags, share, author --- */
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2.6em 0 1.2em; }
.bp-tag { padding: 6px 12px; border-radius: 999px; background: var(--aiwa-bg); border: 1px solid var(--aiwa-line); color: var(--aiwa-muted); font-size: 13.5px; font-weight: 650; }
.bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 2.2em; font-size: 14px; }
.bp-share > span { color: var(--aiwa-muted); font-weight: 700; margin-right: 4px; }
.bp-share a, .bp-copylink { padding: 8px 14px; border: 1px solid var(--aiwa-line); border-radius: 999px; background: var(--aiwa-card); color: var(--aiwa-ink); font: inherit; font-size: 14px; font-weight: 650; text-decoration: none !important; cursor: pointer; transition: border-color 120ms, transform 120ms; }
.bp-share a:hover, .bp-copylink:hover { border-color: var(--aiwa-brand); color: var(--aiwa-brand-dark); transform: translateY(-1px); }
.bp-copylink.is-done { border-color: var(--aiwa-brand); background: var(--aiwa-brand-soft); color: var(--aiwa-brand-dark); }
.bp-author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; margin: 0; padding: 26px; border: 1px solid var(--aiwa-line); border-radius: 18px; background: linear-gradient(180deg, var(--aiwa-card), var(--aiwa-bg)); font-size: 15.5px; }
.bp-author .bp-avatar { width: 64px; height: 64px; font-size: 20px; }
.bp-author p { margin: 0; }
.bp-author-kicker { color: var(--aiwa-muted); font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bp-author-name { margin: 2px 0 6px !important; color: var(--aiwa-ink); font-family: "Poppins", sans-serif; font-size: 19px; font-weight: 800; }
.bp-author-bio { color: var(--aiwa-muted); line-height: 1.6; }
.bp-author-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; }

/* --- index: featured + grid + pager --- */
.bp-index { padding: 40px 0 56px; }
.bp-index-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.bp-index-side .bp-side-in { top: 84px; }
.bp-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--aiwa-line); border-radius: 20px; background: var(--aiwa-card); overflow: hidden; transition: transform 180ms var(--aiwa-ease), box-shadow 180ms var(--aiwa-ease), border-color 180ms; }
.bp-card:hover { transform: translateY(-3px); border-color: var(--aiwa-line-strong); box-shadow: var(--aiwa-shadow-low); }
.bp-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--aiwa-brand-soft); overflow: hidden; }
.bp-card-media > a:first-child { display: block; height: 100%; }
.bp-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--aiwa-ease); }
.bp-card:hover .bp-card-media img { transform: scale(1.04); }
.bp-card-media.is-empty > a:first-child { display: grid; place-items: center; background: linear-gradient(135deg, var(--aiwa-brand-soft), #dff0e5); }
.bp-card-mono { font-family: "Poppins", sans-serif; font-size: 64px; font-weight: 800; color: var(--aiwa-brand); opacity: 0.55; }
.bp-cat.is-over { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,0.92); color: var(--aiwa-brand-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.12); backdrop-filter: blur(4px); }
.bp-cat.is-over:hover { background: var(--aiwa-brand); color: #fff; }
.bp-featured-tag { position: absolute; right: 14px; top: 14px; padding: 5px 10px; border-radius: 999px; background: var(--aiwa-ink); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bp-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.bp-card-title { margin: 0; font-family: var(--bp-font-heading, "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif); font-size: 1.25rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.02em; }
.bp-card-title a { color: var(--aiwa-ink); text-decoration: none; }
.bp-card-title a::after { content: ""; position: absolute; inset: 0; }
.bp-card-title a:hover { color: var(--aiwa-brand-dark); }
.bp-card .bp-cat.is-over, .bp-card .bp-card-author a { position: relative; z-index: 1; } .bp-card .bp-cat.is-over { position: absolute; }
.bp-card-excerpt { margin: 0; color: var(--aiwa-muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--aiwa-line); color: var(--aiwa-muted); font-size: 13.5px; }
.bp-card-meta .bp-avatar { width: 28px; height: 28px; font-size: 11px; margin-right: 4px; }
.bp-card-author { color: var(--aiwa-text); font-weight: 650; }
.bp-card-when { flex-basis: 100%; padding-left: 36px; white-space: nowrap; }
.bp-card-when > .bp-dot:first-child { display: none; }
.bp-card.is-large .bp-card-when { flex-basis: auto; padding-left: 0; }
.bp-card.is-large .bp-card-when > .bp-dot:first-child { display: inline; }
.bp-card.is-large { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-radius: 24px; }
.bp-card.is-large .bp-card-media { aspect-ratio: auto; min-height: 360px; height: 100%; }
.bp-card.is-large .bp-card-body { padding: 38px 40px; justify-content: center; gap: 14px; }
.bp-card.is-large .bp-card-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; letter-spacing: -0.03em; }
.bp-card.is-large .bp-card-excerpt { -webkit-line-clamp: 4; font-size: 16.5px; }
.bp-card.is-large .bp-card-meta { border-top: 0; padding-top: 4px; }
.bp-featured { margin-bottom: 36px; }
.bp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--aiwa-line-strong); border-radius: 18px; color: var(--aiwa-muted); }
.bp-empty h2 { margin: 0 0 8px; color: var(--aiwa-ink); }
.bp-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.bp-pager-btn { padding: 10px 18px; border: 1px solid var(--aiwa-line); border-radius: 999px; background: var(--aiwa-card); color: var(--aiwa-ink); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.bp-pager-btn:hover { border-color: var(--aiwa-brand); color: var(--aiwa-brand-dark); }
.bp-pager-btn.is-off { opacity: 0.45; }
.bp-pager-now { color: var(--aiwa-muted); font-size: 14px; }

/* --- related + tools band --- */
.bp-related { padding: 8px 0 56px; }
.bp-related-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.bp-related-head h2 { margin: 0; font-family: var(--bp-font-heading, "Poppins", sans-serif); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.bp-related-head a { color: var(--aiwa-brand-dark); font-weight: 700; text-decoration: none; }
.bp-toolsband { padding: 0 0 64px; }
.bp-toolsband-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px 44px; border-radius: 24px; background: var(--aiwa-ink); color: #fff; overflow: hidden; }
.bp-toolsband-inner::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47,174,99,0.35), transparent 70%); pointer-events: none; }
.bp-toolsband-inner > * { position: relative; }
.bp-toolsband-inner .content-kicker { color: #4cc47c; }
.bp-toolsband-inner h2 { margin: 0 0 10px; font-family: "Poppins", sans-serif; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.bp-toolsband-inner p { margin: 0; color: rgba(255,255,255,0.8); line-height: 1.6; }
.bp-toolsband-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bp-toolsband-links a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; background: rgba(255,255,255,0.06); color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background-color 140ms, border-color 140ms, transform 140ms; }
.bp-toolsband-links a:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.bp-toolsband-links img { width: 18px; height: 18px; filter: invert(1); }

.bp-previewbar { position: sticky; top: 0; z-index: 50; padding: 10px 16px; background: #9a4d0c; color: #fff; font-size: 14px; font-weight: 700; text-align: center; }

/* --- responsive --- */
@media (max-width: 1100px) {
  .bp-layout.has-side, .bp-index-layout { grid-template-columns: minmax(0, 1fr); }
  .bp-side-in { position: static; max-height: none; overflow: visible; }
  .bp-side { order: 2; } .bp-index-side { display: grid; grid-template-columns: 1fr; }
  .bp-side-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .bp-side-cta { grid-column: 1 / -1; }
  .bp-body { margin-inline: auto; }
}
@media (max-width: 900px) {
  .bp-grid, .bp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-card.is-large { grid-template-columns: 1fr; }
  .bp-card.is-large .bp-card-media { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .bp-card.is-large .bp-card-body { padding: 24px; }
  .bp-toolsband-inner { grid-template-columns: 1fr; padding: 28px; }
  .bp-toolcta { grid-template-columns: 44px minmax(0, 1fr); }
  .bp-toolcta-btn { grid-column: 1 / -1; text-align: center; }
  .bp-cover { min-height: 0; padding: 90px 0 30px; }
}
@media (max-width: 640px) {
  .bp-shell, .bp-shell-narrow, .bp-cover-in { width: calc(100% - 32px); }
  .bp-hero { padding-top: 26px; }
  .bp-grid, .bp-grid-2 { grid-template-columns: 1fr; }
  .bp-side-in { grid-template-columns: 1fr; }
  .bp-body { font-size: calc(var(--bp-font-size, 18px) - 1px); }
  .bp-figure.is-wide { width: 100%; margin-left: 0; transform: none; }
  .bp-author { grid-template-columns: 1fr; }
  .bp-toolsband-links { grid-template-columns: 1fr; }
  .bp-hero-media { margin-bottom: -40px; }
  .bp-hero-media img { border-radius: 12px; }
  .bp-hero.has-media + .bp-layout { padding-top: 70px; }
  .bp-crumbs [aria-current] { max-width: 50vw; }
  .bp-hero::before, .bp-hero::after { display: none; }
}

/* --- dark mode: the few literals above --- */
html[data-theme="dark"] .bp-body mark { background: #5c4a00; color: #fff; }
html[data-theme="dark"] .bp-callout.is-warning { background: #3a2a10; }
html[data-theme="dark"] .bp-callout.is-tip { background: #172238; }
html[data-theme="dark"] .bp-card-media.is-empty > a:first-child { background: linear-gradient(135deg, #17301f, #1b241f); }
html[data-theme="dark"] .bp-code { background: #0b100d; border: 1px solid var(--aiwa-line); }
html[data-theme="dark"] .bp-toolcta, html[data-theme="dark"] .bp-toolsband-inner { background: #0b100d; border: 1px solid var(--aiwa-line); }
html[data-theme="dark"] .bp-catnav a.is-on, html[data-theme="dark"] .bp-cat:hover, html[data-theme="dark"] .bp-side-topics a.is-on { color: #08130c; }
html[data-theme="dark"] .bp-catnav a.is-on span { color: #08130c; background: rgba(8,19,12,0.18); }
html[data-theme="dark"] .bp-side-cta { background: linear-gradient(135deg, #12613a, #0b3d20); }
html[data-theme="dark"] .bp-toolcta-btn { color: #08130c; }
html[data-theme="dark"] .bp-previewbar { background: #6b3300; }
html[data-theme="dark"] .bp-cat.is-over { background: rgba(22,29,25,0.9); color: #4cc47c; }
html[data-theme="dark"] .bp-featured-tag { background: #4cc47c; color: #08130c; }
@media (prefers-reduced-motion: reduce) { .bp-card, .bp-card-media img, .bp-progress span { transition: none !important; } }

/* --- v2: author pages, category intros, byline role, typography from Settings --- */
.bp-lead { font-family: var(--bp-font-body, inherit); }
.bp-card-author a { color: inherit; text-decoration: none; }
.bp-card-author a:hover { text-decoration: underline; }
.bp-byline-role { color: var(--aiwa-muted); font-weight: 500; }
.bp-intro { max-width: 760px; margin: -4px 0 18px; color: var(--aiwa-text); font-size: 16.5px; line-height: 1.65; }
.bp-author-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.bp-author-links .bp-author-link { margin-top: 6px; }
.bp-authorhero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 8px; }
.bp-authorhero .bp-avatar { width: 72px; height: 72px; font-size: 24px; }
.bp-authorhero h1 { margin-bottom: 6px; }
.bp-authorhero-role { margin: 0 0 10px; color: var(--aiwa-muted); font-weight: 600; }
@media (max-width: 640px) { .bp-authorhero { grid-template-columns: 1fr; gap: 12px; } }

/* --- v3 layout blocks + text tunes --- */
.bp-body .bp-align-center { text-align: center; } .bp-body .bp-align-right { text-align: right; }
.bp-body p.bp-size-small { font-size: 0.88em; } .bp-body p.bp-size-large { font-size: 1.18em; line-height: 1.6; }
.bp-body p.bp-dropcap::first-letter { float: left; margin: 0.08em 0.12em 0 0; font-family: var(--bp-font-heading, "Poppins", sans-serif); font-size: 3.4em; font-weight: 800; line-height: 0.85; color: var(--aiwa-brand); }
.bp-columns { display: grid; gap: 22px 28px; margin: 2em 0; } .bp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bp-col { min-width: 0; } .bp-col > p { margin: 0 0 0.9em; font-size: 0.96em; } .bp-col > p:last-child { margin-bottom: 0; }
.bp-mediatext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 26px; align-items: center; margin: 2em 0; }
.bp-mediatext.is-right .bp-mediatext-media { order: 2; } .bp-mediatext-media { margin: 0; } .bp-mediatext-media img { display: block; width: 100%; height: auto; border-radius: 12px; }
.bp-mediatext-body h3 { margin: 0 0 0.5em; } .bp-mediatext-body p { margin: 0 0 0.9em; } .bp-mediatext-body p:last-child { margin-bottom: 0; }
.bp-btnrow { margin: 1.6em 0; } .bp-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 11px 24px; border-radius: 999px; font-weight: 800; text-decoration: none !important; letter-spacing: -0.01em; transition: transform 120ms, background-color 120ms; }
.bp-btn:hover { transform: translateY(-1px); } .bp-btn.is-primary { background: var(--aiwa-brand); color: #fff !important; } .bp-btn.is-primary:hover { background: var(--aiwa-brand-dark); } .bp-btn.is-outline { border: 2px solid var(--aiwa-brand); color: var(--aiwa-brand-dark) !important; } .bp-btn.is-link { padding: 0; min-height: 0; color: var(--aiwa-brand-dark) !important; text-decoration: underline !important; text-underline-offset: 4px; }
.bp-spacer.is-s { height: 16px; } .bp-spacer.is-m { height: 40px; } .bp-spacer.is-l { height: 80px; }
.bp-banner { margin: 2.2em 0; padding: 30px 32px; border-radius: 18px; }
.bp-banner.is-brand { background: var(--aiwa-brand); color: #fff; } .bp-banner.is-dark { background: #17211b; color: #fff; } .bp-banner.is-soft { background: var(--aiwa-card); border: 1px solid var(--aiwa-line); color: var(--aiwa-text); }
.bp-banner-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.bp-banner-title { margin: 0 0 10px; font-family: var(--bp-font-heading, "Poppins", sans-serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: inherit; }
.bp-banner-text { margin: 0; font-size: 1em; line-height: 1.6; opacity: 0.92; } .bp-banner.is-soft .bp-banner-title { color: var(--aiwa-ink); }
.bp-banner-btn { display: inline-flex; margin-top: 18px; padding: 11px 22px; border-radius: 999px; background: #fff; color: #0b3d20 !important; font-weight: 800; text-decoration: none !important; } .bp-banner.is-soft .bp-banner-btn { background: var(--aiwa-brand); color: #fff !important; }
html[data-theme="dark"] .bp-banner.is-dark { background: #0b100d; border: 1px solid var(--aiwa-line); }
@media (max-width: 720px) { .bp-cols-3, .bp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bp-columns, .bp-mediatext { grid-template-columns: 1fr; } .bp-mediatext.is-right .bp-mediatext-media { order: 0; } .bp-banner { padding: 22px 20px; } }

/* --- v4: block styling from the Studio editor (settings bubble + selection bubble) --- */
.bp-body .bp-align-left { text-align: left; } .bp-body span[style] b, .bp-body span[style] strong { color: inherit; } .bp-body .bp-align-justify { text-align: justify; }
.bp-body p.bp-size-lead { font-size: 1.28em; line-height: 1.55; }
.bp-body .bp-wide { width: min(100vw - 40px, 980px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.bp-body .bp-full { width: min(100vw - 40px, 1180px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.bp-body .bp-shadow-low { box-shadow: var(--aiwa-shadow-low); } .bp-body .bp-shadow-high { box-shadow: var(--aiwa-shadow-high); }
.bp-body .bp-figure.bp-shadow-low, .bp-body .bp-figure.bp-shadow-high { box-shadow: none; } .bp-figure.bp-shadow-low img { box-shadow: var(--aiwa-shadow-low); } .bp-figure.bp-shadow-high img { box-shadow: var(--aiwa-shadow-high); }
.bp-figure img { border-radius: var(--bp-img-radius, 14px); }
.bp-figure.is-center { margin-inline: auto; } .bp-figure.is-left { float: left; max-width: 50%; margin: 0.35em 2em 1em 0; } .bp-figure.is-right { float: right; max-width: 50%; margin: 0.35em 0 1em 2em; }
.bp-body::after { content: ""; display: block; clear: both; } .bp-body h2, .bp-body h3 { clear: both; }
.bp-figure a { display: block; } .bp-figure.has-border img { border: 1px solid var(--aiwa-line); }
.bp-cols-2.is-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .bp-cols-2.is-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .bp-cols-2.is-1-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } .bp-cols-2.is-3-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.bp-cols-3.is-1-2-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); } .bp-cols-3.is-2-1-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } .bp-cols-3.is-1-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
.bp-columns.is-gap-s { gap: 12px 16px; } .bp-columns.is-gap-l { gap: 32px 44px; } .bp-columns.is-vmiddle { align-items: center; } .bp-columns.is-vbottom { align-items: end; }
.bp-mediatext { grid-template-columns: var(--bp-mt-ratio, 45%) minmax(0, 1fr); } .bp-mediatext.is-right { grid-template-columns: minmax(0, 1fr) var(--bp-mt-ratio, 45%); }
.bp-mediatext.is-vtop { align-items: start; } .bp-mediatext.is-vbottom { align-items: end; } .bp-mediatext.is-square img { border-radius: 0; } .bp-mediatext-media a { display: block; }
.bp-btn.is-s { min-height: 38px; padding: 7px 18px; font-size: 0.9em; } .bp-btn.is-l { min-height: 54px; padding: 14px 32px; font-size: 1.08em; }
.bp-btn.is-rounded { border-radius: 10px; } .bp-btn.is-square { border-radius: 0; } .bp-btn.is-full { display: flex; width: 100%; justify-content: center; }
.bp-btn.is-dark { background: var(--aiwa-ink); color: #fff !important; } .bp-btn.is-dark:hover { background: #000; } .bp-btn.is-soft { background: var(--aiwa-brand-soft); color: var(--aiwa-brand-dark) !important; } .bp-btn.is-soft:hover { background: var(--aiwa-brand); color: #fff !important; }
.bp-spacer.is-xl { height: 120px; }
.bp-banner { position: relative; overflow: hidden; } .bp-banner-inner { position: relative; z-index: 1; } .bp-banner.is-center { text-align: center; } .bp-banner.is-s { padding: 20px 22px; } .bp-banner.is-l { padding: 52px 44px; }
.bp-banner.has-image { background-size: cover; background-position: center; color: #fff; } .bp-banner.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--bp-overlay, 0.5)); } .bp-banner.has-image .bp-banner-title { color: inherit; }
.bp-banner.is-custom { background: var(--aiwa-card); color: var(--aiwa-text); border: 1px solid var(--aiwa-line); } .bp-banner.is-custom .bp-banner-title { color: inherit; } .bp-banner.is-custom .bp-banner-btn { background: var(--aiwa-brand); color: #fff !important; }
.bp-banner.is-brand .bp-banner-btn, .bp-banner.is-dark .bp-banner-btn { background: #fff; color: #0b3d20 !important; }
.bp-quote.is-large p { font-size: 1.5em; line-height: 1.35; } .bp-quote.is-centered { border-left: 0; padding: 8px 20px; text-align: center; } .bp-quote.is-centered::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 3.2em; line-height: 0.6; color: var(--aiwa-brand); margin-bottom: 0.25em; }
.bp-quote.is-centered footer::before { content: ""; } .bp-quote.is-boxed { padding: 22px 26px; border: 1px solid var(--aiwa-line); border-left: 4px solid var(--aiwa-brand); border-radius: 12px; background: var(--aiwa-card); }
.bp-body ul.is-circle { list-style: circle; } .bp-body ul.is-square { list-style: square; } .bp-body ul.is-none, .bp-body ol.is-none { list-style: none; padding-left: 0; }
.bp-body ul.is-check { list-style: none; padding-left: 0; } .bp-body ul.is-check > li { position: relative; padding-left: 30px; } .bp-body ul.is-check > li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 12px; height: 7px; border: solid var(--aiwa-brand); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.bp-table.is-striped tbody tr:nth-child(even) td { background: var(--aiwa-bg); } .bp-table.is-compact th, .bp-table.is-compact td { padding: 7px 10px; font-size: 14.5px; }
.bp-delimiter.is-line { width: 100%; border-top: 1px solid var(--aiwa-line); } .bp-delimiter.is-wide { width: 100%; } .bp-delimiter.is-asterisks { width: auto; border: 0; text-align: center; color: var(--aiwa-muted); } .bp-delimiter.is-asterisks::before { content: "\2217\2003\2217\2003\2217"; font-size: 1.2em; }
.bp-embed.is-4-3 .bp-embed-frame { aspect-ratio: 4 / 3; } .bp-embed.is-1-1 .bp-embed-frame { aspect-ratio: 1; } .bp-embed.is-9-16 { max-width: 420px; margin-inline: auto; } .bp-embed.is-9-16 .bp-embed-frame { aspect-ratio: 9 / 16; }
.bp-callout.is-success { border-left-color: var(--aiwa-brand); background: var(--aiwa-brand-soft); } .bp-callout.is-danger { border-left-color: var(--aiwa-danger); background: #fdecea; }
.bp-callout.has-icon { position: relative; padding-left: 58px; } .bp-callout.has-icon::before { position: absolute; left: 18px; top: 17px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--aiwa-brand); color: #fff; font-size: 14px; font-weight: 800; content: "i"; }
.bp-callout.is-tip.has-icon::before { content: "\2726"; background: #2563eb; } .bp-callout.is-warning.has-icon::before { content: "!"; background: var(--aiwa-warning); } .bp-callout.is-note.has-icon::before { content: "\270E"; background: var(--aiwa-line-strong); } .bp-callout.is-success.has-icon::before { content: "\2713"; } .bp-callout.is-danger.has-icon::before { content: "\00D7"; background: var(--aiwa-danger); }
html[data-theme="dark"] .bp-callout.is-danger { background: #3a1a17; } html[data-theme="dark"] .bp-btn.is-dark { background: #0b100d; border: 1px solid var(--aiwa-line); }
@media (max-width: 640px) { .bp-body .bp-wide, .bp-body .bp-full { width: 100%; margin-left: 0; transform: none; } .bp-figure.is-left, .bp-figure.is-right { float: none; max-width: 100%; margin: 2em 0; } .bp-banner.is-l { padding: 30px 22px; } .bp-mediatext, .bp-mediatext.is-right { grid-template-columns: 1fr; } }

/* --- v5.1: design settings — image styles, home hero image, card shapes --- */
.bp-hero-full { width: 100%; } .bp-hero.is-img-banner .bp-hero-media { width: 100%; margin: 0; } .bp-hero.is-img-banner .bp-hero-media img { border-radius: 0; max-height: 640px; box-shadow: none; aspect-ratio: 21 / 9; }
.bp-hero.is-img-banner { padding-bottom: 0; } .bp-hero.has-media.is-img-banner + .bp-layout { padding-top: 48px; }
.bp-hero.is-img-contained .bp-hero-media { margin-bottom: 0; padding-bottom: 36px; } .bp-hero.is-img-contained .bp-hero-media img { max-height: 480px; box-shadow: var(--aiwa-shadow-low); } .bp-hero.has-media.is-img-contained + .bp-layout { padding-top: 48px; }
.bp-hero-index.has-bg { background-size: cover; background-position: center; color: #fff; }
.bp-hero-index.has-bg::before { inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(to right, rgba(10, 18, 13, 0.9) 20%, rgba(10, 18, 13, 0.55)); opacity: 1; } .bp-hero-index.has-bg::after { display: none; }
.bp-hero-index.has-bg h1 { color: #fff; } .bp-hero-index.has-bg .bp-lead, .bp-hero-index.has-bg .bp-intro { color: rgba(255,255,255,0.86); } .bp-hero-index.has-bg .content-kicker { color: #4cc47c; }
.bp-hero-index.has-bg .bp-crumbs, .bp-hero-index.has-bg .bp-crumbs a, .bp-hero-index.has-bg .bp-crumbs [aria-current] { color: rgba(255,255,255,0.8); }
.bp-hero-index.has-bg .bp-catnav a { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: #fff; backdrop-filter: blur(6px); } .bp-hero-index.has-bg .bp-catnav a span { background: rgba(255,255,255,0.16); color: #fff; } .bp-hero-index.has-bg .bp-catnav a.is-on { background: var(--aiwa-brand); border-color: var(--aiwa-brand); }
.bp-card.is-ar-4-3:not(.is-large) .bp-card-media { aspect-ratio: 4 / 3; } .bp-card.is-ar-1-1:not(.is-large) .bp-card-media { aspect-ratio: 1; }
.bp-card.is-ar-none:not(.is-large) .bp-card-body { padding-top: 22px; } .bp-card.is-ar-none .bp-cat { align-self: flex-start; }
@media (max-width: 640px) { .bp-hero.is-img-banner .bp-hero-media img { aspect-ratio: 16 / 9; } }
