/*
 * Eat & Train v2 visual layer (docs/SNEAKY-EAT-TRAIN-V2-PROGRAM.md). The homepage design contract
 * (docs/SNEAKY-HOMEPAGE-V2-DESIGN-CONTRACT.md) and the Assess v2 look, applied to the existing Eat/Train markup.
 * Every rule is scoped to body.sh-et-look (set only on Eat/Train surfaces by eat-train/look.php). No --sh-* token is
 * defined. Motion only under prefers-reduced-motion: no-preference. Breakpoints: 480, 768, 1024, 1280.
 */

@font-face {
	font-family: "Sneaky Display";
	src: url("../../home/assets/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
	font-weight: 700 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- tokens ---------- */
body.sh-et-look {
	--et-ink: #122c3a;
	--et-copy: #375568;
	--et-muted: #587183;
	--et-line: #c7ddeb;
	--et-line-soft: #e1ecf2;
	--et-teal: #246b5f;
	--et-teal-deep: #173d39;
	--et-sky: #6ec4e8;
	--et-sky-soft: #edf8fc;
	--et-plum: #7b244b;
	--et-night: #0f2230;
	--et-line-grad: linear-gradient(90deg, #3fb39d, #6ec4e8 38%, #4ea6ec 64%, #ec6a98);
	--et-display: "Sneaky Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--et-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--et-ease: cubic-bezier(.2, .7, .2, 1);
	--et-max: 1240px;
	--et-radius: 22px;
	--et-shadow: 0 18px 40px -30px rgba(18, 44, 58, .45);
	--et-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--et-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
body.sh-et-look.sh-et-eat { --et-pillar: #3d9442; --et-pillar-ink: #2f7a34; --et-pillar-soft: #eaf5eb; --et-pillar-wash: #f4faf4; }
body.sh-et-look.sh-et-train { --et-pillar: #2b8fd6; --et-pillar-ink: #1b6fae; --et-pillar-soft: #e7f2fb; --et-pillar-wash: #f3f9fd; }

/* ---------- page frame and type ---------- */
body.sh-et-look { background: #fff; }
body.sh-et-look :is(.sxl-wrap, .rep-page, .rrc-page) {
	width: min(var(--et-max), 100% - 2 * clamp(16px, 4vw, 48px));
	max-width: none;
	margin: clamp(16px, 2.4vw, 28px) auto clamp(48px, 6vw, 88px);
	color: var(--et-ink);
	font-family: var(--et-text);
}
body.sh-et-look :is(.sxl-wrap, .rep-page, .rrc-page, .ea-article, .fa-article, .sf-grid) :is(h1, h2, h3) {
	font-family: var(--et-display);
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: var(--et-ink);
}
body.sh-et-look main h1:not(.sl-h1) {
	font-family: var(--et-display) !important;
	font-weight: 800 !important;
	font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.9rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.032em !important;
	color: var(--et-ink) !important;
	text-wrap: balance;
}
body.sh-et-look main h2 { font-weight: 800; }
body.sh-et-look main h3 { font-weight: 700; }
body.sh-et-look main p { text-wrap: pretty; }

/* focus: the homepage's ink ring with a white halo (the global amber ring is 2.1:1, HK-084) */
body.sh-et-look main :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--et-ink) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 5px #fff !important;
}

/* ---------- eyebrows: text with a pillar dot, never a pill ---------- */
body.sh-et-look.sh-shell :is(.sxl-kicker, .sh-detail-kicker, .rep-page-kicker, .rrc-page-kicker, .sxl-card-kicker) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--et-pillar-ink);
	font: 800 12.5px/1.2 var(--et-text);
	letter-spacing: .12em;
	text-transform: uppercase;
	box-shadow: none;
}
body.sh-et-look.sh-shell :is(.sxl-kicker, .sh-detail-kicker, .rep-page-kicker, .rrc-page-kicker)::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--et-pillar);
}
body.sh-et-look.sh-shell .sxl-card-kicker { font-size: 11.5px; letter-spacing: .08em; }

/* ---------- breadcrumbs and the library row ---------- */
body.sh-et-look .sh-breadcrumbs { margin: 0 0 10px; font-size: 14px; }
body.sh-et-look .sh-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
body.sh-et-look .sh-breadcrumbs a { color: var(--et-ink); font-weight: 650; text-decoration: none; }
body.sh-et-look .sh-breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--et-pillar); text-underline-offset: 3px; }
body.sh-et-look .sh-breadcrumbs [aria-current] { color: var(--et-muted); }
/* "Eat libraries": the sibling libraries as one row of quiet links on a soft rule, not a second breadcrumb */
body.sh-et-look .sh-breadcrumbs[aria-label="Eat libraries"] { margin: 0 0 18px; padding: 0 0 12px; border-bottom: 1px solid var(--et-line-soft); }
body.sh-et-look .sh-breadcrumbs[aria-label="Eat libraries"] li + li::before { content: none; }
body.sh-et-look .sh-breadcrumbs[aria-label="Eat libraries"] ol { gap: 6px; }
body.sh-et-look .sh-breadcrumbs[aria-label="Eat libraries"] a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
	color: var(--et-copy); font-weight: 650; font-size: 14px;
}
body.sh-et-look .sh-breadcrumbs[aria-label="Eat libraries"] a:hover { background: var(--et-pillar-wash); color: var(--et-ink); text-decoration: none; }

/* ---------- heroes: an open band, not a boxed card ---------- */
body.sh-et-look.sh-shell :is(.sxl-hero, .rep-page-hero, .rrc-page-hero) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
	gap: clamp(20px, 3vw, 44px);
	align-items: end;
	margin: 0 0 clamp(24px, 3vw, 40px);
	padding: clamp(8px, 2vw, 24px) 0 clamp(20px, 3vw, 32px);
	border: 0;
	border-bottom: 1px solid var(--et-line-soft);
	border-radius: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}
body.sh-et-look.sh-shell :is(.sxl-hero-copy, .rep-page-hero > div:first-child, .rrc-page-hero > div:first-child) {
	display: grid; gap: 14px; padding: 0; background: none; min-height: 0;
}
body.sh-et-look.sh-shell :is(.sxl-hero-copy, .rep-page-hero, .rrc-page-hero) p { max-width: 62ch; color: var(--et-copy); font-size: clamp(1rem, .96rem + .25vw, 1.15rem); line-height: 1.55; }
body.sh-et-look.sh-shell :is(.sxl-hero-panel, .rep-page-hero-card, .rrc-page-hero-card) {
	display: grid;
	gap: 10px;
	align-content: start;
	padding: clamp(20px, 2.4vw, 28px);
	border: 0;
	border-radius: var(--et-radius);
	background: var(--et-night) radial-gradient(120% 90% at 100% 0%, rgba(110, 196, 232, .22), transparent 60%);
	color: #fff;
	box-shadow: var(--et-shadow);
	min-height: 0;
}
body.sh-et-look.sh-shell :is(.sxl-hero-panel, .rep-page-hero-card, .rrc-page-hero-card) :is(span, .rep-page-kicker, .rrc-page-kicker) { color: #b9e6f7; }
body.sh-et-look.sh-shell :is(.sxl-hero-panel, .rep-page-hero-card, .rrc-page-hero-card) :is(strong, h2, h3) { color: #fff; font-family: var(--et-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
body.sh-et-look.sh-shell :is(.sxl-hero-panel, .rep-page-hero-card, .rrc-page-hero-card) :is(p, li) { color: rgba(255, 255, 255, .86); font-size: 15px; }
/* the detail-page hero (meal, plan, workout): eyebrow, title, facts, one action row */
body.sh-et-look.sh-shell :is(.sh-detail-hero, .sh-food-hero, .sh-exercise-hero) {
	display: grid; gap: 12px; margin: 0 0 clamp(20px, 3vw, 32px); padding: clamp(8px, 2vw, 20px) 0 clamp(20px, 3vw, 28px);
	border: 0; border-bottom: 1px solid var(--et-line-soft); border-radius: 0; background: none; box-shadow: none;
}
body.sh-et-look.sh-shell .sh-detail-hero p { margin: 0; color: var(--et-copy); font-size: clamp(1rem, .96rem + .25vw, 1.12rem); }
body.sh-et-look.sh-shell .sh-detail-hero p + p { color: var(--et-muted); font-size: 15px; }

/* ---------- buttons: 52px teal primary, white ghost; never a loose underlined action ---------- */
body.sh-et-look main :is(
	.sxl-hero-panel a, .sxl-search button[type="submit"], .sxl-pagination button, .sxl-pagination a, .sh-action, .sh-system-actions a.sh-action,
	.rep-button-primary, .rrc-button-primary, .sh-cf-instant-create, .rep-planner-start-actions .rep-button-primary,
	button[type="submit"]:not(.rfq-search-close):not([class*="ai-"]):not(.sl-btn)
) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--et-teal);
	color: #fff !important;
	font: 750 15.5px/1.1 var(--et-text);
	letter-spacing: 0;
	text-decoration: none !important;
	box-shadow: 0 10px 22px -14px rgba(23, 61, 57, .7);
	transition: background .18s var(--et-ease), transform .18s var(--et-ease);
	cursor: pointer;
}
body.sh-et-look main :is(.sxl-hero-panel a, .sxl-search button, .sxl-pagination button, .sxl-pagination a, .sh-action, .rep-button-primary, .rrc-button-primary, .sh-cf-instant-create):hover {
	background: var(--et-teal-deep); color: #fff; transform: translateY(-1px);
}
body.sh-et-look.sh-shell main .sxl-hero-panel a { width: 100%; }
body.sh-et-look.sh-shell main .sxl-hero-panel a ~ a,
body.sh-et-look.sh-shell main .sxl-hero-panel .sh-cf-panel-link { min-height: 46px; border: 1.5px solid rgba(255, 255, 255, .5) !important; background: transparent !important; color: #fff !important; box-shadow: none; }
body.sh-et-look.sh-shell main .sxl-hero-panel :is(a ~ a, .sh-cf-panel-link) * { color: #fff !important; }
body.sh-et-look.sh-shell main .sxl-hero-panel :is(a ~ a, .sh-cf-panel-link):hover { border-color: #fff !important; background: rgba(255, 255, 255, .08) !important; }
body.sh-et-look main :is(.sh-action-secondary, .rep-button-secondary, .rrc-button-secondary, .rrc-button:not(.rrc-button-primary), .rep-button:not(.rep-button-primary), .sh-cf-panel-link, .sxl-helper-more-link, .sxl-search a, .sxl-search button[type="reset"], .sxl-search .sxl-clear) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border: 1.5px solid var(--et-line) !important;
	border-radius: 999px;
	background: #fff !important;
	color: var(--et-ink) !important;
	font: 700 15px/1.1 var(--et-text);
	text-decoration: none !important;
	box-shadow: none;
	transition: border-color .18s var(--et-ease), background .18s var(--et-ease);
}
body.sh-et-look main :is(.sh-action-secondary, .rep-button-secondary, .rrc-button-secondary, .rrc-button:not(.rrc-button-primary), .rep-button:not(.rep-button-primary), .sh-cf-panel-link, .sxl-helper-more-link):hover {
	border-color: var(--et-teal) !important; background: var(--et-sky-soft) !important;
}
body.sh-et-look main .sh-system-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* standalone links inside sections become ghost buttons (an <a> or <p><a> alone on its line) */
body.sh-et-look .sxl-section > a,
body.sh-et-look main form + p > a:only-child,
body.sh-et-look .sxl-section > p:has(> a:only-child) > a:only-child {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; margin: 6px 0 2px;
	border: 1.5px solid var(--et-line); border-radius: 999px; background: #fff;
	color: var(--et-ink); font-weight: 700; font-size: 14.5px; text-decoration: none;
}
body.sh-et-look .sxl-section > a::after,
body.sh-et-look .sxl-section > p:has(> a:only-child) > a:only-child::after {
	content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--et-arrow) center / contain no-repeat; mask: var(--et-arrow) center / contain no-repeat;
}
body.sh-et-look main form + p > a:only-child:hover,
body.sh-et-look .sxl-section > a:hover,
body.sh-et-look .sxl-section > p:has(> a:only-child) > a:only-child:hover { border-color: var(--et-teal); background: var(--et-sky-soft); }
/* in-sentence links stay links, in ink with a pillar underline (no browser blue) */
body.sh-et-look main :is(.sxl-section, .fa-article, .ea-article, .rep-page, .rrc-page) p a:not(:only-child) {
	color: var(--et-ink); font-weight: 650; text-decoration: underline !important; text-decoration-color: var(--et-pillar) !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px;
}

/* ---------- sections: one level of boxing ---------- */
body.sh-et-look.sh-shell :is(.sxl-layout, .rep-page-layout, .rrc-page-layout) {
	gap: clamp(20px, 3vw, 40px); padding: 0; border: 0; background: none; box-shadow: none;
}
body.sh-et-look.sh-shell .sxl-section {
	margin: 0 0 clamp(16px, 2vw, 22px);
	padding: clamp(20px, 2.6vw, 30px);
	border: 1px solid var(--et-line-soft);
	border-radius: var(--et-radius);
	background: #fff;
	box-shadow: var(--et-shadow);
}
body.sh-et-look.sh-shell .sxl-main > .sxl-section,
body.sh-et-look.sh-shell .sxl-layout .sxl-section { box-shadow: none; }
body.sh-et-look .sxl-section-head { display: grid; gap: 8px; margin-bottom: 14px; }
body.sh-et-look .sxl-section-head :is(h2, h3) { margin: 0; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); line-height: 1.15; }
body.sh-et-look .sxl-section-head p { margin: 0; color: var(--et-copy); }
body.sh-et-look .sxl-section > p { color: var(--et-copy); line-height: 1.6; margin: 0 0 10px; }

/* ---------- side boxes (sidebar) ---------- */
body.sh-et-look.sh-shell :is(.sxl-side-box, .rep-page-side-box, .rrc-page-side-box) {
	padding: 22px; border: 1px solid var(--et-line-soft); border-radius: var(--et-radius); background: var(--et-pillar-wash); box-shadow: none;
}
body.sh-et-look .sxl-sidebar { display: grid; gap: 16px; align-content: start; }

/* ---------- search and filters ---------- */
body.sh-et-look :is(.sxl-search, .sh-cf-workout-search) { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; }
body.sh-et-look main :is(input[type="search"], input[type="text"], input[type="number"], input[type="email"], select, textarea):not([type="hidden"]):not(.sl-field) {
	min-height: 52px;
	padding: 0 16px;
	border: 1.5px solid var(--et-line) !important;
	border-radius: 14px !important;
	background: #fff;
	color: var(--et-ink);
	font: 500 16.5px/1.2 var(--et-text);
	box-shadow: none !important;
}
body.sh-et-look main textarea { min-height: 120px; padding: 14px 16px; line-height: 1.5; }
body.sh-et-look main :is(input, select, textarea):not(.sl-field):hover { border-color: #9fc2d6 !important; }
body.sh-et-look main :is(.sxl-search label, .sxl-field label, .sxl-field > span, .rep-field > label, .rrc-field > label, .rep-field > span, .rrc-field > span) {
	color: var(--et-ink); font: 700 14px/1.3 var(--et-text); letter-spacing: 0; text-transform: none;
}
body.sh-et-look .sxl-results, body.sh-et-look .sxl-result-line { color: var(--et-muted); font-weight: 650; font-size: 14.5px; }

/* chips used as real toggles keep their control role, drawn as quiet toggles */
body.sh-et-look .sh-cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.sh-et-look .sh-cf-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--et-line); border-radius: 999px; background: #fff; color: var(--et-ink); font-weight: 650; font-size: 14px; }
body.sh-et-look .sh-cf-chip:has(input:checked), body.sh-et-look .sh-cf-chip[aria-pressed="true"], body.sh-et-look .sh-cf-chip.is-active { border-color: var(--et-teal); background: var(--et-teal); color: #fff; }

/* ---------- result cards (foods, meals, plans, workouts, exercises) ---------- */
body.sh-et-look .sxl-grid { gap: clamp(12px, 1.6vw, 18px); }
body.sh-et-look.sh-shell .sxl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--et-line-soft);
	border-radius: 20px;
	background: #fff;
	box-shadow: none;
	transition: border-color .18s var(--et-ease), box-shadow .18s var(--et-ease), transform .18s var(--et-ease);
}
body.sh-et-look.sh-shell .sxl-card:hover { border-color: var(--et-line); box-shadow: var(--et-shadow); transform: translateY(-2px); }
body.sh-et-look.sh-shell .sxl-card-body { display: grid; gap: 8px; padding: 18px; }
body.sh-et-look.sh-shell .sxl-card :is(h2, h3, .sxl-card-title) { margin: 0; font: 700 1.08rem/1.25 var(--et-display); letter-spacing: -0.01em; color: var(--et-ink); }
body.sh-et-look.sh-shell .sxl-card-copy { color: var(--et-copy); font-size: 14.5px; line-height: 1.5; }
body.sh-et-look.sh-shell .sxl-card-meta { color: var(--et-muted); font-size: 13.5px; }
body.sh-et-look.sh-shell .sxl-card-media { aspect-ratio: 16 / 10; background: var(--et-pillar-wash); }
body.sh-et-look.sh-shell .sxl-card-media img { width: 100%; height: 100%; object-fit: cover; }
body.sh-et-look.sh-shell .sxl-card a { color: inherit; }

/* nutrition facts: a row of figures, not a row of pills */
body.sh-et-look .sxl-food-macros { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--et-line-soft); }
body.sh-et-look .sxl-food-macros :is(em, span, b) {
	flex: 1 1 0;
	min-width: 76px;
	display: grid;
	gap: 2px;
	padding: 10px 10px 2px 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: var(--et-ink);
	font: 700 14px/1.25 var(--et-text);
	font-style: normal;
	text-align: left;
	box-shadow: none !important;
}
body.sh-et-look .sxl-section .sxl-food-macros { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; border: 0; }
body.sh-et-look .sxl-section .sxl-food-macros :is(em, span, b) { min-width: 0; overflow-wrap: anywhere; }
body.sh-et-look .sxl-section .sxl-food-macros :is(em, span, b) {
	padding: 12px 16px; gap: 0; border-radius: 16px !important; background: var(--et-pillar-wash) !important; font-size: 15px;
}
body.sh-et-look .et-stat-label { display: block; color: var(--et-muted); font: 650 12.5px/1.2 var(--et-text); letter-spacing: .02em; }
body.sh-et-look .et-stat-value { display: block; color: var(--et-ink); font: 800 1.35rem/1.1 var(--et-display); font-variant-numeric: tabular-nums; }
body.sh-et-look .sxl-card .et-stat-value { font-size: 1rem; }
body.sh-et-look .et-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- food and portion lists (meals and plans) ---------- */
body.sh-et-look .sxl-section > ul { display: grid; gap: 0; margin: 0 0 12px; padding: 0; list-style: none; }
body.sh-et-look .sxl-section > ul > li {
	display: block; padding: 11px 0; border-bottom: 1px solid var(--et-line-soft); color: var(--et-copy); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums;
}
body.sh-et-look .sxl-section > ul > li:last-child { border-bottom: 0; }
body.sh-et-look .sxl-section > ul > li > strong { color: var(--et-ink); font-size: 16px; }
body.sh-et-look .sxl-section > ul > li > strong { margin-right: 6px; }
body.sh-et-look .sxl-section > ul > li > small { margin-right: 4px; color: var(--et-muted); font-size: 13px; }

/* ---------- workout sets: the exercise sequence on the Sneaky Line (a real order) ---------- */
body.sh-et-look .sxl-section > ol { position: relative; display: grid; gap: 0; margin: 4px 0 6px; padding: 0 0 0 46px; list-style: none; counter-reset: et-step; }
body.sh-et-look .sxl-section > ol::before {
	content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
	background: linear-gradient(180deg, #3fb39d, #6ec4e8 38%, #4ea6ec 64%, #ec6a98);
}
body.sh-et-look .sxl-section > ol > li { position: relative; counter-increment: et-step; padding: 10px 0 12px; border-bottom: 1px solid var(--et-line-soft); }
body.sh-et-look .sxl-section > ol > li:last-child { border-bottom: 0; }
body.sh-et-look .sxl-section > ol > li::before {
	content: counter(et-step); position: absolute; left: -46px; top: 8px; width: 33px; height: 33px; display: grid; place-items: center;
	border: 3px solid #fff; border-radius: 50%; background: var(--et-pillar); color: #fff; font: 800 14px/1 var(--et-text); box-shadow: 0 0 0 1px var(--et-line-soft);
}
body.sh-et-look .sxl-section > ol > li > strong a { color: var(--et-ink); font: 700 1.05rem/1.3 var(--et-display); text-decoration: none; }
body.sh-et-look .sxl-section > ol > li > strong a:hover { text-decoration: underline; text-decoration-color: var(--et-pillar); text-underline-offset: 3px; }
body.sh-et-look .sxl-section > ol > li > p { margin: 2px 0 0; color: var(--et-copy); font-size: 14.5px; font-variant-numeric: tabular-nums; }

/* ---------- pagination ---------- */
body.sh-et-look .sxl-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; color: var(--et-muted); font-weight: 650; }

/* ---------- creators: forms and panels on one level (rep = eating plans, rrc = workouts) ---------- */
body.sh-et-look :is(.rep-planner, .rrc-panel, .rrc-builder, .rep-meal-setup, .rrc-settings-box, .rep-ai-settings, .rrc-workout-preview) {
	border: 1px solid var(--et-line-soft) !important; border-radius: var(--et-radius) !important; background: #fff !important; box-shadow: none !important;
}
body.sh-et-look :is(.rep-architecture-steps, .rrc-construction-steps) { counter-reset: et-guide; }
body.sh-et-look :is(.rep-message, .rrc-message, .rrc-empty, .rrc-generate-empty, .rep-food-empty) { border-radius: 16px; }
body.sh-et-look :is(.rep-credit-status, .rrc-credit-status) { border-radius: 16px; }
body.sh-et-look :is(.rep-modal-panel, .rrc-modal-panel) { border-radius: var(--et-radius) !important; }

/* ---------- single food (nutrition label stays a label) ---------- */
body.sh-et-look.sh-et-look-food .sf-grid { gap: clamp(20px, 3vw, 40px); }
body.sh-et-look.sh-et-look-food :is(.fa-disclaimer, .fa-basis-note) { color: var(--et-muted); font-size: 14px; }

/* ---------- exercise article ---------- */
body.sh-et-look.sh-et-look-exercise :is(.ea-related-card, .rf-card) { border: 1px solid var(--et-line-soft); border-radius: 18px; box-shadow: none; }
body.sh-et-look.sh-et-look-exercise .ea-disclaimer { color: var(--et-muted); font-size: 14px; }


/* ---------- single food and single exercise: one page frame (their markup sits straight in <main>) ---------- */
body.sh-et-look :is(.sh-et-look-food, .sh-et-look-exercise) main > :is(.sh-breadcrumbs-slot, header.sh-detail-hero, .single-exercise-hub, .sf-grid, .rfq-search-launch),
body.sh-et-look.sh-et-look-food main > :is(.sh-breadcrumbs-slot, header.sh-detail-hero, .sf-grid, .rfq-search-launch),
body.sh-et-look.sh-et-look-exercise main > :is(.sh-breadcrumbs-slot, header.sh-detail-hero, .single-exercise-hub, .rfq-search-launch) {
	box-sizing: border-box;
	width: min(var(--et-max), 100% - 2 * clamp(16px, 4vw, 48px));
	max-width: none;
	margin-left: auto;
	margin-right: auto;
}
body.sh-et-look.sh-et-look-exercise main > .sh-breadcrumbs-slot,
body.sh-et-look.sh-et-look-food main > .sh-breadcrumbs-slot { padding-top: clamp(16px, 2.4vw, 28px); }
body.sh-et-look .single-exercise-hub { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 40px); align-items: start; padding: 0; }
body.sh-et-look .single-exercise-main { display: grid; gap: clamp(16px, 2vw, 22px); min-width: 0; }
body.sh-et-look .single-exercise-main > :is(.exercise, .ea-article, .ea-related, .ea-search-db) {
	margin: 0; padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--et-line-soft); border-radius: var(--et-radius); background: #fff; box-shadow: none;
}
body.sh-et-look .ea-article :is(h2) { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
body.sh-et-look .ea-article :is(p, li) { color: var(--et-copy); font-size: 16.5px; line-height: 1.65; }
body.sh-et-look .single-exercise-sidebar { display: grid; gap: 16px; align-content: start; }
body.sh-et-look .single-exercise-sidebar .rf-section-title { margin: 8px 0 0; font: 800 1.1rem/1.2 var(--et-display); color: var(--et-ink); }
body.sh-et-look .single-exercise-sidebar .rf-grid { display: grid; gap: 6px; }
body.sh-et-look .single-exercise-sidebar .rf-card { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--et-line-soft); border-radius: 14px; background: #fff; color: var(--et-ink); font-weight: 650; font-size: 14.5px; box-shadow: none; text-decoration: none; }
body.sh-et-look .single-exercise-sidebar .rf-card:hover { border-color: var(--et-line); background: var(--et-pillar-wash); }
@media (max-width: 1023px) { body.sh-et-look .single-exercise-hub { grid-template-columns: minmax(0, 1fr); } }

/* the next-step row in a detail hero: one primary, the rest as ghost buttons (journeys markup unchanged) */
body.sh-et-look .sh-detail-hero .sh-next { margin: 6px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.sh-et-look .sh-detail-hero .sh-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.sh-et-look .sh-detail-hero .sh-next-primary {
	display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--et-teal); color: #fff !important; font: 750 15.5px/1.1 var(--et-text); text-decoration: none !important;
}
body.sh-et-look .sh-detail-hero .sh-next-primary:hover { background: var(--et-teal-deep); }
body.sh-et-look .sh-detail-hero .sh-next-secondary { display: contents; }
body.sh-et-look .sh-detail-hero .sh-next-secondary a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--et-line); border-radius: 999px; background: #fff;
	color: var(--et-ink) !important; font: 700 15px/1.1 var(--et-text); text-decoration: none !important;
}
body.sh-et-look .sh-detail-hero .sh-next-secondary a:hover { border-color: var(--et-teal); background: var(--et-sky-soft); }
body.sh-et-look .sh-detail-hero .sh-next-note { margin: 8px 0 0; color: var(--et-muted); font-size: 14.5px; max-width: 70ch; }
body.sh-et-look .nf-food-meta { color: var(--et-copy); }

/* the creator hero card's own label is an eyebrow, not a pill */
body.sh-et-look :is(.rrc-page-hero-card, .rep-page-hero-card, .sxl-hero-panel) :is(.rrc-page-kicker, .rep-page-kicker),
body.sh-et-look .rrc-page-hero-card > span:first-child,
body.sh-et-look .rep-page-hero-card > span:first-child,
body.sh-et-look .sxl-hero-panel > span:first-child {
	padding: 0 !important; border: 0 !important; background: none !important; color: #b9e6f7 !important; font: 800 12px/1.2 var(--et-text) !important; letter-spacing: .12em; text-transform: uppercase;
}


/* form groups inside a section: rows on a soft rule, not boxes inside the box */
body.sh-et-look.sh-shell .sxl-section .sxl-search {
	margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--et-line-soft); border-radius: 0; background: none; box-shadow: none;
}
body.sh-et-look.sh-shell .sxl-section .sxl-search:last-of-type { border-bottom: 0; }
body.sh-et-look main .sxl-search button:not([type="submit"]) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
	border: 1.5px solid var(--et-line); border-radius: 999px; background: #fff; color: var(--et-ink); font: 700 15px/1.1 var(--et-text); box-shadow: none; cursor: pointer;
}
body.sh-et-look main .sxl-search button:not([type="submit"]):hover { border-color: var(--et-teal); background: var(--et-sky-soft); }
body.sh-et-look main :is(.sxl-section, .sxl-hero-copy, .rep-page, .rrc-page) p > a:not([class]) {
	color: var(--et-ink); font-weight: 650; text-decoration: underline !important; text-decoration-color: var(--et-pillar) !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px;
}

/* ---------- phones ---------- */
@media (max-width: 1023px) {
	body.sh-et-look.sh-shell :is(.sxl-hero, .rep-page-hero, .rrc-page-hero) { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 767px) {
	body.sh-et-look .et-stat-value { font-size: 1.15rem; }
	body.sh-et-look.sh-shell :is(.sxl-hero-panel, .rep-page-hero-card, .rrc-page-hero-card) { padding: 18px; }
	body.sh-et-look main :is(.sxl-hero-panel a, .sxl-search button, .sh-action, .rep-button-primary, .rrc-button-primary, .sh-cf-instant-create) { width: 100%; }
	body.sh-et-look .sxl-search > * { flex: 1 1 100%; }
	body.sh-et-look.sh-shell .sxl-section { padding: 18px; border-radius: 18px; }
	body.sh-et-look .sxl-section > ol { padding-left: 40px; }
	body.sh-et-look .sxl-section > ol > li::before { left: -40px; width: 29px; height: 29px; font-size: 13px; }
	body.sh-et-look .sxl-section > ol::before { left: 13px; }
}

/* ---------- motion (finite, on request only) ---------- */
@media (prefers-reduced-motion: no-preference) {
	body.sh-et-look .et-reveal { animation: et-rise .5s var(--et-ease) both; }
	body.sh-et-look .sxl-section > ol.et-drawn::before { animation: et-draw .9s var(--et-ease) both; transform-origin: top; }
}
@keyframes et-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes et-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
	body.sh-et-look main *, body.sh-et-look main *::before, body.sh-et-look main *::after { animation: none !important; transition: none !important; }
}

/* ---------- B2: creators and what they build (rep = eating plans, rrc = workouts) ---------- */
/* credit bars: readable figures, the account action at the end of the row */
body.sh-et-look :is(.rep-credit-status, .rrc-credit-status) {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 16px !important;
	border: 1px solid var(--et-line-soft) !important; background: var(--et-pillar-wash) !important; box-shadow: none !important;
}
body.sh-et-look .rrc-credit-stat { display: inline-flex !important; align-items: baseline; gap: 6px; padding: 0 !important; border: 0 !important; background: none !important; }
body.sh-et-look .rrc-credit-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-left: auto; }
body.sh-et-look :is(.rep-credit-status > span, .rrc-credit-stat > span, .rrc-credit-action > span) {
	color: var(--et-copy) !important; font: 600 14px/1.35 var(--et-text) !important; letter-spacing: 0 !important; text-transform: none !important;
}
body.sh-et-look :is(.rep-credit-status, .rrc-credit-status) strong { color: var(--et-ink) !important; font: 800 15px/1.2 var(--et-text) !important; font-variant-numeric: tabular-nums; }
body.sh-et-look :is(.rep-credit-status a[data-rep-buy-credits], .rrc-credit-action a[data-rrc-buy-credits]) {
	display: inline-flex; align-items: center; min-height: 40px; margin-left: auto; padding: 0 18px; border-radius: 999px; font: 750 14px/1 var(--et-text) !important;
}

/* stat chips (estimated and set duration): one quiet chip, not a warning */
body.sh-et-look :is(.rrc-estimated-duration, .rrc-section-time) {
	border: 1px solid var(--et-line-soft) !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important;
}
body.sh-et-look :is(.rrc-estimated-duration, .rrc-section-time) span { color: var(--et-muted) !important; font: 750 11.5px/1.2 var(--et-text) !important; letter-spacing: .08em; text-transform: uppercase; }
body.sh-et-look :is(.rrc-estimated-duration, .rrc-section-time) strong { color: var(--et-ink) !important; font: 800 15px/1.25 var(--et-text) !important; font-variant-numeric: tabular-nums; }

/* a set: one soft container; exercises are the cards inside it */
body.sh-et-look .rrc-section { border: 1px solid var(--et-line-soft) !important; border-radius: var(--et-radius) !important; background: var(--et-pillar-wash) !important; box-shadow: none !important; }
body.sh-et-look .rrc-exercise:not(.rrc-add-exercise-card) { border: 1px solid var(--et-line-soft) !important; border-radius: 16px !important; background: #fff !important; box-shadow: none !important; }
body.sh-et-look .rrc-exercise-head strong { color: var(--et-ink); font: 800 16px/1.25 var(--et-text); }
/* the add card was white text on a pale fill: an outlined invitation in ink instead */
body.sh-et-look .rrc-add-exercise-card { border: 2px dashed var(--et-line) !important; border-radius: 16px !important; background: #fff !important; box-shadow: none !important; }
body.sh-et-look .rrc-add-exercise-card button { color: var(--et-ink) !important; border-radius: 14px !important; }
body.sh-et-look .rrc-add-exercise-card button > span {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--et-teal) !important; color: #fff !important; font: 800 22px/1 var(--et-text);
}
body.sh-et-look .rrc-add-exercise-card button:hover { background: var(--et-sky-soft) !important; }
body.sh-et-look .rrc-add-exercise-card button:focus-visible { outline: 3px solid var(--et-ink); outline-offset: 2px; }
body.sh-et-look .rrc-add-set-card { min-height: 52px; border: 2px dashed var(--et-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--et-ink) !important; font: 750 15.5px/1 var(--et-text) !important; }
body.sh-et-look .rrc-add-set-card:hover { border-color: var(--et-teal) !important; background: var(--et-sky-soft) !important; }

/* a meal: one card, readable column labels and totals */
body.sh-et-look .rep-meal { border-radius: var(--et-radius) !important; box-shadow: none !important; }
body.sh-et-look .rep-food-header > * { color: var(--et-muted) !important; font: 750 12px/1.3 var(--et-text) !important; letter-spacing: .06em; }
body.sh-et-look .rep-food-item { border-radius: 14px !important; }
body.sh-et-look .rep-food-title { color: var(--et-ink); font-weight: 750; font-size: 15px; }
body.sh-et-look .rep-meal-total-pill { border-radius: 999px !important; font-variant-numeric: tabular-nums; }

/* Workout Creator: its supporting cards sit under the builder; three across so none is left alone */
@media (min-width: 1100px) {
	body.sh-et-look .rrc-page-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; align-items: start; }
}
@media (min-width: 981px) and (max-width: 1099px) {
	body.sh-et-look .rrc-page-sidebar > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	body.sh-et-look :is(.rrc-credit-action, .rep-credit-status a[data-rep-buy-credits]) { margin-left: 0; }
}
/* phones: the plan-title row stacks into a column, where its 360px flex-basis became a 360px-tall field */
@media (max-width: 720px) {
	body.sh-et-look .rep-meal-heading-top > .rep-plan-title-field { flex: 0 0 auto; }
}
/* meal actions: ghost pills like every other secondary action; "+" stays the one filled control */
body.sh-et-look .rep-meal-actions > button:not(.rep-add-food-button) {
	min-height: 44px; padding: 0 18px; border: 1.5px solid var(--et-line) !important; border-radius: 999px !important; background: #fff !important;
	color: var(--et-ink) !important; font: 700 14.5px/1.1 var(--et-text) !important; box-shadow: none !important;
}
body.sh-et-look .rep-meal-actions > button:not(.rep-add-food-button):hover { border-color: var(--et-teal) !important; background: var(--et-sky-soft) !important; }
body.sh-et-look .rep-meal-actions > .rep-add-food-button {
	min-width: 44px; min-height: 44px; border: 0 !important; border-radius: 999px !important; background: var(--et-teal) !important; color: #fff !important; font: 800 20px/1 var(--et-text) !important;
}
body.sh-et-look .rep-meal-actions > select { border-radius: 999px !important; }
@media (max-width: 720px) {
	/* phones: move and delete sit on one row under the meal name, not stacked down the card */
	body.sh-et-look .rep-meal-top { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 10px; }
	body.sh-et-look .rep-meal-top > .rep-meal-title-row { flex: 1 1 100%; }
	body.sh-et-look .rep-meal-top > :is(.rep-reorder, .rep-meal-top-actions):not([hidden]) { display: flex !important; flex-direction: row !important; gap: 8px; margin: 0; }
	body.sh-et-look .rep-meal-top > .rep-meal-top-actions:not([hidden]) { margin-left: auto; }
	body.sh-et-look .rep-meal-actions > :is(button, select) { width: 100%; }
	body.sh-et-look .rep-meal-actions > .rep-add-food-button { width: 100%; }
}

/* ---------- B3: detail pages share one frame; data tables in the palette ---------- */
/* single food: the old 1180px !important width (style.css) loses to the 1240 frame the hero already uses */
body.sh-et-look.sh-et-look-food.single-food main > .sf-grid {
	width: min(var(--et-max), 100% - 2 * clamp(16px, 4vw, 48px)) !important; max-width: none !important; margin-left: auto; margin-right: auto;
}
/* FAQ and the site-search launcher (on food pages they sit after <main>) line up with the same frame */
body.sh-et-look :is(.rfq-block, .rfq-search-launch) {
	box-sizing: border-box; width: min(var(--et-max), 100% - 2 * clamp(16px, 4vw, 48px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important;
}
body.sh-et-look .rfq-block { margin-top: clamp(24px, 3vw, 40px) !important; margin-bottom: clamp(24px, 3vw, 40px) !important; padding: clamp(20px, 2.6vw, 30px) !important; border: 1px solid var(--et-line-soft) !important; border-radius: var(--et-radius) !important; box-shadow: none !important; }
/* data tables: night header (was flat #222), soft rows, numbers aligned */
body.sh-et-look :is(main, .single-food-after) table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--et-line-soft); border-radius: 16px; overflow: hidden; font-variant-numeric: tabular-nums; }
body.sh-et-look :is(main, .single-food-after) table th { background: var(--et-night) !important; color: #fff !important; font: 750 13px/1.3 var(--et-text) !important; letter-spacing: .02em; }
body.sh-et-look :is(main, .single-food-after) table tbody tr:nth-child(even) td { background: var(--et-pillar-wash); }
body.sh-et-look :is(main, .single-food-after) table td { border-bottom: 1px solid var(--et-line-soft); color: var(--et-copy); }
body.sh-et-look :is(main, .single-food-after) table tbody tr:last-child td { border-bottom: 0; }
body.sh-et-look main .el-table-wrap { overflow-x: auto; border-radius: 16px; }
/* exercise sidebar: the test links fill their column */
body.sh-et-look .single-exercise-sidebar .rf-grid > *, body.sh-et-look .single-exercise-sidebar .rf-card { box-sizing: border-box; width: 100%; }
/* single food: related foods and the food table sit after <main>; same frame, headings without their white tab */
body.sh-et-look.sh-et-look-food > .single-food-after {
	box-sizing: border-box; width: min(var(--et-max), 100% - 2 * clamp(16px, 4vw, 48px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important;
}
body.sh-et-look .single-food-after .rf-section-title {
	max-width: none !important; margin: clamp(24px, 3vw, 36px) 0 14px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
	color: var(--et-ink); font: 800 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.15 var(--et-display) !important;
}
/* table search and "Search everything": teal and ghost, not flat black */
body.sh-et-look :is(#fl-search-btn, #el-search-btn) {
	min-height: 48px; padding: 0 22px; border: 0 !important; border-radius: 999px !important; background: var(--et-teal) !important; color: #fff !important; font: 750 15px/1 var(--et-text) !important; cursor: pointer;
}
body.sh-et-look :is(#fl-search-btn, #el-search-btn):hover { background: var(--et-teal-deep) !important; }
body.sh-et-look .rfq-search-open {
	min-height: 44px; padding: 0 20px; border: 1.5px solid var(--et-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--et-ink) !important; font: 700 14.5px/1 var(--et-text) !important; box-shadow: none !important;
}
body.sh-et-look .rfq-search-open:hover { border-color: var(--et-teal) !important; background: var(--et-sky-soft) !important; }
body.sh-et-look :is(#fl-search-btn, #el-search-btn, .rfq-search-open):focus-visible { outline: 3px solid var(--et-ink); outline-offset: 2px; }
/* exercise sidebar: the test list is one column that fills its box */
body.sh-et-look .single-exercise-sidebar .rf-grid { grid-template-columns: minmax(0, 1fr) !important; width: auto !important; padding: 0 !important; }
