/**
 * Thrift Weekly Community — the homepage.
 *
 * Scoped entirely under .twc-home, so nothing here can reach the feed, the
 * dashboard or anything the theme owns.
 *
 * The approved homepage is dark whatever the community pages are set to, so
 * this block states its own palette rather than inheriting the light/dark
 * setting. Each value still reads the matching brand token first, which keeps
 * Finds → Settings → Appearance in control of the three accents; only the
 * near-black grounds are fixed here.
 */

.twc-home {
	--h-bg: #0a0a0c;
	--h-card: #141417;
	--h-card-2: #17171b;
	--h-line: #2a2a30;
	--h-line-soft: #202026;

	--h-pink: var(--twc-brand, #ff1e6f);
	--h-cyan: var(--twc-cyan, #22d3ee);

	/* The third accent. Was an acid lime; the client asked for a restrained
	   accent in the black / pink / turquoise family (Oct 2026), so it now
	   follows the palette's Action colour. Set --twc-lime to override. */
	--h-lime: var(--twc-lime, var(--twc-teal, #22d3ee));

	--h-text: #ffffff;
	--h-muted: #9a9aa5;
	--h-dim: #6f6f7a;

	--h-r: 14px;
	--h-r-sm: 10px;
	--h-gap: 22px;
	--h-max: 1240px;

	background: var(--h-bg);
	color: var(--h-text);
	font-family: var(--twc-font-body, Inter, system-ui, sans-serif);
	overflow-x: clip;
}

.twc-home section {
	padding-inline: 20px;
}

.twc-home__hero,
.twc-home__strip,
.twc-home__grid,
.twc-home__promos,
.twc-home__foot {
	max-width: var(--h-max);
	margin-inline: auto;
}

.twc-home__hero { padding-block: 28px 34px; }
.twc-home__strip { padding-block: 0 34px; }
.twc-home__grid { padding-block: 10px 40px; }
.twc-home__promos { padding-block: 0 26px; }
.twc-home__foot { padding-block: 0 56px; }

.twc-home img {
	max-width: 100%;
	display: block;
}

.twc-home a { text-decoration: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.twc-btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	background: transparent;
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	color: var(--h-text);
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.twc-btn2:hover { transform: translateY(-1px); }

.twc-btn2--lime { background: var(--h-lime); color: #0f1400; }
.twc-btn2--cyan { background: var(--h-cyan); color: #00181d; }
.twc-btn2--pink { background: var(--h-pink); color: #fff; }
.twc-btn2--dark { background: #101013; color: #fff; }

.twc-btn2--lime:hover,
.twc-btn2--cyan:hover,
.twc-btn2--pink:hover { filter: brightness(1.08); }

.twc-btn2--outline {
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--h-text);
}

.twc-btn2--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.twc-btn2--ghost {
	border-color: var(--h-line);
	color: var(--h-text);
	border-radius: 999px;
	padding-inline: 26px;
}

.twc-btn2--ghost:hover { border-color: var(--h-pink); color: var(--h-pink); }

.twc-home .twc-btn2:focus-visible,
.twc-home a:focus-visible,
.twc-home button:focus-visible {
	outline: 2px solid var(--h-cyan);
	outline-offset: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.twc-hero2 {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: 40px;
	align-items: center;
}

.twc-hero2__eyebrow {
	margin: 0 0 18px;
	font-size: 15px;
	color: var(--h-muted);
}

.twc-hero2__title {
	margin: 0 0 18px;
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: clamp(34px, 3.5vw, 52px);
	font-weight: 800;
	font-style: italic;
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--h-text);
}

.twc-hero2__accent {
	display: block;
	margin-top: 2px;
	padding-bottom: 6px;
	color: var(--h-pink);
	border-bottom: 4px solid var(--h-pink);
	width: fit-content;
}

.twc-hero2__sub {
	margin: 0 0 26px;
	max-width: 30ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--h-muted);
}

.twc-hero2__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 30px;
}

.twc-hero2__social {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.twc-avatars {
	display: inline-flex;
	align-items: center;
}

.twc-avatars img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--h-bg);
	object-fit: cover;
}

.twc-avatars img + img { margin-left: -12px; }

.twc-hero2__members {
	font-size: 14.5px;
	line-height: 1.35;
	color: var(--h-muted);
	max-width: 15ch;
}

.twc-hero2__members strong {
	color: var(--h-lime);
	font-weight: 700;
}

/* ---- the three-up carousel ---- */

.twc-deck { position: relative; }

.twc-deck__viewport { overflow: hidden; padding-top: 14px; }

.twc-deck__nav {
	position: absolute;
	top: 45%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	transform: translateY(-50%);
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #101013;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.twc-deck__nav--prev { left: -14px; }
.twc-deck__nav--next { right: -14px; }

.twc-deck__dots {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 18px;
}

.twc-deck__dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3a3a44;
	opacity: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.twc-deck__dots .swiper-pagination-bullet-active { background: var(--h-pink); }

/* ==========================================================================
   Find card
   ========================================================================== */

.twc-fc {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	border: 1px solid var(--h-line);
	border-radius: var(--h-r);
	background: var(--h-card);
	overflow: hidden;
}

.twc-fc__media {
	display: block;
	background: #0f0f12;
}

.twc-fc__media img,
.twc-fc .twc-thumb-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.twc-fc__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 7px;
	padding: 12px 13px 13px;
	min-width: 0;
}

.twc-fc__title {
	margin: 0;
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--h-text);
}

.twc-fc__title a { color: inherit; }
.twc-fc__title a:hover { color: var(--h-pink); }

.twc-fc__price {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--h-muted);
}

.twc-fc__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 2px;
}

/* Two lines, so a long title cannot push one card taller than its row. */
.twc-fc--grid .twc-fc__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.twc-fc__like,
.twc-fc__comments,
.twc-fc__save {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--twc-font-body, Inter, system-ui, sans-serif);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--h-muted);
	cursor: pointer;
	transition: color 0.15s ease;
}

.twc-fc__like:hover,
.twc-fc__like.is-active { color: var(--h-pink); }
.twc-fc__like.is-active .twc-i { fill: var(--h-pink); }

.twc-fc__comments:hover { color: var(--h-text); }

.twc-fc__save { margin-left: auto; }
.twc-fc__save:hover,
.twc-fc__save.is-saved { color: var(--h-lime); }
.twc-fc__save.is-saved .twc-i { fill: var(--h-lime); }

.twc-fc__source {
	margin: auto 0 0;
	padding-top: 9px;
	border-top: 1px solid var(--h-line-soft);
	font-size: 12.5px;
	color: var(--h-dim);
}

.twc-fc__source a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
}

.twc-fc__source a:hover { color: var(--h-text); }

/* ---- grid variant: byline header ---- */

.twc-fc__by {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 13px 9px;
	min-width: 0;
}

.twc-fc__avatar img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.twc-fc__handle {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--h-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.twc-fc__time {
	margin-left: auto;
	flex-shrink: 0;
	font-size: 12.5px;
	color: var(--h-dim);
}

/* ---- hero variant: accent border and overlapping badge ---- */

.twc-fc--hero { overflow: visible; }

.twc-fc--hero .twc-fc__media img,
.twc-fc--hero .twc-thumb-placeholder {
	aspect-ratio: 4 / 3;
	border-radius: var(--h-r) var(--h-r) 0 0;
}

.twc-fc__flag {
	position: absolute;
	top: -13px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 7px;
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	background: var(--h-pink);
}

.twc-fc--hero.twc-fc--pink { border-color: var(--h-pink); }
.twc-fc--hero.twc-fc--cyan { border-color: var(--h-cyan); }
.twc-fc--hero.twc-fc--lime { border-color: var(--h-lime); }

.twc-fc--pink .twc-fc__flag { background: var(--h-pink); color: #fff; }
.twc-fc--cyan .twc-fc__flag { background: var(--h-cyan); color: #00181d; }
.twc-fc--lime .twc-fc__flag { background: var(--h-lime); color: #0f1400; }

.twc-fc--hero .twc-fc__price { color: var(--h-lime); }

.twc-fc--hero .twc-fc__title { font-size: 17px; }

.twc-fc--hero.twc-fc--pink .twc-fc__like { color: var(--h-pink); }
.twc-fc--hero.twc-fc--cyan .twc-fc__like { color: var(--h-cyan); }
.twc-fc--hero.twc-fc--lime .twc-fc__like { color: var(--h-lime); }

/* ==========================================================================
   The seven-cell strip
   ========================================================================== */

.twc-strip2 {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border: 1px solid var(--h-line);
	border-radius: var(--h-r);
	background: var(--h-card-2);
	overflow: hidden;
}

.twc-strip2__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 22px 14px 20px;
	text-align: center;
	border-left: 1px solid var(--h-line-soft);
	transition: background-color 0.15s ease;
}

.twc-strip2__cell:first-child { border-left: 0; }
.twc-strip2__cell:hover { background: rgba(255, 255, 255, 0.035); }

.twc-strip2__icon { line-height: 0; }

.twc-strip2__label {
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.25;
}

.twc-strip2__text {
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--h-muted);
	max-width: 17ch;
}

.twc-strip2__cell--pink .twc-strip2__icon,
.twc-strip2__cell--pink .twc-strip2__label { color: var(--h-pink); }

.twc-strip2__cell--cyan .twc-strip2__icon,
.twc-strip2__cell--cyan .twc-strip2__label { color: var(--h-cyan); }

.twc-strip2__cell--lime .twc-strip2__icon,
.twc-strip2__cell--lime .twc-strip2__label { color: var(--h-lime); }

/* ==========================================================================
   Section head + For You grid
   ========================================================================== */

.twc-sec {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.twc-sec__title {
	margin: 0;
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 24px;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--h-text);
}

.twc-sec__aside {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--h-muted);
}

.twc-sec__aside:hover { color: var(--h-text); }

.twc-fcgrid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.twc-home__more {
	margin: 26px 0 0;
	text-align: center;
}

/* ==========================================================================
   Promo row
   ========================================================================== */

.twc-promos {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--h-gap);
	align-items: stretch;
}

.twc-promo {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 210px;
	padding: 22px;
	border: 1px solid var(--h-line);
	border-radius: var(--h-r);
	background: var(--h-card);
	overflow: hidden;
}

.twc-promo__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-width: 0;
	flex: 1 1 auto;
}

.twc-promo--feature {
	background: var(--h-pink);
	border-color: var(--h-pink);
	color: #fff;
}

.twc-promo__flag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: 7px;
	background: #101013;
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--h-lime);
}

.twc-promo__title {
	margin: 0;
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 21px;
	font-weight: 800;
	font-style: italic;
	line-height: 1.15;
	text-transform: uppercase;
	text-wrap: balance;
}

.twc-promo--cyan .twc-promo__title { color: var(--h-cyan); }
.twc-promo--lime .twc-promo__title { color: var(--h-lime); }

.twc-promo--lime {
	flex-direction: column;
	align-items: stretch;
	padding-bottom: 18px;
}

.twc-promo--lime .twc-promo__text { max-width: none; }

.twc-promo__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--h-muted);
	max-width: 26ch;
}

.twc-promo--feature .twc-promo__text { color: rgba(255, 255, 255, 0.92); }

.twc-promo__cta { margin: 6px 0 0; }

.twc-promo__note {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.85);
}

.twc-promo__art {
	position: relative;
	z-index: 1;
	flex: 0 0 34%;
	max-width: 34%;
	height: auto;
	object-fit: contain;
	align-self: center;
}

.twc-promo__art--empty {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: var(--h-r-sm);
	background:
		repeating-linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.05) 0 8px,
			transparent 8px 16px
		);
}

.twc-promo__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	flex: 0 0 auto;
	align-self: flex-start;
	margin-top: 2px;
	padding-right: 74px;
}

.twc-promo__thumb img,
.twc-promo__thumb .twc-thumb-placeholder {
	width: 52px;
	height: 60px;
	border-radius: 7px;
	object-fit: cover;
}

.twc-promo__badge {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	padding: 6px;
	border-radius: 50%;
	background: var(--h-pink);
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
}

/* ==========================================================================
   Newsletter + store finder
   ========================================================================== */

.twc-foot2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
	gap: var(--h-gap);
}

.twc-foot2__card {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 24px;
	border: 1px solid var(--h-line);
	border-radius: var(--h-r);
	background: var(--h-card);
}

.twc-foot2__icon {
	flex: 0 0 auto;
	line-height: 0;
	color: var(--h-cyan);
}

.twc-foot2__body {
	flex: 1 1 200px;
	min-width: 0;
}

.twc-foot2__title {
	margin: 0 0 5px;
	font-family: var(--twc-font-display, Montserrat, system-ui, sans-serif);
	font-size: 20px;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	color: var(--h-cyan);
}

.twc-foot2__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--h-muted);
}

.twc-foot2__cta { margin: 14px 0 0; }

.twc-foot2__form {
	display: flex;
	gap: 9px;
	margin: 0;
	flex: 1 1 260px;
	min-width: 0;
}

.twc-foot2__input {
	flex: 1 1 120px;
	min-width: 0;
	padding: 13px 14px;
	border: 1px solid var(--h-line);
	border-radius: 8px;
	background: #0f0f12;
	font-family: inherit;
	font-size: 14px;
	color: var(--h-text);
}

.twc-foot2__input::placeholder { color: var(--h-dim); }

.twc-foot2__input:focus {
	outline: none;
	border-color: var(--h-cyan);
}

.twc-foot2__map {
	flex: 0 0 38%;
	max-width: 38%;
	align-self: center;
	border-radius: var(--h-r-sm);
}

.twc-foot2__map--empty {
	display: block;
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(circle at 30% 45%, rgba(255, 30, 111, 0.35) 0 3px, transparent 4px),
		radial-gradient(circle at 62% 30%, rgba(255, 30, 111, 0.35) 0 3px, transparent 4px),
		radial-gradient(circle at 74% 62%, rgba(255, 30, 111, 0.35) 0 3px, transparent 4px),
		radial-gradient(circle at 45% 70%, rgba(255, 30, 111, 0.35) 0 3px, transparent 4px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px);
}

/* ==========================================================================
   Editor note
   ========================================================================== */

.twc-home .twc-empty-note {
	border-color: var(--h-line);
	background: var(--h-card);
	color: var(--h-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
	.twc-fcgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.twc-strip2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.twc-strip2__cell:nth-child(5) { border-left: 0; }
	.twc-strip2__cell:nth-child(n + 5) { border-top: 1px solid var(--h-line-soft); }
}

@media (max-width: 1024px) {
	.twc-hero2 {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.twc-hero2__sub { max-width: 46ch; }
	.twc-deck__nav--prev { left: 4px; }
	.twc-deck__nav--next { right: 4px; }

	.twc-promos,
	.twc-foot2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.twc-fcgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.twc-strip2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.twc-strip2__cell:nth-child(odd) { border-left: 0; }
	.twc-strip2__cell:nth-child(n + 3) { border-top: 1px solid var(--h-line-soft); }
}

@media (max-width: 620px) {
	.twc-home section { padding-inline: 16px; }

	.twc-fcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

	.twc-hero2__title { font-size: clamp(30px, 8vw, 40px); }

	.twc-promo {
		flex-direction: column;
		align-items: flex-start;
		min-height: 0;
	}

	.twc-promo__art,
	.twc-foot2__map {
		flex: 1 1 auto;
		max-width: 100%;
		width: 100%;
	}

	.twc-promo__badge { position: static; margin-top: 12px; }

	.twc-foot2__card { padding: 20px; }
}

@media (max-width: 420px) {
	.twc-fcgrid { grid-template-columns: minmax(0, 1fr); }
	.twc-strip2 { grid-template-columns: minmax(0, 1fr); }
	.twc-strip2__cell { border-left: 0; }
	.twc-strip2__cell + .twc-strip2__cell { border-top: 1px solid var(--h-line-soft); }
}

@media (prefers-reduced-motion: reduce) {
	.twc-home * { transition: none !important; }
	.twc-btn2:hover { transform: none; }
}

/* No Swiper: show the deck as a plain row that scrolls. */
.twc-deck--static .twc-deck__viewport { overflow-x: auto; }
.twc-deck--static .swiper-wrapper { display: flex; gap: 16px; }
.twc-deck--static .swiper-slide { flex: 0 0 min(300px, 78%); }
.twc-deck--static .twc-deck__nav,
.twc-deck--static .twc-deck__dots { display: none; }
