/* Shop MagicBands
   Loaded after Bootstrap 5. Tokens first, then components. */

:root {
	--smb-ink: #14181f;
	--smb-ink-soft: #5b6472;
	--smb-bg: #ffffff;
	--smb-surface: #f6f7f9;
	--smb-line: #e4e7ec;
	/* brand navy, sampled from the original Shop MagicBands logo */
	--smb-accent: #002052;
	--smb-accent-ink: #ffffff;
	--smb-value: #0f7a3d;
	--smb-radius: 12px;
	--smb-logo-filter: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--smb-ink: #e9edf3;
		--smb-ink-soft: #9aa4b2;
		--smb-bg: #10141a;
		--smb-surface: #171d26;
		--smb-line: #262e3a;
		--smb-accent: #7ba4f5;
		--smb-accent-ink: #06111f;
		--smb-value: #46d07f;
		/* the logo is solid navy on transparent, invisible on a dark ground.
		   brightness(0) flattens it to black, invert(1) makes it clean white. */
		--smb-logo-filter: brightness(0) invert(1);
	}
}

body {
	background: var(--smb-bg);
	color: var(--smb-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
	letter-spacing: -0.015em;
}

a { color: var(--smb-accent); }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1080;
	background: var(--smb-bg);
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
}

/* ---------- header ---------- */

.smb-header {
	background: var(--smb-bg);
	border-color: var(--smb-line) !important;
	position: sticky;
	top: 0;
	z-index: 1030;
}

.smb-brand-text {
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--smb-ink);
	letter-spacing: -0.02em;
}

.smb-brand img,
.smb-brand .custom-logo {
	height: 34px;
	width: auto;
	max-width: min(58vw, 260px);
	object-fit: contain;
	filter: var(--smb-logo-filter);
}

@media (min-width: 992px) {
	.smb-brand img,
	.smb-brand .custom-logo { height: 40px; }
}

.smb-header .nav-link {
	color: var(--smb-ink-soft);
	font-size: 0.95rem;
}

.smb-header .nav-link:hover,
.smb-header .nav-link:focus,
.smb-header .current-menu-item > .nav-link {
	color: var(--smb-ink);
}

.smb-search .form-control {
	min-width: 190px;
	background: var(--smb-surface);
	border-color: var(--smb-line);
	color: var(--smb-ink);
}

/* ---------- band cards ---------- */

.smb-card {
	color: inherit;
	display: flex;
	flex-direction: column;
}

.smb-card img {
	width: 100%;
	/* height:auto is required, otherwise the HTML height attribute wins and
	   aspect-ratio is ignored (an img with both dimensions set is not auto). */
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--smb-surface);
	border-radius: var(--smb-radius);
	transition: transform 0.18s ease;
}

.smb-card:hover img { transform: translateY(-2px); }

.smb-card-media {
	position: relative;
	display: block;
	margin-bottom: 0.55rem;
}

.smb-badge-rare {
	position: absolute;
	left: 0.5rem;
	bottom: 0.5rem;
	background: var(--smb-accent);
	color: var(--smb-accent-ink);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	white-space: nowrap;
}

/* Every card reserves exactly two lines for the name, so the chip row and the
   price sit on the same baseline across a row regardless of name length.

   The clamp lives on an inner span, not on .smb-card-name itself: .smb-card is
   a flex column, and flex items are blockified, so `display: -webkit-box` on a
   direct child is silently rewritten and the clamp never applies. */
.smb-card-name {
	color: var(--smb-ink);
	font-weight: 600;
	line-height: 1.3;
	display: block;
	height: calc(2 * 1.3em);
	overflow: hidden;
}

.smb-card-name-i {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.smb-card-meta {
	color: var(--smb-ink-soft);
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.15rem;
	/* one row only: a wrapped chip row would reintroduce the ragged baseline */
	flex-wrap: nowrap;
	min-height: 1.25rem;
	overflow: hidden;
}

.smb-chip {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.22rem 0.4rem;
	border-radius: 5px;
	background: var(--smb-line);
	color: var(--smb-ink-soft);
}

/* Only the scarce categories get colour, so colour still means something. */
.smb-chip-le { background: #002052; color: #fff; }
.smb-chip-lr { background: #7a4b00; color: #fff; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .smb-chip-le { background: #7ba4f5; color: #06111f; }
	:root:not([data-theme="light"]) .smb-chip-lr { background: #e0a341; color: #1b1200; }
}

.smb-card-year { font-size: 0.8rem; }

.smb-card-value {
	color: var(--smb-value);
	font-weight: 600;
	margin-top: auto;
	padding-top: 0.15rem;
}

.smb-card-noprice {
	color: var(--smb-ink-soft);
	margin-top: auto;
	padding-top: 0.15rem;
	font-style: italic;
}

.smb-card-retail {
	color: var(--smb-ink-soft);
	margin-top: auto;
	padding-top: 0.15rem;
}

/* ---------- single band ---------- */

.smb-title {
	font-size: clamp(1.65rem, 3.4vw, 2.4rem);
	font-weight: 700;
}

.smb-hero-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--smb-surface);
	border-radius: var(--smb-radius);
}

.smb-related .smb-card img,
.smb-single .smb-card img {
	height: auto;
}

.smb-value {
	background: var(--smb-surface);
	border-radius: var(--smb-radius);
}

.smb-value-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--smb-ink-soft);
	margin-bottom: 0.15rem;
}

.smb-value-figure {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.05;
	color: var(--smb-value);
}


.btn-primary {
	background: var(--smb-accent);
	border-color: var(--smb-accent);
	color: var(--smb-accent-ink);
	font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
	filter: brightness(1.08);
	background: var(--smb-accent);
	border-color: var(--smb-accent);
	color: var(--smb-accent-ink);
}

.breadcrumb-item + .breadcrumb-item::before { color: var(--smb-ink-soft); }

.smb-prose { line-height: 1.7; }

/* ---------- archive / filters ---------- */

.smb-filters {
	background: var(--smb-surface);
	border-radius: var(--smb-radius);
	padding: 1rem;
}

.smb-filter-link {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--smb-line);
	color: var(--smb-ink-soft);
	text-decoration: none;
	font-size: 0.88rem;
	margin: 0 0.35rem 0.5rem 0;
}

/* On mobile the edition and year lists stacked to ~1,300px, pushing every
   MagicBand below the fold. Collapse each to one horizontally scrollable row
   so the catalog is visible immediately. CSS only, no JS, no hidden content. */
@media (max-width: 767.98px) {
	.smb-archive .smb-filters,
	.smb-home .smb-filters,
	.smb-search-results .smb-filters {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.4rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		padding: 0.6rem 0.75rem;
		scrollbar-width: none;
	}

	.smb-archive .smb-filters::-webkit-scrollbar,
	.smb-home .smb-filters::-webkit-scrollbar,
	.smb-search-results .smb-filters::-webkit-scrollbar {
		display: none;
	}

	.smb-archive .smb-filter-link,
	.smb-home .smb-filter-link,
	.smb-search-results .smb-filter-link {
		flex: 0 0 auto;
		margin: 0;
		scroll-snap-align: start;
		white-space: nowrap;
	}

	/* The "By year:" label scrolls with the row. Pinning it sticky made the
	   first chip slide underneath and read as a fragment ("By year: )"). */
	.smb-archive .smb-filters .smb-count {
		flex: 0 0 auto;
		margin: 0 0.15rem 0 0 !important;
		display: inline !important;
		white-space: nowrap;
	}
}

.smb-filter-link:hover,
.smb-filter-link.is-active {
	background: var(--smb-accent);
	border-color: var(--smb-accent);
	color: var(--smb-accent-ink);
}

.smb-count { color: var(--smb-ink-soft); font-size: 0.9rem; }

/* ---------- pagination ---------- */

/* Centred rather than left-aligned: with a 6-across grid the eye finishes in
   the middle-right, and a centred control is the current convention for
   content pagination. Also gives equal reach for both thumbs on mobile. */
.pagination {
	justify-content: center;
	gap: 0.3rem;
}

.pagination .page-link {
	--bs-pagination-color: var(--smb-ink-soft);
	--bs-pagination-bg: transparent;
	--bs-pagination-border-color: var(--smb-line);
	--bs-pagination-hover-color: var(--smb-accent-ink);
	--bs-pagination-hover-bg: var(--smb-accent);
	--bs-pagination-hover-border-color: var(--smb-accent);
	--bs-pagination-focus-color: var(--smb-accent-ink);
	--bs-pagination-focus-bg: var(--smb-accent);
	--bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(0, 32, 82, 0.2);
	--bs-pagination-active-bg: var(--smb-accent);
	--bs-pagination-active-border-color: var(--smb-accent);
	--bs-pagination-active-color: var(--smb-accent-ink);
	--bs-pagination-disabled-color: var(--smb-ink-soft);
	--bs-pagination-disabled-bg: transparent;
	--bs-pagination-disabled-border-color: var(--smb-line);

	border-radius: 9px;
	min-width: 44px;              /* comfortable tap target */
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pagination .page-item.active .page-link {
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* the ellipsis is a separator, not a control */
.pagination .page-item.disabled .page-link {
	border-color: transparent;
	opacity: 0.65;
	min-width: 28px;
	pointer-events: none;
}

@media (max-width: 575.98px) {
	.pagination { gap: 0.25rem; }
	.pagination .page-link { min-width: 40px; min-height: 40px; font-size: 0.9rem; }
}

/* ---------- footer ---------- */

.smb-footer {
	border-color: var(--smb-line) !important;
	background: var(--smb-surface);
}

/* Style the anchors directly. The nav-link class is only added to the primary
   menu, so targeting .nav-link here matched nothing and the footer links
   rendered as unstyled default-blue text with no spacing. */
.smb-footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0 0 0.35rem;
	padding: 0;
	list-style: none;
}

.smb-footer-nav li { margin: 0; }

.smb-footer-nav a {
	color: var(--smb-ink-soft);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}

.smb-footer-nav a:hover,
.smb-footer-nav a:focus {
	color: var(--smb-ink);
	text-decoration: underline;
}

/* collapsed columns center on mobile */
@media (max-width: 767.98px) {
	.smb-single .col-lg-6 { text-align: center; }
	.smb-single .smb-facts { text-align: left; }
	.smb-single .breadcrumb { justify-content: center; }
}

/* wide content must scroll inside itself, never the page body */

/* ---------- collection ---------- */

.smb-collect {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0.75rem 0 0;
}

.smb-collect-btn { font-weight: 600; }
.smb-collect-btn .smb-collect-icon { margin-right: 0.3rem; }
.smb-collect-counts { flex-basis: 100%; margin-top: 0.15rem !important; }

.smb-collect-compact { margin: 0.4rem 0 0; gap: 0.3rem; }
.smb-collect-compact .smb-collect-label { display: none; }
.smb-collect-compact .smb-collect-icon { margin: 0; }
.smb-collect-compact .btn { padding: 0.2rem 0.5rem; line-height: 1; }

.smb-stat {
	background: var(--smb-surface);
	border-radius: var(--smb-radius);
	padding: 1rem;
	height: 100%;
}

.smb-stat-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--smb-ink-soft);
	margin-bottom: 0.2rem;
}

.smb-stat-figure {
	font-size: clamp(1.35rem, 3vw, 1.9rem);
	font-weight: 700;
	line-height: 1.1;
}

.smb-stat-money { color: var(--smb-value); }

.smb-stat-note {
	font-size: 0.75rem;
	color: var(--smb-ink-soft);
	margin-top: 0.2rem;
}

/* ---------- nav layout ---------- */

/* Page titles make terrible nav labels. These are set short in the menu itself;
   these rules stop what remains from wrapping and separate catalog links from
   account tools. */
.smb-nav-main { gap: 0.25rem; }

.smb-nav-main .nav-link {
	white-space: nowrap;
	padding-left: 0.7rem;
	padding-right: 0.7rem;
	font-weight: 500;
}

.smb-nav-utils {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: nowrap;
}

.smb-nav-utils .smb-search { flex: 1 1 auto; min-width: 0; }
.smb-nav-utils .form-control { min-width: 0; width: 100%; }
.smb-nav-account { white-space: nowrap; flex: 0 0 auto; font-weight: 600; }

@media (min-width: 992px) {
	.smb-nav-utils { flex: 0 0 auto; }
	.smb-nav-utils .smb-search { width: 190px; flex: 0 0 auto; }
}

@media (max-width: 991.98px) {
	.smb-nav-utils {
		margin-top: 0.75rem;
		padding-top: 0.75rem;
		border-top: 1px solid var(--smb-line);
	}
	.smb-nav-main .nav-link { padding-left: 0; }
}

/* ---------- auth ---------- */

.smb-auth-card {
	background: var(--smb-bg);
	border: 1px solid var(--smb-line);
	border-radius: 16px;
	padding: 2rem 1.75rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (min-width: 576px) {
	.smb-auth-card { padding: 2.5rem 2.25rem; }
}

.smb-auth-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	letter-spacing: -0.02em;
}

.smb-auth-lead {
	color: var(--smb-ink-soft);
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 1.5rem;
}

.smb-auth-alert {
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
	font-size: 0.9rem;
	margin-bottom: 1.25rem;
	border: 1px solid transparent;
}

.smb-auth-alert-error {
	background: rgba(190, 30, 45, 0.08);
	border-color: rgba(190, 30, 45, 0.25);
	color: #a3121f;
}

.smb-auth-alert-ok {
	background: rgba(15, 122, 61, 0.08);
	border-color: rgba(15, 122, 61, 0.25);
	color: #0f7a3d;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .smb-auth-alert-error { color: #ff9aa4; }
	:root:not([data-theme="light"]) .smb-auth-alert-ok { color: #46d07f; }
}

.smb-auth-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--smb-ink);
	margin: 0 0 0.35rem;
}

.smb-auth-input {
	display: block;
	width: 100%;
	padding: 0.7rem 0.85rem;
	margin-bottom: 1.1rem;
	font-size: 1rem;              /* 16px stops iOS zooming the page on focus */
	color: var(--smb-ink);
	background: var(--smb-surface);
	border: 1px solid var(--smb-line);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smb-auth-input:focus {
	outline: none;
	border-color: var(--smb-accent);
	box-shadow: 0 0 0 3px rgba(0, 32, 82, 0.12);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .smb-auth-input:focus {
		box-shadow: 0 0 0 3px rgba(123, 164, 245, 0.2);
	}
}

.smb-auth-hint {
	font-size: 0.8rem;
	color: var(--smb-ink-soft);
	margin: -0.8rem 0 1.1rem;
}

.smb-auth-check {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	color: var(--smb-ink-soft);
	margin-bottom: 1.25rem;
	cursor: pointer;
}

.smb-auth-submit {
	display: block;
	width: 100%;
	padding: 0.8rem 1rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--smb-accent-ink);
	background: var(--smb-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.smb-auth-submit:hover { filter: brightness(1.1); }

.smb-auth-foot {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.4rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--smb-line);
	font-size: 0.9rem;
	color: var(--smb-ink-soft);
	text-align: center;
}

/* the honeypot must be unreachable, not merely invisible */
.smb-auth-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.smb-auth-legal {
	font-size: 0.78rem;
	color: var(--smb-ink-soft);
	text-align: center;
	margin: 1.25rem 0 0;
	line-height: 1.5;
}

/* ---------- collection highlights ---------- */

.smb-highlights {
	background: var(--smb-surface);
	border-radius: var(--smb-radius);
	padding: 1.1rem 1.25rem;
}

.smb-highlights-title {
	color: var(--smb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.75rem;
	margin: 0 0 0.6rem;
}

.smb-highlight-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.smb-highlight-list li {
	position: relative;
	padding-left: 1.15rem;
	line-height: 1.5;
	font-size: 0.95rem;
}

.smb-highlight-list li::before {
	content: "\2726";                 /* a small sparkle, in keeping with the logo */
	position: absolute;
	left: 0;
	top: 0;
	color: var(--smb-accent);
	font-size: 0.8rem;
	line-height: 1.65;
}

@media (min-width: 768px) {
	.smb-highlight-list { grid-template-columns: 1fr 1fr; gap: 0.45rem 1.5rem; }
}

/* ---------- gallery + lightbox ---------- */

.smb-hero-img { position: relative; }
.smb-hero-img.is-zoomable img,
.smb-hero-img img { cursor: zoom-in; }

.smb-zoom {
	position: absolute;
	right: 0.6rem;
	bottom: 0.6rem;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--smb-accent);
	color: var(--smb-accent-ink);
	font-size: 1.1rem;
	line-height: 1;
	cursor: zoom-in;
	opacity: 0.9;
}

.smb-zoom:hover { opacity: 1; }

.smb-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.smb-thumbs::-webkit-scrollbar { display: none; }

.smb-thumb {
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	padding: 0;
	border: 2px solid var(--smb-line);
	border-radius: 9px;
	background: var(--smb-surface);
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.smb-thumb.is-active { border-color: var(--smb-accent); }
.smb-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.smb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(8, 11, 16, 0.94);
	padding: 3rem 1rem;
}

.smb-lightbox.is-open { display: flex; }
body.smb-lb-lock { overflow: hidden; }

.smb-lb-figure { margin: 0; max-width: 100%; max-height: 100%; }

.smb-lb-figure img {
	max-width: min(92vw, 1100px);
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}

.smb-lightbox button {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s ease;
}

.smb-lightbox button:hover { background: rgba(255, 255, 255, 0.24); }

.smb-lb-close { top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.6rem; }
.smb-lb-prev,
.smb-lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.9rem; }
.smb-lb-prev { left: 1rem; }
.smb-lb-next { right: 1rem; }

.smb-lb-count {
	position: absolute;
	bottom: 1.1rem;
	left: 0;
	right: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.85rem;
	margin: 0;
}

@media (max-width: 575.98px) {
	.smb-lightbox { padding: 3.5rem 0.5rem; }
	.smb-lb-prev, .smb-lb-next { width: 40px; height: 40px; font-size: 1.5rem; }
	.smb-lb-prev { left: 0.35rem; }
	.smb-lb-next { right: 0.35rem; }
	.smb-thumb { width: 58px; height: 58px; }
}

.smb-empty {
	background: var(--smb-surface);
	border-radius: var(--smb-radius);
	padding: 2rem 1.5rem;
	text-align: center;
	margin-bottom: 1.5rem;
}

/* ---------- single band sidebar ---------- */

.smb-aside-box {
	background: var(--smb-surface);
	border-radius: var(--smb-radius);
	padding: 1.1rem 1.25rem;
	margin-bottom: 1rem;
}

.smb-aside-title {
	color: var(--smb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.72rem;
	margin: 0 0 0.6rem;
}

.smb-aside-stats,
.smb-aside-links { list-style: none; margin: 0; padding: 0; }

.smb-aside-stats li { font-size: 0.95rem; margin-bottom: 0.25rem; }

.smb-aside-links li {
	font-size: 0.92rem;
	line-height: 1.4;
	padding: 0.3rem 0;
	border-bottom: 1px solid var(--smb-line);
}

.smb-aside-links li:last-child { border-bottom: 0; }
.smb-aside-links a { text-decoration: none; }
.smb-aside-links a:hover { text-decoration: underline; }

.smb-aside-more {
	display: inline-block;
	margin-top: 0.7rem;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

@media (min-width: 992px) {
	.smb-aside { position: sticky; top: 90px; align-self: start; }
}

.smb-up { color: var(--smb-value); font-weight: 600; }
.smb-down { color: var(--smb-ink-soft); font-weight: 600; }


/* ================================================================
   TABLES
   Two kinds, styled as one system.

   .smb-facts  label/value pairs (band details, sidebar stats)
   .table      real data tables (value guide rankings)

   Shared rules: no vertical rules, hairline horizontal separators only
   between rows, generous padding, and tabular figures so columns of
   numbers line up on the decimal instead of drifting.
   ================================================================ */

.smb-facts,
.smb-hub .table,
.smb-single .table {
	--bs-table-bg: transparent;
	--bs-table-color: var(--smb-ink);
	--bs-table-border-color: var(--smb-line);
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

/* numbers align on the decimal rather than drifting by glyph width */
.smb-facts td,
.smb-hub .table td,
.smb-single .table td {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

/* ---- label / value pairs ---- */

.smb-facts th,
.smb-facts td {
	font-size: 0.92rem;
	padding: 0.6rem 0;
	vertical-align: top;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--smb-line);
	box-shadow: none;
}

.smb-facts th {
	/* sized to content, not a fixed percentage. A hard 42% forced labels like
	   "With a published edition size" to wrap while the value sat alone. */
	width: 1%;
	white-space: nowrap;
	padding-right: 1.5rem;
	font-weight: 400;
	color: var(--smb-ink-soft);
	text-align: left;
}

.smb-facts td { color: var(--smb-ink); font-weight: 500; }

.smb-facts tr:last-child th,
.smb-facts tr:last-child td { border-bottom: 0; }

/* Long labels do need to wrap on narrow screens; nowrap there would force a
   horizontal scrollbar on the whole table. */
@media (max-width: 575.98px) {
	.smb-facts th { white-space: normal; padding-right: 1rem; }
}

/* Inside a tinted panel the hairlines should be barely there; the panel
   already provides the separation. */
.smb-aside-box .smb-facts th,
.smb-aside-box .smb-facts td,
.smb-filters .smb-facts th,
.smb-filters .smb-facts td {
	padding: 0.45rem 0;
	border-bottom-color: color-mix(in srgb, var(--smb-line) 55%, transparent);
}

/* ---- data tables ---- */

.smb-hub .table thead th,
.smb-single .table thead th {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--smb-ink-soft);
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--smb-line);
	padding: 0 0.75rem 0.6rem;
	white-space: nowrap;
}

.smb-hub .table tbody td,
.smb-single .table tbody td {
	padding: 0.7rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--smb-line);
	vertical-align: middle;
}

.smb-hub .table thead th:first-child,
.smb-hub .table tbody td:first-child { padding-left: 0; }

.smb-hub .table thead th:last-child,
.smb-hub .table tbody td:last-child { padding-right: 0; }

.smb-hub .table tbody tr:last-child td { border-bottom: 0; }

.smb-hub .table tbody tr:hover td {
	background: var(--smb-surface);
}

.smb-hub .table a { text-decoration: none; font-weight: 500; }
.smb-hub .table a:hover { text-decoration: underline; }

/* Wide tables scroll inside their own container. The page body must never
   scroll horizontally. */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Headline figures. The value guide previously opened with prose and buried
   every actual number below the fold, so the page read as if it had no data. */
.smb-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--smb-line);
	border: 1px solid var(--smb-line);
	border-radius: var(--smb-radius);
	overflow: hidden;
}

.smb-figure {
	background: var(--smb-bg);
	padding: 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.smb-figure-n {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--smb-ink);
	font-variant-numeric: tabular-nums;
}

.smb-figure-l {
	font-size: 0.8125rem;
	color: var(--smb-ink-soft);
}

@media (max-width: 575.98px) {
	/* single column stacks read as a list, so centre them */
	.smb-figure { align-items: center; text-align: center; }
}
