/* Gallery, photo page and guidelines. Same warm tokens as the share page. Mobile first; controls at least 44px; nothing wider than the screen. */
.bp-pub {
	--bp-ink: #231f1a;
	--bp-soft: #5c554b;
	--bp-line: #cfc6b8;
	--bp-paper: #fffdf8;
	--bp-tint: #f6f0e4;
	--bp-accent: #8c2a1c;
	--bp-accent-ink: #fff;
	--bp-focus: #0b5cad;
	box-sizing: border-box;
	width: 100%;
	max-width: 70rem;
	margin: 0 auto;
	padding: 1rem 16px 3rem;
	color: var(--bp-ink);
	font-size: 1.0625rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.bp-pub *, .bp-pub *::before, .bp-pub *::after { box-sizing: border-box; }
.bp-pub h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .5rem; }
.bp-pub h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .5rem; }
.bp-pub a { color: var(--bp-accent); }
.bp-pub :focus-visible { outline: 3px solid var(--bp-focus); outline-offset: 2px; }
.bp-lead { font-size: 1.15rem; color: var(--bp-soft); margin: 0 0 1rem; }

.bp-pub .bp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.1rem; font: inherit; font-weight: 600; text-decoration: none; color: var(--bp-accent); background: #fff; border: 2px solid var(--bp-accent); border-radius: 6px; cursor: pointer; }
.bp-pub .bp-btn:hover { background: var(--bp-tint); }
.bp-pub .bp-btn-quiet { color: var(--bp-ink); border-color: #8a8173; }
.bp-pub .bp-btn-main-inline { color: var(--bp-accent-ink); background: var(--bp-accent); }
.bp-pub .bp-btn-main-inline:hover { background: #6f2015; }
.bp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0; }

/* Tag filter chips */
.bp-filter ul, .bp-taglist { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.bp-chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .95rem; text-decoration: none; color: var(--bp-ink) !important; border: 2px solid var(--bp-line); border-radius: 999px; background: #fff; }
.bp-chip-link:hover { background: var(--bp-tint); }
.bp-chip-link[aria-current="page"] { border-color: var(--bp-accent); background: var(--bp-tint); font-weight: 600; }

/* Uncropped grid: rows are justified by each photo's own aspect ratio (--r = width / height). */
.bp-grid { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.bp-card { flex: calc(var(--r) * 100) 1 calc(var(--r) * 13rem); min-width: 0; margin: 0; background: var(--bp-tint); }
.bp-card a { display: block; }
.bp-card picture, .bp-card img { display: block; width: 100%; height: auto; }
.bp-grid::after { content: ""; flex-grow: 1000000; }
.bp-card:hover img { opacity: .92; }

.bp-empty { padding: 2rem 1rem; text-align: center; background: var(--bp-tint); border-radius: 8px; }
.bp-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.bp-pageno { color: var(--bp-soft); }

/* Photo page */
.bp-crumbs { margin: 0 0 .75rem; }
.bp-hero { margin: 0 0 1rem; text-align: center; background: var(--bp-tint); border-radius: 6px; }
.bp-hero picture, .bp-hero img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.bp-hero img { max-height: 85vh; width: auto; }
.bp-photo-body { max-width: 42rem; margin: 0 auto; }
.bp-caption { font-size: 1.2rem; margin: 0 0 .75rem; }
.bp-context { color: var(--bp-soft); margin: 0 0 1rem; }
.bp-facts { margin: 1rem 0; border-top: 2px solid var(--bp-line); }
.bp-facts > div { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .65rem 0; border-bottom: 1px solid var(--bp-line); }
.bp-facts dt { flex: 0 0 6rem; font-weight: 600; }
.bp-facts dd { flex: 1 1 12rem; margin: 0; }
.bp-bio { display: block; color: var(--bp-soft); font-size: .95rem; }
.bp-3d { display: inline-block; min-height: 44px; line-height: 44px; margin-left: .5rem; font-weight: 600; }
.bp-copied { color: var(--bp-soft); font-size: .95rem; }
.bp-photo-missing { display: flex; align-items: center; justify-content: center; min-height: 14rem; padding: 1rem; color: var(--bp-soft); background: var(--bp-tint); }
.bp-more { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--bp-line); }

/* Guidelines */
.bp-guidelines { max-width: 44rem; margin: 0 auto; }
.bp-guidelines section { margin: 1.75rem 0; padding-top: 1.25rem; border-top: 2px solid var(--bp-line); }
.bp-guidelines li { margin: .35rem 0; }
.bp-toc ul { columns: 2 14rem; list-style: none; padding: 0; margin: 1rem 0; }
.bp-toc a { display: inline-block; min-height: 44px; line-height: 44px; }
.bp-agent { font-style: normal; padding: .75rem 1rem; background: var(--bp-tint); border-radius: 6px; }
.bp-agent-todo { padding: .75rem 1rem; background: var(--bp-tint); border-radius: 6px; font-weight: 600; }

/* Loves: a heart on each card (over the photo's corner) and on the photo page. Hidden until love.js is ready, so there is no dead button without JavaScript. */
.bp-love { --bp-heart: #e0243b; position: relative; display: inline-flex; align-items: center; visibility: hidden; }
.bp-love.is-ready { visibility: visible; }
.bp-love-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex: none; width: 44px; height: 44px; aspect-ratio: 1; padding: 0; margin: 0; color: var(--bp-accent); background: rgba(255, 253, 248, .95); border: 1px solid rgba(42, 33, 30, .14); border-radius: 50%; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: color .15s ease, background .15s ease, transform .15s ease; }
.bp-love-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .15s ease; }
.bp-love-btn:hover, .bp-love-btn:focus-visible { color: var(--bp-heart); background: #fff; }
.bp-love-btn:hover svg, .bp-love-btn:focus-visible svg, .bp-love-btn[aria-pressed="true"] svg { fill: currentColor; }
.bp-love-btn[aria-pressed="true"] { color: var(--bp-heart); }
.bp-love-n { position: absolute; top: -5px; right: -5px; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bp-heart); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; }
.bp-love-n:empty { display: none; }

.bp-reacts { display: inline-flex; align-items: center; gap: 10px; }
.bp-card .bp-reacts { position: absolute; right: 8px; bottom: 8px; }
.bp-card { position: relative; }
/* Bloom: the second reaction. A flower bud that opens when pressed ("Make it bloom"). */
.bp-bloom { --bp-bloom: #c2336f; --bp-bloom-core: #f6b93b; position: relative; display: inline-flex; align-items: center; visibility: hidden; }
.bp-bloom.is-ready { visibility: visible; }
.bp-bloom-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; flex: none; min-width: 44px; height: 44px; padding: 0; margin: 0; color: var(--bp-accent); background: rgba(255, 253, 248, .95); border: 1px solid rgba(42, 33, 30, .14); border-radius: 22px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); font: inherit; font-size: .9rem; font-weight: 650; transition: color .15s ease, background .15s ease; }
.bp-bloom-btn:hover, .bp-bloom-btn:focus-visible { color: var(--bp-bloom); background: #fff; }
.bp-bloom-btn[aria-pressed="true"] { color: var(--bp-bloom); }
.bp-bloom-btn svg { width: 28px; height: 28px; overflow: visible; flex: none; }
.bp-petal { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; transform-origin: 16px 16px; transform: scale(.6); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), fill .25s ease; }
.bp-core { fill: currentColor; transform-origin: 16px 16px; transition: fill .2s ease; }
.bp-bloom-btn:hover .bp-petal, .bp-bloom-btn:focus-visible .bp-petal { transform: scale(.86); }
.bp-bloom-btn[aria-pressed="true"] .bp-petal { transform: scale(1); fill: currentColor; fill-opacity: .9; }
.bp-bloom-btn[aria-pressed="true"] .bp-core { fill: var(--bp-bloom-core); }
.bp-bloom-n { position: absolute; top: -5px; right: -5px; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bp-bloom); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; }
.bp-bloom-n:empty { display: none; }
/* icon alone on cards; with its words on the photo page and in the viewer */
.bp-bloom-words { display: none; }
.bp-hero .bp-bloom-words, .bo-lb__love .bp-bloom-words { display: inline; }
.bp-hero .bp-bloom-btn, .bo-lb__love .bp-bloom-btn { padding: 0 16px 0 9px; }
.bp-bloom-btn[aria-pressed="true"] .bp-w-off, .bp-bloom-btn[aria-pressed="false"] .bp-w-on { display: none; }
.bp-bloom-btn .bp-spore { pointer-events: none; }
@media (max-width: 420px) { .bp-hero .bp-bloom-words { display: none; } .bp-hero .bp-bloom-btn { padding: 0; } }

@media (prefers-reduced-motion: no-preference) {
	.bp-bloom-btn.is-blooming .bp-petal { animation: bp-unfurl .8s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i) * 50ms); }
	.bp-bloom-btn.is-blooming .bp-core { animation: bp-core-pop .65s cubic-bezier(.3, 1.4, .5, 1) .25s both; }
	.bp-bloom-btn.is-blooming::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; animation: bp-ring .85s ease-out both; }
	.bp-spore { position: absolute; left: 22px; top: 22px; width: 7px; height: 9px; margin: -4px 0 0 -3px; border-radius: 60% 40% 60% 40% / 70% 70% 30% 30%; background: var(--c); animation: bp-spore .95s cubic-bezier(.2, .7, .3, 1) forwards; }
	.bp-hero .bp-bloom-btn .bp-spore, .bo-lb__love .bp-bloom-btn .bp-spore { left: 22px; }
	.bp-drift { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
	.bp-flyp { position: absolute; top: -6%; left: var(--x); width: var(--s); height: calc(var(--s) * 1.28); border-radius: 60% 40% 60% 40% / 70% 70% 30% 30%; background: var(--c); opacity: 0; animation: bp-fall var(--d) var(--w) cubic-bezier(.35, .1, .5, 1) forwards; }
}
@media (prefers-reduced-motion: reduce) { .bp-spore, .bp-drift { display: none; } }
@keyframes bp-unfurl { 0% { transform: scale(.15) rotate(-45deg); opacity: .2; } 55% { transform: scale(1.22) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes bp-core-pop { 0% { transform: scale(0); } 60% { transform: scale(1.8); } 100% { transform: scale(1); } }
@keyframes bp-ring { 0% { opacity: .9; box-shadow: 0 0 0 0 rgba(214, 63, 124, .5); } 100% { opacity: 0; box-shadow: 0 0 0 18px rgba(214, 63, 124, 0); } }
@keyframes bp-spore { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; } }
@keyframes bp-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .95; } 90% { opacity: .9; } 100% { transform: translate(var(--sway), var(--fall)) rotate(var(--rot)); opacity: 0; } }
.bp-love-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp-love-ts { position: fixed; bottom: 8px; left: 8px; z-index: 5; }
@media (prefers-reduced-motion: no-preference) {
	.bp-love-btn svg { transition: transform .15s ease; }
	.bp-love-btn[aria-pressed="true"] svg { transform: scale(1.12); }
}

@media (min-width: 700px) {
	.bp-pub h1 { font-size: 2.1rem; }
	.bp-card { flex-basis: calc(var(--r) * 15rem); }
}
@media (prefers-reduced-motion: no-preference) {
	.bp-card img { transition: opacity .15s ease; }
}

/* /photos/report/ */
.bp-report { max-width: 40rem; margin: 0 auto; }
.bp-report fieldset { margin: 1rem 0; padding: 0; border: 0; }
.bp-report legend { font-weight: 600; margin-bottom: .25rem; }
.bp-report .bp-radio { display: flex; align-items: center; gap: .65rem; min-height: 44px; font-weight: 400; cursor: pointer; }
.bp-report .bp-radio input { width: 1.4rem; height: 1.4rem; accent-color: var(--bp-accent); }
.bp-report label { display: block; font-weight: 600; margin-bottom: .25rem; }
.bp-report .bp-radio, .bp-report .bp-hp label { font-weight: 400; }
.bp-report textarea, .bp-report input[type="email"] { display: block; width: 100%; min-height: 48px; padding: .6rem .7rem; font: inherit; color: var(--bp-ink); background: #fff; border: 2px solid #8a8173; border-radius: 6px; }
.bp-report textarea { min-height: 7rem; resize: vertical; }
.bp-report-status { min-height: 1.5rem; margin: .5rem 0; font-weight: 600; }
.bp-report-status.is-error { color: #a02222; }
.bp-soft { color: var(--bp-soft); }

/* Contributor page and badges */
.bp-badges { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .5rem 0; padding: 0; }
.bp-badge { padding: .25rem .7rem; border: 2px solid var(--bp-accent); border-radius: 999px; background: var(--bp-tint); font-size: .9rem; font-weight: 600; }

/* The contributor page */
.bp-by-head { margin: 0 0 1rem; }
.bp-by-bio { font-size: 1.15rem; margin: 0 0 .5rem; }
.bp-by-since, .bp-by-link { color: var(--bp-soft); margin: .25rem 0; }
.bp-by-photos { margin-top: 1.5rem; }

/* Photo of the Month: the archive and the small card from [bp_photo_of_the_month] */
.bp-potm-grid { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.bp-potm-item { margin: 0; }
.bp-potm-photo { display: block; border-radius: 8px; overflow: hidden; background: var(--bp-tint); }
.bp-potm-photo img { display: block; width: 100%; height: auto; }
.bp-potm-meta { padding: .5rem 0 0; }
.bp-potm-meta p { margin: 0; }
.bp-potm-month { font-weight: 700; }
.bp-potm-credit { color: var(--bp-soft); }
.bp-potm-card { margin: 1.5rem 0; max-width: 28rem; }
.bp-potm-card img { display: block; width: 100%; height: auto; border-radius: 8px; }
.bp-potm-card figcaption { padding: .5rem 0 0; }

/* Photo viewer (the directory's lightbox, copied; assets/lightbox.js). */
html.bo-lb-open {
	overflow: hidden;
}

.bo-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1rem 1rem;
	opacity: 0;
	transition: opacity 0.16s ease;
	font-family: inherit;
}

.bo-lb[hidden] {
	display: none;
}

.bo-lb.is-open {
	opacity: 1;
}

.bo-lb__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 15, 13, 0.94);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.bo-lb__figure {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	max-width: min(1200px, 100%);
	max-height: 100%;
	margin: 0;
}

.bo-lb__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}

.bo-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 11rem);
	max-height: calc(100dvh - 11rem);
	width: auto;
	height: auto;
	border-radius: 10px;
	background: #2a211e;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
	transition: opacity 0.18s ease;
}

.bo-lb.is-loading .bo-lb__img {
	opacity: 0.25;
}

.bo-lb__cap {
	max-width: 46rem;
	padding: 0 3.5rem;
	text-align: center;
	color: #f6f1ea;
}

.bo-lb__text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.45;
	font-weight: 500;
}

.bo-lb__credit {
	margin: 0.25rem 0 0;
	font-size: 0.84rem;
	line-height: 1.4;
	color: rgba(246, 241, 234, 0.68);
}

.bo-lb__count {
	position: absolute;
	top: 1.1rem;
	left: 1.25rem;
	margin: 0;
	color: rgba(246, 241, 234, 0.8);
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}

.bo-lb__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.bo-lb__btn:hover {
	background: rgba(255, 255, 255, 0.24);
}

.bo-lb__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.bo-lb__btn[hidden] {
	display: none;
}

.bo-lb__close {
	top: 0.75rem;
	right: 0.9rem;
}

.bo-lb__nav {
	top: 50%;
	margin-top: -24px;
}

.bo-lb__prev {
	left: 0.9rem;
}

.bo-lb__next {
	right: 0.9rem;
}

@media (max-width: 700px) {
	.bo-lb {
		padding: 3.25rem 0.5rem 0.75rem;
	}

	.bo-lb__img {
		max-height: calc(100vh - 12.5rem);
		max-height: calc(100dvh - 12.5rem);
		border-radius: 8px;
	}

	.bo-lb__cap {
		padding: 0 0.75rem;
	}

	.bo-lb__nav {
		top: auto;
		bottom: 0.75rem;
		margin-top: 0;
		width: 44px;
		height: 44px;
	}

	.bo-lb__prev {
		left: 0.9rem;
	}

	.bo-lb__next {
		right: 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bo-lb,
	.bo-lb__img,
	.bo-lb__btn {
		transition: none;
	}
}


.bo-lb__love { display: flex; justify-content: center; margin-top: .6rem; }
.bo-lb__love .bp-reacts { gap: .7rem; }
.bo-lb__page { display: inline-block; margin-top: .5rem; color: rgba(246, 241, 234, .85); font-size: .9rem; text-decoration: underline; }
.bo-lb__page:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bp-hero { position: relative; }
.bp-card a[data-bp-lb] { cursor: zoom-in; }
.bp-hero .bp-reacts { position: absolute; right: 12px; bottom: 12px; }

/* Viewer: toolbar, zoom, details card, toast (assets/lightbox.js). */
.bo-lb__tools { position: absolute; top: .75rem; right: .9rem; z-index: 3; display: flex; gap: .5rem; }
.bo-lb__tools .bo-lb__btn { position: static; }
.bo-lb__btn:disabled { opacity: .35; cursor: default; }
.bo-lb__stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.bo-lb.is-zoomed .bo-lb__stage { width: min(1200px, calc(100vw - 2rem)); height: calc(100vh - 11rem); height: calc(100dvh - 11rem); cursor: grab; }
.bo-lb.is-zoomed .bo-lb__stage:active { cursor: grabbing; }
.bo-lb__img { transform-origin: center center; will-change: transform; }
.bo-lb.is-zoomed .bo-lb__img { transition: none; }
.bo-lb__love { display: flex; justify-content: center; margin-top: .6rem; }
.bo-lb__love .bp-reacts { gap: .7rem; }
.bo-lb__page { display: inline-block; margin-top: .5rem; color: rgba(246, 241, 234, .85); font-size: .9rem; text-decoration: underline; }
.bo-lb__page:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bo-lb__toast { position: absolute; left: 50%; bottom: 1rem; z-index: 5; max-width: calc(100% - 2rem); margin: 0; padding: .55rem 1rem; transform: translateX(-50%); border-radius: 999px; background: #fffdf8; color: #2a211e; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s ease; overflow-wrap: anywhere; user-select: text; }
.bo-lb__toast.is-on { opacity: 1; pointer-events: auto; }
.bo-lb__info { position: absolute; left: 50%; bottom: 1rem; z-index: 4; box-sizing: border-box; width: min(26rem, calc(100% - 1.5rem)); max-height: min(34rem, calc(100% - 5rem)); overflow: auto; transform: translateX(-50%); padding: 1rem 1.1rem 1.1rem; border-radius: 14px; background: #fffdf8; color: #2a211e; box-shadow: 0 18px 60px rgba(0, 0, 0, .5); text-align: left; }
.bo-lb__info[hidden] { display: none; }
.bo-lb__info .bo-lb__info-x { position: absolute; top: .5rem; right: .5rem; width: 38px; height: 38px; color: #2a211e; border-color: rgba(42, 33, 30, .25); background: rgba(42, 33, 30, .06); }
.bo-lb__info .bo-lb__info-x:hover { background: rgba(42, 33, 30, .14); }
.bo-lb__info-title { margin: 0 2.6rem .5rem 0; font-size: 1.15rem; line-height: 1.3; }
.bo-lb__info p { margin: 0 0 .6rem; font-size: .95rem; line-height: 1.45; }
.bo-lb__facts { margin: 0 0 .7rem; }
.bo-lb__facts div { display: flex; gap: .6rem; padding: .2rem 0; font-size: .92rem; }
.bo-lb__facts dt { flex: 0 0 5.2rem; color: #6b5d55; }
.bo-lb__facts dd { margin: 0; }
.bo-lb__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.bo-lb__tags a { display: inline-block; padding: .2rem .65rem; border: 1px solid rgba(42, 33, 30, .25); border-radius: 999px; color: #8c2a1c; font-size: .85rem; text-decoration: none; }
.bo-lb__map { display: block; margin: 0 0 .8rem; border: 1px solid rgba(42, 33, 30, .2); border-radius: 10px; overflow: hidden; color: #2a211e; text-decoration: none; }
.bo-lb__map:focus-visible, .bo-lb__info a:focus-visible { outline: 3px solid #8c2a1c; outline-offset: 2px; }
.bo-lb__map-img { display: block; aspect-ratio: 300 / 170; background: #f1eee6; }
.bo-lb__map-img svg { display: block; width: 100%; height: 100%; }
.bo-lb__map-cap { display: block; padding: .45rem .7rem; background: #fff; font-size: .85rem; font-weight: 600; color: #8c2a1c; }
.bo-lb__info-page { color: #8c2a1c; font-size: .9rem; }
@media (max-width: 700px) {
	.bo-lb__tools { right: .5rem; gap: .35rem; }
	.bo-lb__tools .bo-lb__btn { width: 44px; height: 44px; }
	.bo-lb.is-zoomed .bo-lb__stage { height: calc(100vh - 12.5rem); height: calc(100dvh - 12.5rem); }
	.bo-lb__info { bottom: .5rem; max-height: calc(100% - 4.5rem); }
}

/* A contributor's link: Instagram glyph or a globe, then the handle or site name. */
.bp-link { display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle; }
.bp-link-icon { flex: none; }
.bp-credit-link.bp-link { margin-left: .15rem; }
.bp-by-link .bp-link { font-weight: 600; }

/* Badges as medals (assets/badges/*.svg, drawn by scripts/build-badges.mjs). */
.bp-badges { gap: 1.1rem 1.2rem; margin: 1rem 0; }
.bp-badge { display: flex; flex-direction: column; align-items: center; width: 6.6rem; padding: 0; border: 0; border-radius: 0; background: none; text-align: center; font-size: .85rem; line-height: 1.25; }
.bp-badge svg { width: 5.4rem; height: auto; margin-bottom: .35rem; filter: drop-shadow(0 3px 4px rgba(35, 31, 26, .22)); }
.bp-badge-label { display: block; font-weight: 700; }

/* Locked badges on the manage page: grey, with a padlock; a tip says how to earn each one (assets/me.js). */
.bp-badge { position: relative; }
.bp-badge-pic { position: relative; display: block; }
.bp-badge-panel h2 { margin: 1.4rem 0 .3rem; font-size: 1.25rem; }
.bp-badge.is-locked { cursor: help; }
.bp-badge.is-locked svg { filter: grayscale(1) opacity(.5) drop-shadow(0 3px 4px rgba(35, 31, 26, .18)); }
.bp-badge-lock { position: absolute; right: .1rem; bottom: .75rem; display: flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #5c554b; color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.bp-badge.is-locked .bp-badge-lock svg { width: .95rem; height: .95rem; margin: 0; filter: none; }
.bp-badge-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp-badge-progress { margin-top: .15rem; color: var(--bp-soft); font-size: .76rem; font-weight: 600; }
.bp-badge-hint { position: absolute; left: 50%; bottom: calc(100% + .1rem); z-index: 20; width: 14.5rem; max-width: calc(100vw - 1rem); box-sizing: border-box; transform: translateX(-50%); padding: .6rem .75rem; border-radius: 10px; background: #231f1a; color: #fff; font-size: .84rem; font-weight: 500; line-height: 1.4; text-align: left; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease; }
.bp-badge:hover .bp-badge-hint, .bp-badge:focus .bp-badge-hint { opacity: 1; visibility: visible; }
.bp-badge:focus-visible { outline: 3px solid var(--bp-focus); outline-offset: 4px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .bp-badge-hint { transition: none; } }
