/*
Theme Name: Tellervo Drinks
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tellervo-drinks
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* ============================================================
   Tellervo Drinks — theme styles
   ============================================================ */
:root {
	--td-green: var( --wp--preset--color--primary );
	--td-green-dark: var( --wp--preset--color--primary-dark, #2b4833 );
	--td-green-soft: var( --wp--preset--color--primary-soft, #e8efe9 );
	--td-cream: var( --wp--preset--color--background );
	--td-ink: var( --wp--preset--color--text );
	--td-sand: var( --wp--preset--color--accent-sand );
	--td-blue: var( --wp--preset--color--accent-blueberry );
	--td-berr: var( --wp--preset--color--accent-lingonberry );
	--td-ora: var( --wp--preset--color--accent-buckthorn );
	--td-gold: var( --wp--preset--color--accent-buckthorn );
	--td-gold-dark: var( --wp--preset--color--accent-gold-dark, #b08a36 );
	--td-gold-soft: var( --wp--preset--color--accent-gold-soft, #f3ebd3 );
	--td-gold-contrast: #35593f;
	--td-muted: #6b7064;
	--td-serif: var( --wp--preset--font-family--fraunces );
	--td-sans: var( --wp--preset--font-family--karla );
	--td-radius: var( --wp--custom--rounded--md, 16px );
	--td-radius-lg: var( --wp--custom--rounded--lg, 24px );
}

body {
	background: var( --td-cream );
	color: var( --td-ink );
}

/* ---- Announcement bar ---- */
.announce-bar {
	padding-top: 10px;
	padding-bottom: 10px;
}
.announce-inner .announce-text {
	margin: 0;
	color: var( --td-cream );
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}
.announce-text a {
	color: var( --td-sand );
	font-weight: 700;
}

/* ---- Header ---- */
.site-header {
	border-bottom: 1px solid var( --td-sand );
	position: relative;
	z-index: 50;
}
.header-row {
	gap: clamp( 0.75rem, 3vw, 2.25rem );
}
.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	line-height: 1.05;
	min-width: 0;
}
.td-logo {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	display: block;
	border-radius: 10px;
}
.brand-text {
	min-width: 0;
}
.brand-name {
	margin: 0;
	font-family: var( --td-serif );
	font-weight: 500;
	font-size: 1.55rem;
	letter-spacing: -0.01em;
	color: var( --td-green );
	line-height: 1.05;
}
.brand-tag {
	margin: 5px 0 0;
	font-size: 0.62rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var( --td-blue );
	white-space: nowrap;
}
.brand-tag a {
	color: var( --td-blue );
	text-decoration: none;
}
.brand-tag a:hover {
	color: var( --td-green );
}
.brand-text .brand-name {
	line-height: 1.1;
}

.main-nav .wp-block-navigation-item a {
	color: var( --td-ink );
	padding: 8px 9px;
	font-size: 0.95rem;
	font-weight: 600;
}
.main-nav .wp-block-navigation-item a:hover {
	color: var( --td-green );
}
.main-nav .wp-block-navigation-item__content {
	border-radius: 8px;
}
.main-nav .wp-block-navigation__submenu-container {
	border: 1px solid var( --td-sand );
	border-radius: var( --td-radius );
	box-shadow: 0 12px 30px rgba( 34, 48, 30, 0.12 );
}

.header-icons {
	align-items: center;
	gap: 12px;
}
.lang-switch {
	gap: 6px;
}
.lang-switch .wp-block-button__link {
	padding: 6px 12px;
	min-width: 42px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	border: 1px solid var( --td-green );
	background: transparent;
	color: var( --td-green );
	border-radius: var( --wp--custom--rounded--full, 999px );
}
.lang-switch .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var( --td-green );
}
.lang-switch .lang-on .wp-block-button__link {
	background: var( --td-green );
	color: var( --td-cream );
}
.header-icons .wc-block-mini-cart,
.header-icons .wp-block-woocommerce-customer-account a {
	color: var( --td-green );
}

/* ---- Footer ---- */
.site-footer {
	color: var( --td-cream );
}
.site-footer a {
	color: var( --td-sand );
}
.site-footer .footer-brand {
	color: var( --td-cream );
}
.footer-brand-block .td-logo {
	outline: 1px solid rgba( 251, 248, 241, 0.4 );
}
.footer-brand-tag {
	color: rgba( 251, 248, 241, 0.75 );
}
.footer-brand-tag a {
	color: rgba( 251, 248, 241, 0.75 );
}
.footer-brand-tag a:hover {
	color: var( --td-sand );
}
.footer-blurb,
.footer-info {
	color: rgba( 251, 248, 241, 0.85 );
	font-size: 0.95rem;
}
.footer-h {
	color: var( --td-cream );
	font-size: 1.05rem;
	margin: 0 0 14px;
}
.footer-disclaimer {
	margin-top: 18px;
	font-size: 0.8rem;
	color: rgba( 251, 248, 241, 0.7 );
}
.footer-nav {
	align-items: flex-start;
	flex-direction: column;
	gap: 7px;
}
.footer-nav .wp-block-navigation-item a {
	padding: 2px 0;
	font-size: 0.93rem;
	font-weight: 400;
	color: rgba( 251, 248, 241, 0.85 );
}
.footer-nav .wp-block-navigation-item a:hover {
	color: var( --td-sand );
}
.footer-social a {
	margin-right: 12px;
	font-weight: 600;
}
.footer-rule {
	margin: 40px 0 20px;
}
.footer-legal {
	color: rgba( 251, 248, 241, 0.72 );
	font-size: 0.82rem;
	gap: 12px;
}
.footer-legal a {
	color: rgba( 251, 248, 241, 0.88 );
}
.footer-copy {
	margin: 0;
}

/* ---- Reusable elements ---- */
.site-eyebrow {
	display: block;
	margin: 0 0 12px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --td-ora );
}
.site-eyebrow.green {
	color: var( --td-green );
}
.section-lead {
	font-size: 1.15rem;
	line-height: 1.6;
	color: rgba( 34, 48, 30, 0.82 );
}

/* Card style for repeated card grids */
.wp-block-group.is-style-card {
	background: var( --td-cream );
	border: 1px solid var( --td-sand );
	border-radius: var( --td-radius-lg );
	box-shadow: 0 10px 30px rgba( 34, 48, 30, 0.07 );
	padding: 1.75rem;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.wp-block-group.is-style-card:hover {
	transform: translateY( -4px );
	box-shadow: 0 18px 40px rgba( 34, 48, 30, 0.12 );
}
.wp-block-group.is-style-card .wp-block-heading {
	margin-top: 0;
}

/* Circular ingredient chip */
.wp-block-group.is-style-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var( --td-cream );
	border: 1.5px solid var( --td-green );
	border-radius: var( --wp--custom--rounded--full, 999px );
	padding: 8px 18px;
	font-weight: 600;
	font-size: 0.9rem;
}

/* ---- Page heroes ---- */
.td-pagehero {
	position: relative;
	min-height: 58vh;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
	padding-block: 6rem 4.5rem;
}
.td-pagehero .td-hero-title {
	font-size: clamp( 2.1rem, 4.6vw, 3.6rem );
	max-width: 18ch;
}
.td-pagehero .td-hero-sub {
	max-width: 58ch;
}
.td-hero-story { background-image: linear-gradient( rgba(34,48,30,.52), rgba(34,48,30,.32) ), url( ../../uploads/2026/11/story-founder.png ); }
.td-hero-ing   { background-image: linear-gradient( rgba(34,48,30,.5), rgba(34,48,30,.3) ), url( ../../uploads/2026/11/meadow-herbs.png ); }
.td-hero-cap   { background-image: linear-gradient( rgba(34,48,30,.5), rgba(34,48,30,.3) ), url( ../../uploads/2026/11/cap-messages.png ); }
.td-hero-edu   { background-image: linear-gradient( rgba(34,48,30,.5), rgba(34,48,30,.3) ), url( ../../uploads/2026/11/education-course.png ); }
.td-hero-tv    { background-image: linear-gradient( rgba(34,48,30,.54), rgba(34,48,30,.34) ), url( ../../uploads/2026/11/farm-retreat.png ); }
.td-hero-join  { background-image: linear-gradient( rgba(34,48,30,.5), rgba(34,48,30,.3) ), url( ../../uploads/2026/11/workshop-yoga.png ); }
.td-hero-events{ background-image: linear-gradient( rgba(34,48,30,.5), rgba(34,48,30,.3) ), url( ../../uploads/2026/11/juice-glasses.png ); }
.td-hero-fitness{ background-image: linear-gradient( rgba(34,48,30,.5), rgba(34,48,30,.3) ), url( ../../uploads/2026/11/fitness-mat.png ); }

/* ---- Dark-green bands: light text ---- */
.has-primary-background-color .wp-block-jetpack-contact-form button[type=submit] {
	background: var( --td-ora ) !important;
	color: #2b2418 !important;
}
.has-primary-background-color > .wp-block-group .wp-block-heading {
	color: var( --td-cream );
}
.has-primary-background-color > .wp-block-group :where( p ) {
	color: rgba( 251, 248, 241, 0.9 );
}
.has-primary-background-color > .wp-block-group .site-eyebrow {
	color: var( --td-sand );
}

/* ---- Ingredient cards ---- */
.td-ing-card {
	padding: 1.25rem;
	margin-bottom: 16px;
}
.td-ing-name {
	margin: 0 0 6px;
	font-family: var( --td-serif );
	font-size: 1.25rem;
	font-weight: 500;
}
.td-ing-name span {
	font-family: var( --td-sans );
	font-size: 0.82rem;
	color: rgba( 34, 48, 30, 0.55 );
}
.td-ing-use {
	font-size: 0.92rem;
	margin: 4px 0;
}
.td-ing-feel {
	font-size: 0.88rem;
	margin: 6px 0 0;
	color: var( --td-green );
	font-weight: 600;
}

/* ---- Cap Club ---- */
.td-cap-messages {
	margin-top: 32px;
}
.td-cap-messages .wp-block-list {
	margin-top: 0;
}
.td-cap-messages li {
	padding: 8px 0;
	border-bottom: 1px dashed rgba( 34, 48, 30, 0.15 );
	font-size: 0.95rem;
}
.td-cap-messages li:last-child {
	border-bottom: none;
}
.td-capprog {
	height: 14px;
	border-radius: 999px;
	background: var( --td-sand );
	max-width: 100%;
	width: 100%;
}
.td-cap-note {
	margin-top: 8px;
	font-weight: 600;
	color: var( --td-ink );
}

/* Full-bleed photo band scrim utility (applied alongside cover) */

/* ---- Hero ---- */
.td-homehero, .td-hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	background-image: linear-gradient( rgba( 34, 48, 30, 0.5 ), rgba( 34, 48, 30, 0.3 ) ),
		url( ../../uploads/2026/11/hero-meadow.png );
	background-size: cover;
	background-position: center;
	padding-block: 6rem;
}
.td-homehero-title { margin: 0 0 18px !important; max-width: 14ch; font-size: clamp( 2.6rem, 6vw, 4.6rem ); color: var( --td-cream ) !important; }
.td-homehero-sub { max-width: 46ch; margin: 0 0 30px; font-size: clamp( 1.05rem, 2vw, 1.35rem ); color: rgba( 251, 248, 241, 0.94 ); }
.td-hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	background-image: linear-gradient( rgba( 34, 48, 30, 0.5 ), rgba( 34, 48, 30, 0.3 ) ),
		url( ../../uploads/2026/11/hero-meadow.png );
	background-size: cover;
	background-position: center;
	padding-block: 6rem;
}
.td-hero-inner {
	color: var( --td-cream );
}
.td-hero-title {
	margin: 0 0 18px !important;
	max-width: 14ch;
	font-size: clamp( 2.6rem, 6vw, 4.6rem );
	color: var( --td-cream ) !important;
}
.td-hero-sub {
	max-width: 46ch;
	margin: 0 0 30px;
	font-size: clamp( 1.05rem, 2vw, 1.35rem );
	color: rgba( 251, 248, 241, 0.94 );
}
.td-hero-btns {
	gap: 14px;
}
.is-style-outline-hero .wp-block-button__link {
	background: transparent !important;
	border: 1.5px solid var( --td-cream );
	color: var( --td-cream ) !important;
}

/* ---- Bands & typography helpers ---- */
.td-split {
	align-items: center;
	gap: 44px;
}
.td-round img {
	border-radius: var( --td-radius-lg );
	box-shadow: 0 18px 40px rgba( 34, 48, 30, 0.14 );
}
.td-price {
	font-family: var( --td-serif );
	font-size: 1.7rem;
	font-weight: 500;
	color: var( --td-ink );
	margin: 6px 0 18px;
}
.td-price .td-vat {
	font-family: var( --td-sans );
	font-size: 0.8rem;
	color: rgba( 34, 48, 30, 0.55 );
}
.site-header ~ main .td-band:first-child .td-price {
	color: var( --td-ink );
}

/* Families grid */
.td-fam-grid {
	margin-top: 40px;
	gap: 24px;
}
.td-fam-card .wp-block-image {
	margin: 0 0 16px;
	border-radius: var( --td-radius );
	overflow: hidden;
}
.td-fam-card .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	border-radius: var( --td-radius );
}
.td-more a {
	font-weight: 700;
}

/* Promo */
.td-promo-title {
	margin: 0;
	font-family: var( --td-serif );
	font-size: clamp( 1.3rem, 2.6vw, 1.9rem );
	color: #2b2418;
}
.td-promo-dates {
	margin: 6px 0 0;
	font-weight: 600;
	color: rgba( 43, 36, 24, 0.85 );
}

/* Members on dark */
.td-member {
	min-height: 100%;
}
.td-member-pop {
	border-color: var( --td-ora ) !important;
}
.td-members .is-style-card {
	background: var( --td-cream );
}
.td-members .is-style-card .wp-block-heading {
	color: var( --td-ink );
}
.td-members h2 {
	color: var( --td-cream );
}

/* Chips */
.td-chips {
	gap: 14px;
	margin-block: 36px;
}
.td-chips .is-style-chip p {
	margin: 0;
}

/* Social */
.td-social-cols {
	align-items: center;
	gap: 40px;
}
.td-social-h {
	color: var( --td-cream );
	margin: 0 0 14px;
}
.td-social-links a {
	color: var( --td-sand );
	font-weight: 600;
	margin-right: 14px;
}
.td-social .wp-block-jetpack-contact-form label {
	color: var( --td-cream );
}
.td-social .wp-block-jetpack-contact-form input {
	border-radius: var( --td-radius );
	border: 1px solid rgba( 251, 248, 241, 0.4 );
	background: rgba( 255, 255, 255, 0.12 );
	color: var( --td-cream );
}

/* Reveal on scroll (final state by default; JS adds hidden start) */
@media ( prefers-reduced-motion: no-preference ) {
	.td-reveal.is-hidden {
		opacity: 0;
		transform: translateY( 26px );
	}
	.td-reveal {
		transition: opacity 0.75s ease, transform 0.75s ease;
	}
}
@media ( prefers-reduced-motion: reduce ) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---- WooCommerce polish ---- */
.woocommerce .button,
.woocommerce button.button {
	border-radius: var( --td-radius );
}
.woocommerce a.button {
	background: var( --td-green );
	color: var( --td-cream );
	border-radius: var( --td-radius );
}
.woocommerce a.button:hover {
	background: var( --td-blue );
	color: var( --td-cream );
}
.wc-block-mini-cart__badge {
	background: var( --td-berr );
}
.woocommerce span.onsale {
	background: var( --td-ora );
}

/* ---- Luonnosta, sinulle: carousels ---- */
.td-carol-h {
	font-size: 1.3rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --td-green );
	margin: 0 0 6px;
}
.td-carol-wrap {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	padding: 8px 4px 20px;
	-ms-overflow-style: none;
	scrollbar-width: thin;
}
.td-carol-wrap::-webkit-scrollbar {
	height: 8px;
}
.td-carol-wrap::-webkit-scrollbar-thumb {
	background: var( --td-sand );
	border-radius: 8px;
}
.td-carousel .td-carol-wrap {
	margin-left: calc( 50% - 50vw + ( 100vw - 100% ) / 2 );
	padding-left: calc( max( var( --wp--custom--content-size, 660px ), 50vw - 50% ) * -1 * .5 + 50vw - 50% );
}
.td-carous-card {
	flex: 0 0 252px;
	width: 252px;
	padding: 20px;
	scroll-snap-align: start;
	position: relative;
	display: flex;
	flex-direction: column;
}
.td-carous-count {
	position: absolute;
	top: 14px;
	right: 16px;
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var( --td-blue );
	background: rgba( 251, 248, 241, 0.85 );
	padding: 4px 8px;
	border-radius: 999px;
}
.td-ph {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background:
		linear-gradient( 160deg, rgba( 255, 255, 255, 0.06 ), rgba( 255, 255, 255, 0 ) ),
		repeating-linear-gradient( 45deg, var( --td-green ), var( --td-green ) 14px, var( --td-green-dark ) 14px, var( --td-green-dark ) 16px );
	color: var( --td-cream );
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.82rem;
	font-weight: 700;
	margin: 0 0 12px;
	text-align: center;
	padding: 8px;
}
.td-carous-name {
	margin: 0 0 6px;
	font-size: 1.05rem;
}
.td-carous-text {
	margin: 0 0 10px;
	color: var( --td-ink );
}
.td-carous-price {
	margin: 0 0 4px;
	font-weight: 700;
	color: var( --td-green );
}
.td-carous-price .td-vat {
	font-weight: 400;
	font-size: 0.8rem;
	color: var( --td-muted );
}
.td-carous-size {
	margin: 0 0 12px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var( --td-muted );
}
.td-note-strip {
	background: rgba( 53, 89, 63, 0.08 );
	border: 1px dashed var( --td-green );
	border-radius: var( --td-radius );
	padding: 16px 20px;
	font-weight: 600;
	color: var( --td-green );
	margin: 0 0 28px;
}

/* ---- Juomahinnasto ---- */
.td-price-table table {
	border-collapse: collapse;
	width: 100%;
	background: var( --td-cream );
	border-radius: var( --td-radius );
	overflow: hidden;
}
.td-price-table th,
.td-price-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var( --td-sand );
}
.td-price-table th {
	background: var( --td-green );
	color: var( --td-cream );
	font-weight: 600;
}
.td-price-table td:not( :first-child ) {
	text-align: center;
	white-space: nowrap;
}
.td-price-table .td-ing {
	font-size: 0.82rem;
	color: var( --td-muted );
	font-weight: 400;
}
.td-tilaukset {
	margin-top: 28px;
	font-weight: 700;
	color: var( --td-green );
}
.td-herb-thumbs img {
	border-radius: 12px;
}

/* ---- Raaka-aineet / yrttiapteekki ---- */
.td-safety-box {
	max-width: 820px;
	margin: 0 auto 44px;
	background: var( --td-cream );
	border: 2px solid var( --td-berr );
	border-radius: var( --td-radius );
	padding: 22px 26px;
}
.td-safety-h {
	color: var( --td-berr );
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 10px;
}
.td-filter-h {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var( --td-muted );
	margin: 18px 0 8px;
}
.td-filters {
	flex-wrap: wrap;
	gap: 8px;
}
.td-filters .wp-block-button__link {
	padding: 8px 14px;
	font-size: 0.84rem;
	background: var( --td-cream );
	color: var( --td-green );
	border: 1px solid var( --td-sand );
}
.td-filters .is-on .wp-block-button__link {
	background: var( --td-green );
	color: var( --td-cream );
	border-color: var( --td-green );
}
.td-herb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
}
.td-herb-card {
	background: var( --td-cream );
	border: 1px solid var( --td-sand );
	border-radius: var( --td-radius );
	padding: 0;
}
.td-herb-card summary {
	cursor: pointer;
	padding: 14px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 10px;
	list-style: none;
}
.td-herb-card summary::-webkit-details-marker {
	display: none;
}
.td-herb-n {
	font-family: var( --td-serif );
	font-size: 1.14rem;
	font-weight: 600;
	color: var( --td-green );
}
.td-herb-l {
	font-style: italic;
	font-size: 0.86rem;
	color: var( --td-muted );
}
.td-herb-more {
	margin-left: auto;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var( --td-blue );
	white-space: nowrap;
}
.td-herb-card > p {
	margin: 0;
	padding: 4px 16px 16px;
	font-size: 0.92rem;
}
.td-herb-card[open] summary {
	background: rgba( 53, 89, 63, 0.06 );
}
.td-herb-card.is-filtered-out {
	display: none;
}
.td-ing-chips {
	gap: 12px;
	margin-top: 12px;
}
.td-chip {
	flex-direction: column;
	align-items: baseline;
	gap: 2px;
	max-width: 210px;
}
.td-chip-n {
	font-weight: 700;
	color: var( --td-green );
}
.td-chip p:last-child {
	margin: 0;
	font-size: 0.84rem;
}

/* ---- Education: yrttiapteekki ---- */
.td-edu-block {
	height: 100%;
}
.td-edu-herbs .site-eyebrow {
	color: var( --td-green );
}
.td-edu-download {
	margin-top: 36px;
	background: var( --td-cream );
	border: 1px solid var( --td-sand );
	border-radius: var( --td-radius );
	padding: 24px 26px;
}
.td-edu-download .wp-block-jetpack-contact-form button[type=submit] {
	background: var( --td-ora );
	color: var( --td-ink );
}


/* ---- Responsive ---- */
@media ( max-width: 782px ) {
	.brand {
		gap: 10px;
	}
	.td-logo {
		width: 34px;
		height: 34px;
	}
	.brand-name {
		font-size: 1.12rem;
	}
	.brand-tag {
		font-size: 0.46rem;
		letter-spacing: 0.05em;
	}
	.main-nav .wp-block-navigation-item a {
		font-size: 1rem;
	}
	.header-row {
		gap: 0.75rem;
	}
}

/* ------------------------------------------------------------------ */
/* Task 3b: shop grid drink/shot cards slightly smaller                */
/* ------------------------------------------------------------------ */
.wc-block-product-template__responsive.columns-3 {
	grid-template-columns: repeat( 3, minmax( 0, 274px ) );
	justify-content: center;
	column-gap: 18px;
}
.wc-block-product .wc-block-components-product-title,
.wc-block-product .wp-block-post-title,
.wc-block-product h3 {
	font-size: 1.02rem;
}
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wc-block-components-product-sale-badge {
	font-size: 0.95rem;
}

/* ------------------------------------------------------------------ */
/* Task 3c: price-list picture scaled + centered on Juomahinnasto      */
/* ------------------------------------------------------------------ */
.td-band figure.wp-block-image.td-pricelist-img {
	max-width: 700px;
	width: 700px;
	margin-left: auto;
	margin-right: auto;
}
.td-band figure.td-pricelist-img img {
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------ */
/* Task 3 mobile: ~1.3 drink cards visible in carousels                */
/* ------------------------------------------------------------------ */
@media ( max-width: 782px ) {
	.td-carous-card {
		flex: 0 0 268px;
		width: 268px;
	}
}

/* ------------------------------------------------------------------ */
/* Task 4: "Mitä juomissamme on" ingredient gallery                    */
/* ------------------------------------------------------------------ */
.td-ing-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 14px;
	margin-top: 8px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}
.td-ing-tile {
	border-radius: 16px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
	box-shadow: 0 8px 22px rgba( 53, 89, 63, 0.14 );
	min-height: 0;
	width: 100%;
}
.td-ing-tile .wp-block-cover__image-background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.td-ing-tile::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 58%;
	background: linear-gradient( to top, rgba( 43, 72, 51, 0.9 ), rgba( 43, 72, 51, 0 ) );
	pointer-events: none;
	z-index: 1;
}
.td-ing-tile .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 14px;
	box-sizing: border-box;
}
.td-ing-name {
	color: var( --td-cream );
	margin: 0;
	font-family: var( --td-serif );
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.15;
	text-align: left;
}
.td-ing-name a {
	color: var( --td-cream );
	text-decoration: none;
}
.td-ing-name a:hover {
	color: #ffffff;
	text-decoration: underline;
}
.td-ing-name em {
	display: block;
	font-family: var( --td-sans );
	font-style: italic;
	font-weight: 400;
	font-size: 0.76rem;
	opacity: 0.92;
	margin-top: 3px;
}
.td-ing-note {
	font-size: 0.92rem;
	color: var( --td-muted );
	margin-top: 18px;
	text-align: center;
}
@media ( max-width: 782px ) {
	.td-ing-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 10px;
	}
	.td-ing-name {
		font-size: 0.95rem;
	}
}

/* Task 5: merch family card + related links */
.td-fam-grid {
	align-items: stretch;
}
.td-related {
	margin: 8px 0 0;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	color: var( --td-muted );
}
.td-related a {
	color: var( --td-green );
	font-weight: 700;
	text-decoration: none;
}
.td-related a:hover {
	color: var( --td-green-dark );
	text-decoration: underline;
}
.td-product-note {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var( --td-sand );
	font-size: 0.92rem;
	color: var( --td-green );
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Task 2: equal heights within every card group                       */
/* ------------------------------------------------------------------ */

/* --- Carousels (Shotit & Juomat) --- */
.td-carol-wrap {
	align-items: stretch;
}
.td-carous-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.td-carous-card .td-ph {
	flex: 0 0 auto;
	aspect-ratio: 4 / 3;
}
.td-carous-card .td-carous-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.td-carous-card .td-carous-size {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.td-carous-card .td-more,
.td-carous-card .td-price,
.td-carous-card .wp-block-button {
	margin-top: auto;
}

/* --- Shop / category product cards (drinks, shots, merch, books, courses) --- */
.wc-block-product {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.wc-block-product .wc-block-components-product-image,
.wc-block-product div[data-block-name="woocommerce/product-image"] {
	flex: 0 0 auto;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	display: block;
}
.wc-block-product .wc-block-components-product-image img,
.wc-block-product div[data-block-name="woocommerce/product-image"] img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wc-block-product h3,
.wc-block-product .wp-block-post-title {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wc-block-product .wc-block-components-product-price {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wc-block-product > :last-child {
	margin-top: auto;
}

/* --- Product-family cards --- */
.td-fam-grid {
	align-items: stretch;
}
.td-fam-grid .wp-block-column {
	display: flex;
	flex-direction: column;
}
.td-fam-grid .td-fam-card {
	flex: 1 1 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
}
.td-fam-grid .td-fam-card .wp-block-image {
	flex: 0 0 auto;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.td-fam-grid .td-fam-card .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.td-fam-grid .td-fam-card .td-more {
	margin-top: auto;
}

/* --- Membership / events / Tierra Verde / education / fitness cards --- */
.td-member-grid,
.td-events,
.td-tv-grid,
.td-cats {
	align-items: stretch;
}
.td-member-grid .is-style-card,
.td-events .is-style-card,
.td-tv-grid .is-style-card,
.td-cats .is-style-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.td-member-grid .is-style-card .td-more,
.td-member-grid .is-style-card .td-price,
.td-member-grid .is-style-card .wp-block-button,
.td-events .is-style-card .td-more,
.td-events .is-style-card .wp-block-button,
.td-tv-grid .is-style-card .td-more,
.td-cats .is-style-card .td-more {
	margin-top: auto;
}
.td-tv-grid .is-style-card .wp-block-image,
.td-cats .is-style-card .wp-block-image,
.td-member-grid .is-style-card .wp-block-image {
	flex: 0 0 auto;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.td-tv-grid .is-style-card .wp-block-image img,
.td-cats .is-style-card .wp-block-image img,
.td-member-grid .is-style-card .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Ingredient gallery tiles: keep square, equal height --- */
.td-ing-grid {
	align-items: stretch;
}

/* --- Clamp long card descriptions so cards stay equal (max 3 lines) --- */
.is-style-card p:not(:has(a)) {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media ( max-width: 600px ) {
	.td-fam-grid .wp-block-column {
		width: 100% !important;
	}
}

/* Task 3: gallery intro text slightly bigger, comfortable spacing */
.td-ing-wrapper .section-lead {
	font-size: 1.13rem;
	line-height: 1.65;
}

/* ==== Home hero: cover with lake-mist photo, green overlay ==== */
.wp-block-cover.td-hero {
	background-image: none !important;
}
.wp-block-cover.td-hero .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 24px !important;
	width: 100%;
	box-sizing: border-box;
}
.wp-block-cover.td-hero .td-hero-title {
	max-width: none;
	text-align: center;
}
.wp-block-cover.td-hero .td-hero-sub {
	max-width: 56ch;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
.wp-block-cover.td-hero .td-hero-btns {
	justify-content: center;
	align-self: center;
	gap: 16px;
}
.wp-block-cover.td-hero .wp-block-button { margin: 0; }
@media ( max-width: 768px ) {
	.wp-block-cover.td-hero {
		min-height: 70vh !important;
	}
}
@media ( max-width: 600px ) {
	.wp-block-cover.td-hero .td-hero-btns {
		flex-direction: column;
	}
}
/* ==== HEADER v2: full width, logo left, everything else (right group) right ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #FBF8F1;
  height: 72px;
  max-width: none !important;
  width: 100%;
  padding: 12px 32px !important;
  box-sizing: border-box;
  border-bottom: 1px solid #E6DCBE;
  display: flex;
  align-items: center;
}
.site-header > .header-row {
  width: 100%;
  max-width: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  line-height: 1;
  margin: 0;
	padding: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
}
.brand-name,
.brand-name a {
  line-height: 1;
  margin: 0;
  font-family: var( --td-serif );
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: #35593f;
}
.brand-tag {
  line-height: 1;
  margin: 5px 0 0;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3e5360;
  white-space: nowrap;
}
.td-logo {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 auto;
  display: block;
  border-radius: 9px;
  margin: 0;
}
.header-right {
  display: flex !important;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.main-nav {
  flex: 0 1 auto;
  min-width: 0;
}
.main-nav .wp-block-navigation__container {
  gap: 24px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.main-nav .wp-block-navigation .wp-block-navigation-item a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #22301e;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav .wp-block-navigation .wp-block-navigation-item a:hover {
  color: #35593f;
}
.main-nav .wp-block-navigation__submenu-container a {
  font-size: 0.875rem;
}
.header-icons {
  display: flex !important;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.header-icons .wc-block-mini-cart,
.header-icons .wp-block-woocommerce-customer-account a {
  color: #35593f;
}
.wc-block-mini-cart__button {
  padding: 0;
  line-height: 0;
  color: #35593f;
}
.header-icons .wc-block-mini-cart__icon {
  width: 24px;
  height: 24px;
}
.header-icons .wc-block-customer-account__visual svg {
  width: 24px;
  height: 24px;
}
.header-icons .wc-block-customer-account__link {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* One line on narrower laptops: tighten menu gap (not font size) to keep it on one row */
@media ( max-width: 1280px ) and ( min-width: 1024px ) {
  .site-header {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .site-header > .header-row {
    gap: 16px;
  }
  .main-nav .wp-block-navigation__container {
    gap: 14px;
  }
  .header-right {
    gap: 18px;
  }
  .brand-name {
    font-size: 1.18rem;
  }
}

/* Mobile: full width 16px padding, hamburger + icons right, one line */
@media ( max-width: 1023px ) {
  .site-header {
    height: 62px;
    padding: 10px 16px !important;
  }
  .site-header > .header-row {
    gap: 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand-name {
    font-size: 1.08rem;
  }
  .header-right {
    gap: 14px;
  }
  .main-nav .wp-block-navigation__responsive-container-open {
    display: flex;
    align-items: center;
  }
  .main-nav .wp-block-navigation__responsive-container:not( .is-menu-open ) {
    display: none;
  }
}

/* ===== Books / eBooks ===== */
.td-bookcover img {
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(34, 48, 30, 0.16);
  max-width: 420px;
  width: 100%;
  height: auto;
}
.td-leadership {
  gap: 40px;
  align-items: flex-start;
}
.td-lead-cover {
  flex: 0 0 40%;
  max-width: 40%;
}
.td-lead-cover .wp-block-image { margin-bottom: 24px; }
.td-lead-chapters { flex: 1 1 60%; }
.wp-block-details {
  border: 1px solid #E2DCC6;
  border-radius: 12px;
  background: #FFFFFF;
  margin: 0 0 10px;
  padding: 4px 18px;
}
.wp-block-details summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-weight: 600;
  color: #35593F;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: "+"; float: right; color: #C9A24B; font-weight: 700; font-size: 1.2em;
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details p { color: #44503C; margin: 0 0 12px; }
.td-safety {
  border-left: 5px solid #C9A24B;
  background: #F3EBD3;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
  color: #5A5030;
  font-size: 0.95rem;
}
.td-closing {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: #C9A24B;
  font-size: 1.35rem;
  margin-top: 30px;
}
.td-book-cta {
  border: 1px solid #E2DCC6;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 36px 32px;
}
.td-note {
  font-size: 0.86rem;
  color: #6C7465;
  font-style: italic;
  margin: 14px 0;
}
.td-big-stat {
  font-size: 1.45rem;
  margin: 10px 0;
  color: #22301E;
}
.td-big-stat strong { color: #35593F; }
.td-price-cards { gap: 20px; margin: 10px 0; }
.td-price-cards .wp-block-column {
  border: 1px solid #E2DCC6;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 22px;
  text-align: center;
}
.td-price { font-size: 1.7rem; color: #35593F; margin: 6px 0 0; }
.td-example, .td-highlight, .td-banner {
  border-radius: 16px;
  padding: 22px 26px;
  margin: 16px 0;
}
.td-example { border: 1px solid #E2DCC6; background: #FFFFFF; }
.td-highlight { background: #35593F; color: #FBF8F1; }
.td-highlight .td-big-stat { color: #FBF8F1; }
.td-highlight .td-big-stat strong { color: #C9A24B; }
.td-highlight .td-note { color: #DDE5DC; }
.td-banner { background: #F3EBD3; border: 1px solid #E4D6A8; color: #5A5030; font-weight: 600; }
.td-ticks, .td-places { padding-left: 22px; }
.td-ticks li, .td-places li { margin: 8px 0; }
.td-ticks li::marker, .td-places li::marker { color: #C9A24B; }
.td-places { columns: 2; column-gap: 28px; }
.td-workers-note { }
.td-producers { gap: 24px; }
.td-producer-card {
  border: 1px solid #E2DCC6;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
}
.td-coop { font-weight: 600; color: #35593F; margin: 20px 0 6px; }
.td-values { gap: 18px; margin-top: 20px; row-gap: 28px; }
.td-values .wp-block-column { text-align: center; }
.td-values svg { display: block; margin: 0 auto 12px; }
.td-values h4 { font-size: 1.02rem; margin: 0; }
.td-worker-hero { background: #35593F; }
.td-worker-hero .site-eyebrow { color: #C9A24B; }
.td-worker-hero .td-hero-title { color: #FFFFFF; }
.td-worker-hero .td-hero-sub { color: #DDE5DC; }
.td-worker-infographic img {
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(34, 48, 30, 0.18);
  width: 100%;
  height: auto;
}
@media ( max-width: 782px ) {
  .td-lead-cover { flex: 1 1 100%; max-width: 100%; }
  .td-places { columns: 1; }
  .td-price .wp-block-column { width: 100%; }
}

/* ===== Product images (4:5 cover) — drinks & shots ===== */
.td-product-img {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 14px;
  background: #E8EFE9;
}
.td-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* ------------------------------------------------------------------ */
/* Kauppa page — sectioned shop, tile row, category grids              */
/* ------------------------------------------------------------------ */
.td-shop-main > .wp-block-group {
	width: 100%;
}
.td-page-title {
	font-family: var( --td-serif );
	font-weight: 500;
	font-size: clamp( 2rem, 5vw, 3rem );
	line-height: 1.05;
	margin: 0 0 0.4rem;
}
.td-page-intro {
	color: var( --td-muted );
	font-size: 1.08rem;
	max-width: 60ch;
	margin: 0 0 1.4rem;
}
/* Category tile row */
.td-cat-tiles {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	overflow-x: auto;
	padding: 4px 2px 16px;
	margin: 0 0 10px;
	scrollbar-width: thin;
}
.td-tile {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	padding: 8px 16px 8px 9px;
	border: 1px solid var( --td-sand );
	border-radius: var( --td-round-full, 999px );
	background: var( --td-cream );
	color: var( --td-ink, var( --td-green, #35593f ) );
	font-family: var( --td-sans );
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba( 53, 89, 63, 0.10 );
	transition: transform .18s ease, box-shadow .18s ease;
}
.td-tile img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 34px;
}
.td-tile:hover {
	transform: translateY( -2px );
	box-shadow: 0 8px 20px rgba( 53, 89, 63, 0.18 );
	color: var( --td-green, #35593f );
}
/* Shop sections */
.td-shop-sec {
	padding: 46px 0 30px;
	border-top: 1px solid var( --td-sand );
}
.td-shop-sec:first-of-type {
	border-top: none;
}
.td-sec-title {
	font-family: var( --td-serif );
	font-weight: 600;
	font-size: clamp( 1.5rem, 3vw, 2rem );
	margin: 0 0 0.25rem;
}
.td-sec-desc {
	color: var( --td-muted );
	margin: 0 0 1.4rem;
	max-width: 58ch;
}
.td-sec-all {
	margin-top: 26px;
}
/* Juomahinnasto strip */
.td-price-strip {
	margin: 18px 0 10px;
	padding: 30px 30px;
	border-radius: var( --td-round-lg, 24px );
	background: var( --td-accent-sand, #e6dcbe );
}
.td-price-strip .td-sec-title { margin-bottom: 0.3rem; }
/* Product grid: 4 per row desktop, 2 mobile */
.wc-block-product-template__responsive.columns-4 {
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	column-gap: 18px;
	row-gap: 26px;
}
.wc-block-product-template__responsive.columns-4 > li {
	margin: 0;
}
/* 4:5 product images inside shop sections + category archive */
.td-shop-sec .wc-block-product .wc-block-components-product-image,
.td-shop-sec .wc-block-product div[data-block-name="woocommerce/product-image"],
.td-cat-archive .wc-block-product .wc-block-components-product-image,
.td-cat-archive .wc-block-product div[data-block-name="woocommerce/product-image"] {
	aspect-ratio: 4 / 5;
}
@media ( max-width: 782px ) {
	.wc-block-product-template__responsive.columns-4 {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		column-gap: 10px;
		row-gap: 20px;
	}
	.td-tile { padding: 7px 12px 7px 7px; }
}
/* Category archive page */
.td-cat-archive {
	padding: 40px 0 80px;
}
.td-cat-archive > .alignwide { max-width: 1240px; margin-left: auto; margin-right: auto; }
.td-cat-archive .wp-block-query-title {
	font-family: var( --td-serif );
	font-weight: 600;
	font-size: clamp( 1.9rem, 4vw, 2.6rem );
	line-height: 1.1;
	margin: 0 0 0.2rem;
}
.td-cat-archive .term-description {
	color: var( --td-muted );
	max-width: 62ch;
	margin: 0 0 1.6rem;
}
.td-cat-tools {
	gap: 16px;
	margin: 0 0 1.8rem;
}
.td-cat-search .wp-block-search__input {
	border: 1px solid var( --td-sand );
	border-radius: var( --td-round-md, 16px );
	background: var( --td-cream );
}
.td-cat-search .wp-block-search__button {
	background: var( --td-green, #35593f );
	color: var( --td-cream, #fbf8f1 );
	border: none;
	border-radius: var( --td-round-md, 16px );
}

/* ------------------------------------------------------------------ */
/* Liity mukaan — Tellervo-memberships (BASIC / PREMIUM / GOLD)        */
/* ------------------------------------------------------------------ */
.td-members { align-items: stretch; }
.td-members-title { font-family: var(--td-serif); font-weight: 600; }
.td-members-tagline { color: var(--td-muted); margin-top: .2rem; }
.td-members .is-style-card { position: relative; }
.td-members .td-member-name {
	font-family: var(--td-serif);
	letter-spacing: .04em;
	font-weight: 700;
	margin: 0 0 .15rem;
}
.td-members .td-member-sub { font-weight: 700; font-size: 1rem; margin: 0 0 .8rem; color: var(--td-green); }
.td-members .td-price { font-weight: 700; }
.td-members .td-member-free { display:block; font-size: 1.05rem; color: var(--td-green); }
.td-members-list { margin: 0 0 1.2rem; }
.td-members-list li { font-size: .94rem; margin-bottom: .5rem; }
.td-members .wp-block-button { margin-bottom: 0; }
/* BASIC */
.td-member-basic { border-top: 4px solid var(--td-sand); }
/* PREMIUM green accent */
.td-member-prem { border-top: 4px solid #35593f; }
.td-member-prem .td-member-sub { color: #35593f; }
.td-member-prem .td-price { color: #35593f; }
/* GOLD gold accent */
.td-member-gold { border-top: 4px solid #c9a24b; }
.td-member-gold .td-member-sub { color: #a9842f; }
.td-member-gold .td-price { color: #c9a24b; }
.td-ribbon {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: #c9a24b;
	color: #fbf8f1;
	font-family: var(--td-sans);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 5px 16px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 4px 10px rgba( 201, 162, 75, .35 );
	z-index: 2;
}
/* Billing toggle */
.td-billing-toggle {
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-weight: 700;
	font-size: .95rem;
	margin: 6px 0 0;
}
.td-toggle-active { color: var(--td-green); }
.td-toggle-sep { opacity: .5; }
.td-toggle-link { color: var(--td-muted); text-decoration: none; }
.td-toggle-link:hover { color: var(--td-green); text-decoration: underline; }
/* Annual section */
.td-annual-band { background: var(--td-accent-sand, #e6dcbe); }
.td-annual-title { font-family: var(--td-serif); font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 700; letter-spacing:.02em; }
.td-annual-sub { font-weight: 700; color: var(--td-green); margin-top: .2rem; }
.td-annual-grid { align-items: stretch; margin-top: 1.6rem; }
.td-annual-card { height: 100%; text-align: center; }
.td-annual { display: block; font-size: 1.25rem; font-weight: 800; margin-top: .3rem; }
.td-annual-card .td-price { margin-bottom: 1rem; }
.td-cross { text-decoration: line-through; opacity: .55; font-weight: 600; }
.td-annual-note { font-size: .84rem; color: var(--td-muted); margin-top: 1.4rem; max-width: 66ch; margin-left:auto; margin-right:auto; }
/* Priority strip */
.td-priority-band { background: #35593f; }
.td-priority {
	color: #fbf8f1;
	font-weight: 700;
	letter-spacing: .03em;
	max-width: 66ch;
	margin: 0 auto;
}

/* ===== Detox / affiliate shop section + strip ===== */
.td-detox-sec {
	border-top: 1px solid var( --td-sand );
}
.td-detox-strip {
	margin-top: 20px;
	padding: 26px 30px;
	border-radius: var( --td-round-lg, 24px );
	background: var( --td-accent-sand, #e6dcbe );
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}
.td-detox-strip-t {
	margin: 0;
	font-family: var( --td-serif );
	font-size: clamp( 1.15rem, 2.5vw, 1.4rem );
	font-weight: 700;
	color: var( --td-green, #35593f );
}
.td-detox-strip .wp-block-buttons,
.td-detox-strip .wp-block-button {
	margin: 0;
}
.td-detox-strip .wp-block-button__link {
	background: var( --td-green, #35593f );
	color: #fbf8f1;
	border-radius: 999px;
	padding: 0.85em 1.6em;
	text-decoration: none;
	white-space: nowrap;
}
.td-detox-strip .wp-block-button__link:hover {
	background: var( --td-green, #35593f );
	filter: brightness( 1.1 );
}

/* Trust badges (pills) on affiliate product descriptions */
.td-trustbadges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}
.td-trust {
	background: var( --td-cream, #f3ebd3 );
	border: 1px solid var( --td-gold, #C9A24B );
	color: #5a5030;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 999px;
	padding: 6px 14px;
	white-space: nowrap;
}

/* External / affiliate disclaimers on external product pages */
.td-external-note {
	font-size: 0.88rem;
	color: var( --td-muted );
	margin: 6px 0 4px;
}
.td-affiliate {
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --td-muted );
	opacity: 0.85;
	margin: 0 0 14px;
}
.td-external-product .wp-element-button {
	background: var( --td-green, #35593f );
	color: #fbf8f1;
	border-radius: 999px;
	text-decoration: none;
}
.td-external-product .wp-element-button:hover {
	background: var( --td-green, #35593f );
	filter: brightness( 1.1 );
}
