/* ==========================================================================
   TrailFed — Field Kit
   Flat, rugged, camp colors. No shadows, no gradients.
   ========================================================================== */

:root {
	--bone: #F2EDE3;
	--paper: #FAF7F0;
	--sand: #E8E1D3;
	--line: #CFC6B5;
	--line-soft: #E2DACB;
	--line-strong: #A99E8A;
	--ink: #24211D;
	--ink-2: #3F3A33;
	--muted: #5B544A;
	--pine: #2F4A3A;
	--pine-soft: #EEF0E8;
	--rust: #B5532A;
	--rust-dark: #9A4522;
	--ochre: #D9AE5F;
	--star: #B8862F;
	--lake: #3E5662;
	--radius: 6px;
	--radius-sm: 4px;
	--wrap: 1240px;
	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bone);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tf-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bone); padding: 10px 14px; }
.tf-skip:focus { left: 8px; }

.tf-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .tf-wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- Type helpers ---------- */
.tf-eyebrow, .tfc-kicker, .tf-plan-label {
	font-family: var(--display); font-weight: 600; font-size: 15px;
	letter-spacing: .16em; text-transform: uppercase;
}
.tf-rust { color: var(--rust-dark); }
.tf-h2 {
	font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.2vw, 38px);
	letter-spacing: .03em; text-transform: uppercase;
}
.tf-h2-lg { font-size: clamp(34px, 4vw, 46px); line-height: 1; }

/* ---------- Buttons ---------- */
.tf-btn, .tfc-submit button[type="submit"], .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px;
	border: 1px solid transparent; border-radius: var(--radius-sm);
	font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; line-height: 1.1; background: none;
}
.tf-btn-rust, .tfc-submit button[type="submit"], .comment-form .submit { background: var(--rust); color: #fff; }
.tf-btn-rust:hover, .tfc-submit button[type="submit"]:hover, .comment-form .submit:hover { background: var(--rust-dark); color: #fff; }
.tf-btn-pine { background: var(--pine); color: var(--bone); }
.tf-btn-pine:hover { background: #243a2d; color: var(--bone); }
.tf-btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.tf-btn-line:hover { border-color: var(--ink); color: var(--ink); }
.tf-btn-line[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--bone); }
.tf-btn-bone { background: var(--bone); color: var(--ink); }
.tf-btn-bone:hover { background: #fff; color: var(--ink); }
.tf-btn-ghost-light { border-color: #8FA394; color: var(--bone); }
.tf-btn-ghost-light:hover { border-color: var(--bone); color: #fff; }
.tf-btn-lg { min-height: 50px; padding: 13px 24px; font-size: 19px; }
.tf-btn:disabled { opacity: .6; cursor: progress; }
.tfc-i { flex: 0 0 auto; }

/* ---------- Top bar + header ---------- */
.tf-topbar {
	background: var(--ink); color: #E8E1D3; text-align: center;
	font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 9px 16px;
}
.tf-topbar a { color: var(--ochre); }
.tf-header { border-bottom: 1px solid var(--line); background: var(--bone); position: relative; z-index: 20; }
.tf-header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.tf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.tf-logo .tf-mark { flex: 0 0 auto; }
.tf-logo span { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; }
@media (max-width: 600px) { .tf-logo span { font-size: 22px; } }
.custom-logo-link img { max-height: 48px; width: auto; }
.tf-nav { flex: 1; display: flex; align-items: center; gap: 20px; }
.tf-nav nav { flex: 1; }
.tf-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.tf-menu > li { position: relative; }
.tf-menu a {
	display: block; padding: 10px 11px; text-decoration: none;
	font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
}
.tf-menu .current-menu-item > a, .tf-menu .current-menu-ancestor > a { color: var(--rust-dark); }
.tf-menu .sub-menu {
	list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 200px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: none;
}
.tf-menu li:hover > .sub-menu, .tf-menu li:focus-within > .sub-menu { display: block; }
.tf-header-actions { display: flex; align-items: center; gap: 14px; }
.tf-header-search input {
	width: 170px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	background: var(--paper); font-size: 15px;
}
.tf-header-link { font-weight: 600; text-decoration: none; padding: 10px 2px; }
.tf-menu-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; cursor: pointer;
}
@media (max-width: 1100px) {
	.tf-header-search { display: none; }
}
@media (max-width: 960px) {
	.tf-menu-toggle { display: inline-flex; }
	.tf-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		background: var(--bone); border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
	}
	.tf-nav.is-open { display: flex; }
	.tf-menu { flex-direction: column; }
	.tf-menu .sub-menu { position: static; display: block; border: 0; background: none; padding-left: 14px; }
	.tf-header-actions { flex-wrap: wrap; }
	.tf-header-search { display: block; flex: 1 1 100%; }
	.tf-header-search input { width: 100%; }
}

/* ---------- Hero ---------- */
.tf-hero { position: relative; overflow: hidden; background: var(--pine); color: var(--bone); }
.tf-topo { position: absolute; inset: 0; width: 100%; height: 100%; color: #E8E1D3; opacity: .12; pointer-events: none; }
.tf-hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 88px; }
.tf-hero-copy { flex: 1 1 520px; min-width: 0; }
.tf-hero .tf-eyebrow { color: var(--ochre); letter-spacing: .2em; }
.tf-hero h1 {
	font-family: var(--display); font-weight: 700; font-size: clamp(46px, 6vw, 72px);
	line-height: .98; letter-spacing: .01em; text-transform: uppercase; margin: 16px 0 20px;
}
.tf-hero-sub { font-size: 19px; line-height: 1.55; max-width: 540px; margin: 0 0 30px; color: #DCD5C6; }
.tf-hero-search { display: flex; max-width: 580px; }
.tf-hero-search input {
	flex: 1; min-width: 0; padding: 15px 16px; border: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	background: var(--bone); color: var(--ink); font-size: 17px;
}
.tf-hero-search button {
	padding: 15px 24px; background: var(--rust); color: #fff; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.tf-hero-search button:hover { background: var(--rust-dark); }
.tf-hero-kit { flex: 1 1 380px; max-width: 460px; }
@media (max-width: 700px) {
	.tf-hero-inner { padding-top: 48px; padding-bottom: 56px; gap: 36px; }
}

/* ---------- "What did you pack?" ---------- */
.tfc-kit fieldset { margin: 0; border: 0; padding: 22px 24px 24px; background: var(--bone); color: var(--ink); border-radius: var(--radius); }
.tfc-kit legend {
	float: left; width: 100%; padding: 0; margin-bottom: 4px;
	font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .04em; text-transform: uppercase;
}
.tfc-kit-sub { clear: both; margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.tfc-kit-options { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.tfc-kit-opt { position: relative; cursor: pointer; }
.tfc-kit-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tfc-kit-opt span {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; background: transparent;
}
.tfc-kit-opt span::before {
	content: ''; width: 14px; height: 14px; margin-right: 8px; border: 1.5px solid currentColor; border-radius: 2px; flex: 0 0 auto;
}
.tfc-kit-opt input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--bone); }
.tfc-kit-opt input:checked + span::before {
	background: var(--rust); border-color: var(--rust);
	box-shadow: inset 0 0 0 2px var(--pine);
}
.tfc-kit-opt input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.tfc-kit-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tfc-kit.is-compact fieldset { background: var(--paper); border: 1px solid var(--line); padding: 18px; }
.tfc-kit.is-compact legend { font-size: 22px; margin-bottom: 12px; }
.tfc-kit.is-compact .tfc-kit-opt span { font-size: 14px; min-height: 38px; }

/* ---------- Sections ---------- */
.tf-section { padding-top: 64px; padding-bottom: 24px; }
.tf-section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px;
	margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.tf-section-head a { font-weight: 600; }
.tf-section > .tf-h2 { margin-bottom: 22px; }

.tf-meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tf-meal {
	display: flex; align-items: center; gap: 14px; padding: 18px; text-decoration: none;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.tf-meal:hover { border-color: var(--ink); color: var(--ink); }
.tf-meal-icon { flex: 0 0 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tf-meal-name { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.tf-meal-sub { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Tiles ---------- */
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 32px 24px; }
.tf-tile-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.tf-tile-link:hover .tf-tile-title { color: var(--rust-dark); }
.tf-tile-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.tf-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tf-crew-chip {
	position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
	background: var(--ink); color: var(--ochre); border-radius: 3px; padding: 4px 8px;
	font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.tf-tile-kicker { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--rust-dark); }
.tf-tile-title { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: .01em; }
.tf-tile-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--muted); }
.tf-tile-rating { color: var(--ink); font-weight: 600; }

/* ---------- Method band ---------- */
.tf-band { margin-top: 40px; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tf-band-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.tf-band-copy { flex: 1 1 300px; }
.tf-band-copy p { margin: 6px 0 0; color: var(--muted); }
.tf-chips { flex: 2 1 560px; display: flex; flex-wrap: wrap; gap: 8px; }
.tf-chip {
	background: var(--paper); text-decoration: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 16px;
	font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .05em; text-transform: uppercase;
}
.tf-chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Plans ---------- */
.tf-plans-section { padding-top: 72px; padding-bottom: 72px; }
.tf-plans-head { max-width: 680px; margin-bottom: 32px; }
.tf-plans-head p { margin: 12px 0 0; font-size: 18px; color: var(--muted); }
.tf-plans { display: flex; flex-wrap: wrap; gap: 20px; }
.tf-plan { flex: 1 1 320px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; }
.tf-plan .tf-plan-label { color: var(--muted); }
.tf-plan-price { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1.1; margin: 4px 0 14px; }
.tf-plan ul { margin: 6px 0 24px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.tf-plan .tf-btn { margin-top: auto; }
.tf-plan-crew { background: var(--pine); color: var(--bone); border-color: var(--pine); }
.tf-plan-crew .tf-plan-label { color: var(--ochre); }
.tf-plan-note { margin-top: auto; font-weight: 600; color: var(--ochre); }
.tf-plan-chef { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.tf-plan-chef .tf-plan-label { color: var(--rust-dark); }
.tf-plan-title { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.05; text-transform: uppercase; margin: 8px 0 12px; }
.tf-plan-chef p { margin: 0 0 20px; color: var(--ink-2); }
.tf-plan-chef a { font-weight: 600; margin-top: auto; }

/* ---------- Footer ---------- */
.tf-footer { background: var(--ink); color: #E8E1D3; margin-top: 32px; }
.tf-footer a { color: #E8E1D3; text-decoration: none; }
.tf-footer a:hover { color: var(--ochre); }
.tf-footer-inner { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.tf-footer-brand { flex: 1 1 320px; }
.tf-footer-name { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .06em; text-transform: uppercase; }
.tf-footer-brand p { margin: 8px 0 20px; max-width: 380px; color: #BFB6A5; }
.tf-footer-col { flex: 0 1 180px; display: flex; flex-direction: column; gap: 10px; }
.tf-footer-h { font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); }
.tf-footer-extra { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tf-footer-base { padding-top: 18px; padding-bottom: 32px; border-top: 1px solid #3F3A33; font-size: 14px; color: #BFB6A5; }
.tfc-signup { display: flex; flex-wrap: wrap; max-width: 420px; }
.tfc-signup input[type="email"] {
	flex: 1 1 200px; min-width: 0; padding: 13px 14px; border: 1px solid #5B544A; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	background: #2E2A25; color: var(--bone);
}
.tfc-signup button {
	padding: 13px 18px; background: var(--ochre); color: var(--ink); border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer;
	font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
}
.tfc-signup-msg { margin: 10px 0 0; color: var(--ochre); }
.tfc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Breadcrumbs ---------- */
.tf-crumbs ol { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.tf-crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.tf-crumbs a { color: var(--muted); }

/* ---------- Recipe page ---------- */
.tf-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 20px 0 72px; }
.tf-recipe { flex: 999 1 640px; min-width: 0; }
.tf-sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.tfc-kicker-row {
	display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
	font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-dark);
}
.tfc-kicker-row a { color: var(--rust-dark); text-decoration: none; }
.tfc-kicker-row a:hover { text-decoration: underline; }
.tfc-tested { display: inline-flex; align-items: center; gap: 6px; color: var(--pine); }
.tfc-crew-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: var(--ochre); padding: 2px 8px; border-radius: 3px; letter-spacing: .08em; }
.tf-recipe-title {
	font-family: var(--display); font-weight: 700; font-size: clamp(42px, 5.4vw, 64px);
	line-height: .98; letter-spacing: .01em; text-transform: uppercase; margin: 10px 0 16px;
}
.tfc-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 15px; color: var(--ink-2); margin-bottom: 22px; }
.tfc-meta-rating { text-decoration: none; }
.tfc-stars { color: var(--star); letter-spacing: 2px; }
.tfc-stars-off { color: var(--line); }
.tfc-chef-badge {
	display: inline-block; margin-left: 4px; padding: 1px 7px; border: 1px solid var(--pine); color: var(--pine); border-radius: 3px;
	font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px;
}
.tfc-chef-badge.is-crew { border-color: var(--ink); color: var(--ink); }
.tfc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tfc-actions .tf-btn { min-height: 42px; padding: 9px 15px; }
.tfc-embed-panel { margin: -12px 0 28px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tfc-embed-panel label { display: block; font-weight: 600; margin-bottom: 8px; }
.tfc-embed-panel textarea {
	width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 10px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bone); margin-bottom: 10px;
}

.tfc-quick { border-left: 4px solid var(--pine); background: var(--paper); padding: 18px 22px; margin-bottom: 28px; }
.tfc-quick .tfc-kicker { color: var(--pine); margin-bottom: 6px; font-size: 15px; }
.tfc-quick p { margin: 0; font-size: 18px; line-height: 1.55; }

.tf-recipe-hero { margin: 0 0 28px; }
.tf-recipe-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.tf-recipe-hero figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tf-recipe-hero .tfc-photo-credit a { color: var(--muted); }
.tf-recipe-hero .tfc-photo-invite {
	margin-top: 10px; padding: 12px 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2);
	background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.tfc-photo-invite strong { color: var(--ink); }
.tfc-photo-signin { font-weight: 600; white-space: nowrap; }
.tfc-photo-error { display: block; margin-top: 6px; color: var(--rust-dark); font-weight: 600; }
.tfc-photo-form { margin-top: 8px; }
.tfc-photo-form summary { display: inline-block; cursor: pointer; font-weight: 700; color: var(--rust-dark); text-decoration: underline; text-underline-offset: 3px; }
.tfc-photo-form form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 12px; }
.tfc-photo-form label { font-weight: 700; color: var(--ink); }
.tfc-photo-form label span { font-weight: 400; color: var(--muted); }
.tfc-photo-form input[type="file"] { font-size: 14px; }
.tfc-photo-form .tfc-photo-own { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.tfc-photo-form .tfc-photo-own input { margin-top: 4px; }
.tf-recipe-hero-blank { aspect-ratio: 16 / 9; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; opacity: .9; }

.tf-prose { font-size: 19px; line-height: 1.65; margin-bottom: 36px; }
.tf-prose p { margin: 0 0 18px; }
.tf-prose h2 { font-family: var(--display); font-weight: 700; font-size: 32px; text-transform: uppercase; margin: 36px 0 12px; }
.tf-prose h3 { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; margin: 28px 0 10px; }
.tf-prose img { border-radius: var(--radius); }

/* ---------- Recipe card ---------- */
.tfc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 16px; }
.tfc-card-head { background: var(--pine); color: var(--bone); padding: 22px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.tfc-card-head .tfc-kicker { color: var(--ochre); font-size: 14px; }
.tfc-card-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 36px); letter-spacing: .02em; text-transform: uppercase; margin-top: 2px; }
.tfc-card-tools { display: flex; gap: 8px; }
.tfc-card-tools .tf-btn { min-height: 40px; padding: 8px 14px; font-size: 16px; }

.tfc-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-bottom: 1px solid var(--line); }
.tfc-stats > div { padding: 16px 22px; border-right: 1px solid var(--line-soft); }
.tfc-stats dt { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tfc-stats dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 24px; }

.tfc-fit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--pine-soft); }
.tfc-fit-label { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--pine); margin-right: 8px; }
.tfc-fit-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tfc-fit-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #8FA394; border-radius: 3px; padding: 4px 10px; font-size: 14px; font-weight: 600; color: var(--pine); background: var(--paper); }
.tfc-fit-chip.is-off { color: #6B5F52; border-color: var(--line); }
.tfc-fit-chip.is-cold { color: var(--lake); border-color: #93A6B0; }

.tfc-card-body { display: flex; flex-wrap: wrap; }
.tfc-card-ingredients { flex: 1 1 300px; padding: 26px 28px; border-right: 1px solid var(--line); }
.tfc-card-steps { flex: 1.4 1 360px; padding: 26px 28px; }
.tfc-card-subhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.tfc-card h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; }
.tfc-card-steps h3 { margin-bottom: 16px; }
.tfc-scale { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.tfc-scale button { background: transparent; border: 0; padding: 6px 12px; min-width: 40px; min-height: 36px; font-weight: 600; font-size: 14px; cursor: pointer; }
.tfc-scale button[aria-pressed="true"] { background: var(--pine); color: var(--bone); }
.tfc-ingredients { list-style: none; margin: 0; padding: 0; }
.tfc-ingredients li { border-bottom: 1px solid var(--line-soft); }
.tfc-ingredients label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 17px; cursor: pointer; }
.tfc-ingredients input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--pine); flex: 0 0 auto; }
.tfc-ingredients input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.tfc-gear-h { font-size: 22px !important; margin-top: 26px; margin-bottom: 8px; }
.tfc-gear { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.8; }
.tfc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.tfc-steps li { display: flex; gap: 16px; align-items: flex-start; scroll-margin-top: 16px; }
.tfc-step-n {
	flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bone);
	display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 18px;
}
.tfc-steps strong { display: block; font-size: 17px; margin-bottom: 2px; padding-top: 4px; }
.tfc-steps p { margin: 0; font-size: 17px; line-height: 1.55; }

.tfc-notes { border-top: 1px solid var(--line); background: var(--sand); padding: 26px 28px; }
.tfc-notes h3 { display: flex; align-items: center; gap: 10px; font-size: 28px; margin-bottom: 14px; color: var(--ink); }
.tfc-notes h3 svg { color: var(--pine); }
.tfc-notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tfc-notes-grid > div { background: var(--paper); padding: 16px 18px; }
.tfc-note-label { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--rust-dark); margin-bottom: 6px; }
.tfc-notes-grid p { margin: 0; font-size: 16px; line-height: 1.5; }

/* Crew lock */
.tfc-locked { flex: 1.4 1 360px; padding: 26px 28px; display: flex; align-items: flex-start; }
.tfc-lock-panel { width: 100%; background: var(--ink); color: var(--bone); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.tfc-lock-panel svg { color: var(--ochre); margin: 0 auto; }
.tfc-lock-title { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; margin: 8px 0 6px; }
.tfc-lock-panel p { margin: 0 0 16px; color: #DCD5C6; }
.tfc-lock-panel .tf-btn { width: 100%; max-width: 320px; }
.tfc-lock-signin { display: block; margin-top: 12px; color: var(--bone); font-size: 14px; }
.tfc-lock-signin:hover { color: var(--ochre); }
.tfc-card.is-locked .tfc-card-ingredients::after {
	content: 'More ingredients for Crew members'; display: block; margin-top: 12px; font-size: 14px; color: var(--muted); font-style: italic;
}

@media (max-width: 700px) {
	.tfc-card-head, .tfc-fit-row, .tfc-card-ingredients, .tfc-card-steps, .tfc-notes, .tfc-locked { padding-left: 18px; padding-right: 18px; }
	.tfc-card-ingredients { border-right: 0; border-bottom: 1px solid var(--line); }
	.tfc-stats > div { padding: 12px 16px; }
	.tfc-stats dd { font-size: 20px; }
}

/* FAQs */
.tfc-faqs { margin-top: 48px; }
.tfc-faqs h2 { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: .03em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tfc-faqs details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.tfc-faqs summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style-position: outside; }
.tfc-faqs details p { margin: 10px 0 0; font-size: 17px; color: var(--ink-2); }

/* Rating + comments */
.tf-rate-section { margin-top: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; scroll-margin-top: 16px; }
.tf-rate-section > h2 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .03em; text-transform: uppercase; }
.tf-rate-section > p { margin: 4px 0 8px; color: var(--muted); }
.tfc-rate-stars { display: flex; gap: 2px; }
.tfc-rate-stars button { font-size: 32px; line-height: 1; background: none; border: 0; padding: 6px; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--line); }
.tfc-rate-stars button.is-on { color: var(--star); }
.tfc-rate-stars:hover button { color: var(--star); }
.tfc-rate-stars button:hover ~ button { color: var(--line); }
.tfc-rate-status { min-height: 1.4em; margin: 2px 0 18px; font-size: 15px; color: var(--muted); }
.tf-comments { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.tf-comments-title { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; margin-bottom: 10px; }
.tf-comment-list, .tf-comment-list .children { list-style: none; margin: 0; padding: 0; }
.tf-comment-list .children { padding-left: 28px; }
.tf-comment-body { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.tf-comment-avatar { border-radius: 50%; flex: 0 0 42px; }
.tf-comment-meta { font-size: 15px; }
.tf-comment-meta time { color: var(--muted); font-size: 13px; margin-left: 6px; }
.tf-comment-text p { margin: 4px 0 6px; font-size: 16px; }
.comment-reply-link { font-size: 14px; font-weight: 600; }
.comment-respond { margin-top: 18px; }
.comment-reply-title { font-family: var(--body); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bone);
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Sidebar */
.tf-side-crew { background: var(--pine); color: var(--bone); border-radius: var(--radius); padding: 24px; }
.tf-side-crew .tf-plan-label { color: var(--ochre); font-size: 14px; }
.tf-side-title { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; text-transform: uppercase; margin: 6px 0 10px; }
.tf-side-crew p { margin: 0 0 16px; color: #DCD5C6; font-size: 16px; }
.tf-side-related h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.tf-side-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tf-side-related a { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.tf-side-thumb { flex: 0 0 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; }
.tf-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tf-side-related strong { display: block; font-size: 16px; line-height: 1.25; }
.tf-side-related small { font-size: 14px; color: var(--muted); }

/* ---------- Archives ---------- */
.tf-archive-head { padding: 16px 0 28px; max-width: 820px; }
.tf-archive-title {
	font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: .01em; text-transform: uppercase;
}
.tf-archive-intro { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.tf-archive-intro p { margin: 0 0 12px; }
.tf-archive-layout { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; padding-bottom: 48px; }
.tf-archive-filter { flex: 1 1 260px; max-width: 320px; }
.tf-archive-results { flex: 999 1 560px; min-width: 0; }
@media (max-width: 860px) { .tf-archive-filter { max-width: none; } }
.tf-result-count { margin: 0 0 18px; font-weight: 600; }
.tf-empty { padding: 28px; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.tf-empty p { margin: 0; }
.tf-archive-faqs { margin-top: 24px; margin-bottom: 48px; max-width: 820px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.nav-links .page-numbers {
	display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; justify-content: center; padding: 6px 12px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.nav-links .current { background: var(--pine); border-color: var(--pine); color: var(--bone); }
.tf-inline-search { display: flex; gap: 8px; margin-top: 18px; max-width: 520px; }
.tf-inline-search input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); }

.tf-chef-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 20px 0 36px; }
.tf-chef-avatar { border-radius: 50%; }
.tf-chef-head + .tf-h2 { margin-bottom: 22px; }

/* ---------- Pages + plugin screens ---------- */
.tf-page { padding-bottom: 72px; max-width: 880px; }
.tf-page-title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 58px); line-height: 1; text-transform: uppercase; margin: 20px 0 24px; }
.tf-404 { padding-top: 40px; }

.tfc-notice { padding: 14px 18px; border-left: 4px solid var(--pine); background: var(--pine-soft); margin-bottom: 20px; font-size: 16px; }
.tfc-notice.is-error { border-color: var(--rust); background: #F6E6DC; }
.tfc-pill { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--sand); }

.tfc-join-plan { background: var(--pine); color: var(--bone); border-radius: var(--radius); padding: 32px; max-width: 560px; }
.tfc-join-plan .tfc-kicker { color: var(--ochre); }
.tfc-join-price { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.1; margin: 6px 0 10px; }
.tfc-join-plan ul { padding-left: 20px; margin: 12px 0 24px; font-size: 18px; }
.tfc-join-plan a:not(.tf-btn) { color: var(--ochre); }
.tfc-join-plan .tf-btn-line { border-color: #8FA394; color: var(--bone); }
.tfc-join-note, .tfc-join-status { color: #DCD5C6; }
.tfc-admin-hint { font-size: 14px; color: var(--ochre); }

.tfc-account { display: flex; flex-direction: column; gap: 20px; font-size: 17px; }
.tfc-account-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.tfc-account-panel h2 { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.tfc-account-panel p { margin: 0 0 12px; }
.tfc-mini-list { margin: 0; padding-left: 20px; }
.tfc-account-login form p { margin: 0 0 12px; }
.tfc-account-login label { display: block; font-weight: 600; }
.tfc-account-login input[type="text"], .tfc-account-login input[type="password"] {
	width: 100%; max-width: 380px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper);
}
.tfc-account-login .button-primary, .tfc-account-login input[type="submit"] {
	background: var(--rust); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 12px 20px; cursor: pointer;
	font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
}

.tfc-gate-box { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tfc-submit { display: flex; flex-direction: column; gap: 4px; }
.tfc-submit label { display: block; font-weight: 700; margin-bottom: 4px; }
.tfc-submit label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.tfc-submit input[type="text"], .tfc-submit input[type="number"], .tfc-submit select, .tfc-submit textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper);
}
.tfc-submit p { margin: 0 0 14px; }
.tfc-submit-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 14px; }
.tfc-submit-fit { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tfc-submit-fit legend { font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 0 6px; }
.tfc-submit-fit label { font-weight: 500; display: inline-flex; gap: 6px; align-items: center; margin: 0; }

.tfc-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 99;
	background: var(--ink); color: var(--bone); padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600;
	transition: opacity .2s, transform .2s;
}
.tfc-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Print: just the recipe card ---------- */
@media print {
	body { background: #fff; font-size: 12pt; }
	.tf-topbar, .tf-header, .tf-footer, .tf-sidebar, .tf-crumbs, .tfc-actions, .tfc-embed-panel, .tf-recipe-hero,
	.tf-prose, .tf-rate-section, .tfc-faqs, .tfc-card-tools, .tfc-scale, .tfc-lock-panel .tf-btn, .tfc-meta-line, .tfc-quick { display: none !important; }
	.tf-layout { display: block; padding: 0; }
	.tf-recipe-title { font-size: 24pt; margin: 0 0 8pt; }
	.tfc-card { border: 1px solid #999; }
	.tfc-card-head { background: none; color: #000; border-bottom: 1px solid #999; }
	.tfc-card-head .tfc-kicker { color: #555; }
	.tfc-fit-row, .tfc-notes { background: none; }
	.tfc-step-n { background: none; color: #000; border: 1px solid #000; }
	.tfc-ingredients input { display: none; }
	.tfc-card-body, .tfc-notes-grid { break-inside: avoid; }
	a { text-decoration: none; color: #000; }
}
