/*
 * The Cafe welcome page. See TC_Home and templates/home/welcome.php.
 *
 * Colours are sampled from the design rather than guessed at, and named for
 * what they are so the page can be re-skinned in one block.
 *
 * The page sets its own background on .tc-home rather than on <body>: the theme
 * owns <body>, and a front page that repainted it would repaint the header and
 * footer with it.
 *
 * Sections, top to bottom: the order grid, the hero (now the explanation's
 * opening), the four points, the roasters, and the dark "how it works" band. Light sections alternate cream
 * and a deeper cream so each reads as its own block without rules between.
 */

/*
 * The tokens, on the home pages' <body> and on .tc-cards: the coffee cards
 * on a roaster's ordering page, and the pack and reviews dialogs, which sit
 * on <body> there. Nearer than storefront.css's own tokens on
 * #tapper-cafe-app, so a card reads the same on both pages.
 */
body.tc-home-page,
.tc-cards {
	--tc-cream: #FFFDF8;
	--tc-cream-deep: #F5EFE3;
	--tc-card: #FFFFFF;
	--tc-ink: #121111;
	--tc-body: #413E3C;
	--tc-muted: #6B6660;
	--tc-line: rgba(18, 17, 17, 0.1);
	--tc-green: #29594B;
	--tc-green-dark: #1F463B;
	/* A plain link's blue: "Why this coffee?" (owner, 2026-10-08). 6.6:1 on white. */
	--tc-link: #1F5FAD;
	--tc-green-soft: #E4EEE9;
	--tc-amber: #F3AA22;
	/* The accent where it sits on cream: the bright amber is 1.8:1 there. */
	--tc-amber-ink: #8A5A00;
	--tc-kraft: #D9BF97;
	/* A roast tile with no roast colour to go by: plain roasted-coffee brown. */
	--tc-roast: #6F4E37;
	/*
	 * Flavour families (TC_Taste_Profile::families()), for the dot before
	 * each tasting note on a card. Decorative: the note's word carries it.
	 */
	--tc-taste-chocolatey: #5B3A29;
	--tc-taste-sweet: #C8892B;
	--tc-taste-nutty: #A47148;
	--tc-taste-fruity: #D0533F;
	--tc-taste-floral: #B0659A;
	--tc-taste-spiced: #7D6B2F;
	--tc-on-dark: #F1EFE9;
	--tc-on-dark-soft: #C0BBB3;

	--tc-radius: 18px;
	--tc-radius-sm: 14px;
	--tc-shadow: 0 18px 40px rgba(18, 17, 17, 0.08);
	--tc-shadow-lift: 0 14px 34px rgba(18, 17, 17, 0.16);

	/*
	 * What the dialogs on <body> are drawn with: a deep-cream band for the
	 * head and the foot, a darker scrim, a crisp edge, and the short shadow
	 * under anything small that is pressed. The same names and values as
	 * tapper-cafe-core's tc-ui.css, which every other overlay reads them
	 * from -- change both. Here rather than by putting that sheet's carrier
	 * class on these dialogs: the place chooser is printed by the server into
	 * cached pages, and a class a cached page does not have yet would leave
	 * every one of these undefined.
	 */
	--tc-line-strong: rgba(18, 17, 17, 0.2);
	--tc-danger: #9B2C1F;
	--tc-danger-soft: #FBEDEB;
	--tc-band: #F5EFE3;
	--tc-band-line: rgba(18, 17, 17, 0.12);
	--tc-scrim: rgba(18, 17, 17, 0.55);
	--tc-shadow-modal: 0 0 0 1px rgba(18, 17, 17, 0.12), 0 4px 10px rgba(18, 17, 17, 0.14), 0 24px 60px rgba(18, 17, 17, 0.32);
	--tc-shadow-pop: 0 2px 6px rgba(18, 17, 17, 0.1), 0 14px 34px rgba(18, 17, 17, 0.2);
	--tc-shadow-chip: 0 1px 2px rgba(18, 17, 17, 0.06), 0 2px 6px rgba(18, 17, 17, 0.08);
	--tc-shadow-chip-on: inset 0 0 0 1px var(--tc-green), 0 2px 6px rgba(41, 89, 75, 0.18);
	--tc-shadow-go: 0 2px 6px rgba(41, 89, 75, 0.28);

	/*
	 * The brand's face, taken from the theme rather than restated here, so the
	 * front page follows whatever Motta's typography is set to. The fallback
	 * repeats the theme's own stack for the case where the token is missing.
	 */
	--tc-home-display: var(--mt-font__main, "Outfit", Arial, sans-serif);

	/* The page's own gutter. 16px is the floor on a phone. */
	--tc-gutter: clamp(1rem, 4vw, 2.75rem);
	--tc-measure: 68rem;
}

/*
 * See TC_Home::body_class(). The theme's 100px above the footer would
 * otherwise be a white band between the dark strip and the dark footer.
 */
body.tc-home-page {
	background-color: var(--tc-ink);
}

/*
 * /roasteries/ and /fresh-coffee/ end on cream, not on How it works' dark
 * band, and on a phone Motta keeps room under the page for its bottom bar
 * with no footer drawn -- so the ink above showed as a black band under the
 * last card (owner, 2026-10-08). Cream there.
 */
body.tc-home-page.tc-roasters-page,
body.tc-home-page.tc-fresh-page {
	background-color: var(--tc-cream);
}

/*
 * Full bleed. The theme wraps the template in a fixed-width container, and this
 * page's bands all run to the edge of the window -- so the page breaks out
 * once, here, and every section inside it centres itself with its own
 * max-width instead.
 */
.tc-home {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--tc-cream);
	color: var(--tc-body);
}

.tc-home a:focus-visible {
	outline: 2px solid var(--tc-green);
	outline-offset: 3px;
}

.tc-home__inner {
	max-width: var(--tc-measure);
	margin: 0 auto;
	padding: 0 var(--tc-gutter);
}

/* ------------------------------------------------------- shared type */

.tc-home__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--tc-amber-ink);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.tc-home__num {
	margin-right: 0.35em;
	font-variant-numeric: tabular-nums;
}

.tc-home__title {
	margin: 0;
	font-family: var(--tc-home-display);
	font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--tc-ink);
	text-wrap: balance;
}

.tc-home__sub {
	max-width: 36rem;
	margin: 0.6rem 0 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--tc-body);
}

.tc-home__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.tc-home__more,
.tc-home__link {
	color: var(--tc-green);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: underline;
	/* The amber rule under a link is the design's one flash of the accent. */
	text-decoration-color: var(--tc-amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.tc-home__more {
	white-space: nowrap;
}

.tc-home__more:hover,
.tc-home__more:focus,
.tc-home__link:hover,
.tc-home__link:focus {
	color: var(--tc-ink);
}

/* ---------------------------------------------------------------- the hero */

.tc-home__hero {
	/*
	 * A deeper-cream band to the window's edges, from a section that is only
	 * the measure wide: the shadow paints the band, the clip keeps it level
	 * with the section's own top and bottom.
	 */
	box-shadow: 0 0 0 100vmax var(--tc-cream-deep);
	clip-path: inset(0 -100vmax);
	/* background: var(--tc-cream-deep); */
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
	max-width: var(--tc-measure);
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 4.5rem) var(--tc-gutter) clamp(3.5rem, 7vw, 4.5rem);
}

/*
 * A grid item's minimum width is its content's unless told otherwise, so one
 * line that refuses to wrap widens the whole column past the phone -- which
 * is exactly what the live card's name did once it led with a section. The
 * columns are the viewport's; the content fits inside them.
 */
.tc-home__hero > * {
	min-width: 0;
}

.tc-home__hero-copy {
	text-align: center;
}

/*
 * The Tapper logo, wide (642x250) and bigger now, centred at every width with
 * no space above it -- only below (owner, 2026-09-29). The side margins are
 * auto only to centre it; the desk no longer pulls it left.
 */
.tc-home__mark {
	display: block;
	/* Never wider than a narrow phone's gutter allows. */
	width: clamp(200px, 50vw, 280px);
	max-width: 100%;
	height: auto;
	aspect-ratio: 642 / 250;
	margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
}

.tc-home__headline {
	margin: 0;
	font-family: var(--tc-home-display);
	font-weight: 400;
	/*
	 * Small enough on a phone that each sentence of the headline still fits on
	 * one line.
	 *
	 * That is a real constraint, not a preference. Each sentence is its own
	 * block, and it only stays on one line while it fits between the gutters.
	 * The longest of the current three, "At your door the same day.", is about
	 * 11.4em in this typography -- so a sentence needs
	 * `font-size <= (viewport - 2 gutters) / 11.4`. At 320px that ceiling is
	 * 25.3px, at 390px 31.4px. 7.2vw sits under it all the way down.
	 *
	 * Rewriting the headline with a materially longer sentence puts it back
	 * over the ceiling and it will wrap on a phone again. Re-measure if so.
	 */
	font-size: clamp(1.5rem, 7.2vw, 2.75rem);
	line-height: 1.22;
	letter-spacing: -0.015em;
	color: var(--tc-ink);
	text-wrap: balance;
}

.tc-home__line {
	display: block;
}

.tc-home__line--accent {
	color: var(--tc-green);
	font-weight: 500;
}

.tc-home__lede {
	max-width: 34em;
	margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--tc-body);
}

.tc-home__acts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.5rem;
	margin: clamp(1.5rem, 3.5vw, 2rem) 0 0;
}

.tc-home__cta,
.tc-home__close-cta {
	display: inline-block;
	padding: 0.95rem 1.9rem;
	border-radius: 999px;
	background: var(--tc-green);
	color: var(--tc-cream);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(41, 89, 75, 0.25);
}

.tc-home__cta:hover,
.tc-home__cta:focus {
	background: var(--tc-green-dark);
	color: var(--tc-cream);
}

.tc-home__facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
	padding: 0;
	list-style: none;
}

.tc-home__facts li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--tc-line);
	border-radius: 999px;
	background: var(--tc-card);
	color: var(--tc-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
}

.tc-home__facts li::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--tc-green);
}

/* The photograph beside the words. */
.tc-home__hero-media {
	position: relative;
}

.tc-home__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--tc-radius);
	background: var(--tc-cream-deep);
}

@media (min-width: 60em) {
	.tc-home__hero {
		grid-template-columns: 1.1fr 1fr;
	}

	.tc-home__hero-copy {
		text-align: left;
	}

	/*
	 * Half the measure, now. Sized against the column rather than the window:
	 * the copy column is about 437px at 60em and tops out near 494px once the
	 * hero reaches its measure, and the longest sentence at 11.4em has to fit
	 * both -- 38px at the narrow end, 43px at the wide one. The cap sits under
	 * the second; the slope under the first.
	 */
	.tc-home__headline {
		font-size: clamp(2.25rem, 0.5rem + 3vw, 2.625rem);
	}

	.tc-home__lede {
		margin-left: 0;
	}

	/* The acts (the Tapper Verified badge) stay centred (owner, 2026-10-09). */
	.tc-home__facts {
		justify-content: flex-start;
	}

	.tc-home__photo--hero {
		aspect-ratio: 4 / 5;
	}
}

/* --------------------------------------------------------- the order grid */

/*
 * The page opens here: coffee to add, before a word about why. Tight at the
 * top -- the header is directly above -- and on plain cream, so the cards'
 * photographs carry the colour.
 */
.tc-home__order {
	padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.5rem, 6vw, 4rem);
}

/* Everything the script shows and hides, whatever display a rule gives it. */
.tc-home [hidden],
.tc-home__bar[hidden] {
	display: none !important;
}

/*
 * The title on the left, where the grid is for on the right: two columns at
 * every width. The location is sized first, to its own words up to a cap;
 * the title takes what is left (a zero basis, so its length does not claim
 * a share) and wraps inside it. With both sized from their content, a
 * phone squeezed the location down to its pin.
 */
.tc-home__order-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

/*
 * Room under the title, on a desk only (owner, 2026-09-29). On the row, not
 * the <h1>: the row centres the title against the location, so a margin on
 * the title alone would lift the location button with it.
 */
@media (min-width: 48em) {
	.tc-home__order-head {
		margin-bottom: 2rem;
	}
}

.tc-home__order-title {
	flex: 1 1 0%;
	min-width: 0;
	margin: 0;
	font-family: var(--tc-home-display);
	font-size: clamp(1.375rem, 1rem + 1.6vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--tc-ink);
	text-align: left;
	text-wrap: balance;
}

/*
 * The location, as the Cafe page's bar draws it: a pin, the place on one
 * line, a caret that turns when the menu is open. A button, so Motta's
 * button rules -- the 160px minimum, the 60px line, the primary fill on
 * hover and focus -- are each answered here.
 */
.tc-home__loc-toggle,
.tc-home__loc-toggle:hover,
.tc-home__loc-toggle:focus,
.tc-home__loc-toggle:active {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	max-width: 55%;
	min-height: 2.25rem;
	margin: 0;
	padding: 0.35rem 0.55rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var(--tc-ink);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: right;
	text-transform: none;
	cursor: pointer;
}

.tc-home__loc-toggle:hover,
.tc-home__loc-toggle[aria-expanded="true"] {
	background: var(--tc-cream-deep);
}

.tc-home__loc-toggle:focus-visible {
	outline: 2px solid var(--tc-green);
	outline-offset: 2px;
}

.tc-home__loc-pin {
	flex: none;
	color: var(--tc-green);
}

.tc-home__loc-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.is-finding .tc-home__loc-text {
	color: var(--tc-muted);
}

.tc-home__loc-caret {
	flex: none;
	width: 0.7rem;
	height: 0.7rem;
	color: var(--tc-muted);
	transition: transform 0.15s ease;
}

.tc-home__loc-toggle[aria-expanded="true"] .tc-home__loc-caret {
	transform: rotate(180deg);
}

/*
 * A phone: the title is always two lines -- "Fresh Coffee from" over
 * "Roasteries" (owner, 2026-09-27; renamed 2026-09-29) -- each held to one line and
 * the title sized to exactly them, never squeezed and never widened. The
 * location takes every pixel left over and cuts the place short inside it.
 */
@media (max-width: 47.99em) {
	.tc-home__order-head {
		gap: 0.75rem;
	}

	.tc-home__order-title {
		flex: 0 0 auto;
		font-size: 1.25rem;
	}

	.tc-home__order-title-line {
		display: block;
		white-space: nowrap;
	}

	.tc-home__loc-toggle,
	.tc-home__loc-toggle:hover,
	.tc-home__loc-toggle:focus,
	.tc-home__loc-toggle:active {
		flex: 0 1 auto;
		max-width: none;
		margin-left: auto;
		padding: 0.35rem 0.4rem;
		font-size: 0.8125rem;
	}
}

/*
 * The place menu itself (#tc-home-where-panel) is in place.css, which this
 * sheet depends on: every page has the header's picker now, not only these.
 */

/*
 * Room above and below, off the location line and the first card, and
 * padding inside the scroller so a pill's focus ring is not clipped by it.
 */
.tc-home__pills {
	display: flex;
	gap: 0.5rem;
	margin: 1.25rem calc(var(--tc-gutter) * -1) 0.5rem;
	padding: 0.35rem var(--tc-gutter) 0.5rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.tc-home__pill {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.35rem;
	height: 2rem;
	padding: 0 0.85rem;
	border: 1px solid var(--tc-line);
	border-radius: 999px;
	background: var(--tc-card);
	color: var(--tc-ink);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}

/* The drink's icon ahead of its name, at the text's size. */
.tc-home__pill svg {
	display: block;
	flex: none;
	width: 1rem;
	height: 1rem;
}

/* The brand's amber, as in the logo. Ink on it, not white: white is 1.9:1. */
.tc-home__pill.is-on {
	border-color: var(--tc-amber);
	background: var(--tc-amber);
	color: var(--tc-ink);
	font-weight: 600;
}

/*
 * The intro (parts/intro.php, storefront review 2026-10-08): two lines and the
 * brewer question, kept small enough that a 390px phone still shows the top
 * of the first card under it. The chips scroll sideways rather than wrap, so
 * they take one row whatever the brewers.
 */
.tc-home__intro {
	padding: clamp(1rem, 3vw, 2rem) 0 0;
}

.tc-home__intro-title {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	color: var(--tc-ink);
	font-family: var(--tc-home-display);
	font-size: clamp(1.3rem, 5.2vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
}

.tc-home__intro-lede,
.tc-home__intro-promise {
	margin: 0.35rem 0 0;
	color: var(--tc-body);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.tc-home__intro-lede [data-tc-promise] {
	color: var(--tc-green);
	font-weight: 600;
}

.tc-home__intro-promise {
	color: var(--tc-green-dark);
}

/*
 * "How do you make coffee today?", folded under the collections (parts/brewers.php,
 * owner 2026-10-08): one line shut, the chips' row open. The choice rides on
 * the summary, so a shut fold still says which brewer the grid is narrowed to.
 */
.tc-home__brew-ask {
	max-width: var(--tc-measure);
	margin: 0.5rem auto 0;
	padding: 0 var(--tc-gutter);
}

.tc-home__brew-ask-head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	color: var(--tc-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.tc-home__brew-ask-head::-webkit-details-marker {
	display: none;
}

/* The caret, turned when open. */
.tc-home__brew-ask-head::after {
	content: "";
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s ease;
}

.tc-home__brew-ask[open] > .tc-home__brew-ask-head::after {
	transform: translateY(2px) rotate(-135deg);
}

.tc-home__brew-ask-pick {
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--tc-amber);
	color: var(--tc-ink);
	font-size: 0.8125rem;
	white-space: nowrap;
}

.tc-home__brew-ask-head:focus-visible {
	outline: 2px solid var(--tc-green);
	outline-offset: 2px;
}

.tc-home__brewers {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin: 0 calc(var(--tc-gutter) * -1) 0;
	padding: 0.35rem var(--tc-gutter);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

/* One row, scrolled sideways, never wrapped (owner, 2026-10-08). */
.tc-home__brewers::-webkit-scrollbar,
.tc-home__collections-list::-webkit-scrollbar {
	display: none;
}

.tc-home .tc-home__brewers .tc-home__chip {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Motta gives every button a 160px minimum, which stretched each chip and "All" to it. */
.tc-home .tc-home__pill {
	width: auto;
	min-width: 0;
}

.tc-home__intro-proof {
	margin: 0.35rem 0 0;
	color: var(--tc-muted);
	font-size: 0.8125rem;
}

/*
 * The collections (parts/collections.php): one sideways row of links, quieter
 * than the brewer chips above them, which filter in place.
 */
.tc-home__collections {
	max-width: var(--tc-measure);
	margin: 0.5rem auto 0;
}

.tc-home__collections-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	padding: 0.25rem var(--tc-gutter);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.tc-home__collections-list li {
	flex: none;
	margin: 0;
}

.tc-home__collection {
	display: inline-flex;
	align-items: center;
	height: 2rem;
	padding: 0 0.85rem;
	border-radius: 999px;
	background: var(--tc-green-soft);
	color: var(--tc-green-dark);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.tc-home__collection:hover,
.tc-home__collection:focus-visible {
	background: var(--tc-green);
	color: #FFFFFF;
}

/* The collection on show, on /fresh-coffee/: the pills' amber (owner, 2026-10-08). */
.tc-home__collection.is-on {
	background: var(--tc-amber);
	color: var(--tc-ink);
}

/* Under the heading on /fresh-coffee/, inside the grid's own gutter. */
.tc-home__order .tc-home__collections {
	margin: 0.75rem calc(var(--tc-gutter) * -1) 0;
}

.tc-home__collection-back {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
}

.tc-home__collection-back a {
	color: var(--tc-green);
	font-weight: 600;
	text-decoration: none;
}

/*
 * "Not delivering to {area} right now": between the front page's coffee that
 * can be ordered and the rest (home-order.js; owner, 2026-10-08). A line
 * across the grid, not a card.
 */
.tc-home__items > .tc-home__divider {
	grid-column: 1 / -1;
	margin: 0.5rem 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--tc-line);
	list-style: none;
}

.tc-home__divider p {
	margin: 0;
	color: var(--tc-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

/* Under the intro the grid needs no room of its own above it. */
.tc-home__intro ~ .tc-home__order {
	padding-top: 0.75rem;
}

.tc-home__empty {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: var(--tc-radius-sm);
	background: var(--tc-cream-deep);
	color: var(--tc-ink);
	font-size: 0.9375rem;
}

.tc-home__empty a {
	margin-left: 0.35rem;
	color: var(--tc-green);
	font-weight: 600;
}

/* One card a row on a phone, three on anything wider (owner, 2026-09-26). */
.tc-home__items {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48em) {
	.tc-home__items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3.5rem 3rem;
	}
}

/*
 * While a place is being settled (.is-finding on <main>): the skeleton
 * in place of the grid, and nothing that depends on the answer -- the drink
 * pills, "Show more", the empty line. The answer then shows the coffees that
 * reach them, or says none do.
 */
.tc-home__skeleton {
	display: none;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.tc-home.is-finding .tc-home__skeleton,
.tc-home.is-finding .tc-home__rbones {
	display: grid;
}

/* After the base rule, which would otherwise put a desk back to one column. */
@media (min-width: 48em) {
	.tc-home__skeleton {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3.5rem 3rem;
	}
}

.tc-home.is-finding .tc-home__items,
.tc-home.is-finding .tc-home__pills,
.tc-home.is-finding .tc-home__more-wrap,
.tc-home.is-finding .tc-home__empty,
.tc-home.is-finding .tc-home__rgrid {
	display: none !important;
}

.tc-home__bone {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
}

/* The drink pills' stand-in: the same row, the same room above and below. */
.tc-home__pills-bones {
	display: none;
	gap: 0.5rem;
	margin: 1.25rem 0 0.5rem;
	padding: 0.35rem 0 0.5rem;
	overflow: hidden;
}

.tc-home.is-finding .tc-home__pills-bones {
	display: flex;
}

.tc-home__pill-bone {
	flex: none;
	height: 2rem;
	border-radius: 999px;
}

/* A saved address still on its way, in the location menu. */
.tc-home__loc-bone {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.6rem;
}

.tc-home__loc-bone-dot {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 50%;
}

.tc-home__loc-bone-line {
	flex: 1;
	max-width: 70%;
	height: 0.8rem;
	border-radius: 6px;
}

.tc-home__pill-bone,
.tc-home__loc-bone-dot,
.tc-home__loc-bone-line,
.tc-home__bone-photo,
.tc-home__bone-line {
	display: block;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--tc-cream-deep) 25%, #FBF6EC 50%, var(--tc-cream-deep) 75%);
	background-size: 200% 100%;
	animation: tc-home-bone 1.2s ease-in-out infinite;
}

/* Their own shapes, over the shared rule's corners. */
.tc-home__pill-bone {
	border-radius: 999px;
}

.tc-home__loc-bone-dot {
	border-radius: 50%;
}


.tc-home__bone-photo {
	aspect-ratio: 4 / 3;
	margin-bottom: 0.25rem;
	border-radius: var(--tc-radius-sm);
}

.tc-home__bone-line {
	height: 0.8rem;
}

/* The roasters' pictures are circles; their bones are too (75% = a 4:3 slot's height). */
.tc-home__bone--roaster .tc-home__bone-photo {
	width: 75%;
	aspect-ratio: 1;
	margin-inline: auto;
	border-radius: 50%;
}

/* No drink-and-roast row on a desk: its chips are on the photograph. */
.tc-home__bone-line--mark {
	display: none;
}

.tc-home__bone-line--name {
	width: 85%;
	height: 1rem;
}

.tc-home__bone-line--notes {
	width: 70%;
}

.tc-home__bone-line--by {
	width: 55%;
}

.tc-home__bone-line--price {
	width: 35%;
	margin-top: 0.35rem;
}

@keyframes tc-home-bone {
	from { background-position: 100% 0; }
	to   { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.tc-home__pill-bone,
	.tc-home__loc-bone-dot,
	.tc-home__loc-bone-line,
	.tc-home__bone-photo,
	.tc-home__bone-line {
		animation: none;
	}
}

/* A phone: the Swiggy row -- lines on the left, a square on the right. */
@media (max-width: 47.99em) {
	.tc-home__skeleton {
		gap: 0;
	}

	.tc-home__bone {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 9rem;
		grid-template-rows: auto auto auto auto 1fr;
		column-gap: 1rem;
		row-gap: 0.55rem;
		padding: 1.25rem 0 1.5rem;
		border-bottom: 1px solid var(--tc-line);
	}

	.tc-home__bone-photo {
		grid-column: 2;
		grid-row: 1 / -1;
		aspect-ratio: 1;
		margin: 0;
		border-radius: 12px;
	}

	.tc-home__bone-line {
		grid-column: 1;
	}

	.tc-home__bone-line--mark {
		display: block;
		width: 40%;
	}

	.tc-home__bone-line--price {
		align-self: start;
	}
}

/* No frame round the card: the photograph carries the only border. */
.tc-home__item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	color: var(--tc-ink);
}

/*
 * Faded, all but the Closed chip, which has to read at full strength. Opacity
 * on the card would take the chip with it, so it goes on the parts instead --
 * the body's children and the buy row's, since on a phone both are
 * display: contents and have no box to fade.
 */
.tc-home__item.is-closed .tc-home__item-img,
.tc-home__item.is-closed .tc-home__tile,
.tc-home__item.is-closed .tc-home__badge,
.tc-home__item.is-closed .tc-home__item-body > :not(.tc-home__buy):not(.tc-home__item-note):not(.tc-home__unavailable):not(.tc-home__item-way),
.tc-home__item.is-closed .tc-home__buy > * {
	opacity: 0.7;
}

/* The roaster is shut: on the photograph's top right, where nothing else sits. */
.tc-home__closed {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	display: none;
	padding: 0.3rem 0.65rem;
	border-radius: 4px;
	background: #C62828;
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 8px rgba(18, 17, 17, 0.2);
}

.tc-home__item.is-closed .tc-home__closed {
	display: block;
}

/*
 * One fixed box for every card, photograph or tile. The picture is taken out
 * of flow: an aspect-ratio box grows to fit its content, and a square photo
 * whose 100% height has nothing to resolve against made every box square
 * again. The theme's `img { height: auto }` is beaten the same way.
 */
.tc-home__item-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius-sm);
	background: var(--tc-cream-deep);
}

.tc-home__item-media .tc-home__item-img,
.tc-home__item-media .tc-home__tile {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
}

.tc-home__item-img {
	object-fit: cover;
}

/* A coffee with no photograph: a tile in the colour of its roast, its notes on it. */
.tc-home__tile {
	background: var(--tc-roast);
}

.tc-home__item-media .tc-home__tile {
	display: flex;
	align-items: flex-end;
	padding: 2.25rem 0.85rem 0.85rem;
	box-sizing: border-box;
}

.tc-home__tile-notes {
	color: #FFFFFF;
	font-family: var(--tc-home-display);
	font-size: clamp(1rem, 4.5vw, 1.5rem);
	font-weight: 700;
	line-height: 1.15;
	text-shadow: 0 1px 3px rgba(18, 17, 17, 0.45);
	overflow-wrap: anywhere;
}

/* The photograph's link, and what sits over it. */
.tc-home__item-visual {
	position: relative;
}

.tc-home__badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	background: var(--tc-green);
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(18, 17, 17, 0.2);
}

.tc-home__item-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.5rem 0 0;
}

/*
 * Two classes, not one: on a roaster's ordering page the card sits inside
 * the storefront, whose .tc-app-container h2 (28px, 20px on a phone, and a
 * margin under it) outranks a single class and blew the title up.
 */
.tc-home__items .tc-home__item-name {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tc-home__item-name a {
	color: inherit;
	text-decoration: none;
}

/* Who roasted it, under the name (storefront review, 2026-10-08). */
.tc-home__item-by {
	margin: 0.2rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.3;
}

.tc-home__item-by-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: 100%;
	color: var(--tc-body);
	text-decoration: none;
}

.tc-home__item-by-link:hover .tc-home__item-by-name,
.tc-home__item-by-link:focus-visible .tc-home__item-by-name {
	text-decoration: underline;
}

.tc-home__item-by-mark {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--tc-green-soft);
	color: var(--tc-green-dark);
	font-size: 0.6875rem;
	font-weight: 700;
}

.tc-home__item-by-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A long name wraps rather than being cut off at 390px. */
.tc-home__item-by-name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.tc-home__item-by-where {
	color: var(--tc-muted);
	white-space: nowrap;
}

.tc-home__item-name a:hover,
.tc-home__item-name a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--tc-amber);
	text-decoration-thickness: 2px;
}

/*
 * Where the roast is in its life, as the badge's colour: green at its best,
 * the roast's brown while it rests, a quieter green once past its peak,
 * amber in its last days. Unset (no roast date) keeps the green above.
 */
.tc-home__badge--resting {
	background: var(--tc-roast);
}

.tc-home__badge--good {
	background: #4E7A6D;
}

/* Ink on amber: white on it is 1.9:1. */
.tc-home__badge--fading {
	background: var(--tc-amber);
	color: var(--tc-ink);
}

.tc-home__badge--past {
	background: #9B2C1F;
}

/*
 * The coffee's rating, under its name: a green star, the average in ink,
 * the count and the tasted-as-described share muted. One line; the share
 * is what an ellipsis cuts on a narrow phone.
 */
.tc-home__item-rating {
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
	min-width: 0;
	margin: 0.1rem 0 0;
	color: var(--tc-muted);
	font-size: 0.75rem;
	line-height: 1.35;
	text-decoration: none;
}

/* Stated for every state: Motta's a:hover/a:visited would otherwise repaint it. */
.tc-home__item-rating:visited,
.tc-home__item-rating:active {
	color: var(--tc-muted);
}

.tc-home__item-rating:hover,
.tc-home__item-rating:focus-visible {
	color: var(--tc-muted);
	text-decoration: underline;
	text-decoration-color: var(--tc-amber);
	text-decoration-thickness: 2px;
}

/* A star's own colour, as in the modal's stars (owner, 2026-09-27). */
.tc-home__item-star {
	flex: none;
	color: var(--tc-amber);
	font-weight: 700;
}

.tc-home__item-average {
	flex: none;
	color: var(--tc-ink);
	font-weight: 700;
}

.tc-home__item-rating-more {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * The cup: how it tastes ("Tastes like citrus and honey · No added
 * flavour", TC_Home::taste_line()), and on the line after it how much of the
 * bag is coffee (.tc-home__item-share, TC_Home::coffee_share()) -- owner,
 * 2026-10-07. Each wraps to a second line rather than being cut off on a
 * phone, and stops there.
 */
.tc-home__item-notes {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	min-width: 0;
	margin: 0.1rem 0 0;
	color: var(--tc-body);
	font-size: 0.75rem;
	line-height: 1.35;
}

/* The icon stands beside the first line when the words wrap to a second. */
.tc-home__item-notes .tc-home__line-icon,
.tc-home__item-bean .tc-home__line-icon {
	margin-top: 0.07rem;
}

.tc-home__item-notes-text {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.tc-home__note {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.3rem;
}

.tc-home__note::before {
	content: "";
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--tc-line);
}

.tc-home__note--chocolatey::before { background: var(--tc-taste-chocolatey); }
.tc-home__note--sweet::before      { background: var(--tc-taste-sweet); }
.tc-home__note--nutty::before      { background: var(--tc-taste-nutty); }
.tc-home__note--fruity::before     { background: var(--tc-taste-fruity); }
.tc-home__note--floral::before     { background: var(--tc-taste-floral); }
.tc-home__note--spiced::before     { background: var(--tc-taste-spiced); }

/* The bean: one line that gives way to an ellipsis, and the badge it has earned kept whole. */
.tc-home__item-bean {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	min-width: 0;
	margin: 0;
	color: var(--tc-muted);
	font-size: 0.75rem;
	line-height: 1.35;
}

/* Wraps to a second line rather than being cut off, as the cup's lines do. */
.tc-home__item-bean-text {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.tc-home__quality {
	flex: none;
	padding: 0.05rem 0.4rem;
	border: 1px solid var(--tc-amber);
	border-radius: 999px;
	color: var(--tc-amber-ink);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}


/* Tapper Brews: "Standard delivery · arrives by Thu 8 Oct" -- one line, like the bean's. */
.tc-home__item-ships {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--tc-muted);
}

.tc-home__item-ships-mode {
	flex: none;
	font-weight: 600;
	color: #8A5A2B;
}

.tc-home__item-ships-mode--today {
	color: var(--tc-green, #29594B);
}

.tc-home__item-ships-sep {
	flex: none;
}

/*
 * The one delivery row, when the place decides the way (coffee-cards.js
 * paintWay()): green when the roaster brings it, brown by courier, muted
 * where it cannot come. The colours say the way; the words never name it.
 */
.tc-home__item-way .tc-home__item-ships-mode {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tc-home__item-way[data-way="local"] .tc-home__item-ships-mode {
	color: var(--tc-green, #29594B);
}

.tc-home__item-way[data-way="none"] .tc-home__item-ships-mode,
.tc-home__item-way[data-way="unknown"] .tc-home__item-ships-mode {
	color: var(--tc-muted);
}

/* "Not available right now": the delivery row's own place, in red (owner, 2026-10-07). */
.tc-home__item-way.is-unavailable .tc-home__item-ships-mode {
	color: #9B2C1F;
}

/* The row with nothing to say -- shut, and the red line says it -- is not drawn. */
.tc-home__item-way[hidden] {
	display: none;
}

/* Its answer on the way: one blank line held, so the card does not jump (owner, 2026-10-09). */
.tc-home__item-way[data-way="pending"] {
	min-height: 1.35em;
}

/*
 * "Doesn't deliver to Wakad · Change": a dot between the words and their
 * link, only when both are there. Not underlined with the link it leads.
 */
.tc-home__item-ships-mode:not(:empty) + .tc-home__item-way-hint:not([hidden])::before {
	content: "\00B7\00A0";
	display: inline-block;
	color: var(--tc-muted);
	font-weight: 400;
	text-decoration: none;
}

/* "Set location to see delivery", "Change": a link in looks, a button for the panel. Motta's bare-button rule reset. */
.tc-home__item-way-hint,
.tc-home__item-way-hint:hover,
.tc-home__item-way-hint:focus,
.tc-home__item-way-hint:active {
	flex: none;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--tc-green, #29594B);
	font: inherit;
	font-weight: 600;
	line-height: inherit;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

.tc-home__item-way-hint[hidden] {
	display: none;
}

.tc-home__item-ships-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* The icon leading each of the three lines: the text's size, in ink (owner, 2026-09-27). */
.tc-home__line-icon {
	display: block;
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	color: #000000;
	/*
	 * Drawn at 14px, the icon set's 1.6 stroke comes out under a pixel and
	 * reads grey however dark its colour. A heavier line reads black
	 * (owner, 2026-09-27). The CSS property beats the SVG's attribute.
	 */
	stroke-width: 2.4;
}

/* The price, and Add beside it: the last line of every card, level across a row. */
.tc-home__buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 0.45rem;
}

.tc-home__price {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

/* Bigger twice over (owner, 2026-10-01; 16px and 17px since 2026-09-29): 20px here, 21px on a phone. */
.tc-home__price strong {
	color: var(--tc-ink);
	font-size: 1.25rem;
	font-weight: 700;
	white-space: nowrap;
}

/* In ink and a step heavier (owner, 2026-09-29): the green read faint at this size. Up with the price, twice, 2026-10-01: 13px. */
.tc-home__cup {
	color: var(--tc-ink);
	font-size: 0.8125rem;
	font-weight: 600;
}

.tc-home__add {
	flex: none;
	min-width: 3.75rem;
	height: 2rem;
	padding: 0 0.7rem;
	border: 1px solid var(--tc-green);
	border-radius: 8px;
	background: var(--tc-card);
	color: var(--tc-green);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(18, 17, 17, 0.08);
	cursor: pointer;
}

/*
 * In the basket: − n + in Add's place, the same box as Add (owner,
 * 2026-09-27). coffee-cards.js paintSteppers() swaps the two. [hidden] is
 * stated because Motta gives every <button> a display of its own.
 */
.tc-home__buy [hidden] {
	display: none !important;
}

/*
 * Filled, in the Add button's green (owner, 2026-09-29), with the count in
 * white, so a coffee already in the cart stands apart from the white Add
 * buttons around it.
 */
.tc-home__step {
	display: inline-flex;
	flex: none;
	align-items: stretch;
	min-width: 5.5rem;
	height: 2rem;
	border: 1px solid var(--tc-green);
	border-radius: 8px;
	background: var(--tc-green);
	box-shadow: 0 2px 6px rgba(18, 17, 17, 0.08);
	overflow: hidden;
}

.tc-home__step-btn,
.tc-home__step-btn:hover,
.tc-home__step-btn:focus,
.tc-home__step-btn:active,
.tc-home__step-btn:disabled {
	flex: 1 1 0;
	width: auto;
	min-width: 1.9rem;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #FFFFFF;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.tc-home__step-btn:hover,
.tc-home__step-btn:focus-visible {
	background: rgba(255, 255, 255, 0.16);
}

.tc-home__step-btn:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: -2px;
}

.tc-home__step-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.tc-home__step-n {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	color: #FFFFFF;
	font-size: 0.875rem;
	font-weight: 700;
}

.tc-home__add:hover,
.tc-home__add:focus-visible {
	background: var(--tc-green-soft);
}

.tc-home__add.is-added {
	background: var(--tc-green);
	color: #FFFFFF;
}

.tc-home__add:disabled {
	border-color: var(--tc-line);
	color: var(--tc-muted);
	box-shadow: none;
	cursor: default;
}

.tc-home__item-note {
	margin: 0.4rem 0 0;
	color: #9B2C1F;
	font-size: 0.75rem;
	line-height: 1.35;
}

/* "Not available right now", in red, over Add's end of the buy row. */
.tc-home__unavailable {
	margin: 0.45rem 0 -0.25rem;
	color: #9B2C1F;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: right;
}

.tc-home__unavailable[hidden] {
	display: none;
}

/* A phone's line only. */
.tc-home__add-note {
	display: none;
}

/*
 * How it drinks, in words, above the name on a desk and a phone alike (owner,
 * 2026-10-01: icons alone were not understood): "Best with Milk" or "Best
 * Black" beside its icon, then a coffee bean and "Strength: Medium" (owner,
 * 2026-10-07: no acidity, no caffeine bars). One line where it fits, two
 * where it does not.
 */
.tc-home__traits {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.625rem;
	margin: 0 0 0.2rem;
	color: var(--tc-ink);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
}

/*
 * The icon and the word stand on the word's baseline (owner, 2026-10-01): an
 * icon has no baseline of its own, so its foot is what sits there.
 */
.tc-home__trait {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
	white-space: nowrap;
}

.tc-home__trait .tc-home__trait-icon {
	display: block;
	flex: none;
	width: 0.8125rem;
	height: 0.8125rem;
}

.tc-home__trait-word {
	display: block;
	line-height: 1;
}

/*
 * "Why this coffee?": after the three fact lines, bold and underlined, on a
 * desk and a phone alike (owner, 2026-10-07; under the name before) -- the
 * one line of the card that is a question, asked once the facts are said.
 * card.php prints it there. Two classes, to outrank why.css's own.
 */
/*
 * "Why this coffee?" as a fourth fact line (2026-10-07): the lines' flex,
 * gap and icon column, in the brand green and a step bolder than the facts.
 * A link, not a heading: no underline until it is pointed at. The block
 * padding is tap room for a thumb; it does not change the line's rhythm.
 */
.tc-home__items .tc-home__why {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	width: fit-content;
	margin-top: 0.1rem;
	padding-block: 0.2rem;
	color: var(--tc-link, #1F5FAD);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.tc-home__items .tc-home__why:hover .tc-home__why-text,
.tc-home__items .tc-home__why:focus-visible .tc-home__why-text {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tc-home__items .tc-home__why::after {
	content: "\203A";
	font-weight: 700;
}

/* The fact icons' size and stroke, in the link's blue. */
.tc-home__why-icon {
	display: block;
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	margin-top: 0.07rem;
	stroke-width: 2.4;
}

/*
 * The pack the price is for, beside it and a step quieter than the sum. In
 * size it sits between the price and the per-cup line under it (owner,
 * 2026-10-02): four-fifths of the price, so 16px on a desk and about 17px on
 * a phone, over the cup's 13px. In em, so it follows the price wherever that
 * is resized.
 */
.tc-home__pack {
	color: var(--tc-body);
	font-size: 0.8em;
	font-weight: 600;
}

/*
 * On a phone, a card is a Swiggy dish row (owner, 2026-09-27): the words on
 * the left, a small square photograph on the right with Add over its foot,
 * a divider between rows and no frame round any of it.
 *
 * The body and the price row are dissolved (display: contents) so every line
 * of the card sits in one grid, and Add can leave the price for the
 * photograph's column without the markup changing between a phone and a
 * desk. How it drinks leads the words, where Swiggy's veg mark sits: milk or
 * black, and strength. Then the name and "Why this coffee?"; the drink,
 * the roast and what it is brewed with close the words, just above the price
 * (owner, 2026-10-01). The roasted badge stays on the photograph, top left,
 * as on a desk.
 */
@media (max-width: 47.99em) {
	.tc-home__items {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.tc-home__item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 9rem;
		/* Nine lines of words, the price taking what is left, then the note. */
		grid-template-rows: repeat(9, auto) 1fr auto;
		grid-template-areas:
			"traits visual"
			"name   visual"
			"by     visual"
			"rating visual"
			"notes  visual"
			"share  visual"
			"bean   visual"
			"why    visual"
			"ships  visual"
			"price  visual"
			"note   note";
		column-gap: 1rem;
		align-items: start;
		padding: 1.25rem 0 1.5rem;
		border-bottom: 1px solid var(--tc-line);
	}

	.tc-home__item-body,
	.tc-home__buy {
		display: contents;
	}

	/*
	 * Room under the photograph for Add's lower half and the "N packs" line,
	 * which share its grid area (below) -- so a card with few lines of text
	 * still clears them.
	 */
	.tc-home__item-visual {
		grid-area: visual;
		padding-bottom: 2.35rem;
	}

	.tc-home__item-media {
		aspect-ratio: 1;
		border-radius: 12px;
	}

	.tc-home__badge,
	.tc-home__closed {
		top: 0.4rem;
		left: 0.4rem;
		padding: 0.2rem 0.45rem;
		font-size: 0.625rem;
	}

	/* No room for both on a phone's photograph: Closed replaces the roast day, on the right. */
	.tc-home__closed {
		right: 0.4rem;
		left: auto;
	}

	.tc-home__item.is-closed .tc-home__badge {
		display: none;
	}

	/* The first line of the words, where Swiggy puts its veg mark. */
	.tc-home__traits {
		grid-area: traits;
		margin: 0 0 0.45rem;
	}

	.tc-home__items .tc-home__item-name {
		grid-area: name;
		font-size: 1rem;
		font-weight: 700;
	}

	.tc-home__item-by {
		grid-area: by;
	}

	.tc-home__item-rating {
		grid-area: rating;
		margin-top: 0.2rem;
	}

	/* The cup and the bean, under the name as on a desk. */
	.tc-home__item-notes {
		grid-area: notes;
		margin-top: 0.3rem;
	}

	.tc-home__item-share {
		grid-area: share;
		margin-top: 0.15rem;
	}

	.tc-home__item-bean {
		grid-area: bean;
		margin-top: 0.15rem;
	}

	.tc-home__item-ships {
		grid-area: ships;
		margin-top: 0.15rem;
	}

	/* After the fact lines here too; see the rule above the media query for its look. */
	.tc-home__items .tc-home__why {
		grid-area: why;
		justify-self: start;
		margin-top: 0.15rem;
	}

	/* Per cup on its own line under the price (owner, 2026-10-08). */
	.tc-home__price {
		grid-area: price;
		margin-top: 0.5rem;
	}

	.tc-home__price strong {
		font-size: 1.3125rem;
	}

	/*
	 * Add over the photograph's foot, as Swiggy's ADD sits on the dish.
	 * It shares the photograph's grid area and is placed from its top, not
	 * in a row after the words: with the rating, the fact lines and Why
	 * the words run taller than the 9rem photograph, and a row after them
	 * pushed Add down below it.
	 */
	/*
	 * As wide as its words, from the 6.5rem "Add" had: "Add to cart" on the
	 * home pages (owner, 2026-09-29) still sits inside the 9rem photograph.
	 */
	.tc-home__add {
		grid-area: visual;
		align-self: start;
		justify-self: center;
		position: relative;
		z-index: 1;
		width: auto;
		min-width: 6.5rem;
		max-width: 9rem;
		padding: 0 0.6rem;
		height: 2.25rem;
		margin-top: 7.85rem;
		font-size: 0.9375rem;
		box-shadow: 0 3px 10px rgba(18, 17, 17, 0.14);
	}

	/*
	 * A phone: Add sits on the photograph's foot, so the line sits on the
	 * photograph just above it, on white so the red reads over any photo.
	 */
	.tc-home__unavailable {
		grid-area: visual;
		align-self: start;
		justify-self: center;
		position: relative;
		z-index: 1;
		margin: 6.2rem 0 0;
		padding: 0.15rem 0.5rem;
		border-radius: 999px;
		background: #FFFFFF;
		font-size: 0.6875rem;
		text-align: center;
		white-space: nowrap;
	}

	/* The counter where Add was, the same size. */
	.tc-home__step {
		grid-area: visual;
		align-self: start;
		justify-self: center;
		position: relative;
		z-index: 1;
		width: 6.5rem;
		height: 2.25rem;
		margin-top: 7.85rem;
		box-shadow: 0 3px 10px rgba(18, 17, 17, 0.14);
	}

	/* Under Add: the photograph (9rem), Add's overhang (1.1rem), a gap. */
	.tc-home__add-note {
		grid-area: visual;
		align-self: start;
		display: block;
		justify-self: center;
		margin-top: 10.4rem;
		color: var(--tc-muted);
		font-size: 0.6875rem;
		line-height: 1.2;
	}

	.tc-home__item-note {
		grid-area: note;
	}
}

.tc-home__more-wrap {
	margin: 1.25rem 0 0;
	text-align: center;
}

/* "More fresh coffee": a link to /fresh-coffee/, drawn as a pill. */
.tc-home__show-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	height: 2.75rem;
	padding: 0 1.5rem;
	border: 1px solid var(--tc-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--tc-ink);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

/*
 * Before home-order.js has counted what reaches the visitor, a phone is held
 * to the front page's five cards -- the page prints the desk's nine.
 */
@media (max-width: 47.99em) {
	.tc-home:not(.is-applied) .tc-home__order.is-capped .tc-home__item:nth-child(n+6),
	.tc-home:not(.is-applied) .tc-home__roasters.is-capped .tc-home__rcard:nth-child(n+6) {
		display: none;
	}
}

/*
 * The basket, once something is in it. Fixed to the foot of the window and
 * clear of the phone's bottom bar (TC_Bottom_Bar sits under 48em).
 */
.tc-home__bar {
	position: fixed;
	right: 0;
	bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
	left: 0;
	z-index: 90;
	padding: 0 var(--tc-gutter);
	pointer-events: none;
}

@media (max-width: 47.99em) {
	.tc-home__bar {
		bottom: calc(env(safe-area-inset-bottom, 0px) + 4.5rem);
	}
}

.tc-home__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 40rem;
	margin: 0 auto;
	padding: 0.6rem 0.6rem 0.6rem 1.1rem;
	border-radius: 14px;
	background: var(--tc-green);
	color: #FFFFFF;
	box-shadow: var(--tc-shadow-lift);
	pointer-events: auto;
}

.tc-home__bar-text {
	font-size: 0.9375rem;
	font-weight: 600;
}

.tc-home__bar-go {
	padding: 0.55rem 1.1rem;
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--tc-green-dark);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.tc-home__bar-go:hover,
.tc-home__bar-go:focus-visible {
	background: var(--tc-green-soft);
}

/* "Start a new basket?" -- on <body>, so it is a native modal over everything. */
.tc-home__dialog {
	width: min(26rem, calc(100vw - 2rem));
	padding: 1.25rem;
	border: 0;
	border-radius: var(--tc-radius-sm);
	background: #FFFFFF;
	color: #413E3C;
	box-shadow: var(--tc-shadow-modal, 0 18px 40px rgba(18, 17, 17, 0.25));
}

/* A literal: a custom property on the dialog does not reach its backdrop in every engine. */
.tc-home__dialog::backdrop {
	background: rgba(18, 17, 17, 0.55);
}

/*
 * "Brewing your bag": over the whole page from Add until the roaster's
 * ordering page has loaded (owner, 2026-09-29), so nothing from another
 * roaster goes in meanwhile. home-order.js brew() draws it on <body>.
 */
.tc-home__brewing {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(18, 17, 17, 0.45);
}

body.tc-home-brewing {
	overflow: hidden;
}

.tc-home__brewing-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: min(16rem, 100%);
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: var(--tc-radius-sm);
	background: var(--tc-card);
	color: var(--tc-ink);
	box-shadow: 0 18px 40px rgba(18, 17, 17, 0.25);
	text-align: center;
}

.tc-home__brewing-icon {
	display: block;
	color: var(--tc-ink);
}

.tc-home__brewing-fill {
	fill: var(--tc-roast);
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: tc-home-brew-fill 2.4s ease-in-out infinite alternate;
}

.tc-home__brewing-drop {
	fill: var(--tc-roast);
	animation: tc-home-brew-drop 1s ease-in infinite;
}

.tc-home__brewing-drop--2 {
	animation-delay: 0.5s;
}

.tc-home__brewing-text {
	margin: 0;
	color: var(--tc-ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

@keyframes tc-home-brew-fill {
	from {
		transform: scaleY(0.2);
	}

	to {
		transform: scaleY(0.8);
	}
}

@keyframes tc-home-brew-drop {
	0% {
		opacity: 0;
		transform: translateY(0);
	}

	20% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translateY(11px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-home__brewing-fill {
		animation: none;
		transform: scaleY(0.6);
	}

	.tc-home__brewing-drop {
		animation: none;
	}

	.tc-home__brewing-drop--2 {
		display: none;
	}
}

.tc-home__dialog-title {
	margin: 0 0 0.5rem;
	color: #121111;
	font-size: 1.125rem;
	font-weight: 600;
}

.tc-home__dialog p,
.tc-home__dialog ul {
	margin: 0 0 0.6rem;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.tc-home__dialog-acts {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem;
}

.tc-home__dialog-keep,
.tc-home__dialog-go {
	height: 2.5rem;
	padding: 0 1rem;
	border-radius: 999px;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

/* Each raised, as every pill in a dialog is: the green on its own colour's shadow. */
.tc-home__dialog-keep {
	border: 1px solid #29594B;
	background: #29594B;
	color: #FFFFFF;
	box-shadow: var(--tc-shadow-go);
}

.tc-home__dialog-go {
	border: 1px solid rgba(18, 17, 17, 0.2);
	background: #FFFFFF;
	color: #9B2C1F;
	box-shadow: var(--tc-shadow-chip);
}

/*
 * Add's one sheet (coffee-cards.js choose()): "How do you brew?" over "Which
 * pack?", never one popup after another (owner, 2026-10-01). The brewers are
 * tiles, whole beans first and a row to itself; the packs one row each, the
 * size on the left and what it costs ground that way on the right. A sheet
 * from the foot of a phone, a box on a desk, and it scrolls where a roaster
 * grinds for more brewers than the screen is tall.
 */
.tc-home__pick {
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	overflow-y: auto;
}

.tc-home__dialog .tc-home__pick-what {
	margin: 0.9rem 0 0.45rem;
	color: var(--tc-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

/* Their brewer, where this roast is not sold for it: said, never switched. */
.tc-home__dialog .tc-home__pick-hint {
	margin: 0 0 0.5rem;
	color: #9B2C1F;
	font-size: 0.8125rem;
	line-height: 1.35;
}

.tc-home__pick-brew {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

/* A button, so every Motta button rule is answered here, in every state. */
.tc-home__pick-opt,
.tc-home__pick-opt:hover,
.tc-home__pick-opt:focus,
.tc-home__pick-opt:active {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.55rem;
	width: 100%;
	min-width: 0;
	min-height: 3rem;
	height: auto;
	margin: 0;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--tc-line);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--tc-ink);
	font: inherit;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	/* Raised: a tile is something to press. Flat while held, below. */
	box-shadow: var(--tc-shadow-chip);
	cursor: pointer;
}

.tc-home__pick-opt:active {
	box-shadow: none;
}

/* The brewer, drawn, beside its name: the menu's own icon for it. */
.tc-home__pick-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--tc-ink);
}

.tc-home__pick-icon svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

.tc-home__pick-icon:empty {
	display: none;
}

.tc-home__pick-name {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.tc-home__pick-name b {
	font-size: 0.875rem;
	font-weight: 600;
}

.tc-home__pick-name small {
	color: var(--tc-muted);
	font-size: 0.6875rem;
	font-weight: 400;
}

.tc-home__pick-name small:empty {
	display: none;
}

.tc-home__pick-opt[aria-pressed="true"] .tc-home__pick-icon {
	color: var(--tc-green);
}

/* Whole beans: an answer in its own right, not one more brewer. */
.tc-home__pick-opt--whole {
	grid-column: 1 / -1;
}

.tc-home__pick-opt:hover {
	border-color: var(--tc-green);
}

.tc-home__pick-opt[aria-pressed="true"],
.tc-home__pick-opt[aria-pressed="true"]:hover,
.tc-home__pick-opt[aria-pressed="true"]:focus,
.tc-home__pick-opt[aria-pressed="true"]:active {
	border-color: var(--tc-green);
	background: var(--tc-green-soft);
	box-shadow: var(--tc-shadow-chip-on, inset 0 0 0 1px var(--tc-green));
}

.tc-home__dialog .tc-home__pick-guide {
	display: inline-block;
	margin: 0.6rem 0 0;
	color: var(--tc-green);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/*
 * No brewer chosen yet: the packs wait. Their size and price stay in full
 * ink -- the price is what they are read for -- and only the row steps back,
 * with a line above saying what is wanted. aria-disabled, not :disabled: the
 * theme paints a disabled button's words white.
 */
.tc-home__pick-pack[aria-disabled="true"],
.tc-home__pick-pack[aria-disabled="true"]:hover,
.tc-home__pick-pack[aria-disabled="true"]:focus,
.tc-home__pick-pack[aria-disabled="true"]:active {
	border-color: var(--tc-line);
	border-style: dashed;
	background: var(--tc-cream);
	color: var(--tc-ink);
	cursor: default;
}

.tc-home__dialog .tc-home__pick-wait {
	margin: 0 0 0.45rem;
	color: var(--tc-body);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.tc-home__dialog .tc-home__pick-wait[hidden] {
	display: none;
}

/* A pack pressed before a brewer: the line that says so, once, in the amber. */
.tc-home__pick-wait.is-nudged {
	animation: tc-home-pick-nudge 0.9s ease-out;
}

@keyframes tc-home-pick-nudge {
	0%,
	60% {
		color: var(--tc-ink);
		background: var(--tc-amber);
		box-shadow: 0 0 0 0.3rem var(--tc-amber);
	}

	100% {
		background: transparent;
		box-shadow: 0 0 0 0.3rem transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-home__pick-wait.is-nudged {
		animation: none;
		font-weight: 700;
	}
}

.tc-home__pick-list {
	display: grid;
	gap: 0.5rem;
}

.tc-home__pick-pack {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--tc-line);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--tc-ink);
	font: inherit;
	text-align: left;
	box-shadow: var(--tc-shadow-chip);
	cursor: pointer;
}

.tc-home__pick-pack:hover,
.tc-home__pick-pack:focus-visible {
	border-color: var(--tc-green);
	background: var(--tc-green-soft);
}

.tc-home__pick-size {
	font-size: 0.9375rem;
	font-weight: 600;
}

.tc-home__pick-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}

/* A step up from the pack's size beside it (owner, 2026-10-01): the price is what the row is read for. */
.tc-home__pick-price strong {
	font-size: 1.125rem;
	font-weight: 700;
}

.tc-home__pick-price small {
	color: var(--tc-green);
	font-size: 0.75rem;
}

.tc-home__pick-cancel {
	height: 2.5rem;
	padding: 0 1rem;
	border: 1px solid rgba(18, 17, 17, 0.2);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--tc-ink);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: var(--tc-shadow-chip);
	cursor: pointer;
}

/*
 * Every rating a roaster has, from their card: the head stays, the list
 * scrolls on its own. A sheet from the foot of a phone, a box on a desk.
 */
.tc-home__dialog.tc-home__ratings {
	width: min(34rem, calc(100vw - 2rem));
	max-height: min(85vh, 44rem);
	padding: 0;
	overflow: hidden;
}

.tc-home__ratings[open] {
	display: flex;
	flex-direction: column;
}

/* The head band: deep cream over the white list, a rule where the two meet. */
.tc-home__ratings-head {
	position: relative;
	flex: none;
	padding: 1rem 3.5rem 0.9rem 1.25rem;
	border-bottom: 1px solid var(--tc-band-line, rgba(18, 17, 17, 0.12));
	background: var(--tc-band, #F5EFE3);
}

.tc-home__ratings .tc-home__dialog-title {
	margin: 0 0 0.35rem;
}

.tc-home__ratings-close,
.tc-home__ratings-close:hover,
.tc-home__ratings-close:focus,
.tc-home__ratings-close:active {
	position: absolute;
	top: 0.7rem;
	right: 0.75rem;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 2.25rem;
	min-width: 0;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	/* White and raised: a cream disc would vanish into the band it sits on. */
	border: 1px solid var(--tc-line);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--tc-ink);
	font-size: 1.375rem;
	line-height: 1;
	box-shadow: var(--tc-shadow-chip);
	cursor: pointer;
}

.tc-home__ratings-close:hover {
	background: var(--tc-cream);
}

.tc-home__ratings-close:active {
	box-shadow: none;
}

.tc-home__ratings-close:focus-visible {
	outline: 2px solid var(--tc-green);
	outline-offset: 2px;
}

.tc-home__dialog .tc-home__ratings-lead {
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
	margin: 0;
	/* In the band, where muted is 5.0:1 and the body colour 9.3:1. */
	color: var(--tc-body);
}

.tc-home__ratings-lead strong {
	color: var(--tc-ink);
	font-size: 1.125rem;
}

.tc-home__ratings-lead .tc-home__stars {
	font-size: 1.125rem;
}

.tc-home__dialog .tc-home__ratings-lines {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin: 0.5rem 0 0;
	padding: 0;
	color: var(--tc-body);
	font-size: 0.8125rem;
	list-style: none;
}

.tc-home__ratings-scroll {
	flex: 1 1 auto;
	min-height: 6rem;
	padding: 0 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.tc-home__dialog .tc-home__ratings-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-home__rv {
	padding: 1rem 0;
	border-bottom: 1px solid var(--tc-line);
}

.tc-home__dialog .tc-home__rv p {
	margin: 0;
}

.tc-home__dialog .tc-home__rv-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.6rem;
	font-size: 0.8125rem;
}

.tc-home__rv .tc-stars {
	display: inline-flex;
	gap: 1px;
	font-size: 0.9375rem;
	line-height: 1;
}

.tc-home__rv .tc-stars__star {
	color: #D6D3D1;
}

.tc-home__rv .tc-stars__star.is-on {
	color: var(--tc-amber);
}

.tc-home__rv-by {
	color: var(--tc-ink);
	font-weight: 600;
}

.tc-home__rv-when,
.tc-home__dialog .tc-home__rv-flag {
	color: var(--tc-muted);
	font-size: 0.8125rem;
}

.tc-home__dialog .tc-home__rv-body {
	margin-top: 0.4rem;
	color: var(--tc-body);
	font-size: 0.9375rem;
	line-height: 1.5;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

/* A coffee review's own lines: did it taste of its notes, and the reviewer's photographs. */
.tc-home__dialog .tc-home__rv-match {
	margin-top: 0.35rem;
	color: var(--tc-body);
	font-size: 0.8125rem;
	font-weight: 500;
}

.tc-home__dialog .tc-home__rv-match--yes {
	color: var(--tc-green);
}

.tc-home__dialog .tc-home__rv-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.6rem 0 0;
	padding: 0;
	list-style: none;
}

/* A photograph is something to open: a hairline round it and the short shadow under it. */
.tc-home__rv-photos img {
	display: block;
	box-sizing: border-box;
	width: 4.5rem;
	height: 4.5rem;
	border: 1px solid var(--tc-line);
	border-radius: 8px;
	box-shadow: var(--tc-shadow-chip);
	object-fit: cover;
}

.tc-home__dialog .tc-home__rv-reply {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: 0.6rem;
	padding: 0.6rem 0.75rem;
	border-left: 3px solid var(--tc-green);
	border-radius: 0 6px 6px 0;
	/* Deep cream: the plain cream was the white it sat on. */
	background: var(--tc-cream-deep);
	font-size: 0.875rem;
	line-height: 1.45;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.tc-home__rv-reply strong {
	color: var(--tc-ink);
	font-size: 0.8125rem;
}

.tc-home__dialog .tc-home__ratings-status {
	margin: 1rem 0 0;
	color: var(--tc-muted);
	font-size: 0.875rem;
	text-align: center;
}

.tc-home__dialog .tc-home__ratings-status:empty {
	display: none;
}

.tc-home__ratings-more,
.tc-home__ratings-more:hover,
.tc-home__ratings-more:focus,
.tc-home__ratings-more:active,
.tc-home__ratings-retry,
.tc-home__ratings-retry:hover,
.tc-home__ratings-retry:focus,
.tc-home__ratings-retry:active {
	display: block;
	width: auto;
	min-width: 0;
	height: 2.5rem;
	margin: 1rem auto 0;
	padding: 0 1.1rem;
	border: 1px solid rgba(18, 17, 17, 0.2);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--tc-ink);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	box-shadow: var(--tc-shadow-chip);
	cursor: pointer;
}

.tc-home__ratings-more[hidden] {
	display: none;
}

.tc-home__ratings-more:hover,
.tc-home__ratings-retry:hover {
	border-color: var(--tc-ink);
	background: var(--tc-cream);
}

.tc-home__ratings-more:active,
.tc-home__ratings-retry:active {
	box-shadow: none;
}

@media (max-width: 47.99em) {
	.tc-home__dialog.tc-home__ratings {
		width: 100vw;
		max-width: 100vw;
		max-height: 88vh;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
	}
}

/*
 * Every button's own hover, focus and pressed colours.
 *
 * Motta paints every <button> --mt-color__primary--dark on :hover and
 * --darker on :focus and :active (motta/style.css:818), at (0,1,1) -- above
 * any one class here. A button that did not answer turned into a dark slab
 * under its own dark type on hover, and stayed one after a tap, since a tap
 * leaves focus on it. Each state is stated below at (0,2,0) or more: focus
 * and pressed keep the button as it was, hover is this page's own tint, and
 * the keyboard gets a ring rather than a colour.
 */
.tc-home__pill:focus,
.tc-home__pill:active {
	background: var(--tc-card);
	color: var(--tc-ink);
	box-shadow: none;
}

.tc-home__pill:hover {
	border-color: var(--tc-ink);
	background: var(--tc-cream);
	color: var(--tc-ink);
	box-shadow: none;
}

.tc-home__pill.is-on:focus,
.tc-home__pill.is-on:active,
.tc-home__pill.is-on:hover {
	border-color: var(--tc-amber);
	background: var(--tc-amber);
	color: var(--tc-ink);
}

.tc-home__add:focus,
.tc-home__add:active {
	background: var(--tc-card);
	color: var(--tc-green);
}

.tc-home__add:hover {
	background: var(--tc-green-soft);
	color: var(--tc-green);
	box-shadow: 0 2px 6px rgba(18, 17, 17, 0.08);
}

.tc-home__add.is-added:focus,
.tc-home__add.is-added:hover {
	background: var(--tc-green);
	color: #FFFFFF;
}

.tc-home__add:disabled:hover,
.tc-home__add:disabled:focus {
	background: var(--tc-card);
	color: var(--tc-muted);
	box-shadow: none;
}

.tc-home__show-more:focus,
.tc-home__show-more:active {
	background: transparent;
	color: var(--tc-ink);
	box-shadow: none;
}

.tc-home__show-more:hover {
	background: var(--tc-ink);
	color: #FFFFFF;
	box-shadow: none;
}

/*
 * The dialogs' buttons are raised (owner, 2026-10-02), so each state names
 * its shadow as well as its colour -- the theme's button rule brings one of
 * its own -- and each sits flat while it is held down.
 */
.tc-home__dialog-keep:focus {
	background: #29594B;
	color: #FFFFFF;
	box-shadow: var(--tc-shadow-go);
}

.tc-home__dialog-keep:hover {
	border-color: #1F463B;
	background: #1F463B;
	color: #FFFFFF;
	box-shadow: var(--tc-shadow-go);
}

.tc-home__dialog-keep:active {
	background: #29594B;
	color: #FFFFFF;
	box-shadow: none;
}

.tc-home__dialog-go:focus {
	background: #FFFFFF;
	color: #9B2C1F;
	box-shadow: var(--tc-shadow-chip);
}

.tc-home__dialog-go:hover {
	border-color: #9B2C1F;
	background: #FBEDEB;
	color: #9B2C1F;
	box-shadow: var(--tc-shadow-chip);
}

.tc-home__dialog-go:active {
	background: #FFFFFF;
	color: #9B2C1F;
	box-shadow: none;
}

.tc-home__pick-pack:focus {
	background: #FFFFFF;
	color: var(--tc-ink);
	box-shadow: var(--tc-shadow-chip);
}

.tc-home__pick-pack:hover {
	border-color: var(--tc-green);
	background: var(--tc-green-soft);
	color: var(--tc-ink);
	box-shadow: var(--tc-shadow-chip);
}

.tc-home__pick-pack:active {
	background: #FFFFFF;
	color: var(--tc-ink);
	box-shadow: none;
}

/* A pack that cannot be added yet is not something to press: flat, in every state. */
.tc-home__pick-pack[aria-disabled="true"],
.tc-home__pick-pack[aria-disabled="true"]:hover,
.tc-home__pick-pack[aria-disabled="true"]:focus,
.tc-home__pick-pack[aria-disabled="true"]:active {
	box-shadow: none;
}

.tc-home__pick-cancel:focus {
	background: #FFFFFF;
	color: var(--tc-ink);
	box-shadow: var(--tc-shadow-chip);
}

.tc-home__pick-cancel:hover {
	border-color: var(--tc-ink);
	background: var(--tc-cream);
	color: var(--tc-ink);
	box-shadow: var(--tc-shadow-chip);
}

.tc-home__pick-cancel:active {
	background: #FFFFFF;
	color: var(--tc-ink);
	box-shadow: none;
}

.tc-home__pill:focus-visible,
.tc-home__add:focus-visible,
.tc-home__show-more:focus-visible,
.tc-home__dialog-keep:focus-visible,
.tc-home__dialog-go:focus-visible,
.tc-home__pick-pack:focus-visible,
.tc-home__pick-opt:focus-visible,
.tc-home__pick-cancel:focus-visible {
	outline: 2px solid var(--tc-green);
	outline-offset: 2px;
}

@media (max-width: 47.99em) {
	.tc-home__pick {
		width: 100%;
		max-width: none;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
		padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
	}
}

/*
 * A dialog in three parts (owner, 2026-10-02: the dialogs read as one flat
 * white sheet). The head and the foot are deep-cream bands that stay put; the
 * body between them is white and is what scrolls; and where the body asks
 * more than one thing, each is a section with its name in small capitals and
 * a rule over it.
 *
 * coffee-cards.js builds the three wrappers and puts --banded on the dialog.
 * Everything here hangs on that class, so a page holding the older script
 * still draws the dialog it always did, and this stylesheet alone changes
 * nothing about its shape. After the pick sheet's phone rule above, whose
 * padding it takes back.
 */
.tc-home__dialog--banded {
	padding: 0;
	overflow: hidden;
}

.tc-home__dialog--banded[open] {
	display: flex;
	flex-direction: column;
}

.tc-home__dialog-head {
	flex: none;
	padding: 1rem 1.25rem 0.9rem;
	border-bottom: 1px solid var(--tc-band-line);
	background: var(--tc-band);
}

.tc-home__dialog-head .tc-home__dialog-title {
	margin: 0;
}

.tc-home__dialog-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 1rem 1.25rem 1.1rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.tc-home__dialog .tc-home__dialog-body > :last-child {
	margin-bottom: 0;
}

.tc-home__dialog-acts.tc-home__dialog-foot {
	flex: none;
	margin: 0;
	padding: 0.9rem 1.25rem;
	border-top: 1px solid var(--tc-band-line);
	background: var(--tc-band);
}

.tc-home__dialog-sec + .tc-home__dialog-sec {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--tc-line);
}

/* What a section asks, in the small capitals the pages label a block with. */
.tc-home__dialog--banded .tc-home__pick-what {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* What an answer would take away: set in as a tinted aside, not a paragraph among paragraphs. */
.tc-home__dialog-losing {
	padding: 0.65rem 0.8rem;
	border-radius: 10px;
	background: var(--tc-cream-deep);
	color: var(--tc-ink);
}

.tc-home__dialog .tc-home__dialog-losing p {
	margin: 0 0 0.3rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.tc-home__dialog .tc-home__dialog-losing ul {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.875rem;
}

@media (max-width: 47.99em) {
	.tc-home__dialog--banded {
		width: 100%;
		max-width: none;
		max-height: 88vh;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
	}

	/* The foot takes the home indicator's ground, so no white shows under the band. */
	.tc-home__dialog-acts.tc-home__dialog-foot {
		padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
	}
}

/* -------------------------------------------------------- the four points */

.tc-home__points {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.tc-home__points > .tc-home__inner {
	display: grid;
	gap: clamp(3rem, 8vw, 5.5rem);
}

.tc-home__point {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	margin: 0;
}

.tc-home__point-text p {
	margin: 0.9rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--tc-body);
}

.tc-home__point-text .tc-home__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	line-height: 1.2;
	color: var(--tc-amber-ink);
}

.tc-home__point-text .tc-home__strong {
	padding-left: 0.9rem;
	border-left: 3px solid var(--tc-amber);
	color: var(--tc-ink);
	font-weight: 500;
}

.tc-home__point-text .tc-home__more {
	white-space: normal;
}

@media (min-width: 48.75em) {
	.tc-home__point {
		grid-template-columns: 1fr 1fr;
	}

	.tc-home__point--flip .tc-home__point-media {
		order: 2;
	}

	.tc-home__point--solo {
		grid-template-columns: minmax(0, 40rem);
	}
}

/* 1. The bag label: a real coffee's roast date, on something shaped like a bag. */
.tc-home__label {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	max-width: 24rem;
	margin: 1.5rem auto;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border-radius: 6px;
	background: var(--tc-cream);
	/* The kraft ring is the bag; the label is stuck on it. */
	box-shadow: 0 0 0 12px var(--tc-kraft), 0 24px 48px rgba(18, 17, 17, 0.18);
	transform: rotate(-1.5deg);
}

@media (prefers-reduced-motion: reduce) {
	.tc-home__label {
		transform: none;
	}
}

.tc-home__label-by {
	color: var(--tc-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.tc-home__label-name {
	font-family: var(--tc-home-display);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tc-ink);
}

.tc-home__label-roast {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--tc-body);
	font-size: 0.9375rem;
}

.tc-home__swatch {
	flex: none;
	width: 0.9rem;
	height: 0.9rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 50%;
	background: var(--tc-roast);
}

.tc-home__label-date {
	margin-top: 0.4rem;
	padding: 0.6rem 0.8rem;
	border-radius: 8px;
	background: var(--tc-green-soft);
	color: var(--tc-green-dark);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.tc-home__label-note {
	color: var(--tc-muted);
	font-size: 0.75rem;
	line-height: 1.3;
}

/* A white card: the zones table and the tracking timeline both sit on one. */
.tc-home__card {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-card);
	box-shadow: var(--tc-shadow);
}

.tc-home__card-title,
.tc-home__zones caption {
	margin: 0;
	padding: 0 0 0.75rem;
	color: var(--tc-amber-ink);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-align: left;
	text-transform: uppercase;
}

/* 2. The delivery zones. */
.tc-home__zones {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.tc-home__zones th,
.tc-home__zones td {
	padding: 0.75rem 0.4rem;
	border: 0;
	border-bottom: 1px solid var(--tc-line);
	background: none;
	color: var(--tc-ink);
	text-align: left;
	vertical-align: middle;
}

.tc-home__zones thead th {
	padding-top: 0;
	color: var(--tc-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.tc-home__zones tbody th {
	font-weight: 600;
}

.tc-home__zones tbody td:last-child {
	color: var(--tc-green);
	font-weight: 600;
}

.tc-home__zones tbody tr:last-child th,
.tc-home__zones tbody tr:last-child td {
	border-bottom: 0;
	padding-bottom: 0;
}

@media (max-width: 30em) {
	.tc-home__zones {
		font-size: 0.8125rem;
	}

	.tc-home__zones th,
	.tc-home__zones td {
		padding: 0.6rem 0.25rem;
	}
}

/* 3. The grinds. */
.tc-home__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none;
}

.tc-home__chips li {
	margin: 0;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--tc-line);
	border-radius: 999px;
	background: var(--tc-card);
	color: var(--tc-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
}

/* 4. The tracking timeline, drawn mid-journey. */
.tc-home__track {
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.tc-home__track-step {
	position: relative;
	margin: 0;
	padding: 0 0 1.15rem 2rem;
	color: var(--tc-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.tc-home__track-step:last-child {
	padding-bottom: 0;
}

.tc-home__track-step::before {
	content: "";
	position: absolute;
	top: 0.2rem;
	left: 0;
	box-sizing: border-box;
	width: 0.9rem;
	height: 0.9rem;
	border: 2px solid var(--tc-line);
	border-radius: 50%;
	background: var(--tc-card);
}

.tc-home__track-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.2rem;
	bottom: 0.05rem;
	left: calc(0.45rem - 1px);
	width: 2px;
	background: var(--tc-line);
}

.tc-home__track-step--done {
	color: var(--tc-ink);
}

.tc-home__track-step--done::before {
	border-color: var(--tc-green);
	background: var(--tc-green);
}

.tc-home__track-step--done:not(:last-child)::after {
	background: var(--tc-green);
}

.tc-home__track-step--now {
	color: var(--tc-green);
	font-weight: 700;
}

.tc-home__track-step--now::before {
	border-color: var(--tc-green);
	box-shadow: 0 0 0 4px var(--tc-green-soft);
}

.tc-home__checks {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.tc-home__checks li {
	position: relative;
	margin: 0.85rem 0 0;
	padding-left: 1.9rem;
	color: var(--tc-body);
	font-size: 1rem;
	line-height: 1.55;
}

.tc-home__checks li::before {
	content: "\2713";
	position: absolute;
	top: 0.15rem;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--tc-green);
	color: #FFFFFF;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
}

/* ------------------------------------------------------------ the roasters */

/*
 * Independent roasters: under the coffee on the front page, and the whole of
 * /roasteries/. Swiggy's restaurant card (owner,
 * 2026-09-27) -- on a desk four across (owner, 2026-09-29; it was three), the
 * roaster's profile picture over
 * the words, as the coffee cards; on a phone a row, picture on the left, with
 * a divider. The border is on the picture only.
 */
.tc-home__roasters {
	padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.5rem, 6vw, 4rem);
}

/* On its own page it follows the head directly. */
.tc-home--roasters .tc-home__roasters {
	padding-top: 1rem;
}

.tc-home__rhead {
	margin: 0 0 1.25rem;
}

/*
 * The front page's section titles carry an icon (owner, 2026-09-30):
 * TC_Home::section_icon(), beside the words, in the brand green on the light
 * sections and the eyebrow's amber on How it works' dark band.
 */
.tc-home__order-title.has-icon,
.tc-home__rtitle,
.tc-home__steps-title {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.tc-home__title-icon {
	display: block;
	flex: none;
	width: 1.1em;
	height: 1.1em;
	color: var(--tc-green);
}

/* Against the two lines a phone's title always has, not beside one of them. */
.tc-home__order-title.has-icon .tc-home__title-icon {
	width: 1.4em;
	height: 1.4em;
}

/*
 * The cup and the roastery (owner, 2026-09-30): black lines, the cup's coffee
 * and the roastery's flame in brand amber, the roasting bean pale green. The cup's empty space stays empty (the
 * owner tried it green and said no).
 */
.tc-home__title-icon--coffee,
.tc-home__title-icon--roasters,
.tc-home__title-icon--more {
	color: var(--tc-ink);
}

.tc-home__title-icon-amber {
	fill: var(--tc-amber);
}

/*
 * The roastery's bean: the brand's pale green in its amber flame (owner,
 * 2026-09-30; two browns were tried first).
 */
.tc-home__title-icon-bean {
	fill: var(--tc-green-soft);
}

/* The flame a size up beside its title (owner): it already fills its box. The bag matches it. */
.tc-home__title-icon--roasters,
.tc-home__title-icon--more {
	width: 1.3em;
	height: 1.3em;
}

.tc-home__steps-title .tc-home__title-icon {
	width: 1.6em;
	height: 1.6em;
	color: currentColor;
}

/* The same size as the coffee grid's title, .tc-home__order-title (owner, 2026-09-29). */
.tc-home__rtitle {
	margin: 0;
	color: var(--tc-ink);
	font-family: var(--tc-home-display);
	font-size: clamp(1.375rem, 1rem + 1.6vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

@media (max-width: 47.99em) {
	.tc-home__rtitle {
		font-size: 1.25rem;
	}
}

.tc-home__rsub {
	margin: 0.25rem 0 0;
	color: var(--tc-muted);
	font-size: 0.9375rem;
}

.tc-home__rgrid,
.tc-home__rbones {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Only while a place is being settled (.tc-home.is-finding, above). */
.tc-home__rbones {
	display: none;
}

@media (min-width: 48em) {
	.tc-home__rgrid,
	.tc-home__rbones {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 3rem 2rem;
	}
}

.tc-home__rcard {
	position: relative;
	min-width: 0;
	margin: 0;
}

.tc-home__rcard.is-closed {
	opacity: 0.6;
}

.tc-home__rcard-inner {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

/*
 * The name is the card's link, stretched over all of it, so the picture and
 * the lines are tappable as before; the rating button sits above it.
 */
.tc-home__rcard .tc-home__rcard-link,
.tc-home__rcard .tc-home__rcard-link:hover,
.tc-home__rcard .tc-home__rcard-link:focus {
	color: var(--tc-ink);
	text-decoration: none;
}

.tc-home__rcard-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tc-home__rcard-photo {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
}

/*
 * The roaster's profile picture as a circle, as tall as the slot: no frame,
 * no fill, so a transparent logo sits straight on the page (owner,
 * 2026-09-27).
 */
.tc-home__rcard-photo .tc-home__rcard-logo,
.tc-home__rcard-initial {
	position: absolute;
	top: 0;
	left: 50%;
	display: block;
	width: auto;
	max-width: none;
	height: 100%;
	aspect-ratio: 1;
	margin: 0;
	border-radius: 50%;
	transform: translateX(-50%);
}

.tc-home__rcard-photo .tc-home__rcard-logo {
	background: transparent;
	object-fit: cover;
}

/* No picture: their initial, on a disc of its own so the grid keeps its shape. */
.tc-home__rcard-initial {
	display: grid;
	place-items: center;
	background: var(--tc-cream-deep);
	color: var(--tc-green);
	font-family: var(--tc-home-display);
	font-size: 2.5rem;
	font-weight: 600;
}

.tc-home__rcard-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.tc-home__rcard-name,
.tc-home__rcard-where,
.tc-home__roaster-kinds {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tc-home__rcard-name {
	color: var(--tc-ink);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.tc-home__rcard:hover .tc-home__rcard-link,
.tc-home__rcard .tc-home__rcard-link:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--tc-amber);
	text-decoration-thickness: 2px;
}

/* "★ 4.6 (23) · 35 min", or "★ 4.6 (23) · Closed · why". */
.tc-home__rcard-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.35rem;
	min-width: 0;
	color: var(--tc-ink);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

/* No rating and no place yet: nothing to say, so no empty line. */
.tc-home__rcard-meta:not(:has(> :not([hidden]))) {
	display: none;
}

.tc-home__rcard-rating + .tc-home__rcard-stat:not([hidden])::before {
	content: "\00b7";
	margin-right: 0.35rem;
	color: var(--tc-muted);
}

/*
 * The rating, a button over the stretched link: it opens every rating
 * (home-order.js). Motta styles every <button> -- the 160px minimum, the
 * 60px line, the fills -- so each is answered here.
 */
.tc-home__rcard-rating,
.tc-home__rcard-rating:hover,
.tc-home__rcard-rating:focus,
.tc-home__rcard-rating:active {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: baseline;
	gap: 0.2rem;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--tc-ink);
	font: inherit;
	line-height: inherit;
	box-shadow: none;
	cursor: pointer;
}

.tc-home__rcard-rating:hover .tc-home__rcard-count,
.tc-home__rcard-rating:focus-visible .tc-home__rcard-count {
	text-decoration: underline;
}

.tc-home__rcard-rating:focus-visible {
	outline: 2px solid var(--tc-green);
	outline-offset: 2px;
}

/*
 * Five stars, the amber ones filled to the average: grey stars underneath,
 * the same five in amber over them, cut at --tc-fill (TC_Home::star_fill()),
 * so 4.6 shows four and most of the fifth.
 */
.tc-home__stars {
	position: relative;
	display: inline-block;
	color: #D6D3D1;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
}

.tc-home__stars::before {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	top: 0;
	left: 0;
	width: var(--tc-fill, 0%);
	overflow: hidden;
	color: var(--tc-amber);
}

.tc-home__rcard-count {
	color: var(--tc-muted);
	font-weight: 500;
}

.tc-home__rcard-stat {
	color: var(--tc-ink);
}

.tc-home__rcard.is-closed .tc-home__rcard-stat {
	color: #9B2C1F;
}

.tc-home__roaster-kinds {
	color: var(--tc-body);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.tc-home__rcard-where {
	color: var(--tc-muted);
	font-size: 0.8125rem;
	line-height: 1.35;
}

/* The card's foot: the delivery time, then "Order here" (owner, 2026-09-27). */
.tc-home__rcard-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	margin-top: 0.5rem;
}

.tc-home__rcard-eta {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-width: 0;
	color: var(--tc-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

.tc-home__rcard-eta[hidden] {
	display: none;
}

.tc-home__rcard-eta-icon {
	display: block;
	flex: none;
	width: 0.95rem;
	height: 0.95rem;
	color: var(--tc-green);
}

/*
 * Over the stretched name link, so it goes to the ordering page rather than
 * the store page. Every state stated: Motta's a:hover/a:visited would
 * otherwise repaint it.
 */
.tc-home__rcard-order,
.tc-home__rcard-order:visited,
.tc-home__rcard-order:hover,
.tc-home__rcard-order:focus,
.tc-home__rcard-order:active {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.25rem;
	margin-left: auto;
	padding: 0 1rem;
	border: 1px solid var(--tc-green);
	border-radius: 8px;
	background: var(--tc-card);
	color: var(--tc-green);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(18, 17, 17, 0.08);
}

.tc-home__rcard-order:hover,
.tc-home__rcard-order:focus-visible {
	background: var(--tc-green-soft);
}

.tc-home__rcard-order:focus-visible {
	outline: 2px solid var(--tc-green);
	outline-offset: 2px;
}

/* A closed roaster's page still opens, but the button does not invite an order. */
.tc-home__rcard.is-closed .tc-home__rcard-order {
	border-color: var(--tc-line);
	color: var(--tc-muted);
	box-shadow: none;
}

@media (max-width: 47.99em) {
	.tc-home__rcard {
		padding: 1rem 0;
		border-bottom: 1px solid var(--tc-line);
	}

	.tc-home__rcard-inner {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
	}

	.tc-home__rcard-photo {
		flex: none;
		width: 6.5rem;
		aspect-ratio: 1;
	}

	/* The roaster bones: the photograph on the left, as the cards have it. */
	.tc-home__bone--roaster {
		grid-template-columns: 6.5rem minmax(0, 1fr);
		padding: 1rem 0;
	}

	.tc-home__bone--roaster .tc-home__bone-photo {
		grid-column: 1;
		width: 100%;
	}

	.tc-home__bone--roaster .tc-home__bone-line {
		grid-column: 2;
	}
}

/* --------------------------------------------------------- how it works */

/* Already the width of the window: .tc-home broke out for the whole page. */
.tc-home__steps {
	background: var(--tc-ink);
	color: var(--tc-on-dark-soft);
}

.tc-home__steps-inner {
	max-width: var(--tc-measure);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 3.5rem) var(--tc-gutter);
}

.tc-home__steps .tc-home__eyebrow {
	margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem);
	color: var(--tc-amber);
}

.tc-home__grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	grid-template-columns: repeat(3, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 48.75em) {
	.tc-home__grid {
		grid-template-columns: 1fr;
	}
}

/*
 * .tc-home__how-step, not .tc-home__step: the cards' − n + counter took that
 * name on 2026-09-27, and its pill box (2rem tall, overflow hidden; on a
 * phone a 6.5rem box in the photograph's grid area) clipped every step.
 */
.tc-home__how-step {
	margin: 0;
}

.tc-home__step-title {
	margin: 0 0 0.6rem;
	font-family: var(--tc-home-display);
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--tc-on-dark);
}

.tc-home__step-text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--tc-on-dark-soft);
}

.tc-home__close {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-top: clamp(2rem, 5vw, 3rem);
	padding-top: clamp(1.5rem, 4vw, 2.25rem);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tc-home__close-text {
	margin: 0;
	font-family: var(--tc-home-display);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
	font-weight: 500;
	line-height: 1.3;
	color: var(--tc-on-dark);
}

/* On the dark band the button takes the accent, which is what it is there for. */
.tc-home__close-cta {
	background: var(--tc-amber);
	color: var(--tc-ink);
	box-shadow: none;
}

.tc-home__close-cta:hover,
.tc-home__close-cta:focus {
	background: #FFBE45;
	color: var(--tc-ink);
}

/* ------------------------------------------- a roaster's ordering page */

/*
 * The ordering page's list is the front page's cards (TC_Home::ordering_list(),
 * inside #tapper-cafe-app): one grid, a card per coffee and roast, under the
 * page's brewer chips. The tokens come from .tc-cards (top of file).
 */
.tc-cards--order {
	color: var(--tc-ink);
}

.tc-cards--order .tc-home__items {
	margin-top: 1.25rem;
}

/*
 * A card a brewer chip has filtered out (order.js). Stated, because a phone's
 * card is display: grid and .tc-home's own [hidden] rule does not reach here.
 */
.tc-cards--order .tc-home__item[hidden] {
	display: none;
}

/*
 * The chips on the photograph, a size down on the ordering page (owner,
 * 2026-09-27): the badge, the roast and Closed. A desk only; a phone's chips
 * are already this small (and the roast chip is not on its photograph at
 * all).
 */
@media (min-width: 48em) {
	.tc-cards--order .tc-home__badge,
	.tc-cards--order .tc-home__closed {
		padding: 0.2rem 0.5rem;
		font-size: 0.6875rem;
	}

	.tc-cards--order .tc-home__badge,
	.tc-cards--order .tc-home__closed {
		top: 0.5rem;
	}

	.tc-cards--order .tc-home__badge {
		left: 0.5rem;
	}

	.tc-cards--order .tc-home__closed {
		right: 0.5rem;
	}
}

/* ---------------------------------------------------------------------------
 * Tapper Brews: "How should it reach you?" in the Add sheet (coffee-cards.js).
 * Two tiles, Today and Standard delivery; the ticked one tinted in its mode's colour.
 * ------------------------------------------------------------------------ */
.tt-ways__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tt-ways__opt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius-sm, 14px);
	background: var(--tc-card, #fff);
	color: var(--tc-ink);
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.tt-ways__opt b { font-weight: 600; }
.tt-ways__opt small { color: var(--tc-body); font-size: 0.8rem; line-height: 1.35; }

.tt-ways__opt--local[aria-checked="true"] {
	box-shadow: inset 0 0 0 1.5px var(--tc-green);
	background: var(--tc-green-soft);
}

.tt-ways__opt--courier[aria-checked="true"] {
	box-shadow: inset 0 0 0 1.5px #8A5A2B;
	background: #F4E9DA;
}

.tt-ways__opt:focus-visible {
	outline: 2px solid var(--tc-green);
	outline-offset: 2px;
}

/* ------------------------------------------------- after your first order */

/* parts/after.php (storefront review, 2026-10-08): two or three short items. */
.tc-home__after {
	padding: clamp(1.75rem, 4vw, 2.75rem) 0;
	background: var(--tc-cream-deep);
}

.tc-home__after-title {
	margin: 0 0 1rem;
	color: var(--tc-ink);
	font-family: var(--tc-home-display);
	font-size: clamp(1.15rem, 4vw, 1.5rem);
}

.tc-home__after-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-home__after-item {
	display: grid;
	gap: 0.2rem;
	padding: 0.85rem 1rem;
	border-radius: var(--tc-radius-sm);
	background: var(--tc-card);
	color: var(--tc-body);
	font-size: 0.875rem;
}

.tc-home__after-item strong {
	color: var(--tc-ink);
	font-size: 0.9375rem;
}

.tc-home__after-item a {
	color: var(--tc-green);
}

/* The card's delivery row and its "Not available right now", a step larger on a desk (owner, 2026-10-08). */
@media (min-width: 48em) {
	.tc-home__item-ships,
	.tc-home__unavailable {
		font-size: 0.9rem;
	}
}

/* ------------------------------------------------------------------------
 * "More from roasters near you" (owner, 2026-10-10; mockup
 * claude.ai/artifact/Szt8xajsQmBuGXq7wH6JME): the roasters' non-coffee items
 * after the coffee grid, in the coffee card's shape (gear-card.php). Printed
 * hidden; home-order.js paintMore() shows it once three or more reach the
 * visitor. Two rows of four on a desk, five rows on a phone.
 * ------------------------------------------------------------------------ */

.tc-home__gearshelf {
	padding: clamp(1.75rem, 4vw, 2.75rem) 0 0;
}

.tc-home__gearshelf[hidden],
.tc-home__gearshelf .tc-home__item[hidden],
.tc-home__gearshelf [data-tc-gear-more][hidden] {
	display: none;
}

.tc-home__gearshelf .tc-home__items {
	margin-top: 0;
}

.tc-home__gearshelf .tc-home__item-blurb {
	margin: 0.3rem 0 0;
	color: var(--tc-body);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.tc-home__gearshelf .tc-home__tile--gear {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tc-cream-deep);
	color: var(--tc-green);
}

.tc-home__gearshelf .tc-home__price strong del {
	margin-right: 0.25rem;
	color: var(--tc-muted);
	font-weight: 400;
}

.tc-home__gearshelf .tc-home__price strong ins {
	text-decoration: none;
}

@media (min-width: 48em) {
	.tc-home__gearshelf .tc-home__gear-items {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2.5rem 1.5rem;
	}

	.tc-home__gearshelf .tc-home__item-media {
		aspect-ratio: 1;
	}
}

@media (max-width: 47.99em) {
	/* The short description where a coffee's taste line goes. */
	.tc-home__gearshelf .tc-home__item-blurb {
		grid-area: notes;
	}

	.tc-home__gearshelf .tc-home__item:last-child {
		border-bottom: 0;
	}
}
