/* =========================================================
   TomatoCat Shop — Elementor widgets.
   Loaded only on pages that place one, through the widget's
   own get_style_depends().

   Colours come from the theme's variables with fallbacks, so
   the row still looks deliberate on somebody else's theme.
   ========================================================= */

.tc-pslider {
	--tc-ps-view: 4;
	--tc-ps-gap: 1.25rem;
	margin-block: var(--tc-space-lg, 2.5rem);
}

/* ---------- The words above the row ---------- */

.tc-pslider__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--tc-space-md, 1.5rem);
	margin-bottom: var(--tc-space-md, 1.5rem);
}

.tc-pslider__words { min-width: 0; flex: 1 1 min(100%, 34ch); }

.tc-pslider__title {
	margin: 0;
	font-size: var(--tc-fs-h2, clamp(1.4rem, 1.15rem + 1vw, 1.9rem));
	line-height: var(--tc-lh-heading, 1.25);
	color: var(--tc-text, #1c1b1a);
}

.tc-pslider__desc {
	margin: .6rem 0 0;
	max-width: 62ch;
	font-size: .95rem;
	line-height: 1.75;
	color: var(--tc-text-muted, #5a5754);
}

.tc-pslider__tools { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.tc-pslider__arrows { display: flex; gap: .4rem; }
.tc-pslider__arrows[hidden] { display: none; }

.tc-pslider__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	cursor: pointer;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: 50%;
	background: var(--tc-surface, #fff);
	color: var(--tc-text, #1c1b1a);
	transition: border-color .15s, background .15s, color .15s, opacity .15s;
}
.tc-pslider__arrow:hover:not(:disabled) {
	border-color: var(--tc-accent, #e0503c);
	color: var(--tc-accent, #e0503c);
}

/* Dimmed rather than removed. An arrow that disappears at the end of the row
   moves the one beside it, and the hand that was about to press it misses. */
.tc-pslider__arrow:disabled { opacity: .35; cursor: default; }

.tc-pslider__cta {
	display: inline-block;
	padding: .7rem 1.5rem;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: 999px;
	background: var(--tc-bg-alt, #faf7f4);
	color: var(--tc-text, #1c1b1a);
	font-size: .92rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s;
}
.tc-pslider__cta:hover {
	background: var(--tc-accent, #e0503c);
	border-color: var(--tc-accent, #e0503c);
	color: #fff;
}

/* ---------- The row ---------- */

/*
 * A scroll container with snap points, not a transformed track.
 *
 * It costs no JavaScript to work: a touchscreen swipes it, a trackpad scrolls
 * it, a keyboard tabs through it and the browser brings each card into view by
 * itself. The arrows only call scrollBy(), so a blocked script leaves a row
 * that still does everything except have arrows.
 */
.tc-pslider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--tc-ps-view) - 1) * var(--tc-ps-gap)) / var(--tc-ps-view));
	gap: var(--tc-ps-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	list-style: none;
	margin: 0;
	padding: 0 0 .5rem;
	scrollbar-width: thin;
}

.tc-pslider__item { scroll-snap-align: start; min-width: 0; }

.tc-pslider__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.tc-pslider__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--tc-radius, 10px);
	background: var(--tc-bg-alt, #faf7f4);
	margin-bottom: .7rem;
}

/* The ratio is declared here as well as in the crop, so the row has its height
   before any picture arrives and the page does not shuffle while they load. */
.tc-pslider__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .35s ease;
}
.tc-pslider__link:hover .tc-pslider__img { transform: scale(1.04); }

.tc-pslider__img--none { background: var(--tc-bg-alt, #faf7f4); }

.tc-pslider__flag {
	position: absolute;
	top: .55rem;
	left: .55rem;
	padding: .2rem .55rem;
	border-radius: 999px;
	background: var(--tc-accent, #e0503c);
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.5;
}

.tc-pslider__name {
	display: block;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--tc-text, #1c1b1a);
}

.tc-pslider__price {
	display: block;
	margin-top: .3rem;
	font-size: .95rem;
	color: var(--tc-text-muted, #5a5754);
}
.tc-pslider__price del { opacity: .6; margin-right: .35rem; }
.tc-pslider__price ins { text-decoration: none; color: var(--tc-accent, #e0503c); font-weight: 600; }

.tc-pslider__empty { color: var(--tc-text-muted, #5a5754); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
	.tc-pslider__track { scroll-behavior: auto; }
	.tc-pslider__img { transition: none; }
	.tc-pslider__link:hover .tc-pslider__img { transform: none; }
}

/* ---------- Hero banner ---------- */

.tc-hero2 {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 60vh;
	overflow: hidden;
	isolation: isolate;
	background: #1c1b1a;
}

/*
 * The picture is taken out of the flow and the words are not.
 *
 * Left in the grid an <img> contributes its own natural height, and the banner
 * then takes the shape of whatever was uploaded instead of the height that was
 * asked for. Absolutely positioned, it is sized by the banner rather than
 * sizing it, and object-fit crops the overflow.
 */
.tc-hero2__img,
.tc-hero2__veil,
.tc-hero2__scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tc-hero2__img { object-fit: cover; }
.tc-hero2__veil { background: #000; opacity: .4; }

/* Not a setting. White type over an arbitrary photograph is unreadable about
   half the time — a pale sky, a concrete floor — and this is what guarantees
   the headline on every picture rather than on the ones that happened to be
   dark. */
.tc-hero2__scrim {
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, .35) 0%,
		rgba(0, 0, 0, .05) 35%,
		rgba(0, 0, 0, .5) 75%,
		rgba(0, 0, 0, .78) 100%
	);
}

.tc-hero2__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--tc-space-xl, clamp(2.5rem, 7vw, 5rem)) var(--tc-gutter, clamp(1rem, 4vw, 2.25rem));
	color: #fff;
}

.tc-hero2__words { max-width: 620px; }

.tc-hero2__title {
	margin: 0;
	font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem);
	line-height: var(--tc-lh-heading, 1.25);
	color: inherit;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}

.tc-hero2__desc {
	margin: .75rem 0 0;
	font-size: 1.05rem;
	line-height: 1.75;
	color: inherit;
	opacity: .92;
}

.tc-hero2__cta {
	display: inline-block;
	margin-top: 1.25rem;
	padding: .8rem 1.9rem;
	border: 1px solid #fff;
	border-radius: 999px;
	background: #fff;
	color: #1c1b1a;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
.tc-hero2__cta:hover {
	background: var(--tc-accent, #e0503c);
	border-color: var(--tc-accent, #e0503c);
	color: #fff;
}

/* ---------- Contact channels ---------- */

.tc-contact { margin-block: var(--tc-space-lg, 2.5rem); }
.tc-contact__head { margin-bottom: var(--tc-space-lg, 2.5rem); }

.tc-contact__title {
	margin: 0;
	font-size: var(--tc-fs-h2, clamp(1.4rem, 1.15rem + 1vw, 1.9rem));
	line-height: var(--tc-lh-heading, 1.25);
	color: var(--tc-text, #1c1b1a);
}

.tc-contact__desc {
	margin: .7rem 0 0;
	max-width: 62ch;
	font-size: .95rem;
	line-height: 1.75;
	color: var(--tc-text-muted, #5a5754);
}
.tc-contact__head[style*="center"] .tc-contact__desc { margin-inline: auto; }

.tc-contact__list {
	display: grid;
	gap: var(--tc-space-md, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.tc-contact__link {
	display: flex;
	align-items: center;
	gap: .9rem;
	text-decoration: none;
	color: var(--tc-text, #1c1b1a);
	transition: border-color .15s, background .15s, color .15s;
}

.tc-contact__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--tc-accent, #e0503c);
	background: var(--tc-bg-alt, #faf7f4);
}

.tc-contact__body { min-width: 0; }
.tc-contact__name { display: block; font-weight: 600; line-height: 1.4; }

/* The address wraps rather than running off the side: an overflowing link is
   invisible on a phone and pushes the whole page sideways. */
.tc-contact__value {
	display: block;
	margin-top: .15rem;
	font-size: .84rem;
	line-height: 1.5;
	color: var(--tc-text-muted, #5a5754);
	overflow-wrap: anywhere;
}

.tc-contact--cards .tc-contact__link {
	height: 100%;
	padding: 1rem 1.15rem;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: var(--tc-radius, 10px);
	background: var(--tc-surface, #fff);
}
.tc-contact--cards .tc-contact__link:hover {
	border-color: var(--tc-accent, #e0503c);
	color: var(--tc-accent, #e0503c);
}
.tc-contact--cards .tc-contact__link:hover .tc-contact__icon {
	background: var(--tc-accent, #e0503c);
	color: #fff;
}

.tc-contact--buttons .tc-contact__list { display: flex; flex-wrap: wrap; gap: .7rem; }
.tc-contact--buttons .tc-contact__link {
	gap: .55rem;
	padding: .7rem 1.3rem;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: 999px;
	font-size: .95rem;
}
.tc-contact--buttons .tc-contact__link:hover {
	border-color: var(--tc-accent, #e0503c);
	color: var(--tc-accent, #e0503c);
}
.tc-contact--buttons .tc-contact__icon { width: 22px; height: 22px; background: none; border-radius: 0; }
.tc-contact--buttons .tc-contact__icon svg { width: 18px; height: 18px; }

/* =========================================================
   The product card, shared by the grid and the promotion
   block. Light by default — the colours come from the
   theme's own variables, with a plain fallback so the
   block is never unreadable on a theme that has none.
   ========================================================= */

.tc-pcard {
	display: flex;
	flex-direction: column;
	margin: 0;
	list-style: none;
	min-width: 0;
}

/*
 * The frame is sized by aspect-ratio and the picture is taken out of the flow
 * inside it. An <img> left in the flow contributes its own natural height, and
 * then `height: 100%` resolves against a parent whose height depends on the
 * image — which is how a row of photographs at four different shapes goes
 * ragged no matter what is declared.
 */
.tc-pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: .85rem;
	overflow: hidden;
	background: var(--tc-tile, #f2f1ef);
}

.tc-pcard__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	margin: 0;
	border-radius: 0;
	object-fit: contain;
	transition: transform .45s ease;
}

.tc-pcard__img--none { background: var(--tc-tile, #f2f1ef); }

@media (hover: hover) {
	.tc-pcard__media:hover .tc-pcard__img { transform: scale(1.04); }
}

.tc-pcard__flag {
	position: absolute;
	top: .55rem;
	left: .55rem;
	padding: .2rem .55rem;
	border-radius: 4px;
	background: var(--tc-accent, #e0503c);
	color: #fff;
	font-size: .7rem;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: .02em;
}

.tc-pcard__name {
	margin: 0 0 .35rem;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.55;
	color: var(--tc-text, #1c1b1a);
}
.tc-pcard__name a { color: inherit; text-decoration: none; }
.tc-pcard__name a:hover { color: var(--tc-accent, #e0503c); }

.tc-pcard__price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--tc-accent, #e0503c);
	line-height: 1.6;
}
/* WooCommerce writes the old price as <del> and the new one as <ins>; both
   arrive inside one string, so they are styled rather than rebuilt. */
.tc-pcard__price del {
	margin-right: .45rem;
	color: var(--tc-text-muted, #5a5754);
	font-weight: 400;
	text-decoration-thickness: 1px;
}
.tc-pcard__price ins { text-decoration: none; color: inherit; }
.tc-pcard__price .woocommerce-Price-currencySymbol { font-weight: inherit; }

/* ---------- The colour dots ---------- */

.tc-pcard__dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem;
	margin: .5rem 0 0;
	padding: 0;
	list-style: none;
}

.tc-pcard__dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--tc-dot, #ccc);
	/* An inset line rather than an outline: a white swatch on a white card is
	   otherwise an invisible dot, and an outline outside the circle makes every
	   dark one look haloed. */
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.tc-pcard__more {
	font-size: .76rem;
	color: var(--tc-text-muted, #5a5754);
	line-height: 1;
}

.tc-pcard .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.tc-pcard__img { transition: none; }
	.tc-pcard__media:hover .tc-pcard__img { transform: none; }
}

/* =========================================================
   Product grid
   ========================================================= */

.tc-pgrid__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	margin-bottom: 1.75rem;
}

.tc-pgrid__words { min-width: 0; }

.tc-pgrid__title {
	margin: 0;
	font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
	line-height: 1.25;
	color: var(--tc-text, #1c1b1a);
}

.tc-pgrid__desc {
	margin: .4rem 0 0;
	color: var(--tc-text-muted, #5a5754);
	font-size: .95rem;
	line-height: 1.7;
}

.tc-pgrid__cta {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	flex: 0 0 auto;
	color: var(--tc-text, #1c1b1a);
	font-size: .92rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}
.tc-pgrid__cta:hover { color: var(--tc-accent, #e0503c); }
.tc-pgrid__cta svg { display: block; }

.tc-pgrid__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-pgrid__empty,
.tc-promo__empty,
.tc-faq__empty,
.tc-feat__empty {
	margin: 0;
	padding: 1rem;
	border: 1px dashed var(--tc-border, #e7e3df);
	color: var(--tc-text-muted, #5a5754);
	font-size: .9rem;
}

/* =========================================================
   Promotion panel beside products
   ========================================================= */

.tc-promo {
	--tc-promo-w: 32%;
	display: grid;
	gap: 1.25rem;
}

.tc-promo__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-promo__panel {
	position: relative;
	display: flex;
	align-items: flex-start;
	overflow: hidden;
	min-height: 320px;
	background: var(--tc-text, #1c1b1a);
}

.tc-promo__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tc-promo__veil {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: .45;
}

.tc-promo__words {
	position: relative;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	color: #fff;
	max-width: 32ch;
}

.tc-promo__title {
	margin: 0;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
	line-height: 1.25;
	color: inherit;
}

.tc-promo__desc {
	margin: .6rem 0 0;
	font-size: .95rem;
	line-height: 1.7;
	color: inherit;
	opacity: .88;
}

.tc-promo__cta {
	display: inline-block;
	margin-top: 1.2rem;
	padding: .7rem 1.6rem;
	border: 1px solid #fff;
	border-radius: 999px;
	background: #fff;
	color: var(--tc-text, #1c1b1a);
	font-size: .92rem;
	font-weight: 500;
	text-decoration: none;
	transition: opacity .15s;
}
.tc-promo__cta:hover { opacity: .85; }

/*
 * Two columns only once there is room for them. Below this the panel and the
 * products stack, and the panel is placed first — it carries the offer, and an
 * offer under six products is an offer nobody scrolled back up to read.
 */
@media (min-width: 860px) {
	.tc-promo {
		grid-template-columns: var(--tc-promo-w) minmax(0, 1fr);
		align-items: stretch;
	}

	/* The products are written first in the markup whichever side they are
	   painted on, so the order a screen reader meets them in does not change
	   with a style setting. */
	.tc-promo--left > .tc-promo__panel { grid-column: 1; grid-row: 1; }
	.tc-promo--left > .tc-promo__list  { grid-column: 2; grid-row: 1; }

	.tc-promo--right { grid-template-columns: minmax(0, 1fr) var(--tc-promo-w); }
	.tc-promo--right > .tc-promo__list  { grid-column: 1; grid-row: 1; }
	.tc-promo--right > .tc-promo__panel { grid-column: 2; grid-row: 1; }
}

@media (max-width: 859px) {
	.tc-promo__panel { order: -1; min-height: 240px; }
	.tc-promo__words { max-width: none; }
}

/* =========================================================
   Questions
   ========================================================= */

.tc-faq__head { margin-bottom: 2rem; }

.tc-faq__title {
	margin: 0;
	font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
	line-height: 1.25;
	color: var(--tc-text, #1c1b1a);
}

.tc-faq__desc {
	margin: .5rem auto 0;
	max-width: 60ch;
	color: var(--tc-text-muted, #5a5754);
	font-size: .95rem;
	line-height: 1.7;
}

.tc-faq__body { display: grid; gap: 2rem; align-items: start; }

.tc-faq__item {
	border-bottom: 1px solid var(--tc-border, #e7e3df);
}

.tc-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--tc-text, #1c1b1a);
	cursor: pointer;
	list-style: none;
}
/* Both are needed: one hides the triangle in Safari, the other everywhere
   else, and neither alone is enough. */
.tc-faq__q::-webkit-details-marker { display: none; }
.tc-faq__q::marker { content: ''; }
.tc-faq__q:hover { color: var(--tc-accent, #e0503c); }
.tc-faq__q:focus-visible { outline: 2px solid var(--tc-accent, #e0503c); outline-offset: 2px; }

/*
 * A plus that becomes a minus, built from one bar and a pseudo-element rather
 * than two icons — so there is no second glyph to keep in step and nothing to
 * swap when the item opens.
 */
.tc-faq__mark {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}
.tc-faq__mark::before,
.tc-faq__mark::after {
	content: '';
	position: absolute;
	inset: 50% 0 auto 0;
	height: 1.5px;
	background: currentColor;
	transform: translateY(-50%);
	transition: transform .2s ease, opacity .2s ease;
}
.tc-faq__mark::after { transform: translateY(-50%) rotate(90deg); }
.tc-faq__item[open] .tc-faq__mark::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.tc-faq__a {
	padding: 0 0 1.15rem;
	max-width: 70ch;
	color: var(--tc-text-muted, #5a5754);
	font-size: .95rem;
	line-height: 1.8;
}

.tc-faq__media { overflow: hidden; aspect-ratio: 4 / 3; }
.tc-faq__img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 860px) {
	.tc-faq--split .tc-faq__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
	.tc-faq--left .tc-faq__list  { grid-column: 2; grid-row: 1; }
	.tc-faq--left .tc-faq__media { grid-column: 1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.tc-faq__mark::before,
	.tc-faq__mark::after { transition: none; }
}

/* =========================================================
   Feature strip
   ========================================================= */

.tc-feat {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: var(--tc-feat-bg, var(--tc-bg-alt, #faf7f4));
}

.tc-feat__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 28px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

a.tc-feat__item:hover .tc-feat__title { color: var(--tc-accent, #e0503c); }

/*
 * A line between the cells, drawn by the grid's own gap showing through.
 *
 * The obvious build is a left border on every cell with the first one removed,
 * and it is wrong the moment the strip wraps: `:first-child` is the first cell
 * in the whole grid, not the first in each row, so every row after the first
 * gets a stray rule down the outside edge. A one-pixel gap over a coloured
 * background has no such idea of rows — it lines whatever the grid happens to
 * be doing, horizontally and vertically, at every column count.
 */
.tc-feat--lines {
	gap: 1px;
	background: var(--tc-feat-line, var(--tc-border, #e7e3df));
}
.tc-feat--lines .tc-feat__item { background: var(--tc-feat-bg, var(--tc-bg-alt, #faf7f4)); }

.tc-feat--above .tc-feat__item { flex-direction: column; align-items: flex-start; gap: .75rem; }

.tc-feat__icon {
	flex: 0 0 auto;
	display: block;
	font-size: 34px;
	line-height: 1;
	color: var(--tc-text, #1c1b1a);
}
.tc-feat__icon svg { width: 1em; height: 1em; display: block; fill: currentColor; }
.tc-feat__icon i { font-size: inherit; }

.tc-feat__words { display: block; min-width: 0; }

.tc-feat__title {
	display: block;
	margin-bottom: .3rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--tc-text, #1c1b1a);
}

.tc-feat__text {
	display: block;
	color: var(--tc-text-muted, #5a5754);
	font-size: .9rem;
	line-height: 1.7;
}


/* ---------- The shop's address, above the channels ---------- */

.tc-contact__place {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--tc-border, #e7e3df);
}

/* <address> is italic by default in every browser. The element is right, so
   the style is corrected rather than the element swapped for a <div>. */
.tc-contact__address {
	margin: 0;
	font-style: normal;
	font-size: 1rem;
	line-height: 1.85;
	color: var(--tc-text, #1c1b1a);
}

.tc-contact__hours {
	margin: .6rem 0 0;
	color: var(--tc-text-muted, #5a5754);
	font-size: .92rem;
	line-height: 1.8;
}

.tc-contact__map {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: .9rem;
	padding: .55rem 1.1rem;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: 999px;
	color: var(--tc-text, #1c1b1a);
	font-size: .9rem;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
.tc-contact__map:hover {
	background: var(--tc-accent, #e0503c);
	border-color: var(--tc-accent, #e0503c);
	color: #fff;
}
.tc-contact__map svg { display: block; }

.tc-contact__empty {
	margin: 0;
	padding: 1rem;
	border: 1px dashed var(--tc-border, #e7e3df);
	color: var(--tc-text-muted, #5a5754);
	font-size: .9rem;
}

/* =========================================================
   FAQ articles — one block per question, picture beside it
   ========================================================= */

.tc-faqa {
	--tc-faqa-img: 38%;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.tc-faqa__item {
	display: grid;
	gap: 1.5rem 2.5rem;
	align-items: start;
	border: 0 solid var(--tc-border, #e7e3df);
}

/* A rule under every block except the last — a line under the final answer is
   a line with nothing below it to separate. */
.tc-faqa--rules .tc-faqa__item {
	border-bottom-width: 1px;
	padding-bottom: 56px;
}
.tc-faqa--rules .tc-faqa__item:last-child { border-bottom-width: 0; padding-bottom: 0; }

.tc-faqa__q {
	margin: 0 0 .9rem;
	font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem);
	line-height: 1.35;
	color: var(--tc-text, #1c1b1a);
}
.tc-faqa__q a { color: inherit; text-decoration: none; }
.tc-faqa__q a:hover { color: var(--tc-accent, #e0503c); }

.tc-faqa__a {
	color: var(--tc-text-muted, #5a5754);
	font-size: 1rem;
	line-height: 1.95;
}
.tc-faqa__a > *:last-child { margin-bottom: 0; }
.tc-faqa__a p { margin: 0 0 1rem; }

.tc-faqa__media { overflow: hidden; }
.tc-faqa__img { width: 100%; height: auto; display: block; }

/*
 * Two columns only where there is room. Below this the picture goes above the
 * words — the other way round would put a screen of text between the heading
 * and the picture it belongs to.
 */
@media (min-width: 820px) {
	.tc-faqa__item {
		grid-template-columns: minmax(0, 1fr) var(--tc-faqa-img);
	}

	.tc-faqa--left .tc-faqa__words { grid-column: 2; grid-row: 1; }
	.tc-faqa--left .tc-faqa__media { grid-column: 1; grid-row: 1; }

	.tc-faqa--left .tc-faqa__item { grid-template-columns: var(--tc-faqa-img) minmax(0, 1fr); }

	/*
	 * Alternating is done on even items only, flipping whatever the chosen
	 * side was. Writing both sides out would mean the "alternate" switch and
	 * the "side" switch could disagree about where odd items go.
	 */
	.tc-faqa--alt.tc-faqa--right .tc-faqa__item:nth-child(even) {
		grid-template-columns: var(--tc-faqa-img) minmax(0, 1fr);
	}
	.tc-faqa--alt.tc-faqa--right .tc-faqa__item:nth-child(even) .tc-faqa__words { grid-column: 2; grid-row: 1; }
	.tc-faqa--alt.tc-faqa--right .tc-faqa__item:nth-child(even) .tc-faqa__media { grid-column: 1; grid-row: 1; }

	.tc-faqa--alt.tc-faqa--left .tc-faqa__item:nth-child(even) {
		grid-template-columns: minmax(0, 1fr) var(--tc-faqa-img);
	}
	.tc-faqa--alt.tc-faqa--left .tc-faqa__item:nth-child(even) .tc-faqa__words { grid-column: 1; grid-row: 1; }
	.tc-faqa--alt.tc-faqa--left .tc-faqa__item:nth-child(even) .tc-faqa__media { grid-column: 2; grid-row: 1; }

	/* A question with no picture takes the whole width rather than leaving a
	   hole where one would have been. */
	.tc-faqa .tc-faqa__item--nopic { grid-template-columns: minmax(0, 1fr); }
	.tc-faqa .tc-faqa__item--nopic .tc-faqa__words { grid-column: 1; }
}

@media (max-width: 819px) {
	.tc-faqa__item { grid-template-columns: minmax(0, 1fr); }
	.tc-faqa__media { order: -1; }
}

.tc-faqa__empty {
	margin: 0;
	padding: 1rem;
	border: 1px dashed var(--tc-border, #e7e3df);
	color: var(--tc-text-muted, #5a5754);
	font-size: .9rem;
}

/* =========================================================
   Team
   ========================================================= */

.tc-team__head {
	display: grid;
	gap: 1rem 3rem;
	margin-bottom: 2.5rem;
}

/* The description beside the title rather than under it. Below 900 they stack
   whatever is chosen — side by side in a phone's width is two narrow columns,
   which is worse than either. */
@media (min-width: 900px) {
	.tc-team__head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
}

.tc-team__head--centre { text-align: center; justify-items: center; }
.tc-team__head--centre .tc-team__desc { max-width: 62ch; }

/* min-width: 0 so a long title wraps instead of forcing the grid wider than
   its column — grid items default to min-content, which for a heading is its
   longest word. */
.tc-team__headmain { min-width: 0; }

.tc-team__eyebrow {
	margin: 0 0 .4rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tc-accent, #e0503c);
}

.tc-team__title {
	margin: 0;
	font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem);
	line-height: 1.1;
	color: var(--tc-text, #1c1b1a);
}

.tc-team__desc {
	margin: 0;
	color: var(--tc-text-muted, #5a5754);
	font-size: 1rem;
	line-height: 1.8;
}

.tc-team__list {
	--tc-team-cols: 4;
	--tc-team-cols-t: 2;
	display: grid;
	grid-template-columns: repeat(var(--tc-team-cols), minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1024px) {
	.tc-team__list { grid-template-columns: repeat(var(--tc-team-cols-t), minmax(0, 1fr)); }
}

.tc-team__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem 1.25rem;
	border-radius: 18px;
	background: var(--tc-bg-alt, #faf7f4);
	min-width: 0;
}

/*
 * The frame decides the size, not the file.
 *
 * A fixed square with the picture covering it is what makes eight portraits
 * from eight cameras the same circle. `aspect-ratio` on the frame rather than
 * a height on the image, because an <img> left to its own devices contributes
 * its natural height and drags the card with it.
 */
.tc-team__photo {
	position: relative;
	width: 200px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--tc-tile, #f2f1ef);
	box-shadow: 0 0 0 6px var(--tc-team-ring, transparent);
}

.tc-team__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	/* Faces sit in the upper half of a portrait far more often than the
	   middle, so the crop is nudged up rather than centred. */
	object-position: 50% 35%;
}

.tc-team__name {
	margin: 0 0 .25rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--tc-text, #1c1b1a);
}

.tc-team__role {
	margin: 0;
	font-size: .95rem;
	line-height: 1.6;
	color: var(--tc-text-muted, #5a5754);
}

.tc-team__bio {
	margin: .7rem 0 0;
	font-size: .9rem;
	line-height: 1.75;
	color: var(--tc-text-muted, #5a5754);
}

.tc-team__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none;
}

.tc-team__social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tc-accent, #e0503c);
	color: #fff;
	text-decoration: none;
	transition: opacity .15s, transform .15s;
}
.tc-team__social a:hover { opacity: .85; transform: translateY(-2px); }
.tc-team__social a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.tc-team__social svg { display: block; }

.tc-team .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/*
 * On a phone the grid becomes one swipeable row.
 *
 * Scroll-snap rather than a slider library: it swipes, it scrolls, it keeps
 * working with the script blocked, and it costs nothing to download. The dots
 * below are the only part that needs JavaScript, and they are an affordance
 * rather than the mechanism.
 */
@media (max-width: 640px) {
	.tc-team--swipe .tc-team__list {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		/* Room for the card shadow and the snap to land cleanly. */
		padding-bottom: .5rem;
	}
	.tc-team--swipe .tc-team__list::-webkit-scrollbar { display: none; }

	.tc-team--swipe .tc-team__card {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}

	.tc-team:not(.tc-team--swipe) .tc-team__list { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 641px) {
	/* The dots belong to the swipe row and nothing else. */
	.tc-team__dots { display: none !important; }
}

.tc-team__dots {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin-top: 1.25rem;
}

.tc-team__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tc-border, #e7e3df);
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.tc-team__dot[aria-current="true"] { background: var(--tc-accent, #e0503c); transform: scale(1.25); }
.tc-team__dot:focus-visible { outline: 2px solid var(--tc-accent, #e0503c); outline-offset: 3px; }

.tc-team__empty,
.tc-mt__empty {
	margin: 0;
	padding: 1rem;
	border: 1px dashed var(--tc-border, #e7e3df);
	color: var(--tc-text-muted, #5a5754);
	font-size: .9rem;
}

/* =========================================================
   Slideshow + text
   ========================================================= */

.tc-mt {
	--tc-mt-w: 50%;
	display: grid;
	gap: 56px;
	align-items: center;
}

.tc-mt__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tc-tile, #f2f1ef);
}

/*
 * Every picture is in the same place and all but one is transparent. Fading
 * between two things that occupy one box is the only way the box does not
 * change height as they swap — and height changing under a paragraph somebody
 * is reading is the thing that makes these blocks feel broken.
 */
.tc-mt__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	opacity: 0;
	transition: opacity .8s ease;
}
.tc-mt__img.is-on { opacity: 1; }

.tc-mt__dots {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	display: flex;
	gap: .45rem;
	z-index: 2;
}

.tc-mt__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.tc-mt__dot[aria-current="true"] { background: var(--tc-dot-on, #fff); transform: scale(1.3); }
.tc-mt__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.tc-mt__eyebrow {
	margin: 0 0 .5rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tc-accent, #e0503c);
}

.tc-mt__title {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.6rem);
	line-height: 1.2;
	color: var(--tc-text, #1c1b1a);
}

.tc-mt__text {
	color: var(--tc-text-muted, #5a5754);
	font-size: 1rem;
	line-height: 1.95;
}
.tc-mt__text > *:last-child { margin-bottom: 0; }

.tc-mt__cta {
	display: inline-block;
	margin-top: 1.5rem;
	padding: .75rem 1.7rem;
	border: 1px solid var(--tc-btn-bg, var(--tc-accent, #e0503c));
	border-radius: 999px;
	background: var(--tc-btn-bg, var(--tc-accent, #e0503c));
	color: var(--tc-btn-text, #fff);
	font-size: .95rem;
	font-weight: 500;
	text-decoration: none;
	transition: opacity .15s;
}
.tc-mt__cta:hover { opacity: .88; }

@media (min-width: 860px) {
	.tc-mt { grid-template-columns: var(--tc-mt-w) minmax(0, 1fr); }

	/* Placed by column, not reordered: the words stay first in the markup
	   whichever side they are painted on. */
	.tc-mt--left > .tc-mt__media { grid-column: 1; grid-row: 1; }
	.tc-mt--left > .tc-mt__words { grid-column: 2; grid-row: 1; }

	.tc-mt--right { grid-template-columns: minmax(0, 1fr) var(--tc-mt-w); }
	.tc-mt--right > .tc-mt__words { grid-column: 1; grid-row: 1; }
	.tc-mt--right > .tc-mt__media { grid-column: 2; grid-row: 1; }
}

@media (max-width: 859px) {
	.tc-mt { grid-template-columns: minmax(0, 1fr); }
	.tc-mt__media { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
	.tc-mt__img { transition: none; }
	.tc-team__social a { transition: none; }
	.tc-team__social a:hover { transform: none; }
}

/* =========================================================
   Picture cards — one shape for every picture, text under
   ========================================================= */

.tc-shots__head { margin-bottom: 2.5rem; }

.tc-shots__eyebrow {
	margin: 0 0 .4rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tc-accent, #e0503c);
}

.tc-shots__title {
	margin: 0;
	font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.6rem);
	line-height: 1.2;
	color: var(--tc-text, #1c1b1a);
}

.tc-shots__desc {
	margin: .6rem auto 0;
	max-width: 62ch;
	color: var(--tc-text-muted, #5a5754);
	font-size: 1rem;
	line-height: 1.8;
}

.tc-shots__list {
	--tc-shots-cols: 3;
	--tc-shots-cols-t: 2;
	--tc-shots-cols-m: 1;
	display: grid;
	grid-template-columns: repeat(var(--tc-shots-cols), minmax(0, 1fr));
	column-gap: 32px;
	row-gap: 20px;
	/* A long caption grows its own card downwards instead of stretching every
	   card in the row to match it. */
	align-items: start;
}

@media (max-width: 1024px) {
	.tc-shots__list { grid-template-columns: repeat(var(--tc-shots-cols-t), minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.tc-shots__list { grid-template-columns: repeat(var(--tc-shots-cols-m), minmax(0, 1fr)); }
}

.tc-shot { min-width: 0; }

/*
 * The frame decides the shape, not the file.
 *
 * `aspect-ratio` on the box with the picture taken out of the flow inside it.
 * An <img> left in the flow contributes its own natural height, and then
 * `height: 100%` resolves against a parent whose height depends on the image —
 * which is how a row of photographs from three different sources ends up three
 * different heights with the captions starting in three different places.
 */
.tc-shot__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 16px;
	background: var(--tc-tile, #f2f1ef);
	transition: transform .35s ease, box-shadow .35s ease;
}

.tc-shot__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform .5s ease;
}

/* A hairline set in from the edge, when asked for. A pseudo-element rather
   than a border on the box, so it sits over the picture instead of adding to
   the box's size and changing the shape it was given. */
.tc-shots--framed .tc-shot__media::after {
	content: '';
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 10px;
	pointer-events: none;
}

/* Only where there is a pointer to hover with. On a touchscreen a hover state
   sticks after a tap and has to be tapped away. */
@media (hover: hover) {
	.tc-shots--lift .tc-shot__media:hover {
		transform: translateY(-4px);
		box-shadow: 0 14px 34px rgba(28, 27, 26, .16);
	}
	.tc-shots--lift .tc-shot__media:hover .tc-shot__img { transform: scale(1.05); }
}

.tc-shot__media--none { background: var(--tc-tile, #f2f1ef); }

.tc-shot__words {
	padding-top: 1.25rem;
	text-align: center;
	border: 0 solid var(--tc-border, #e7e3df);
}

.tc-shots--rules .tc-shot__words { border-bottom-width: 1px; padding-bottom: 1.25rem; }

.tc-shot__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.65;
	color: var(--tc-text, #1c1b1a);
	/* Thai wraps mid-word without this, because the browser has no dictionary
	   for where a Thai word ends. */
	word-break: normal;
	overflow-wrap: break-word;
}
.tc-shot__title a { color: inherit; text-decoration: none; }
.tc-shot__title a:hover { color: var(--tc-accent, #e0503c); }

.tc-shot__text {
	margin: .5rem 0 0;
	font-size: .92rem;
	line-height: 1.8;
	color: var(--tc-text-muted, #5a5754);
}

.tc-shots__empty {
	margin: 0;
	padding: 1rem;
	border: 1px dashed var(--tc-border, #e7e3df);
	color: var(--tc-text-muted, #5a5754);
	font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
	.tc-shot__media,
	.tc-shot__img { transition: none; }
	.tc-shots--lift .tc-shot__media:hover { transform: none; }
	.tc-shots--lift .tc-shot__media:hover .tc-shot__img { transform: none; }
}
