/* The Sacred Shop. Commercial content is visually distinct from the editorial investigations. */

.tsfp-shop {
	--tsfp-ink: var(--tsf-abyss, #1b1418);
	--tsfp-wine: var(--tsf-burgundy, #6b1f2a);
	--tsfp-gold: var(--tsf-gold, #b99867);
	--tsfp-paper: var(--tsf-white, #fffdf8);
	--tsfp-rule: rgba(107, 31, 42, 0.16);
	font-family: var(--tsf-sans, system-ui, sans-serif);
	color: var(--tsfp-ink);
	margin: 1.5rem 0 3rem;
}

.tsfp-shop__intro {
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--tsfp-rule);
	border-top: 3px solid var(--tsfp-gold);
	border-radius: var(--tsf-radius, 12px);
	background: var(--tsfp-paper);
}
.tsfp-shop__lead { margin: 0 0 0.75rem; font: 400 1.15rem/1.55 var(--tsf-serif, Georgia, serif); }
.tsfp-shop__note { margin: 0.4rem 0 0; font-size: 0.9rem; line-height: 1.5; color: #5d5054; }

.tsfp-disclosure {
	margin: 0.75rem 0 0;
	padding: 0.55rem 0.8rem;
	border-radius: 8px;
	background: rgba(185, 152, 103, 0.14);
	font-size: 0.9rem;
	line-height: 1.45;
}
.tsfp-disclosure__label { font-weight: 600; }
.tsfp-disclosure a { color: var(--tsfp-wine); text-underline-offset: 0.2em; }

.tsfp-shop__country {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.9rem;
	margin: 1.25rem 0 0;
	font-size: 0.95rem;
}
.tsfp-shop__country[hidden] { display: none; }
.tsfp-shop__country-text { font-weight: 600; }
.tsfp-shop__country-change {
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1px solid var(--tsfp-rule);
	border-radius: 999px;
	background: transparent;
	color: var(--tsfp-wine);
	font: 600 0.85rem/1 var(--tsf-sans, system-ui, sans-serif);
	cursor: pointer;
}
.tsfp-shop__country-change:hover { border-color: var(--tsfp-wine); }

.tsfp-shop__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}
.tsfp-shop__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.95rem;
	border: 1px solid var(--tsfp-rule);
	border-radius: 999px;
	color: var(--tsfp-ink);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
}
.tsfp-shop__nav a:hover { border-color: var(--tsfp-gold); background: rgba(185, 152, 103, 0.1); }

.tsfp-section { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.tsfp-section .tsfp-section { margin-top: 1.75rem; padding-left: 1rem; border-left: 2px solid rgba(185, 152, 103, 0.5); }
.tsfp-section__title { margin: 0 0 0.35rem; font-family: var(--tsf-serif, Georgia, serif); color: var(--tsfp-ink); }
.tsfp-section__desc { margin: 0 0 1rem; color: #5d5054; }
.tsfp-empty { margin: 0.5rem 0 0; font-style: italic; color: #5d5054; }

.tsfp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1.1rem;
}
.tsfp-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--tsfp-rule);
	border-radius: var(--tsf-radius, 12px);
	background: var(--tsfp-paper);
	overflow: hidden;
	scroll-margin-top: 6rem;
}
.tsfp-card--draft { border-style: dashed; }
.tsfp-card__media { margin: 0; background: #f2ece2; }
.tsfp-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.tsfp-card__media figcaption { padding: 0.35rem 0.9rem; font-size: 0.75rem; color: #5d5054; }
.tsfp-card__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tsfp-card__title { margin: 0; font: 600 1.15rem/1.3 var(--tsf-serif, Georgia, serif); }
.tsfp-card__desc { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.tsfp-card__lang-note,
.tsfp-card__checked { margin: 0; font-size: 0.78rem; color: #5d5054; }
.tsfp-card__file { margin: 0; font-size: 0.9rem; }
.tsfp-card__file a { color: var(--tsfp-wine); font-weight: 600; }

.tsfp-edition { margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--tsfp-rule); }
.tsfp-edition__label { margin: 0 0 0.4rem; font-size: 0.88rem; font-weight: 600; }
.tsfp-edition__id { font-weight: 400; color: #5d5054; font-variant-numeric: tabular-nums; }

.tsfp-buy__row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.3rem 0; }
.tsfp-buy__item { display: inline-flex; flex-direction: column; gap: 0.15rem; }
.tsfp-buy__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1rem;
	border-radius: 999px;
	background: var(--tsfp-wine);
	color: #fff !important;
	text-decoration: none;
	font: 600 0.88rem/1.1 var(--tsf-sans, system-ui, sans-serif);
}
.tsfp-buy__btn:hover { background: var(--tsf-burgundy-deep, #4a1520); }
.tsfp-buy__btn:focus-visible { outline: 2px solid var(--tsfp-gold); outline-offset: 3px; }
.tsfp-buy__row--alt .tsfp-buy__btn,
.tsfp-buy__btn--search { background: transparent; color: var(--tsfp-wine) !important; border: 1px solid var(--tsfp-wine); }
.tsfp-buy__badge { font-size: 0.7rem; letter-spacing: 0.04em; color: #5d5054; padding-left: 0.6rem; }
.tsfp-buy__none,
.tsfp-buy__alt-title { margin: 0.2rem 0; font-size: 0.88rem; color: #5d5054; }
.tsfp-buy__all { margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }
.tsfp-buy__all[hidden] { display: none; }

.tsfp-editor-badge {
	display: inline-block;
	margin: 0;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	background: #2b2440;
	color: #fff;
	font: 600 0.7rem/1.4 system-ui, sans-serif;
	align-self: flex-start;
}
.tsfp-card > .tsfp-editor-badge { margin: 0.6rem 0.8rem 0; }
.tsfp-buy__row--pending { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed rgba(43, 36, 64, 0.35); }
.tsfp-buy__row--pending .tsfp-buy__btn { background: transparent; color: #2b2440 !important; border: 1px dashed #2b2440; }
