/* BC Manga — scoped to .bcm (loaded only on plugin pages / shortcode). */
.bcm {
	--bcm-ink: #0b1220;
	--bcm-ink-2: #111827;
	--bcm-ink-3: #1f2937;
	--bcm-line: #1f2a37;
	--bcm-paper: #0d1522;
	--bcm-text: #e5e7eb;
	--bcm-muted: #9ca3af;
	--bcm-green: #22c55e;
	--bcm-green-deep: #4ade80;
	--bcm-green-ink: #052e16;
	--bcm-danger: #b91c1c;
	--bcm-radius-s: 6px;
	--bcm-radius-l: 14px;
	--bcm-shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px -12px rgba(11, 18, 32, .25);
	--bcm-ease: cubic-bezier(.16, 1, .3, 1);
	color: var(--bcm-text);
	font-size: 15px;
	line-height: 1.55;
	padding-bottom: 48px;
	overflow-x: clip;
}
.bcm *, .bcm *::before, .bcm *::after { box-sizing: border-box; }
.bcm a { color: inherit; }
.bcm p, .bcm li, .bcm dd, .bcm .bcm-desc { color: var(--bcm-text); font-style: normal; }
.bcm h1, .bcm h2, .bcm h3 { color: #fff; }
.bcm img { max-width: 100%; height: auto; }
.bcm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.bcm-wrap--narrow { max-width: 920px; }
.bcm .screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Typography */
.bcm-h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.15; margin: 8px 0 14px; letter-spacing: -.01em; font-weight: 800; font-style: normal; }
.bcm-h2 { position: relative; font-size: 1.15rem; margin: 0; padding-left: 14px; font-weight: 800; font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.bcm-h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; background: var(--bcm-green); transform: skewX(-12deg); }
.bcm-eyebrow { display: inline-block; margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bcm-green); }
.bcm-note, .bcm-count, .bcm-meta { color: var(--bcm-muted); font-size: .9rem; }
.bcm-empty { padding: 28px; text-align: center; color: var(--bcm-muted); background: var(--bcm-paper); border: 1px dashed var(--bcm-line); border-radius: var(--bcm-radius-l); }
.bcm-crumbs { font-size: .85rem; color: var(--bcm-muted); padding-top: 18px; overflow-wrap: anywhere; }
.bcm-crumbs a { text-decoration: none; color: var(--bcm-green-deep); }
.bcm-crumbs a:hover { text-decoration: underline; }

/* Buttons */
.bcm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 2px solid var(--bcm-green); border-radius: var(--bcm-radius-s); background: var(--bcm-green); color: var(--bcm-green-ink) !important; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1; margin: 0; transition: transform .2s var(--bcm-ease), background-color .2s, box-shadow .2s; text-transform: none; font-size: .95rem; }
.bcm-btn:hover { background: #4ade80; box-shadow: 0 6px 18px -8px rgba(34, 197, 94, .8); transform: translateY(-1px); }
.bcm-btn:active { transform: translateY(1px); box-shadow: none; }
.bcm-btn:focus-visible, .bcm a:focus-visible, .bcm select:focus-visible, .bcm input:focus-visible, .bcm button:focus-visible { outline: 3px solid var(--bcm-green); outline-offset: 2px; }
.bcm-btn--ghost { background: transparent; color: var(--bcm-text) !important; border-color: #374151; }
.bcm-btn--ghost:hover { background: var(--bcm-ink-3); color: #fff !important; border-color: var(--bcm-green); box-shadow: none; }
.bcm-btn--accent { background: transparent; border-color: var(--bcm-green); color: var(--bcm-green) !important; }
.bcm-btn.is-disabled { opacity: .35; pointer-events: none; }

/* Hero */
.bcm-hero { position: relative; color: #e5e7eb; background: var(--bcm-ink); padding: 40px 0 34px; margin-bottom: 30px; isolation: isolate; overflow: hidden; }
.bcm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(600px 240px at 85% 0%, rgba(34, 197, 94, .28), transparent 70%),
	repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px); }
.bcm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--bcm-green), var(--bcm-green-deep) 60%, transparent); }
.bcm-hero__title { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.9rem); line-height: 1.1; margin: 0 0 8px; font-weight: 900; font-style: normal; max-width: 18ch; }
.bcm-hero__lead { margin: 0 0 18px; color: #9ca3af; max-width: 52ch; }

/* Search */
.bcm-search { display: flex; max-width: 560px; margin: 0 0 18px; background: #fff; border-radius: var(--bcm-radius-s); padding: 4px; box-shadow: var(--bcm-shadow); }
.bcm-search input { flex: 1; min-width: 0; border: 0 !important; margin: 0; height: 44px; padding: 0 12px; font-size: 1rem; box-shadow: none !important; background: #fff !important; color: #111827 !important; }
.bcm-search button { border: 0; margin: 0; min-height: 44px; padding: 0 20px; border-radius: 4px; background: var(--bcm-ink-2); color: #fff; font-weight: 700; cursor: pointer; }
.bcm-search button:hover { background: var(--bcm-green-deep); }

/* Chips */
.bcm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.bcm-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .82rem; text-decoration: none; color: #d1d5db; border: 1px solid rgba(255, 255, 255, .18); transition: border-color .2s, color .2s; }
.bcm-chips a:hover { color: #fff; border-color: var(--bcm-green); }
.bcm-chips--light a { color: #d1d5db; border-color: #374151; background: transparent; }
.bcm-chips--light a:hover { color: var(--bcm-green-deep); border-color: var(--bcm-green); }

/* Sections */
.bcm-section { margin: 0 0 36px; }
.bcm-section__head .bcm-h2 { flex: 1 1 auto; width: auto; }
.bcm-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bcm-section > .bcm-h2 { margin-bottom: 16px; }
.bcm-more { font-weight: 700; text-decoration: none; color: var(--bcm-green-deep) !important; }

/* Grid + cards */
.bcm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 22px 16px; }
.bcm-card { position: relative; min-width: 0; }
.bcm-card__cover { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--bcm-radius-s); background: var(--bcm-ink-2); box-shadow: var(--bcm-shadow); }
.bcm-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--bcm-ease); }
.bcm-card:hover .bcm-card__cover img { transform: scale(1.05); }
.bcm-card__nocover { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3rem; font-weight: 900; color: var(--bcm-green); background: var(--bcm-ink-2); }
.bcm-card__type { position: absolute; top: 8px; left: 8px; padding: 2px 8px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; background: rgba(11, 18, 32, .82); color: var(--bcm-green); }
.bcm-card__body { padding: 9px 2px 0; }
.bcm-card__title { margin: 0 0 6px; font-size: .95rem; line-height: 1.3; font-weight: 700; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bcm-card__title a { text-decoration: none; }
.bcm-card__title a:hover { color: var(--bcm-green-deep); }
.bcm-card__latest { display: inline-block; font-size: .8rem; font-weight: 700; text-decoration: none; padding: 3px 8px; border-radius: 4px; background: rgba(34, 197, 94, .14); color: #86efac !important; border: 1px solid rgba(34, 197, 94, .35); }
.bcm-card__latest:hover { background: var(--bcm-green); color: var(--bcm-green-ink) !important; }
.bcm-card__time { display: block; margin-top: 4px; font-size: .75rem; color: var(--bcm-muted); }

/* Featured (asymmetric) */
.bcm-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bcm-feature { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; border-radius: var(--bcm-radius-l); background: var(--bcm-ink-2); color: #d1d5db; box-shadow: var(--bcm-shadow); transition: transform .3s var(--bcm-ease); }
.bcm-feature:hover { transform: translateY(-3px); }
.bcm-feature:first-child { grid-column: 1 / -1; grid-template-columns: 180px 1fr; background: linear-gradient(120deg, var(--bcm-ink) 0%, var(--bcm-ink-3) 100%); }
.bcm-feature__cover { display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--bcm-radius-s); background: var(--bcm-ink-3); }
.bcm-feature__cover img { width: 100%; height: 100%; object-fit: cover; }
.bcm-feature__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.bcm-feature h3 { margin: 4px 0 6px; font-size: 1.1rem; font-style: normal; color: #fff; overflow-wrap: anywhere; }
.bcm-feature:first-child h3 { font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); }
.bcm-feature h3 a { text-decoration: none; }
.bcm-feature h3 a:hover { color: var(--bcm-green); }
.bcm-feature .bcm-meta { color: #9ca3af; margin: 0 0 8px; }
.bcm-feature__desc { font-size: .88rem; color: #9ca3af; margin: 0 0 12px; }
.bcm-feature .bcm-btn { margin-top: auto; }

/* Filters */
.bcm-filters { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 16px; margin: 0 0 22px; background: var(--bcm-paper); border: 1px solid var(--bcm-line); border-radius: var(--bcm-radius-l); }
.bcm-filters label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bcm-muted); margin-bottom: 4px; }
.bcm-filters input, .bcm-filters select, .bcm-chfilter select, .bcm-chsel { width: 100%; height: 44px; margin: 0; border: 1px solid #374151 !important; border-radius: var(--bcm-radius-s); background-color: var(--bcm-ink-2) !important; color: var(--bcm-text) !important; padding: 0 10px; font-size: .95rem; font-style: normal; box-shadow: none !important; }
.bcm-filters__actions { display: flex; gap: 8px; }

/* Pagination */
.bcm-pagination { margin: 28px 0; }
/* The wrapper <ul> also carries class "page-numbers" (paginate_links type=list):
   style it only as the flex row, never as a button (R3 fix: items stacked + overlap). */
.bcm-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; min-width: 0; height: auto; border: 0; border-radius: 0; background: none; }
.bcm-pagination ul.page-numbers > li { display: block; margin: 0; padding: 0; list-style: none; }
.bcm-pagination li > .page-numbers { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--bcm-radius-s); border: 1px solid #374151; text-decoration: none; font-weight: 700; line-height: 1; white-space: nowrap; background: var(--bcm-ink-2); color: var(--bcm-text); transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.bcm-pagination li > a.page-numbers:hover { border-color: var(--bcm-green); color: var(--bcm-green-deep); }
.bcm-pagination li > a.page-numbers:focus-visible { outline: 3px solid var(--bcm-green); outline-offset: 2px; }
.bcm-pagination li > a.page-numbers:active { transform: translateY(1px); }
.bcm-pagination li > .current { background: var(--bcm-green); color: var(--bcm-green-ink); border-color: var(--bcm-green); }
.bcm-pagination li > .dots { min-width: 24px; padding: 0 4px; border-color: transparent; background: none; }
@media (max-width: 480px) {
	.bcm-pagination ul.page-numbers { gap: 4px; }
	.bcm-pagination li > .page-numbers { min-width: 40px; height: 40px; padding: 0 9px; }
}

/* Detail */
.bcm-detail { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin: 6px 0 28px; }
.bcm-detail__cover { aspect-ratio: 2 / 3; border-radius: var(--bcm-radius-l); overflow: hidden; background: var(--bcm-ink-2); box-shadow: 0 24px 40px -24px rgba(11, 18, 32, .7); transform: rotate(-1.2deg); }
.bcm-detail__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcm-detail__info { min-width: 0; }
.bcm-alt { color: var(--bcm-muted); font-size: .9rem; overflow-wrap: anywhere; }
.bcm-alt span { font-weight: 700; color: #fff; }
.bcm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: .95rem; }
.bcm-facts dt { font-weight: 700; color: var(--bcm-muted); margin: 0; }
.bcm-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--bcm-text); }
.bcm-facts a { color: var(--bcm-green-deep); }
.bcm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bcm-desc { max-width: 75ch; }
.bcm-chfilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bcm-chfilter label { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--bcm-muted); margin: 0; }
.bcm-chfilter select { width: auto; max-width: 220px; }

/* Chapter list */
.bcm-chlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bcm-line); border-radius: var(--bcm-radius-l); overflow: hidden; }
.bcm-chlist li { margin: 0; border-bottom: 1px solid var(--bcm-line); }
.bcm-chlist li:last-child { border-bottom: 0; }
.bcm-chlist a { display: grid; grid-template-columns: minmax(120px, auto) 1fr auto; grid-template-areas: "num title time" "num group time"; gap: 0 14px; align-items: center; min-height: 52px; padding: 8px 14px; text-decoration: none; transition: background-color .15s; }
.bcm-chlist a:hover { background: rgba(34, 197, 94, .08); }
.bcm-chlist a:visited .bcm-chlist__num { color: var(--bcm-muted); }
.bcm-chlist__num { grid-area: num; font-weight: 800; color: #fff; }
.bcm-chlist__title { grid-area: title; font-size: .9rem; overflow-wrap: anywhere; }
.bcm-chlist__group { grid-area: group; font-size: .8rem; color: var(--bcm-muted); overflow-wrap: anywhere; }
.bcm-chlist time { grid-area: time; font-size: .8rem; color: var(--bcm-muted); white-space: nowrap; }

/* Attribution */
.bcm-attrib { margin: 18px 0; padding: 12px 14px; font-size: .85rem; color: var(--bcm-muted); border-left: 4px solid var(--bcm-green); background: var(--bcm-paper); border-radius: 0 var(--bcm-radius-s) var(--bcm-radius-s) 0; }
.bcm-attrib p { margin: 0; }
.bcm-attrib a { color: var(--bcm-green-deep); font-weight: 600; }
.bcm-links { margin: 18px 0; }
.bcm-links a { color: var(--bcm-green-deep); font-weight: 600; }

/* Reader */
.bcm-reader__title span { display: block; font-size: .6em; color: var(--bcm-muted); font-weight: 700; }
.bcm-rnav { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 14px 0; }
.bcm-chsel { min-width: 0; }
.bcm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .85rem; color: var(--bcm-muted); }
.bcm-qbtn { min-height: 40px; margin: 0; padding: 0 14px; border-radius: 999px; border: 1px solid #374151; background: transparent; color: var(--bcm-text); font-weight: 700; cursor: pointer; text-transform: none; font-style: normal; }
.bcm-qbtn[aria-pressed="true"] { background: var(--bcm-green); color: var(--bcm-green-ink); border-color: var(--bcm-green); }
.bcm-qbtn:disabled { opacity: .4; cursor: not-allowed; }
.bcm-pages { max-width: 920px; margin: 0 auto; background: var(--bcm-ink); padding: 0; min-height: 50vh; }
.bcm-page { position: relative; margin: 0; min-height: 320px; background: var(--bcm-ink-2) linear-gradient(90deg, var(--bcm-ink-2) 0, var(--bcm-ink-3) 50%, var(--bcm-ink-2) 100%) 0 0 / 200% 100%; animation: bcm-shimmer 1.4s linear infinite; }
.bcm-page.is-loaded { min-height: 0; background: none; animation: none; }
.bcm-page img { display: block; width: 100%; height: auto; margin: 0 auto; }
.bcm-page.is-error img { display: none; }
.bcm-page__num { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; font-size: .7rem; border-radius: 3px; background: rgba(11, 18, 32, .7); color: #9ca3af; opacity: 0; transition: opacity .2s; }
.bcm-page:hover .bcm-page__num { opacity: 1; }
.bcm-page__err { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-height: 240px; padding: 20px; text-align: center; color: #fecaca; }
.bcm-page__err .bcm-btn--ghost { color: #fff !important; border-color: #4b5563; }
.bcm-state { margin: 0; padding: 40px 20px; text-align: center; color: #d1d5db; background: var(--bcm-ink-2); border-radius: var(--bcm-radius-s); }
.bcm-state--error { color: #fecaca; }
.bcm-state--external { color: var(--bcm-text); background: var(--bcm-paper); border: 1px solid var(--bcm-line); }
.bcm-state--external p { margin: 0 0 14px; }

/* History */
.bcm-hlist { list-style: none; margin: 0; padding: 0; }
.bcm-hlist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--bcm-line); margin: 0; }
.bcm-hlist__title { font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.bcm-hlist__chapter { grid-column: 1; color: var(--bcm-green-deep) !important; font-size: .9rem; }
.bcm-hlist__time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .8rem; color: var(--bcm-muted); }

@keyframes bcm-shimmer { to { background-position: -200% 0; } }

@media (max-width: 960px) {
	.bcm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bcm-filters__q, .bcm-filters__actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	.bcm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.bcm-featured { grid-template-columns: 1fr; }
	.bcm-feature, .bcm-feature:first-child { grid-template-columns: 96px 1fr; }
	.bcm-detail { grid-template-columns: 1fr; gap: 18px; }
	.bcm-detail__cover { width: 58%; max-width: 230px; margin: 0 auto; }
	.bcm-chlist a { grid-template-columns: 1fr auto; grid-template-areas: "num time" "title title" "group group"; }
	.bcm-rnav { grid-template-columns: 1fr 1fr; }
	.bcm-rnav .bcm-chsel { grid-column: 1 / -1; grid-row: 1; }
	.bcm-chfilter, .bcm-chfilter label { width: 100%; }
	.bcm-chfilter select { max-width: none; flex: 1; min-width: 0; }
	.bcm-pages { margin: 0 -0px; }
}
@media (prefers-reduced-motion: reduce) {
	.bcm *, .bcm *::before { transition: none !important; animation: none !important; }
}

/* Muted text wins over the generic .bcm p colour. */
.bcm .bcm-note, .bcm .bcm-count, .bcm .bcm-meta, .bcm .bcm-alt, .bcm .bcm-hero__lead,
.bcm .bcm-feature__desc, .bcm .bcm-attrib p, .bcm .bcm-empty, .bcm .bcm-chlist__group, .bcm .bcm-term-desc p { color: var(--bcm-muted); }
.bcm .bcm-state--error { color: #fecaca; }

/* Fixed bottom chapter bar (reader). Height is measured by reader.js into --bcm-fbar-h;
   the spacer after the site footer reserves that space so nothing is covered. */
.bcm.bcm-fbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; margin: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 18, 32, .97); border-top: 1px solid #263244; box-shadow: 0 -10px 28px -14px rgba(0, 0, 0, .7); overflow-x: visible; }
.bcm-fbar__in { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.bcm .bcm-fbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid #374151; border-radius: var(--bcm-radius-s); background: var(--bcm-ink-3); color: var(--bcm-text); font-weight: 700; font-size: .95rem; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, transform .2s var(--bcm-ease); }
.bcm .bcm-fbar__btn > span[aria-hidden] { font-size: 1.35rem; line-height: 1; margin-top: -2px; }
.bcm a.bcm-fbar__btn:hover { background: #273449; border-color: var(--bcm-green); color: #fff; }
.bcm a.bcm-fbar__btn:active { transform: translateY(1px); }
.bcm a.bcm-fbar__btn[rel="next"] { background: var(--bcm-green); border-color: var(--bcm-green); color: var(--bcm-green-ink); }
.bcm a.bcm-fbar__btn[rel="next"]:hover { background: #4ade80; color: var(--bcm-green-ink); }
.bcm .bcm-fbar__btn.is-disabled { opacity: .4; cursor: not-allowed; }
.bcm .bcm-fbar__select { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 10px; border: 1px solid #374151 !important; border-radius: var(--bcm-radius-s); background-color: var(--bcm-ink-2) !important; color: var(--bcm-text) !important; font-size: .95rem; box-shadow: none !important; text-overflow: ellipsis; }
.bcm-fbar a:focus-visible, .bcm-fbar select:focus-visible { outline: 3px solid var(--bcm-green); outline-offset: 2px; }
.bcm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bcm-fbar-spacer { height: var(--bcm-fbar-h, calc(61px + env(safe-area-inset-bottom))); }
body:has(.bcm-fbar) .back-to-top { bottom: calc(var(--bcm-fbar-h, 61px) + 12px) !important; }
@media (max-width: 560px) {
	.bcm.bcm-fbar { padding-left: 8px; padding-right: 8px; }
	.bcm-fbar__in { gap: 6px; }
	.bcm .bcm-fbar__btn { padding: 0 10px; }
	.bcm .bcm-fbar__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.bcm .bcm-fbar__select { font-size: .9rem; padding: 0 6px; }
}
@media print { .bcm-fbar, .bcm-fbar-spacer { display: none !important; } }

/* Embedded blocks ([bcm_manga_intro], [bcm_manga_updates]): fit the host container, scoped to .bcm-embed. */
.bcm.bcm-embed { padding-bottom: 0; margin: 32px 0; }
.bcm-embed--intro .bcm-hero { margin-bottom: 0; border-radius: var(--bcm-radius-l); }
.bcm-embed--intro .bcm-wrap { max-width: none; padding: 0 clamp(16px, 4%, 40px); }
.bcm-updates .bcm-grid { grid-template-columns: repeat(var(--bcm-cols, 4), minmax(0, 1fr)); }
.bcm-updates .bcm-card__title { min-height: 2.6em; }
.bcm-updates .bcm-more:focus-visible, .bcm-updates .bcm-card a:focus-visible, .bcm-embed--intro .bcm-chips a:focus-visible { outline: 3px solid var(--bcm-green); outline-offset: 2px; }
@media (max-width: 720px) {
	.bcm-updates .bcm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
