/*
 * Article UI (22 Oct 2026): FAQ accordion, author card, article images + image viewer.
 * Loaded after style.css on single views. Surfaces are flat (1px border, faint top highlight):
 * the old grey outer glow (box-shadow 0 0 10px rgba(180,180,180,.18)) is gone from these three blocks.
 */
:root {
	--bb-ui-surface: #0e1220;
	--bb-ui-surface-2: #121728;
	--bb-ui-line: #222839;
	--bb-ui-line-2: #2e3550;
	--bb-ui-faint: #7d8296;
	--bb-ui-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================================================ FAQ */
.faq-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.faq-head h2 { margin-bottom: 0; }
.faq-head__meta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
}
.faq-head__count {
	color: var(--bb-ui-faint);
	font-size: 13.5px;
}
.faq-toggle-all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 14px 0 11px;
	border: 1px solid var(--bb-ui-line-2);
	border-radius: 10px;
	background: transparent;
	color: var(--bb-ink);
	font: 600 13.5px/1 "DM Sans", "DM Sans Fallback", ui-sans-serif, system-ui, sans-serif;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.faq-toggle-all svg { width: 16px; height: 16px; flex: none; color: #b77cff; transition: transform 0.35s var(--bb-ui-ease); }
.faq-toggle-all:hover { border-color: #993de1; background: rgba(153, 61, 225, 0.1); }
.faq-toggle-all[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-toggle-all:focus-visible { outline: 2px solid #b77cff; outline-offset: 2px; }

.faq-list { gap: 10px; }
.faq-list details.faq-item {
	position: relative;
	border: 1px solid var(--bb-ui-line);
	border-radius: 14px;
	background: var(--bb-ui-surface);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition: border-color 0.25s, background-color 0.25s;
}
.faq-list details.faq-item::before {
	content: "";
	position: absolute;
	left: -1px;
	top: 14px;
	bottom: 14px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(180deg, #b14dff, #3d49e1);
	transform: scaleY(0);
	transition: transform 0.35s var(--bb-ui-ease);
}
.faq-list details.faq-item:hover { border-color: var(--bb-ui-line-2); }
.faq-list details.faq-item[open]:not(.is-closing) { border-color: rgba(153, 61, 225, 0.45); background: var(--bb-ui-surface-2); }
.faq-list details.faq-item[open]:not(.is-closing)::before { transform: scaleY(1); }

.faq-list details.faq-item > summary.quest {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 16px 15px 16px;
	font-size: 16.5px;
	line-height: 1.4;
	color: var(--bb-ink);
	transition: color 0.2s;
}
.faq-list details.faq-item > summary.quest:hover { color: var(--bb-ink); }
.faq-list details.faq-item > summary.quest:focus-visible { outline: 2px solid #b77cff; outline-offset: -2px; border-radius: 14px; }
.faq-num {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--bb-ui-line-2);
	border-radius: 9px;
	color: var(--bb-ui-faint);
	font: 700 12.5px/1 "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", ui-sans-serif, system-ui, sans-serif;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.faq-q { flex: 1; min-width: 0; }
.faq-ind {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-left: 4px;
	border-radius: 50%;
	background: rgba(153, 61, 225, 0.12);
	color: #c08bff;
	transition: background-color 0.25s, color 0.25s, transform 0.35s var(--bb-ui-ease);
}
.faq-ind svg { width: 16px; height: 16px; display: block; }
.faq-ind .v { transform-origin: 12px 12px; transition: transform 0.35s var(--bb-ui-ease), opacity 0.25s; }
.faq-list details.faq-item:hover .faq-ind { background: rgba(153, 61, 225, 0.2); }
.faq-list details.faq-item[open]:not(.is-closing) .faq-num { color: #fff; border-color: #993de1; background: #993de1; }
.faq-list details.faq-item[open]:not(.is-closing) .faq-ind { background: #993de1; color: #fff; transform: rotate(180deg); }
.faq-list details.faq-item[open]:not(.is-closing) .faq-ind .v { transform: rotate(90deg); opacity: 0; }

.faq-list details.faq-item > .answ { padding: 0; overflow: hidden; }
.faq-list .answ-in { padding: 0 20px 18px 62px; color: var(--bb-muted); font-size: 15.5px; line-height: 1.7; }
.faq-list .answ-in > :first-child { margin-top: 0; }
.faq-list .answ-in > :last-child { margin-bottom: 0; }
.faq-list .answ-in p { margin: 0 0 10px; padding: 0; }
.faq-list .answ-in strong { color: var(--bb-ink); }
.faq-list .answ-in a { color: #c98bff; font-weight: 600; }

@media (max-width: 600px) {
	.faq-list details.faq-item > summary.quest { gap: 11px; padding: 13px 12px; font-size: 15.5px; }
	.faq-num { width: 28px; height: 28px; border-radius: 8px; font-size: 11.5px; }
	.faq-ind { width: 28px; height: 28px; margin-left: 0; }
	.faq-list .answ-in { padding: 0 16px 16px 16px; font-size: 15px; }
	.faq-head__count { display: none; }
}

/* ================================================================ author card */
.author-card {
	position: relative;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	grid-template-areas: "av id" "av bio" ". foot";
	column-gap: 22px;
	row-gap: 0; /* style.css sets gap: 22px on .author-card */
	align-items: start;
	padding: 24px 24px 20px;
	border: 1px solid var(--bb-ui-line);
	border-radius: 16px;
	background: var(--bb-ui-surface);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.author-card__avatar {
	grid-area: av;
	width: 92px;
	height: 92px;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--bb-ui-surface), 0 0 0 5px #993de1;
	margin: 5px 0 0 5px;
	transition: box-shadow 0.3s var(--bb-ui-ease), transform 0.3s var(--bb-ui-ease);
}
.author-card__avatar:hover { transform: scale(1.03); box-shadow: 0 0 0 3px var(--bb-ui-surface), 0 0 0 5px #b77cff; }
.author-card__avatar:focus-visible { outline: 2px solid #b77cff; outline-offset: 6px; }
.author-card__id { grid-area: id; min-width: 0; }
.author-card__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	color: #b77cff;
	font-size: 11.5px;
	letter-spacing: 0.12em;
}
.author-card__eyebrow svg { width: 13px; height: 13px; flex: none; }
.author-card__name { margin: 0 0 8px; font-size: 1.3rem; }
.author-card__name a { transition: color 0.2s; }
.author-card__role { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; color: var(--bb-muted); }
.author-card__role > span { display: inline-flex; align-items: center; gap: 6px; }
.author-card__role svg { width: 15px; height: 15px; flex: none; color: var(--bb-ui-faint); }
.author-card__bio { grid-area: bio; margin: 12px 0 18px; font-size: 15px; line-height: 1.65; color: var(--bb-muted); }
.author-card__foot {
	grid-area: foot;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--bb-ui-line);
}
.author-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 14px 0 16px;
	border: 1px solid var(--bb-ui-line-2);
	border-radius: 10px;
	color: var(--bb-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.author-card__link svg { width: 16px; height: 16px; color: #b77cff; transition: transform 0.3s var(--bb-ui-ease); }
.author-card__link:hover { color: var(--bb-ink); border-color: #993de1; background: rgba(153, 61, 225, 0.1); }
.author-card__link:hover svg { transform: translateX(3px); }
.author-card__link:focus-visible, .author-card__socials a:focus-visible { outline: 2px solid #b77cff; outline-offset: 2px; }
.author-card__socials { display: inline-flex; gap: 8px; }
.author-card__socials a {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	border: 1px solid var(--bb-ui-line-2);
	background: transparent;
	color: var(--bb-muted);
}
.author-card__socials a svg { width: 16px; height: 16px; display: block; }
.author-card__socials a:hover { color: #fff; border-color: #0a66c2; background: #0a66c2; }
.author-card__socials a.is-x:hover { border-color: #fff; background: #fff; color: #000; }

@media (max-width: 600px) {
	.author-card {
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-areas: "av id" "bio bio" "foot foot";
		column-gap: 16px;
		row-gap: 0;
		padding: 18px 18px 16px;
	}
	.author-card__avatar { width: 64px; height: 64px; margin: 5px 0 0 5px; }
	.author-card__avatar-fallback { font-size: 1.6rem; }
	.author-card__name { font-size: 1.15rem; margin-bottom: 6px; }
	.author-card__role { gap: 4px 12px; font-size: 13.5px; margin-bottom: 4px; }
	.author-card__bio { margin: 14px 0 14px; }
	.author-card__link { flex: 1; justify-content: center; }
}

/* ================================================================ article images */
.entry-content figure,
.featured-image {
	position: relative;
}
.entry-content figure {
	margin: 34px 0;
	border: 1px solid var(--bb-ui-line);
	border-radius: 14px;
	background: var(--bb-ui-surface);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition: border-color 0.25s;
}
.entry-content figure:has(img.bb-zoomable):hover { border-color: var(--bb-ui-line-2); }
.entry-content figure img { transition: transform 0.6s var(--bb-ui-ease), filter 0.3s; }
img.bb-zoomable { cursor: zoom-in; }
.entry-content figure:has(img.bb-zoomable) > img:hover,
.entry-content figure:has(img.bb-zoomable):hover > img { transform: scale(1.015); }
.bb-media { position: relative; display: block; overflow: hidden; border-radius: 13px 13px 0 0; }
.entry-content figure:not(:has(figcaption)) .bb-media { border-radius: 13px; }
.entry-content p > .bb-media, .entry-content > .bb-media { border-radius: 12px; }
.bb-media.is-inline { display: inline-block; max-width: 100%; vertical-align: baseline; }
.bb-media.is-inline > img { display: inline; vertical-align: baseline; }
.bb-zoom-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	background: rgba(9, 11, 19, 0.78);
	color: #fff;
	font: 600 12.5px/1 "DM Sans", "DM Sans Fallback", ui-sans-serif, system-ui, sans-serif;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.25s, transform 0.3s var(--bb-ui-ease), background-color 0.2s, border-color 0.2s;
}
.bb-zoom-btn svg { width: 15px; height: 15px; flex: none; }
.bb-media:hover .bb-zoom-btn, .bb-zoom-btn:focus-visible { opacity: 1; transform: none; }
.bb-zoom-btn:hover { background: #993de1; border-color: #993de1; }
.bb-zoom-btn:focus-visible { outline: 2px solid #b77cff; outline-offset: 2px; }
@media (hover: none) { .bb-zoom-btn { opacity: 1; transform: none; padding: 0 9px; } .bb-zoom-btn span { display: none; } }

.entry-content figcaption {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border-top: 1px solid var(--bb-ui-line);
	color: var(--bb-muted);
	font-size: 13.5px;
	line-height: 1.45;
	text-align: left;
}
.entry-content figcaption::first-letter { text-transform: uppercase; }
.bb-cap-ico { width: 15px; height: 15px; flex: none; color: var(--bb-ui-faint); }
.bb-cap-n { margin-left: auto; padding-left: 10px; color: var(--bb-ui-faint); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ================================================================ image viewer */
html.bb-lb-open { overflow: hidden; }
.bb-lb {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	color: #fff;
	font-family: "DM Sans", "DM Sans Fallback", ui-sans-serif, system-ui, sans-serif;
	-webkit-tap-highlight-color: transparent;
}
.bb-lb[hidden] { display: none; }
.bb-lb__bg {
	position: absolute;
	inset: 0;
	background: rgba(5, 7, 12, 0.94);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.bb-lb.is-on .bb-lb__bg { opacity: 1; }
@supports (backdrop-filter: blur(1px)) { .bb-lb__bg { background: rgba(5, 7, 12, 0.92); backdrop-filter: blur(14px); } }
.bb-lb__top, .bb-lb__bottom { position: relative; z-index: 2; opacity: 0; transition: opacity 0.3s ease, transform 0.35s var(--bb-ui-ease); }
.bb-lb__top { display: flex; align-items: center; gap: 8px; padding: 14px 16px; transform: translateY(-8px); }
.bb-lb__bottom { padding: 0 16px 16px; transform: translateY(8px); }
.bb-lb.is-on .bb-lb__top, .bb-lb.is-on .bb-lb__bottom { opacity: 1; transform: none; }
.bb-lb__count {
	min-width: 64px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
}
.bb-lb__sp { flex: 1; }
.bb-lb__btn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s;
}
.bb-lb__btn svg { width: 19px; height: 19px; display: block; }
.bb-lb__btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
.bb-lb__btn:focus-visible { outline: 2px solid #b77cff; outline-offset: 2px; }
.bb-lb__btn:disabled { opacity: 0.35; cursor: default; }
.bb-lb__close { border-color: rgba(225, 61, 61, 0.45); color: #ff6b6b; }
.bb-lb__close:hover { background: #e13d3d; border-color: #e13d3d; color: #fff; }
.bb-lb__close svg { transition: transform 0.3s var(--bb-ui-ease); }
.bb-lb__close:hover svg { transform: rotate(90deg); }
.bb-lb__zoomlvl { min-width: 48px; font-size: 13px; color: rgba(255, 255, 255, 0.7); text-align: center; font-variant-numeric: tabular-nums; }

.bb-lb__stage {
	position: relative;
	z-index: 1;
	overflow: hidden;
	touch-action: none;
	user-select: none;
	display: grid;
	place-items: center;
	padding: 0 72px;
}
.bb-lb__img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 10px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
	transform-origin: 0 0;
	cursor: zoom-in;
	will-change: transform;
	-webkit-user-drag: none;
}
.bb-lb.is-zoomed .bb-lb__img { cursor: grab; border-radius: 0; }
.bb-lb.is-dragging .bb-lb__img { cursor: grabbing; }
.bb-lb__spin {
	position: absolute;
	width: 30px;
	height: 30px;
	border: 2.5px solid rgba(255, 255, 255, 0.2);
	border-top-color: #b77cff;
	border-radius: 50%;
	animation: bbLbSpin 0.8s linear infinite;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}
.bb-lb.is-loading .bb-lb__spin { opacity: 1; }
@keyframes bbLbSpin { to { transform: rotate(360deg); } }
.bb-lb__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 50px;
	height: 50px;
	margin-top: -25px;
	border-radius: 50%;
	background: rgba(14, 18, 32, 0.8);
	opacity: 0;
	transition: opacity 0.3s ease, background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.bb-lb.is-on .bb-lb__nav { opacity: 1; }
.bb-lb.is-on .bb-lb__nav:disabled { opacity: 0.25; }
.bb-lb__nav--prev { left: 16px; }
.bb-lb__nav--next { right: 16px; }
.bb-lb__nav--prev:hover:not(:disabled) { transform: translateX(-2px); }
.bb-lb__nav--next:hover:not(:disabled) { transform: translateX(2px); }
.bb-lb__nav svg { width: 22px; height: 22px; }
.bb-lb.is-single .bb-lb__nav, .bb-lb.is-single .bb-lb__step, .bb-lb.is-single .bb-lb__thumbs, .bb-lb.is-single .bb-lb__count { display: none; }

.bb-lb__capbar { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 4px; max-width: 820px; }
.bb-lb__step { display: none; flex: none; width: 40px; height: 40px; border-radius: 50%; }
.bb-lb__step svg { width: 20px; height: 20px; }
.bb-lb__cap { flex: 1; margin: 0; text-align: center; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); min-height: 1.5em; }
.bb-lb__cap::first-letter { text-transform: uppercase; }
.bb-lb__thumbs {
	display: flex;
	justify-content: center;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px;
	scrollbar-width: none;
}
.bb-lb__thumbs::-webkit-scrollbar { display: none; }
.bb-lb__thumb {
	flex: none;
	width: 72px;
	height: 48px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 9px;
	overflow: hidden;
	background: #121728;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.2s, border-color 0.2s, transform 0.25s var(--bb-ui-ease);
}
.bb-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-lb__thumb:hover { opacity: 0.85; }
.bb-lb__thumb.is-on { opacity: 1; border-color: #993de1; transform: translateY(-2px); }
.bb-lb__thumb:focus-visible { outline: 2px solid #b77cff; outline-offset: 2px; }
.bb-lb__hint { margin: 0 0 10px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.42); transition: opacity 0.3s; }
.bb-lb.seen-hint .bb-lb__hint { opacity: 0; }

@media (max-width: 700px) {
	.bb-lb__top { padding: 10px; gap: 6px; }
	.bb-lb__btn { width: 40px; height: 40px; }
	.bb-lb__zoomlvl, .bb-lb__zoom-out, .bb-lb__hint { display: none; }
	.bb-lb__stage { padding: 0 8px; }
	.bb-lb__nav { display: none; }
	.bb-lb__step { display: inline-grid; }
	.bb-lb__capbar { margin-bottom: 10px; }
	.bb-lb__bottom { padding: 0 10px 12px; }
	.bb-lb__cap { font-size: 13.5px; }
	.bb-lb__thumbs { justify-content: flex-start; }
	.bb-lb__thumb { width: 56px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.faq-list details.faq-item, .faq-list details.faq-item::before, .faq-num, .faq-ind, .faq-ind .v,
	.author-card__avatar, .author-card__link svg, .entry-content figure img, .bb-zoom-btn,
	.bb-lb__bg, .bb-lb__top, .bb-lb__bottom, .bb-lb__nav, .bb-lb__thumb, .faq-toggle-all svg { transition: none; }
	.entry-content figure:has(img.bb-zoomable):hover > img { transform: none; }
}
