/* طعم البيت — main stylesheet (RTL, mobile-first, light/dark) */

:root {
	--pri: var(--pri-l, #3F6B3A);
	--acc: var(--acc-l, #A8322D);
	--soft: var(--soft-l, #E4EDE2);
	--bg: #FFFFFF;
	--surf: #FFFFFF;
	--alt: #F6F4F1;
	--line: #ECE8E2;
	--line2: #DCD6CD;
	--txt: #1F2421;
	--txt2: #4A4E4B;
	--muted: #5E625F;
	--img: #E9E4DC;
	--on-pri: #FFFFFF;
	--foot: #1F2421;
	--foot-txt: #B9BDB9;
	--star: #B7791F;
	--f-head: "El Messiri", system-ui, "Segoe UI", Tahoma, sans-serif;
	--f-body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
	--r: 16px;
	--wrap: 1240px;
	--pad: clamp(16px, 4vw, 24px);
	color-scheme: light;
}

[data-theme="dark"] {
	--pri: var(--pri-d, #8DBB86);
	--acc: var(--acc-d, #F08C80);
	--soft: #26302A;
	--bg: #151816;
	--surf: #1C201D;
	--alt: #1A1E1B;
	--line: #2E3430;
	--line2: #3A413C;
	--txt: #ECEAE6;
	--txt2: #D2D4D0;
	--muted: #B4B8B4;
	--img: #2A302C;
	--on-pri: #151816;
	--foot: #0F1210;
	--star: #E8B04B;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	[data-theme="auto"] {
		--pri: var(--pri-d, #8DBB86);
		--acc: var(--acc-d, #F08C80);
		--soft: #26302A;
		--bg: #151816;
		--surf: #1C201D;
		--alt: #1A1E1B;
		--line: #2E3430;
		--line2: #3A413C;
		--txt: #ECEAE6;
		--txt2: #D2D4D0;
		--muted: #B4B8B4;
		--img: #2A302C;
		--on-pri: #151816;
		--foot: #0F1210;
		--star: #E8B04B;
		color-scheme: dark;
	}
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--txt); font-family: var(--f-body); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--pri); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
.tb-c { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.tb-narrow { max-width: 860px; }
.tb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.tb-skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--pri); color: var(--on-pri); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.tb-skip:focus { top: 8px; }
.tb-muted { color: var(--muted); }
.tb-ic { flex: none; vertical-align: middle; }
.tb-empty { color: var(--muted); padding: 24px 0; }

/* Buttons */
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--pri); background: var(--pri); color: var(--on-pri); font-weight: 600; text-decoration: none; cursor: pointer; }
.tb-btn:hover { text-decoration: none; filter: brightness(1.06); }
.tb-btn-ghost { background: var(--surf); color: var(--txt); border-color: var(--line2); }
.tb-btn-light { background: #FFFFFF; color: #1F2421; border-color: #FFFFFF; }
.tb-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-pill { display: inline-block; background: var(--soft); color: var(--txt); font-size: 14px; font-weight: 600; padding: 4px 14px; border-radius: 999px; }

/* ───────── Header ───────── */
.tb-header { background: var(--surf); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.tb-header-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 12px; }
.tb-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--txt); text-decoration: none; }
.tb-logo:hover { text-decoration: none; }
.tb-logo-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--pri); color: var(--on-pri); display: inline-flex; align-items: center; justify-content: center; }
.tb-logo-text { font-family: var(--f-head); font-size: 26px; font-weight: 700; line-height: 1; }
.tb-logo-img { max-height: 48px; width: auto; }
.tb-nav { flex: 1 1 auto; min-width: 0; }
.tb-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; flex-wrap: wrap; font-weight: 500; }
.tb-menu a { color: var(--txt); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.tb-menu a:hover, .tb-menu .current-menu-item > a, .tb-menu .current-cat > a { color: var(--pri); }
.tb-header-tools { display: flex; align-items: center; gap: 10px; flex: 0 1 340px; }
.tb-search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surf); color: var(--muted); }
.tb-search:focus-within { border-color: var(--pri); }
.tb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--txt); font-size: 15px; }
.tb-search input::placeholder { color: var(--muted); opacity: 1; }
.tb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.tb-mode { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line2); background: var(--surf); color: var(--txt); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tb-mode-sun { display: none; }
[data-theme="dark"] .tb-mode-sun { display: inline-flex; }
[data-theme="dark"] .tb-mode-moon { display: none; }
@media (prefers-color-scheme: dark) {
	[data-theme="auto"] .tb-mode-sun { display: inline-flex; }
	[data-theme="auto"] .tb-mode-moon { display: none; }
}

/* Phones: logo + toggle on row 1, search row 2, menu scrolls sideways on row 3 */
@media (max-width: 760px) {
	.tb-header-in { gap: 10px 12px; }
	.tb-logo { order: 1; flex: 1 1 auto; }
	.tb-logo-text { font-size: 23px; }
	.tb-logo-mark { width: 40px; height: 40px; }
	.tb-header-tools { order: 2; display: contents; }
	.tb-mode { order: 1; }
	.tb-search { order: 3; flex: 1 1 100%; }
	.tb-nav { order: 4; flex: 1 1 100%; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.tb-nav::-webkit-scrollbar { display: none; }
	.tb-menu { flex-wrap: nowrap; white-space: nowrap; gap: 8px; }
	.tb-menu a { min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--alt); font-size: 15px; }
}

/* ───────── Shared blocks ───────── */
.tb-sec { padding-block: clamp(28px, 5vw, 48px) 8px; }
.tb-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; }
.tb-sec-head h2 { font-size: clamp(24px, 3.4vw, 32px); }
.tb-sec-head a { font-weight: 600; text-decoration: none; }

.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2.4vw, 24px); }
.tb-card { min-width: 0; }
.tb-card-link { display: flex; flex-direction: column; height: 100%; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--txt); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.tb-card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.tb-card-img { display: block; aspect-ratio: 4 / 3; background: var(--img); overflow: hidden; }
.tb-img { width: 100%; height: 100%; object-fit: cover; }
.tb-img-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); opacity: .6; }
.tb-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.tb-card-cat { font-size: 13px; font-weight: 600; color: var(--pri); }
.tb-card-title { font-family: var(--f-head); font-size: 19px; font-weight: 700; line-height: 1.45; }
.tb-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.tb-card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Breadcrumbs */
.tb-crumbs { font-size: 14px; color: var(--muted); padding-block: 18px 12px; }
.tb-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tb-crumbs li + li::before { content: "›"; margin-inline-end: 4px; color: var(--muted); }
.tb-crumbs a { text-decoration: none; }

/* Pagination */
.tb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 8px; }
.tb-pages a, .tb-pages span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line2); color: var(--txt); text-decoration: none; font-weight: 600; }
.tb-pages .current { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.tb-pages .dots { border: 0; }

/* Ads — reserve space so the page does not jump (better CLS) */
.tb-ad { margin: 8px 0 20px; min-height: 100px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.tb-ad-bottom { margin-top: 28px; }
.tb-ad ins { display: block; width: 100%; }

/* ───────── Home ───────── */
.tb-hero { background: var(--alt); }
.tb-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px); padding-block: clamp(28px, 6vw, 64px); }
.tb-hero-text { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tb-hero-text h1 { font-size: clamp(32px, 5.4vw, 54px); }
.tb-hero-text p { font-size: clamp(16px, 2vw, 18px); color: var(--txt2); max-width: 540px; margin: 0; }
.tb-feature { flex: 1 1 420px; display: flex; flex-direction: column; background: var(--surf); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--txt); text-decoration: none; min-width: 0; }
.tb-feature:hover { text-decoration: none; }
.tb-feature-img { display: block; aspect-ratio: 16 / 10; background: var(--img); overflow: hidden; }
.tb-feature-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; }
.tb-feature-tag { font-size: 13px; font-weight: 600; color: var(--acc); }
.tb-feature-title { font-family: var(--f-head); font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; line-height: 1.4; }

.tb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 160px), 1fr)); gap: 14px; }
.tb-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); color: var(--txt); text-decoration: none; }
.tb-cat:hover { border-color: var(--pri); text-decoration: none; }
.tb-cat-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--soft); color: var(--pri); display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-size: 24px; font-weight: 700; }
.tb-cat-name { font-size: 15px; font-weight: 600; line-height: 1.4; }

.tb-band { background: var(--pri); color: var(--on-pri); margin-top: clamp(28px, 5vw, 48px); }
[data-theme="dark"] .tb-band { background: var(--soft); color: var(--txt); }
.tb-band-in { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-block: clamp(32px, 6vw, 56px); }
.tb-band-text { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tb-band-text h2 { font-size: clamp(26px, 3.6vw, 34px); }
.tb-band-text p { margin: 0; opacity: .92; }
.tb-band-grid { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; min-width: 0; }
.tb-band .tb-card-link { border-color: transparent; }

.tb-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.tb-tip { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); color: var(--txt); text-decoration: none; }
.tb-tip:hover { text-decoration: none; border-color: var(--pri); }
.tb-tip-img { width: 104px; height: 86px; flex: none; border-radius: 12px; overflow: hidden; background: var(--img); }
.tb-tip-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-tip-title { font-weight: 600; line-height: 1.5; }
.tb-tip-body .tb-muted { font-size: 14px; line-height: 1.6; }

/* ───────── Page heads (category, search, author) ───────── */
.tb-page-head { background: var(--alt); padding-bottom: clamp(22px, 4vw, 36px); }
.tb-page-head h1 { font-size: clamp(28px, 4.6vw, 44px); }
.tb-page-desc { color: var(--txt2); max-width: 760px; margin-top: 10px; }
.tb-page-desc p:last-child { margin-bottom: 0; }
.tb-page-search { max-width: 520px; margin-top: 16px; }
.tb-sort { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tb-sort a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); color: var(--txt); text-decoration: none; font-weight: 600; font-size: 15px; background: var(--surf); }
.tb-sort a.on { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.tb-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.tb-section-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surf); color: var(--txt); text-decoration: none; }
.tb-section-card:hover { text-decoration: none; border-color: var(--pri); }
.tb-author-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* ───────── Single recipe ───────── */
.tb-single { padding-bottom: 8px; }
.tb-article { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 28px); padding-bottom: 12px; }
.tb-art-head { display: flex; flex-direction: column; gap: 14px; }
.tb-art-head h1 { font-size: clamp(28px, 5vw, 44px); }
.tb-lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--txt2); margin: 0; }
.tb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.tb-by-author { display: inline-flex; align-items: center; gap: 8px; color: var(--txt); font-weight: 600; text-decoration: none; }
.tb-by-rating { display: inline-flex; align-items: center; gap: 6px; }
.tb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.tb-avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--pri); font-weight: 700; }
.tb-avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.tb-avatar-xl { width: 96px; height: 96px; font-size: 36px; }
.tb-stars { color: var(--line2); letter-spacing: 1px; }
.tb-stars .on { color: var(--star); }
.tb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-act { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surf); color: var(--txt); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.tb-act:hover { text-decoration: none; border-color: var(--pri); }
.tb-act-wa { color: #1B6B3A; }
.tb-act-fb { color: #1E4F9A; }
.tb-act-pin { color: #9F1D1D; }
[data-theme="dark"] .tb-act-wa, [data-theme="dark"] .tb-act-fb, [data-theme="dark"] .tb-act-pin { color: var(--txt); }
.tb-hero-img { margin: 0; border-radius: 18px; overflow: hidden; background: var(--img); aspect-ratio: 16 / 9; }

.tb-prose { font-size: 18px; }
.tb-prose h2 { font-size: clamp(22px, 3vw, 28px); margin: 1.2em 0 .5em; }
.tb-prose h3 { font-size: 21px; margin: 1em 0 .4em; }
.tb-prose ul, .tb-prose ol { padding-inline-start: 1.3em; }
.tb-prose img { border-radius: 12px; }
.tb-prose figure { margin: 1.2em 0; }
.tb-prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-inline-start: 4px solid var(--pri); background: var(--alt); border-radius: 0 10px 10px 0; }

.tb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 160px), 1fr)); gap: 12px; margin: 0; }
.tb-facts div { background: var(--alt); border-radius: 14px; padding: 14px; text-align: center; }
.tb-facts dt { font-size: 14px; color: var(--muted); }
.tb-facts dd { margin: 0; font-size: 19px; font-weight: 700; }

.tb-box { border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 26px); }
.tb-ings h2, .tb-steps h2, .tb-faq h2, .tb-extra h2, .tb-note h2, .tb-rate h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.tb-ings ul { list-style: none; margin: 0; padding: 0; }
.tb-ings li { border-bottom: 1px solid var(--line); }
.tb-ings li:last-child { border-bottom: 0; }
.tb-ings label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 17px; cursor: pointer; }
.tb-ings input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--pri); flex: none; }
.tb-ings input:checked + span { text-decoration: line-through; color: var(--muted); }
.tb-ings strong { font-weight: 600; }

.tb-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.tb-steps li { display: flex; gap: 14px; align-items: flex-start; scroll-margin-top: 16px; }
.tb-step-n { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--pri); color: var(--on-pri); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.tb-step-b { flex: 1; min-width: 0; }
.tb-step-b h3 { font-family: var(--f-body); font-size: 18px; margin: 6px 0 4px; }
.tb-step-b p { margin: 0 0 10px; color: var(--txt2); }
.tb-step-img { border-radius: 12px; width: 100%; max-width: 560px; aspect-ratio: 4 / 3; object-fit: cover; }

.tb-note { background: var(--soft); border-radius: 16px; padding: 18px 22px; }
.tb-note h2 { font-size: 20px; margin-bottom: 6px; }
.tb-note p { margin: 0; }
.tb-extra p { margin: 0; color: var(--txt2); }
.tb-faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surf); }
.tb-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.tb-faq details p { padding: 0 16px 14px; margin: 0; color: var(--txt2); }

.tb-rate { border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.tb-rate h2 { font-size: 20px; margin: 0; }
.tb-rate-stars { display: flex; direction: ltr; }
.tb-rate-stars button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 30px; line-height: 1; color: var(--line2); cursor: pointer; padding: 0; }
.tb-rate-stars button.on, .tb-rate-stars:not(.done) button:hover, .tb-rate-stars:not(.done) button:has(~ button:hover) { color: var(--star); }
.tb-rate-msg { flex: 1 1 100%; margin: 0; font-size: 15px; color: var(--pri); min-height: 1em; }
.tb-rate-msg:empty { display: none; }

.tb-authorbox { display: flex; gap: 16px; align-items: center; background: var(--alt); border-radius: 18px; padding: 18px 22px; }
.tb-authorbox-name { display: block; font-weight: 700; font-size: 18px; color: var(--txt); text-decoration: none; }
.tb-authorbox p { margin: 2px 0 0; color: var(--txt2); font-size: 15px; }

.tb-related { background: var(--alt); padding-block: clamp(32px, 5vw, 48px); margin-top: 24px; }
.tb-related h2 { font-size: clamp(24px, 3.4vw, 32px); }
.tb-related .tb-muted { margin: 4px 0 20px; }

/* Contact form */
.tb-contact p { display: flex; flex-direction: column; gap: 6px; }
.tb-contact label { font-weight: 600; }
.tb-contact input, .tb-contact textarea { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; background: var(--surf); }
.tb-contact input:focus, .tb-contact textarea:focus { border-color: var(--pri); outline: 0; }
.tb-hp { position: absolute !important; inset-inline-start: -9999px; }
.tb-alert { padding: 12px 16px; border-radius: 12px; }
.tb-alert-ok { background: var(--soft); }
.tb-alert-err { background: #FBE9E9; color: #8A1C1C; }

/* 404 */
.tb-404 { text-align: center; padding-block: clamp(40px, 8vw, 80px) 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tb-404-code { font-family: var(--f-head); font-size: clamp(72px, 14vw, 120px); font-weight: 700; color: var(--pri); line-height: 1; margin: 0; }
.tb-404 .tb-page-search { width: 100%; }

/* ───────── Footer ───────── */
.tb-footer { background: var(--foot); color: #E8E6E1; margin-top: clamp(32px, 6vw, 56px); }
.tb-related + .tb-c + .tb-footer, .tb-band + .tb-footer { margin-top: 0; }
.tb-footer-in { display: flex; flex-wrap: wrap; gap: 28px 64px; padding-block: 44px 24px; }
.tb-foot-brand { flex: 1 1 280px; }
.tb-foot-name { font-family: var(--f-head); font-size: 26px; font-weight: 700; color: #FFFFFF; }
.tb-foot-brand p { color: var(--foot-txt); font-size: 15px; margin: 8px 0 0; }
.tb-foot-col { flex: 0 1 200px; }
.tb-foot-title { display: block; font-weight: 600; color: #FFFFFF; margin-bottom: 8px; }
.tb-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tb-foot-links a { color: var(--foot-txt); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.tb-foot-links a:hover { color: #FFFFFF; }
.tb-copy { border-top: 1px solid #343A36; padding-block: 16px 24px; font-size: 14px; color: var(--foot-txt); }

/* Cookie notice */
.tb-cookie { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 50; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; background: var(--surf); color: var(--txt); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.tb-cookie[hidden] { display: none; }
.tb-cookie p { margin: 0; flex: 1 1 260px; font-size: 14px; }

/* Tablets */
@media (min-width: 761px) and (max-width: 1100px) {
	.tb-header-tools { flex-basis: 280px; }
	.tb-menu { gap: 4px 16px; }
}

/* Small phones */
@media (max-width: 420px) {
	body { font-size: 16px; }
	.tb-actions .tb-act { padding: 0 12px; font-size: 14px; }
	.tb-steps li { gap: 10px; }
	.tb-step-n { width: 34px; height: 34px; font-size: 16px; }
	.tb-authorbox { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tb-card-link { transition: none; }
	.tb-card-link:hover { transform: none; }
}

/* ───────── Print (recipe card) ───────── */
@media print {
	:root, [data-theme] { --bg: #fff; --surf: #fff; --alt: #f4f4f4; --txt: #000; --txt2: #222; --muted: #444; --line: #ccc; --pri: #000; --on-pri: #fff; }
	.tb-header, .tb-footer, .tb-ad, .tb-related, .tb-actions, .tb-rate, .tb-authorbox, .tb-crumbs, .tb-cookie, .tb-skip, .tb-faq, .tb-byline { display: none !important; }
	body { font-size: 12pt; }
	.tb-hero-img { max-width: 50%; aspect-ratio: auto; }
	.tb-ings input { display: none; }
	.tb-steps li, .tb-ings li { break-inside: avoid; }
	a { color: #000; text-decoration: none; }
}
