@font-face {
	font-family: 'Merriweather';
	font-style: normal;
	font-weight: 400 700;
	font-display: optional;
	src: url('/fonts/merriweather-latin.woff2') format('woff2');
}

html.recipeats-app-root {
	--app-nav-h: calc(3.9375rem + env(safe-area-inset-bottom, 0px));
	--app-action-bar-h: 3.25rem;
	--app-scaler-h: 3.3rem;
	--app-chrome-gap: 0.5rem;
}

.main-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 1rem;
	max-width: 800px;
	margin: 0 auto;
	border-bottom: 1px solid #333;
}

html.recipeats-app-root .main-nav,
.recipeats-app .main-nav {
	justify-content: center;
}

html.recipeats-app-root .nav-links-scroll,
.recipeats-app .nav-links-scroll {
	display: none !important;
}

html.recipeats-app-root .nav-brand,
.recipeats-app .nav-brand {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	width: 100%;
	text-align: center;
}

html.recipeats-app-root .nav-brand a,
.recipeats-app .nav-brand a {
	flex: 0 1 auto;
	text-align: center;
}

html.recipeats-app-root .nav-brand-emoji,
.recipeats-app .nav-brand-emoji {
	display: none;
}

html.recipeats-app-root .nav-brand .offline-badge,
.recipeats-app .nav-brand .offline-badge {
	position: static;
	transform: none;
}

.nav-brand a {
	font-size: 1.5rem;
	font-weight: bold;
	color: navajowhite;
	text-decoration: none;
	font-family: 'Merriweather', serif;
	letter-spacing: -0.02em;
}

.nav-links-scroll {
	display: flex;
	justify-content: flex-end;
	flex: 1;
	min-width: 0;
}

.nav-links {
	display: flex;
	gap: 1rem;
	flex-wrap: nowrap;
}

.nav-links a {
	color: #999;
	text-decoration: none;
	transition: color 180ms ease;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.35rem 0.25rem;
	box-sizing: border-box;
	white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
	color: navajowhite;
}

footer {
	margin-top: auto;
	padding: 2rem 0 0 0;
	background-color: #001a15;
	border-top: 1px solid #333;
	width: 100%;
	box-sizing: border-box;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
}

.footer-section {
	text-align: center;
}

.footer-section h3 {
	color: navajowhite;
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
	font-family: 'Merriweather', serif;
}

.footer-section p {
	color: #999;
	margin: 0;
	line-height: 1.4;
}

.footer-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-section ul li {
	margin-bottom: 0.25rem;
}

.footer-section a {
	color: #999;
	text-decoration: none;
	transition: color 180ms ease;
}

.footer-section a:hover {
	color: navajowhite;
}

.footer-bottom {
	text-align: center;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid #333;
	margin-bottom: 0;
	width: 100%;
	box-sizing: border-box;
}

.footer-bottom a,
.footer-section a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.footer-bottom a:hover,
.footer-section a:hover {
	color: navajowhite;
}

.footer-bottom a.active {
	font-weight: 600;
}

.content {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
	width: 100%;
}

@media (max-width: 768px) {
	.main-nav {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
		padding: 0.5rem;
	}

	.nav-brand {
		margin-bottom: 0.25rem;
		font-size: 1.3rem;
		text-align: center;
		width: 100%;
		justify-content: center;
	}

	.nav-brand a {
		font-size: 1.3rem;
	}

	.nav-links-scroll {
		width: 100%;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		/* hide scrollbar track (was a gray line under the links) */
		scrollbar-width: none;
		padding: 0.15rem 0.5rem 0.25rem;
		/* soft fade on the right = more links off-screen, swipe to scroll */
		mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.1rem), transparent 100%);
	}

	.nav-links-scroll.fits {
		justify-content: center;
		mask-image: none;
	}

	.nav-links-scroll::-webkit-scrollbar {
		display: none;
		height: 0;
	}

	.nav-links {
		justify-content: flex-start;
		gap: 0.2rem;
		width: max-content;
		max-width: none;
		padding: 0 0.75rem 0 0;
	}

	.nav-links a {
		flex-shrink: 0;
		font-size: 0.8rem;
		white-space: nowrap;
		min-height: 40px;
		padding: 0.3rem 0.4rem;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 1.5rem;
		padding: 0 1rem;
		width: 100%;
		box-sizing: border-box;
	}

	.footer .nav-links {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	
	.footer-section {
		width: 100%;
		margin: 0 auto;
	}
	
	.footer-bottom {
		width: 100%;
		padding: 0.75rem 1rem;
	}
}

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #002921;
	color: #e1c89c;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

::-webkit-scrollbar {
	width: .66vw;
	background-color: #002921;
}
::-webkit-scrollbar-thumb {
	background-color: gray;
	border-radius: 5px;
}
 
/* Flagged ingredients use *word* in markdown → <em>; styled in recipe-ui.css */



a {
	color: yellow ;
	text-decoration: none ;
}

#tagcloud {
	list-style: none ;
	text-align: center ;
	padding: 0 ;
}

#tagcloud li {
	display: inline-block ;
}

#tagcloud a {
	margin: .1em .25em ;
}

a:visited {
	color: darkgoldenrod ;
}

a:hover {
	color: beige ;
	text-decoration: underline;
}

p {
	text-align: center ;
}



h1 {
	border-style: solid;
	border-width: 0px 0px 4px 0px;
	text-align: center;
	font-family: 'Merriweather', serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 1rem;
}

h2 {
	color: rgb(228, 228, 228);
	text-align: center;
	font-family: 'Merriweather', serif;
	font-weight: 700;
	letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
	font-family: 'Merriweather', serif;
	font-weight: 700;
	letter-spacing: -0.02em;
}

footer {
	text-align: center ;
	border-style: solid ;
	border-width: 2px 0px 0px 0px ;
	padding: 1em ;
	padding-bottom:-30px ;
}

img {
	max-width: 90% ;
	max-height: 400px ;
	margin: auto ;
	display: block ;
}

code {
	overflow-wrap: break-word ;
	color: lime ;
}

.taglist {
	text-align: center ;
	margin-bottom: 2em ;
	margin-top: 2em ;
}


@media (pointer: coarse) {
	li > a {
	    display: inline-block;
		padding: 0.2em 0;
	}
}

@media print {
	a[href] {
		text-decoration: none ;
		color: black ;
	}

	footer,.taglist { display: none ; }


}

.hidden {
	display: none !important ;
}

#artlist {
	font-size: large ;
	display: grid ;
	grid-template-columns: 1fr ;
	column-gap: 1.5em ;
}

#artlist li {
	padding: .25em ;
}

@media (min-width: 55em) {
	#artlist { grid-template-columns: repeat(2, 1fr) ;}
}

@media (min-width: 100em) {
	#artlist { grid-template-columns: repeat(3, 1fr) ;}
}


.search {
    position: relative;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

input#search {
    all: unset;
    background: #1a1a1a;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #000;
}

input#search::placeholder {
    color: #666;
}

input#search:focus {
    background: #222;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
    border-color: #333;
}

button#clear-search {
    all: unset;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 40px;
    color: #888;
    cursor: pointer;
    transition: color 180ms ease-in-out;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

button#clear-search:hover {
  color: #eee;
}


.matched-recipe {
	font-size: x-large ;
	display: list-item !important ;
}

.list-searched {
	grid-template-columns: 1fr !important ;
	list-style: decimal ;
	max-width: 600px ;
	margin: auto ;
}

.filter-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 1rem;
	max-width: 640px;
	text-align: center;
	color: #aaa;
	font-size: 0.95rem;
}

.filter-status-count {
	font-weight: 500;
	color: #ccc;
}

.filter-tag-chip {
	all: unset;
	background: #333;
	color: #fff;
	padding: 4px 10px;
	border-radius: 16px;
	cursor: pointer;
	font-size: 0.85rem;
	border: 1px solid #555;
}

.filter-tag-chip:hover {
	background: #444;
}

[id^="tag_"]::before {
  margin-right: 0.35em;
}

#tag_alcohol:before { content: "🍸" ;}
#tag_apple:before { content: "🍎" ; }
#tag_bacon:before { content: "🥓" ; }
#tag_baked:before { content: "🥧" ; }
#tag_bamboo:before { content: "🎋" ; }
#tag_banana:before { content: "🍌" ; }
#tag_bedtime-snack:before { content: "💤" ;}
#tag_beef:before { content: "🐄" ; }
#tag_beef-tallow:before { content: "🐄🛢️" ; }
#tag_blueberry:before { content: "🔵" ; }
#tag_bodybuilding:before { content: "🏋️" ; }
#tag_boiled:before { content: "♨️" ; }
#tag_bread:before { content: "🍞" ;}
#tag_breakfast:before { content: "🌅" ;}
#tag_broth:before { content: "🦴🍜" ; }
#tag_brownies:before { content: "🟫" ; }
#tag_butter:before { content: "🧈" ; }
#tag_cake:before { content: "🍰" ; }
#tag_calcium:before { content: "🦴" ; }
#tag_candy:before { content: "🍬" ; }
#tag_canned:before { content: "🥫" ; }
#tag_carrot:before { content: "🥕" ; }
#tag_cheap:before { content: "💰" ; }
#tag_cheese:before { content: "🧀" ; }
#tag_chicken:before { content: "🐔" ;}
#tag_chocolate:before { content: "🍫" ; }
#tag_christmas:before { content: "🎄" ; }
#tag_cocoa-powder:before { content: "🟤" ; }
#tag_coconut:before { content: "🥥" ; }
#tag_coconut-oil:before { content: "🥥🛢️" ;}
#tag_cocktail:before { content: "🍹" ; }
#tag_coffee:before { content: "☕" ;}
#tag_cold:before { content: "❄️" ; }
#tag_condensed-milk:before { content: "🥫🥛" ; }
#tag_cookies:before { content: "🍪" ;}
#tag_cottage-cheese:before { content: "🏡🧀" ; }
#tag_cranberry:before { content: "🔴" ; }
#tag_cream:before { content: "💭" ; }
#tag_cucumber:before { content: "🥒" ; }
#tag_curry:before { content: "🍛" ; }
#tag_dessert:before { content: "🍨" ; }
#tag_diet-red:before { content: "🟥" ; }
#tag_diet-yellow:before { content: "🟡" ; }
#tag_diet-green:before { content: "🟢" ; }
#tag_difficult:before { content: "😓" ; }
#tag_drink:before { content: "🍹" ;}
#tag_duck:before { content: "🦆" ; } 
#tag_easy:before { content: "😎" ; }
#tag_egg:before { content: "🥚" ; }
#tag_fake-peater:before { content: "🤥" ;}
#tag_fake-peater {color: #ff7566;}
#tag_fish:before { content: "🐟" ; }
#tag_foundational:before { content: "🏠" ; }
#tag_fried:before { content: "🍳" ; }
#tag_fruit:before { content: "🍇" ; }
#tag_garlic:before { content: "🧄" ; }
#tag_gelatin:before { content: "🟥" ; }
#tag_go-to:before { content: "⭐" ; }
#tag_gravy:before { content: "🥣" ; }
#tag_greek-yogurt:before { content: "🇬🇷" ; }
#tag_ground-beef:before { content: "⚙️🐄" ; }
#tag_gummies:before { content: "🟠" ; }
#tag_halibut:before { content: "🎣" ; }
#tag_honey:before { content: "🍯" ; }
#tag_ice-cream:before { content: "🍦" ; } 
#tag_joke:before { content: "🤡" ; }
#tag_lemon:before { content: "🍋" ; }
#tag_lime:before { content: "🟢🍋" ; }
#tag_liver:before { content: "🟤" ; }
#tag_lobster:before { content: "🦞" ;}
#tag_main-dish:before { content: "🍽️" ; }
#tag_mandarin:before { content: "🍊" ; }
#tag_mango:before { content: "🥭" ; }
#tag_maple-syrup:before { content: "🍁" ; }
#tag_marmalade:before { content: "🍓🥫" ; }
#tag_marshmallows:before { content: "⬜" ; }
#tag_meat:before { content: "🥩" ; }
#tag_milk:before { content: "🥛" ; }
#tag_milk-powder:before { content: "⛰" ; }
#tag_mushroom:before { content: "🍄" ;}
#tag_mussels:before { content: "🐚" ; }
#tag_no-effort:before { content: "😴" ; }
#tag_oats:before { content: "🥣" ; }
#tag_olive-oil:before { content: "🟢🛢️" ; }
#tag_onion:before { content: "🧅" ; }
#tag_orange:before { content: "🍊" ;}
#tag_orange-juice:before { content: "🍊🧃" ; }
#tag_oyster:before { content: "🦪" ;}
#tag_pancake:before { content: "🥞" ; }
#tag_parmigiano:before { content: "🇮🇹🧀" ; }
#tag_paté:before { content: "🥫" ; }
#tag_peach:before { content: "🍑" ; }
#tag_pear:before { content: "🍐" ; }
#tag_pie:before { content: "🥧" ; }
#tag_pineapple:before { content: "🍍" ;}
#tag_pork:before { content: "🐷" ; }
#tag_potato:before { content: "🥔" ; }
#tag_protein:before { content: "💪" ; }
#tag_pudding:before { content: "🍮" ; }
#tag_quick:before { content: "🏃" ; }
#tag_raw:before { content: "🍖" ;}
#tag_rice:before { content: "🍚" ; }
#tag_rum:before { content: "🥃" ; }
#tag_salad:before { content: "🥗" ;}
#tag_sandwich:before { content: "🥪" ;}
#tag_sauce:before { content: "🩸" ;}
#tag_scallops:before { content: "🧿" ; }
#tag_seafood:before { content: "🦀" ; }
#tag_shrimp:before { content: "🦐" ; }
#tag_side:before { content: "🥄" ; }
#tag_slow:before { content: "🐌" ; }
#tag_slow-cooker:before { content: "🐌♨️" ; }
#tag_snack:before { content: "🍪" ; }
#tag_sorbet:before { content: "🧊" ; }
#tag_soup:before { content: "🍜" ;}
#tag_sourdough:before { content: "🥖" ;}
#tag_spicy:before { content: "🌶️" ; }
#tag_spinach:before { content: "🍃" ; }
#tag_spread:before { content: "🧈" ; }
#tag_squash:before { content: "🎃" ;}
#tag_starch {color: #ff7566;}
#tag_starter:before { content: "🔰" ; }
#tag_steak:before { content: "🥩" ; }
#tag_stew:before { content: "🍛" ; }
#tag_strawberries:before { content: "🍓" ; }
#tag_strawberry:before { content: "🍓" ; }
#tag_sweet:before { content: "🍯" ; }
#tag_sweet-potato:before { content: "🍠" ; }
#tag_syrup:before { content: "🧴" ; }
#tag_tangerine:before { content: "🟠" ; }
#tag_tomato:before { content: "🍅" ; }
#tag_tortilla:before { content: "🌮" ; }
#tag_vegetables:before { content: "🥦" ; }
#tag_vinegar:before { content: "🧪" ; }
#tag_watermelon:before { content: "🍉" ; }
#tag_whiskey:before { content: "🥃" ; }
#tag_wine:before { content: "🍷" ; }
#tag_yogurt:before { content: "🥣" ; }
#tag_zucchini:before { content: "🥒" ; }


.js-only { display: none ; }

/* App-only chrome — must live in global CSS so nav matches on every page */
html:not(.recipeats-has-app) .app-only-nav {
	display: none !important;
}

html:not(.recipeats-has-app) .app-gated-content {
	display: none !important;
}

html.recipeats-has-app .app-gate-upsell {
	display: none !important;
}

html:not(.recipeats-has-app) #recipe-cta-shopping,
html:not(.recipeats-has-app) .shopping-list-button {
	display: none !important;
}

/* App homepage: hide SEO clutter in app context */
.recipeats-app .content > p:first-of-type,
.recipeats-app .content > h1,
.recipeats-app .content > blockquote,
.recipeats-app footer,
.recipeats-app .content > h2#all-recipes {
  display: none !important;
}

.recipeats-app .app-home-content {
  display: block !important;
}





/*  Submission  */
.recipe-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 2.5rem;
    background: #001a15;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.form-row .form-group label {
    min-height: 2.5em;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: navajowhite;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    background: #00241d;
    border: 1px solid #004d40;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    margin: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: navajowhite;
    box-shadow: 0 0 0 2px rgba(255,222,173,0.1);
}

.submit-button {
    background: #004d40;
    color: navajowhite;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 180ms ease-in-out;
    font-size: 1rem;
    font-weight: bold;
    display: block;
    margin: 2rem auto 0;
}

.submit-button:hover {
    background: #00695c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
    .recipe-form {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on input focus */
    }

    .form-row:has(input[type="number"]) {
        flex-direction: row;
    }
    
    /* Fix for mobile alignment — clip not hidden so tooltips can still paint */
    .content {
        width: 100%;
        box-sizing: border-box;
        overflow-x: clip;
    }
    
    /* Fix for the tags display */
    .taglist {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
}

/* Tag Filter */
.text-center {
  text-align: center;
  margin: 8px auto;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.tag-toggle {
  all: unset;
  background: #1a1a1a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 180ms ease-in-out;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #333;
}

.tag-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
  background: #2a2a2a;
}

.tag-toggle.active {
  background: #2a2a2a;
  border-color: #444;
}

/* Make emoji consistent with text */
.tag-toggle span {
  font-size: 0.9rem;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.tag-filter {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px auto;
  max-width: 800px;
  background: #1a1a1a;
  padding: 16px;
  border-radius: 12px;
  line-height: 1.2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  text-align: center;
}

.tag-filter.visible {
  display: flex;
}

/* Tag picker: scroll inside a panel instead of dumping the whole site tag list */
.tag-filter.visible {
  max-height: min(52vh, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-content: flex-start;
  padding: 12px;
  gap: 6px;
  overscroll-behavior: contain;
}

body.recipeats-app.app-home .tag-filter.visible {
  max-height: min(48vh, 18rem);
  margin: 0.35rem 0 0.5rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

body.recipeats-app.app-home .tag-section {
  padding: 0.55rem 0.45rem;
  margin: 0;
}

body.recipeats-app.app-home .tag-section-title {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}

body.recipeats-app.app-home .tag-button {
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  min-height: 2.25rem;
}

/* Recent: summary row only until expanded */
body.recipeats-app.app-home .app-home-recent {
  margin: 0 0 0.35rem;
  border: 1px solid rgba(225, 200, 156, 0.2);
  border-radius: 10px;
  background: #0f2e22;
  padding: 0 0.65rem;
}

body.recipeats-app.app-home .app-home-recent-title {
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e1c89c;
}

body.recipeats-app.app-home .app-home-recent-title::-webkit-details-marker {
  display: none;
}

body.recipeats-app.app-home .app-home-recent-title::before {
  content: "▸ ";
  opacity: 0.7;
}

body.recipeats-app.app-home .app-home-recent[open] .app-home-recent-title::before {
  content: "▾ ";
}

body.recipeats-app.app-home .app-home-recent-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.55rem;
}

body.recipeats-app.app-home .app-home-recent-list li a {
  display: block;
  padding: 0.45rem 0.15rem;
  color: #e1c89c;
  text-decoration: none;
  font-size: 0.9rem;
  border-top: 1px solid rgba(225, 200, 156, 0.1);
}

.tag-section {
  flex-basis: 100%;
  margin: 8px 0;
  padding: 12px;
  background: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}

.tag-section-title {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.tag-button {
  all: unset;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 180ms ease-in-out;
  font-size: 0.9rem;
  margin: 4px;
  line-height: 1.2;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #444;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tag-button:hover {
  background: #444;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tag-button.active {
  background: #555;
  color: white;
  border-color: #666;
}

.search input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 180ms ease-in-out;
}

.search input::placeholder {
  color: #666;
}

.search input:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: #2a2a2a;
}

#clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
}

#clear-search:hover {
  color: #999;
}

.dietary-restrictions {
  background: #2a1a1a;
  text-align: center;
}

.tag-button[data-tag="no-milk"] {
  background: #4a0000;
  border-color: #600;
  color: white;
  font-weight: bold;
  padding: 8px 16px;
}

.tag-button[data-tag="no-milk"]:hover {
  background: #600;
  border-color: #800;
}

.tag-button[data-tag="no-milk"].active {
  background: #800;
  border-color: #a00;
}

.recipe-tags {
    margin-top: 0.5rem;
    padding: 0.35rem 1rem 1rem;
}

.recipe-tags h3 {
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: #003d33;
    color: navajowhite;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #444;
    display: inline-flex;
    align-items: center;
    gap: 0.15em;
}

/* All Tags index: even grid (fills width) instead of ragged centered wrap */
article.all-tags {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 0 2rem;
  box-sizing: border-box;
}

article.all-tags h1 {
  margin-bottom: 1rem;
}

article.all-tags .recipe-tags.tags-cloud {
  margin: 0;
  padding: 0 0.75rem 1.5rem;
}

article.all-tags .tag-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.25rem, 1fr));
  gap: 0.4rem;
  justify-content: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
}

article.all-tags .tag {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: center;
  min-height: 2.55rem;
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.25;
  border-radius: 10px;
  border: 1px solid rgba(225, 200, 156, 0.22);
  background: #0f2e22;
  color: #e1c89c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

article.all-tags .tag:hover {
  border-color: #e1c89c;
  color: navajowhite;
  background: #123524;
  text-decoration: none;
}

article.all-tags .tag-count {
  margin-left: 0.2em;
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.9em;
}

@media (max-width: 400px) {
  article.all-tags .tag-list {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.35rem;
  }

  article.all-tags .tag {
    min-height: 2.4rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.45rem;
  }
}

@media (min-width: 700px) {
  article.all-tags .tag-list {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.45rem;
  }
}

.recipe-tools {
    background-color: #1a1a1a;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid #333;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-label {
    font-weight: 500;
    color: #ccc;
}

.tool-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-tools input[type="number"] {
    width: 50px;
    padding: 4px 8px;
    border: 1px solid #333;
    border-radius: 3px;
    background-color: #2a2a2a;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

.recipe-tools input[type="number"]::-webkit-inner-spin-button,
.recipe-tools input[type="number"]::-webkit-outer-spin-button {
    opacity: 0;
}


.scaler-container {
  padding: 8px 12px;
  background-color: #123524;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.534);
  width: min(100%, 820px);
  margin: 0 auto 1rem auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  box-sizing: border-box;
  min-height: 44px;
  position: relative;
}

.scaler-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin: 0;
  flex: 0 0 auto;
  flex-shrink: 0;
  order: 1;
  flex-wrap: nowrap;
}

.scale-presets {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.scale-preset {
  min-width: 32px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid #004d40;
  border-radius: 12px;
  background: #003d33;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.scale-preset:hover {
  background: #00695c;
}

li.ingredient-checked {
  text-decoration: line-through;
  opacity: 0.5;
  color: #9aab9e;
}

body.hide-optionals li.ingredient-optional {
  display: none;
}

li.ingredient-optional {
  opacity: 0.9;
}

.scaler-button.tools-toggle-btn {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
}

.scaler-button.clear-checklist-btn,
.scaler-button.toggle-optionals-btn {
  background: #123524;
  color: #e1c89c;
  border: 1px solid rgba(225, 200, 156, 0.28);
}

.scaler-button.toggle-optionals-btn.optionals-showing {
  background: #4a7c6a;
  border-color: #4a7c6a;
  color: navajowhite;
}

.scaler-button.clear-checklist-btn:focus,
.scaler-button.toggle-optionals-btn:focus {
  outline: none;
}

.recipeats-app .scaler-container {
  align-items: center;
}

.recipeats-app .tools-toggle-btn,
.tools-drawer-layout .tools-toggle-btn {
  flex: 0 0 auto;
  min-width: 72px;
}

.recipeats-app .tools-drawer,
.tools-drawer-layout .tools-drawer {
  display: none;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  order: 10;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipeats-app .tools-drawer-open .tools-drawer,
.recipe-controls-wrapper.tools-drawer-open .tools-drawer {
  display: grid;
}

@media (min-width: 480px) {
  .recipeats-app .tools-drawer,
  .tools-drawer-layout .tools-drawer {
    grid-template-columns: repeat(3, 1fr);
  }
}

.recipeats-app .tools-drawer .scaler-button,
.tools-drawer-layout .tools-drawer .scaler-button {
  width: 100%;
  min-width: 0;
  flex: none;
  font-size: 0.72rem;
  padding: 0.42rem 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipeats-app .tools-drawer .toggle-optionals-btn,
.recipeats-app .tools-drawer .clear-checklist-btn,
.tools-drawer-layout .tools-drawer .toggle-optionals-btn,
.tools-drawer-layout .tools-drawer .clear-checklist-btn,
article.recipe-sheet .tools-drawer .toggle-optionals-btn,
article.recipe-sheet .tools-drawer .clear-checklist-btn {
  background: #123524 !important;
  color: #e1c89c !important;
  border: 1px solid rgba(225, 200, 156, 0.28) !important;
}

.recipeats-app .tools-drawer .toggle-optionals-btn.optionals-showing,
.tools-drawer-layout .tools-drawer .toggle-optionals-btn.optionals-showing,
article.recipe-sheet .tools-drawer .toggle-optionals-btn.optionals-showing {
  background: #4a7c6a !important;
  border-color: #4a7c6a !important;
  color: navajowhite !important;
}

/* Consistent button group for Convert and Print */
.button-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: center;
  order: 2;
  flex-wrap: nowrap;
}

.scaler-button.metric-convert {
  order: 1;
}

.scaler-button.print-button {
  order: 2;
}

.favorite-button {
  order: 3;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .scaler-container {
        width: 100%;
        padding: 12px 8px;
        max-width: 100%;
        margin: 0 auto 1rem auto;
    }
}

@media (max-width: 600px) {
    .scaler-container {
        padding: 12px 8px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto 1rem auto;
    }
    
    .scaler-controls {
        order: 1;
        justify-content: center;
        width: 100%;
    }
    
    /* Default (non-recipe) tool groups may stack; recipe pages override in recipe-ui.css */
    .button-group {
        order: 2;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 8px;
    }
    
    .scaler-button.metric-convert,
    .scaler-button.print-button,
    .scaler-button.share-button,
    .scaler-button.copy-button,
    .scaler-button.clear-checklist-btn,
    .scaler-button.toggle-optionals-btn,
    .scaler-button.tools-toggle-btn,
    .scaler-button.cooking-mode-btn,
    .favorite-button {
        flex: none;
        width: 100%;
        max-width: 200px;
        margin: 4px 0;
    }

    .scale-presets {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .recipeats-app .tools-drawer {
        grid-template-columns: 1fr;
    }
}

.recipe-list {
    margin: 2rem auto;
    max-width: 400px;
    padding: 0 1rem;
}

.recipe-item {
    margin: 0.75rem 0;
    padding: 0.8rem 1rem;
    background: #001a15;
    border-radius: 20px;
    border: 1px solid #004d40;
    transition: all 180ms ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: block;
    text-align: center;
}

.recipe-item:hover {
    background: #002921;
    transform: translateY(-1px);
    border-color: #00695c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.recipe-item a {
    color: navajowhite;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    text-align: center;
}

.recipe-item a:hover {
    color: #fff;
}


@media (max-width: 768px) {
  .search {
    width: calc(100% - 2rem);
    margin: 1rem auto;
  }

  input#search {
    width: 100%;
    box-sizing: border-box;
  }

  button#clear-search {
    right: 8px;
  }
}

@media (max-width: 600px) {
    .recipe-list {
        padding: 0 0.75rem;
        max-width: 300px;
    }
    
    /* Ensure full width for recipe items on mobile */
    .recipe-item {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Tag chips: pack tight and left so several fit per row (Tags tab). */
    .tag-list {
        justify-content: flex-start;
        gap: 0.35rem;
    }

    .tag {
        margin: 0;
        padding: 0.22rem 0.5rem;
        font-size: 0.76rem;
    }
}

article {
    margin: 0 auto;
    padding: 1rem;
    max-width: 800px;
}

article h1,
article h2,
article h3 {
    letter-spacing: 0.03em;
}

.recipe-notes {
    margin: 0 0 1.25rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.recipe-notes label {
    display: block;
    color: #e1c89c;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.recipe-notes textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 3.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #004d40;
    background: #001a15;
    color: navajowhite;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

main {
    flex: 1;
}

header {
    background: #002921 !important;
    background-image: none !important;
    padding: 0.5rem 0;
    width: 100%;
}

/* Nutrition Facts Styling - dark theme to match site (#002921 bg, #e1c89c text) */
.nutrition-facts {
  background-color: #001a15;
  border: 1px solid #004d40;
  border-radius: 10px;
  padding: 15px;
  /* Tight under label so tags sit close (was 20px all sides) */
  margin: 1rem auto 0.35rem;
  max-width: 420px;
  box-sizing: border-box;
  color: #e1c89c;
}

.nutrition-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 2px solid #004d40;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.nutrition-facts h3 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
  color: navajowhite;
}

.nutrition-view-toggle {
  display: flex;
  gap: 6px;
  width: 100%;
}

.nutrition-view-btn {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #004d40;
  border-radius: 6px;
  background: #002921;
  color: #c9b48a;
  font-size: 0.85em;
  cursor: pointer;
}

.nutrition-view-btn.is-active {
  background: #004d40;
  color: navajowhite;
  border-color: #e1c89c;
}

.nutrition-view-hint,
.nutrition-footnote {
  display: block;
  margin: 0 0 10px 0;
  font-size: 0.85em;
  color: #c9b48a;
  line-height: 1.4;
}

.nutrition-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.nutrition-list li {
  padding: 5px 0;
  border-bottom: 1px solid #00332b;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95em;
}

.nutrition-list .nut-label {
  flex: 1 1 auto;
  padding-right: 8px;
  text-align: left;
  white-space: nowrap;
  color: #e1c89c;
}

.nutrition-list .nut-value {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  min-width: 110px;
  color: #e1c89c;
}

.nutrition-list li.sub {
  padding-left: 1.2em;
  font-size: 0.9em;
}
.nutrition-list li.sub .nut-label {
  flex: 1 1 auto;
  color: #c9b48a;
}
/* ensure sub values still align right */
.nutrition-list li.sub .nut-value {
  text-align: right;
  color: #c9b48a;
}

.nutrition-list li:last-child {
  border-bottom: none;
}

.nutrition-facts:not(.nutrition-expanded) .nutrition-list li:not(.nutrition-summary) {
  display: none;
}

.nutrition-detail-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #004d40;
  border-radius: 6px;
  background: #002921;
  color: #c9b48a;
  font-size: 0.85em;
  cursor: pointer;
}

.nutrition-detail-toggle:hover {
  border-color: #e1c89c;
  color: navajowhite;
}

.food-log-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.food-log-actions .nutrition-detail-toggle {
  margin-top: 0;
  text-align: center;
  text-decoration: none;
}
.food-log-page h1 {
  font-family: Merriweather, Georgia, serif;
  text-align: center;
  margin-bottom: 0.35rem;
}
.diary-day {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.diary-day > button {
  height: 44px;
  border: 0;
  background: transparent;
  color: #e1c89c;
  font-size: 1.5rem;
  line-height: 1;
}
.diary-day-label {
  height: 44px;
  border: 0;
  background: transparent;
  color: navajowhite;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.diary-cal {
  margin: 0 0 16px;
  padding: 4px 6px 10px;
  background: #0f2e22;
  border: 1px solid rgba(225, 200, 156, 0.22);
  border-radius: 12px;
}
.diary-cal-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}
.diary-cal-nav strong {
  text-align: center;
  color: navajowhite;
  font-family: Merriweather, Georgia, serif;
  font-weight: 700;
}
.diary-cal-nav button {
  height: 44px;
  border: 0;
  background: transparent;
  color: #e1c89c;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.diary-cal-week,
.diary-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.diary-cal-week span {
  color: #c9b48a;
  font-size: 0.72rem;
  padding: 4px 0 8px;
}
.diary-cal-grid button {
  position: relative;
  height: 40px;
  border: 0;
  background: transparent;
  color: navajowhite;
  border-radius: 50%;
  font: inherit;
  cursor: pointer;
}
.diary-cal-grid button.is-selected {
  background: #e1c89c;
  color: #002921;
  font-weight: 700;
}
.diary-cal-grid button.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px #e1c89c;
}
.diary-cal-grid button.has-log::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #8faf86;
}
.diary-cal-grid button.is-selected.has-log::after {
  background: #002921;
}
.food-log-page {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.diary-summary {
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(225, 200, 156, 0.22);
}
.diary-slide-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.diary-slide-track::-webkit-scrollbar { display: none; }
.diary-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.diary-slide-title {
  margin: 0 0 8px;
  color: #c9b48a;
  font-size: 0.85rem;
}
.diary-slide-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}
.diary-slide-nav > button {
  height: 36px;
  border: 0;
  background: transparent;
  color: #e1c89c;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.diary-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.diary-dots button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.diary-dots button::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: rgba(225, 200, 156, 0.35);
}
.diary-dots button[aria-selected="true"]::before {
  background: #e1c89c;
}
.diary-targets {
  list-style: none;
  margin: 0;
  padding: 0;
}
.diary-targets li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 12px;
  padding: 7px 0;
  color: #c9b48a;
  border-top: 1px solid rgba(225, 200, 156, 0.16);
}
.diary-targets li:first-child { border-top: 0; }
.diary-targets strong {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: navajowhite;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.diary-targets small {
  color: #c9b48a;
  font-size: 0.72rem;
  font-weight: 400;
}
.diary-targets i {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  margin-top: 2px;
  border-radius: 99px;
  background: #14362c;
  position: relative;
}
.diary-targets i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  border-radius: 99px;
  background: #8faf86;
}
.diary-slide .diary-highlight {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 16px;
}
.diary-slide .diary-highlight li {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.diary-slide .diary-highlight strong {
  align-items: flex-start;
}
.diary-slide .diary-highlight small {
  white-space: normal;
}
.diary-slide .diary-energy-card {
  width: 100%;
  grid-template-columns: 104px minmax(0, 1fr);
}
.diary-slide .diary-ring {
  width: 104px;
  height: 104px;
}
.diary-slide .diary-ring span {
  width: 74px;
  height: 74px;
  font-size: 1.15rem;
}
.diary-slide .diary-energy-card li {
  grid-template-columns: minmax(0, 1fr) auto;
}
.diary-energy-card {
  display: grid;
  grid-template-columns: 120px max-content;
  justify-content: start;
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
}
.diary-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#8faf86 0 var(--p), #e1c89c var(--p) var(--c), #c4a46a var(--c) 100%);
  display: grid;
  place-items: center;
}
.diary-ring span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #002921;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: navajowhite;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.diary-ring small {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 400;
  color: #c9b48a;
}
.diary-energy-card ul,
.diary-highlight {
  list-style: none;
  margin: 0;
  padding: 0;
}
.diary-energy-card li {
  display: grid;
  grid-template-columns: 9.25rem auto;
  justify-content: start;
  align-items: baseline;
  column-gap: 1rem;
  padding: 5px 0;
  color: #c9b48a;
}
.diary-energy-card li strong,
.diary-highlight strong {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  color: navajowhite;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.diary-energy-card li small,
.diary-highlight small {
  color: #c9b48a;
  font-size: 0.72rem;
  font-weight: 400;
}
.diary-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  width: min(100%, 26rem);
  margin-top: 4px;
}
.diary-highlight li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  color: #c9b48a;
}
.food-log-search .nutrition-view-toggle {
  gap: 0;
  border-bottom: 1px solid rgba(225, 200, 156, 0.22);
}
.food-log-search .nutrition-view-btn {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #c9b48a;
}
.food-log-search .nutrition-view-btn.is-active {
  background: transparent;
  color: navajowhite;
  border-bottom-color: #e1c89c;
}
.diary-energy {
  margin: 0 0 10px;
  text-align: center;
  color: #c9b48a;
  font-size: 0.85rem;
}
.diary-energy span {
  display: block;
  color: navajowhite;
  font-family: Merriweather, Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.diary-macros,
.diary-nutrients {
  list-style: none;
  padding: 0;
  margin: 0;
}
.diary-macros li,
.diary-nutrients li,
.diary-food {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: #c9b48a;
}
.diary-macros li {
  padding: 3px 0;
}
.diary-macros strong,
.diary-nutrients strong {
  white-space: nowrap;
  flex: 0 0 auto;
}
.diary-macros strong,
.diary-nutrients strong,
.diary-food-kcal {
  color: navajowhite;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.diary-nutrient-sections {
  margin-top: 14px;
}
.diary-nutrient-sections h3 {
  margin: 16px 0 0;
  text-align: left;
  font-family: Merriweather, Georgia, serif;
  font-size: 1rem;
  color: navajowhite;
}
.diary-nutrients {
  margin-top: 0;
}
.diary-nutrients li {
  padding: 4px 0;
  border-top: 1px solid rgba(225, 200, 156, 0.22);
  font-size: 0.92rem;
}
.diary-meals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diary-meal {
  margin: 0;
  padding: 4px 8px;
  background: #0f2e22;
  border-radius: 12px;
}
.diary-meal[data-current] {
  background: #1a4034;
}
.diary-meal header {
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 8px;
  align-items: center;
  margin: 0;
  min-height: 48px;
}
.diary-meal h2 {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.05rem;
  color: navajowhite;
  text-align: left;
}
.diary-meal header p {
  margin: 1px 0 0;
  color: #c9b48a;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: left;
}
.diary-meal header button,
.diary-food > button,
.diary-add-bar button {
  border: 0;
  background: transparent;
  color: #e1c89c;
  min-height: 36px;
  font: inherit;
  cursor: pointer;
}
.diary-meal header button {
  width: 36px;
  font-size: 1.45rem;
  line-height: 1;
  padding: 0;
}
.diary-meal[data-shut] ul {
  display: none;
}
.diary-meal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.diary-food {
  padding: 8px 0;
  border-top: 1px solid rgba(225, 200, 156, 0.22);
  cursor: pointer;
}
.diary-food-name {
  flex: 1;
  min-width: 0;
}
.diary-food-name a,
.diary-food-name > span:first-child {
  display: block;
  color: navajowhite;
}
.diary-food-name span {
  display: block;
  color: #c9b48a;
  font-size: 0.82rem;
}
.diary-food > button {
  width: 32px;
  background: transparent;
  border-color: transparent;
  color: #c9b48a;
}
.food-log-search:not([hidden]) {
  position: fixed;
  z-index: 10050;
  left: 0;
  right: 0;
  top: 3.4rem;
  bottom: calc(3.94rem + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #002921;
}
.food-log-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 1rem 1rem;
}
.diary-detail-dock {
  flex: 0 0 auto;
  padding: 10px 1rem 12px;
  background: #002921;
  border-top: 1px solid rgba(225, 200, 156, 0.22);
}
.diary-detail-dock[hidden] {
  display: none !important;
}
.diary-add-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 1rem 1rem 10px;
  flex: 0 0 auto;
}
.diary-add-cap {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  color: navajowhite;
  font-size: 1.2rem;
}
.diary-recipe-log {
  margin: 12px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  scroll-margin-top: 12rem;
}
.diary-recipe-log .diary-energy-card {
  grid-template-columns: 104px 1fr;
  gap: 10px;
  margin-bottom: 0;
}
.diary-recipe-log .diary-ring {
  width: 96px;
  height: 96px;
}
.diary-recipe-log .diary-ring span {
  width: 68px;
  height: 68px;
  font-size: 1.15rem;
}
.diary-recipe-log .diary-detail-row {
  min-height: 40px;
  padding: 2px 0;
}
.diary-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  border-top: 1px solid rgba(225, 200, 156, 0.22);
  color: #c9b48a;
}
.diary-detail-row strong {
  color: navajowhite;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.diary-amount-field {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.diary-amount-options {
  display: flex;
  gap: 2px;
  align-items: center;
}
.diary-amount-options button {
  border: 0;
  background: transparent;
  color: #c9b48a;
  font: inherit;
  font-size: 0.92rem;
  min-width: 2.5rem;
  min-height: 32px;
  padding: 2px 6px;
  border-radius: 999px;
  cursor: pointer;
}
.diary-amount-options button.is-active {
  background: #e1c89c;
  color: #002921;
  font-weight: 700;
}
.diary-group-row {
  position: relative;
  flex-wrap: wrap;
}
.diary-group-row > button {
  margin-left: auto;
}
#food-log-group,
#food-log-detail-group,
#food-log-serving,
#food-log-detail-serving {
  border: 0;
  background: transparent;
  color: navajowhite;
  font: inherit;
  cursor: pointer;
  padding: 8px 0;
}
#food-log-group::after,
#food-log-detail-group::after,
#food-log-serving[aria-haspopup]::after,
#food-log-detail-serving::after {
  content: " ▾";
  color: #c9b48a;
}
.nutrition-view-toggle[hidden],
#food-log-q[hidden],
#food-log-hits[hidden],
#food-log-detail[hidden],
.food-log-grams[hidden] {
  display: none !important;
}
.diary-group-menu {
  position: static;
  flex: 1 0 100%;
  min-width: 0;
  margin: 2px 0 6px;
  padding: 6px 0;
  background: #14362c;
  border-radius: 12px;
}
.diary-group-menu[hidden] {
  display: none;
}
.diary-group-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: navajowhite;
  text-align: left;
  font: inherit;
  padding: 12px 16px;
  cursor: pointer;
}
#food-log-add {
  display: block;
  width: 100%;
  margin-top: 12px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #e1c89c;
  color: #002921;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.diary-day button:focus-visible,
.diary-meal header button:focus-visible,
.diary-recipe-log button:focus-visible,
.diary-recipe-log select:focus-visible,
.diary-add-bar button:focus-visible {
  outline: 2px solid #e1c89c;
  outline-offset: 2px;
}
.food-log-entries { list-style: none; padding: 0; margin: 12px 0 0; }
.food-log-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #00332b;
  color: #e1c89c;
}
.food-log-row a { color: inherit; flex: 1; }
.food-log-row button { background: none; border: 0; color: #c9b48a; cursor: pointer; padding: 0; }
.food-log-search { margin: 0 0 16px; }
.food-log-search input[type="search"],
.food-log-search input[type="number"] {
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
  background: #002921;
  color: #e1c89c;
  border: 1px solid #004d40;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
}
.food-log-grams { display: block; margin-top: 8px; color: #e1c89c; }
.food-log-grams[hidden] { display: none; }
.food-log-hits { list-style: none; padding: 0; margin: 8px 0 0; }
.food-log-hits li {
  padding: 0;
  border-bottom: 1px solid rgba(225, 200, 156, 0.22);
}
.food-log-hit {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: navajowhite;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.food-log-hit small {
  display: block;
  margin-top: 2px;
  color: #c9b48a;
  font-size: 0.8rem;
}
.food-log-hit strong {
  color: navajowhite;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
#food-log-detail-add {
  display: block;
  width: 100%;
  margin: 0;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #e1c89c;
  color: #002921;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
#food-log-detail-amount {
  width: 5rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: navajowhite;
  font: inherit;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media print {
  .nutrition-facts .nutrition-list li {
    display: flex !important;
  }

  .nutrition-detail-toggle,
  .food-log-actions {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .nutrition-facts {
    max-width: 100%;
  }
}


.favorite-button.is-favorite {
    background-color: #00695c;
    border-color: navajowhite;
}

.favorite-button .heart-icon {
    color: navajowhite;
    transition: color 0.3s ease;
}

.favorite-button.is-favorite .heart-icon {
    color: #e74c3c;
}

.favorites-link {
    position: relative;
}

/* Responsive adjustments for small screens */
@media (max-width: 600px) {
    .favorites-link {
        white-space: nowrap;
    }
}

/* Recipe controls wrapper */
.recipe-controls-wrapper {
  position: relative;
  margin-bottom: 2rem;
  overflow: visible;
}

/* Toggle controls button */
.toggle-controls-button {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #1a1a1a;
  border: 1px solid #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.toggle-controls-button:hover {
  background-color: #2a2a2a;
}

.toggle-icon-hide, .toggle-icon-show {
  color: #fff;
  transition: opacity 0.2s ease;
}

.toggle-icon-show {
  display: none;
}

/* Hidden controls state */
.controls-hidden .toggle-icon-hide {
  display: none;
}

.controls-hidden .toggle-icon-show {
  display: block;
}

.controls-hidden .recipe-controls {
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Recipe controls container */
.recipe-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 10px;
  transition: all 0.3s ease;
  max-height: 500px;
  opacity: 1;
  overflow: visible;
}

/* Mobile styles for controls and toggle button */
@media (max-width: 600px) {
  .recipe-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .recipe-controls-wrapper {
    margin-top: 0.75rem;
    padding-right: 0;
  }

  .toggle-controls-button {
    top: -14px;
    right: -14px;
  }
}

/* Ingredient warning tooltips. Text lives in the span's data-tooltip
   attribute (set by ingredient-warning.js) - single source of truth,
   no per-ingredient CSS block to keep in sync. */
.ingredient-warning-flag {
  display: inline;
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #ffcc00;
  font-weight: 500;
  color: #ffa500;
}

.ingredient-warning-flag[data-tier="yellow"] {
  color: #ffcc00;
  border-bottom-color: #ffcc00;
}

.ingredient-warning-flag[data-tier="red"] {
  color: #ff7566;
  border-bottom-color: red;
}

.ingredient-warning-flag[data-optional="1"] {
  border-bottom-style: dashed;
  opacity: 0.82;
}

/* Recipe-level diet tier badge next to the title (Jay: keep emoji / red dot). */
.diet-badge {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  margin-left: 0.4em;
  vertical-align: middle;
}
.diet-badge--red { background: red; }
.diet-badge--yellow {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-size: 0.82em;
  line-height: 1;
}
.diet-badge--yellow::before { content: "🟡"; }
.diet-badge--green {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-size: 0.82em;
  line-height: 1;
}
.diet-badge--green::before { content: "🟢"; }

.ingredient-warning-flag:hover::after,
.ingredient-warning-flag:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  /* Sit above the word; left-align so long copy is less likely to clip the card edge */
  bottom: calc(100% + 8px);
  left: 0;
  transform: none;
  background-color: rgba(12, 28, 22, 0.97);
  color: #fff;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: normal;
  width: max-content;
  max-width: min(16rem, 70vw);
  z-index: 10050;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid #3a5a4a;
  font-weight: normal;
  pointer-events: none;
}

/* Arrow under the bubble */
.ingredient-warning-flag:hover::before,
.ingredient-warning-flag:focus-visible::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0.75rem;
  transform: none;
  border: 6px solid transparent;
  border-top-color: rgba(12, 28, 22, 0.97);
  z-index: 10051;
  pointer-events: none;
}

/* Recipe Timer Styles */
.recipe-timer-btn {
	touch-action: manipulation;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: #1b3a1f;
    color: #e4d8b4;
    border: 1px solid #2d5735;
    border-radius: 4px;
    padding: 0.25em 0.75em;
    margin: 0 0.25em;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95em;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 80px;
}

.recipe-timer-btn:hover {
    background: #2d5735;
    border-color: #386b42;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.recipe-timer-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.recipe-timer-btn.timer-active {
    background: #386b42;
    color: #fff;
    border-color: #4a8654;
    animation: gentle-pulse 2s infinite;
}

.recipe-timer-btn.timer-active:hover {
    background: #4a8654;
    border-color: #5ca168;
}

.recipe-timer-btn.timer-paused {
    background: #5a4a2a;
    color: #fff;
    border-color: #7a6a3a;
    animation: none;
}

.recipe-timer-btn.timer-paused:hover {
    background: #7a6a3a;
    border-color: #9a8a4a;
}

.recipe-timer-btn.timer-complete {
    background: #ffad56;
    border-color: #ff9933;
    color: #1b3a1f;
    animation: celebrate 0.5s ease-out;
}

.timer-complete-icon {
    display: inline-block;
    margin-right: 0.4em;
    animation: ring 0.7s ease-in-out infinite;
}

.timer-complete-text {
    font-weight: 600;
}

@keyframes celebrate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ring {
    0% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(-10deg);
    }
}

@keyframes gentle-pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}


.scaler-button.metric-convert {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
}

.scaler-button.print-button {
  background: #fead57;
  color: #fff;
  border: 1px solid #333;
  font-weight: bold;
}

.scaler-button.share-button,
.scaler-button.copy-button {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
}



/* Specific styles for Add/Favorite button */
.favorite-button {
  background-color: #003d33;
  color: navajowhite;
  border: 1px solid #004d40;
}

.scaler-button.cooking-mode-btn {
  background-color: #003d33;
  color: #fff;
  border: 1px solid #004d40;
}

.scaler-button.cooking-mode-btn.cooking-mode-active {
  background-color: #00695c;
  border-color: #fead57;
  color: #fff;
}

/* Shared hover effects */
.scaler-button.metric-convert:hover,
.scaler-button.print-button:hover,
.scaler-button.share-button:hover,
.scaler-button.copy-button:hover,
.scaler-button.cooking-mode-btn:hover,
.favorite-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

/* Specific hover colors */
.scaler-button.metric-convert:hover,
.scaler-button.print-button:hover {
  background: #2a2a2a;
}

.scaler-button.cooking-mode-btn:hover,
.favorite-button:hover {
  background-color: #00695c;
}

/* Style for the increment/decrement buttons */
.scaler-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background-color: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.scaler-button:not(.metric-convert):not(.print-button):not(.share-button):not(.copy-button):not(.clear-checklist-btn):not(.toggle-optionals-btn):not(.tools-toggle-btn):not(.cooking-mode-btn):hover {
  background-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

.multiplier-display {
  font-size: 1.2rem;
  font-weight: bold;
  width: 48px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: text;
  border-radius: 4px;
  outline: none;
}

.multiplier-display:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

@media (max-width: 500px) {
  .recipe-tools {
    flex-direction: column;
    gap: 12px;
  }
  
  .tool-group {
    width: 100%;
    justify-content: center;
  }
}

/* Print styles */
@media print {
  html, body {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.3;
    background: #fff !important;
    color: #000 !important;
    padding-bottom: 0 !important;
  }

  main {
    flex: none !important;
    min-height: 0 !important;
  }

  .recipeats-app .content,
  body.recipeats-app .content {
    padding-bottom: 0 !important;
  }
  
  header:not(.recipe-hero), footer, .recipe-controls, .favorite-button, .favorites-link,
  .recipe-intro,
  .recipe-tags, .nav-links, .scaler-container, .tag-section, .tag-filter,
  .print-button, .share-button, .copy-button, .clear-checklist-btn, .toggle-optionals-btn, .tools-toggle-btn, .tools-drawer, .scale-presets, .ingredient-check, .ingredient-filter, .recipe-notes,
  .recipe-ingredient-cta, .recipe-scaler-stepper, .recipe-scaler-label, .recipe-controls-wrapper, .recipe-toolbar,
  .shopping-list-button, .recipe-cooking-bar, .recipe-fab-cook, .cook-first-cta,
  .search, #clear-search, .tag-toggle, .nutrition-facts, #offline-badge, .print-hide,
  .toggle-controls-button, .recipe-controls-wrapper, .app-bottom-nav, .wiki-peatia-footer,
  .shopping-list-toolbar, .shopping-list-button,
  .wiki-peatia-footer, .contributor-section, .recipe-notes, .step-check-btn {
    display: none !important;
  }

  body.print-recipe-card .nutrition-facts,
  body.print-recipe-card .recipe-tags {
    display: none !important;
  }
  
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
  
  h1 {
    font-size: 18pt;
    margin: 0.5cm 0;
    page-break-after: avoid;
  }
  
  h2, h3 {
    font-size: 14pt;
    margin: 0.5cm 0 0.2cm;
    page-break-after: avoid;
  }
  
  p, ul, ol {
    margin-bottom: 0.2cm;
  }
  
  img {
    max-width: 100% !important;
  }
  
  ul, ol {
    page-break-inside: avoid;
  }
  
  article {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Add page break between main sections */
  h2 {
    page-break-before: auto;
  }
}

/* Recipe controls wrapper */

/* Shared button styles for all action buttons */
.scaler-button.metric-convert,
.scaler-button.print-button,
.scaler-button.share-button,
.scaler-button.copy-button,
.scaler-button.clear-checklist-btn,
.scaler-button.toggle-optionals-btn,
.scaler-button.tools-toggle-btn,
.scaler-button.cooking-mode-btn,
.favorite-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: none;
  flex: 1 1 0;
  height: 28px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 180ms ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* PWA / offline status banner */
.nav-brand { display: flex; align-items: center; gap: 8px; }

html:not(.recipeats-app-root) .nav-brand:not(.recipeats-app .nav-brand) {
  gap: 8px;
}

.offline-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: help;
}
.offline-badge-ready { background: #4caf50; }
.offline-badge-caching { background: #fead57; animation: badge-pulse 1.5s ease-in-out infinite; }
.offline-badge-offline { background: #ff9800; }
@keyframes badge-pulse {
  50% { opacity: 0.4; }
}

/* APK bottom navigation */
.recipeats-app .main-nav .nav-links[hidden] {
  display: none !important;
}

.recipeats-app .content {
  padding-bottom: var(--app-nav-h, calc(3rem + env(safe-area-inset-bottom, 0px)));
}

html.recipeats-app-root body.recipe-page {
  padding-bottom: 0 !important;
}


.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0;
  padding: 0.2rem 0 calc(0.2rem + env(safe-area-inset-bottom, 0px));
  background: #001a15;
  border-top: 1px solid #004d40;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.35);
}

.app-bottom-nav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 48px;
  padding: 0.35rem 0.1rem;
  border: none;
  background: transparent;
  color: #8ab89a;
  font: inherit;
  font-size: 0.62rem;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Browser sticky app mode: exit back to full website */
.browser-app-exit {
  display: none;
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  width: 100%;
}
html.recipeats-browser-app .browser-app-exit {
  display: block;
}
html.recipeats-browser-app .nav-brand {
  flex-direction: column;
  gap: 0;
}
.browser-app-exit a {
  color: #fead57;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.4rem;
}

.app-bottom-nav-item:visited {
  color: #8ab89a;
}

.app-bottom-nav-item.is-active,
.app-bottom-nav-item.is-active:visited {
  color: #fead57;
  font-weight: 600;
}

.app-bottom-nav-item:active {
  color: #e1c89c;
}

.app-bottom-nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 2px;
}

.app-bottom-nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-bottom-nav-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  line-height: 1.15;
}

.app-bottom-nav-item[data-count] .app-bottom-nav-label::after {
  content: ' ' attr(data-count);
  font-size: 0.85em;
  opacity: 0.9;
}

.app-more-reminders {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #004d40;
}

.app-more-reminders h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #fead57;
  font-weight: 600;
}

.app-more-reminder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-more-reminder-list li {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #c5dcc9;
}

.app-more-reminder-list a {
  color: #e1c89c;
}

.app-reminder-dismiss {
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #004d40;
  background: #123524;
  color: #8ab89a;
  font-size: 0.72rem;
  cursor: pointer;
}

.recipeats-app .recipe-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0;
}

.recipeats-app .recipe-toolbar.scaler-container,
.recipe-toolbar.cook-first-layout,
.recipeats-app .scaler-container.tools-drawer-layout,
.recipeats-app .scaler-container.cook-first-layout {
  width: auto;
  max-width: min(100%, 20rem);
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Recipe overflow sheet (app cook-first toolbar) */
.recipe-overflow-sheet {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.recipe-overflow-sheet[hidden] {
  display: none !important;
}

.recipe-overflow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.recipe-overflow-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 0 calc(3.5rem + env(safe-area-inset-bottom, 0px));
  padding: 1.35rem 1.25rem 1.25rem;
  background: #002921;
  border: 1px solid #004d40;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.recipe-overflow-dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(225, 200, 156, 0.28);
  border-radius: 6px;
  background: #123524;
  color: #8ab89a;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.recipe-overflow-dismiss:hover {
  border-color: #e1c89c;
  color: #e1c89c;
  background: #1a4332;
}

.recipe-overflow-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recipe-overflow-list .recipe-overflow-action {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  background: #123524;
  border: 1px solid rgba(225, 200, 156, 0.28);
  color: #8ab89a;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.recipe-overflow-list .recipe-overflow-action:hover {
  border-color: #e1c89c;
  color: #e1c89c;
  background: #123524;
  transform: none;
  box-shadow: none;
}

.recipe-overflow-list .recipe-overflow-action:focus-visible {
  outline: 2px solid #e1c89c;
  outline-offset: 2px;
}

/* Collapsible bottom nav on recipe pages */
.app-bottom-nav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
}

.app-bottom-nav-wrap .app-bottom-nav {
  position: static;
}

/* App homepage */
#app-cook-now[hidden] {
  display: none !important;
}

body.recipeats-app.app-home .nav-links-scroll {
  display: none;
}

/* Active timers strip (all app pages — lives in style.css so home gets it too) */
.recipeats-timer-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9100;
  padding: calc(0.35rem + env(safe-area-inset-top, 0px)) 0.75rem 0.35rem;
  background: #0a241c;
  border-bottom: 1px solid #cf5c28;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.recipeats-timer-strip[hidden] {
  display: none !important;
}

.recipeats-timer-strip-link {
  display: block;
  color: navajowhite;
  font-family: var(--rp-font-ui, system-ui, -apple-system, 'Segoe UI', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipeats-timer-strip-time {
  color: #e1c89c;
}

body.recipeats-app.has-timer-strip .main-nav {
  margin-top: 2.1rem;
}

body.recipeats-app.app-home.has-timer-strip .content {
  padding-top: 2.5rem;
}

body.recipeats-app.app-home .content {
  padding-top: 0.5rem;
}

body.recipeats-app.app-home .content > h1,
body.recipeats-app.app-home .content > p:first-of-type,
body.recipeats-app.app-home .content > p:nth-of-type(2),
body.recipeats-app.app-home .content > div[style] {
  display: none !important;
}

body.recipeats-app.app-home #whats-cooking-good-looking {
  margin: 0.35rem 0 0;
  font-family: Merriweather, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: navajowhite;
  text-align: center;
}

body.recipeats-app.app-home #message {
  display: block !important;
  margin: 0.35rem 0 0.15rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #9aab9e;
  text-align: center;
}

body.recipeats-app.app-home #message q {
  quotes: "\201C" "\201D";
}

.app-home-shell {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.app-home-content {
  padding: 0;
}

body.recipeats-app.app-home .search {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

body.recipeats-app.app-home .text-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  width: 100%;
}

body.recipeats-app.app-home .text-center > a {
  display: flex;
  min-width: 0;
  text-decoration: none;
}

body.recipeats-app.app-home .text-center .tag-toggle {
  width: 100%;
  min-height: 2.55rem;
  justify-content: center;
  font-size: 0.74rem;
  padding: 6px 8px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}

body.recipeats-app.app-home .text-center .tag-toggle span {
  font-size: 0.85rem;
}

body.recipeats-app.app-home .tag-filter {
  margin: 0;
  width: 100%;
}

body.recipeats-app.app-home #filter-status {
  margin: 0;
}

body.recipeats-app.app-home #recipes-heading {
  display: block !important;
  margin: 0.5rem 0 0;
  font-family: Merriweather, serif;
  font-size: 1rem;
  font-weight: 700;
  color: navajowhite;
}

body.recipeats-app.app-home #artlist {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 calc(var(--app-nav-h, 4rem) + 1.25rem);
  border-top: 1px solid #1a4a3a;
}

body.recipeats-app.app-home #artlist li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(225, 200, 156, 0.12);
}

body.recipeats-app.app-home #artlist li::marker {
  content: none;
}

body.recipeats-app.app-home #artlist li a {
  display: block;
  padding: 0.9rem 0.15rem;
  color: #e1c89c;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

body.recipeats-app.app-home #artlist li a:hover,
body.recipeats-app.app-home #artlist li a:visited {
  color: navajowhite;
  text-decoration: none;
}

/* Preview banner: small chip, not a second title */
html.recipeats-browser-app .browser-app-exit {
  margin: 0.05rem 0 0;
  font-size: 0.62rem;
}

html.recipeats-browser-app .browser-app-exit a {
  min-height: 1.5rem;
  padding: 0.1rem 0.35rem;
  color: #8ab89a;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 184, 154, 0.45);
}

html.recipeats-browser-app .nav-brand a {
  font-size: 1.15rem;
}

/* Recipe pages in app: bottom pad so last ingredients clear Cook + nav */
body.recipeats-app.recipe-page main.content {
  padding-bottom: calc(var(--app-nav-h, 4rem) + 4.5rem);
}

body.recipeats-app:not(.recipe-page) main.content {
  padding-bottom: calc(var(--app-nav-h, 4rem) + 1rem);
}

/* Kitchen toolbar denser */
body.recipeats-app .shopping-list-toolbar,
body.recipeats-app .kitchen-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.5rem;
  justify-content: flex-start;
}

/* Set the destructive action apart so it isn't a stray tap next to "Clear checked". */
body.recipeats-app .shop-toolbar-btn--danger {
  margin-left: 0.5rem;
}

body.recipeats-app .shopping-list-toolbar button,
body.recipeats-app .kitchen-toolbar button {
  min-height: 40px;
}

.app-home-start {
  text-align: center;
  padding-bottom: 0.5rem;
}

.app-home-section-label {
  margin: 1rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e1c89c;
  text-align: center;
}

.app-home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-bottom: 0.25rem;
}

.app-home-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(225, 200, 156, 0.22);
  background: #0f2e22;
  color: navajowhite;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.app-saved-export {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #1a4a3a;
}

.app-export-data {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #fead57;
  border-radius: 10px;
  background: rgba(207, 92, 40, 0.15);
  color: navajowhite;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.app-export-hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: #8ab89a;
  text-align: center;
}

/* Kitchen hub */
.kitchen-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.kitchen-page-head h1 {
  margin: 0;
  font-family: Merriweather, serif;
  font-size: 1.35rem;
  color: navajowhite;
}

.kitchen-page-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #9aab9e;
}

.kitchen-seg {
  display: flex;
  margin: 1rem 0 0.75rem;
  border-bottom: 1px solid #1a4a3a;
}

.kitchen-seg-btn {
  flex: 1;
  border: none;
  background: none;
  color: #8ab89a;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 0.5rem 0.75rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.kitchen-seg-btn.is-active {
  color: #e1c89c;
  border-bottom-color: #e1c89c;
}

.kitchen-panel-lead {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #c5dcc9;
  line-height: 1.4;
}

.kitchen-panel:not(.is-active) {
  display: none;
}

.app-home-recent {
  margin-bottom: 0.5rem;
  border: 1px solid #1a4a3a;
  border-radius: 10px;
  background: #0a241c;
  overflow: hidden;
}

.app-home-recent[hidden] {
  display: none !important;
}

.app-home-recent-title {
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-family: var(--rp-font-ui, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: #8ab89a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
}

.app-home-recent-title::-webkit-details-marker {
  display: none;
}

.app-home-recent-title::before {
  content: '▸ ';
  color: #e1c89c;
}

.app-home-recent[open] .app-home-recent-title::before {
  content: '▾ ';
}

.app-home-recent-list {
  list-style: none;
  margin: 0;
  padding: 0 0.45rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-home-recent-list a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #1a4a3a;
  color: navajowhite;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-home-recent-list a:hover {
  border-color: #e1c89c;
}

.app-more-sheet {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.app-more-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.app-more-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 0 calc(3.5rem + env(safe-area-inset-bottom, 0px));
  padding: 1rem 1.25rem 1.25rem;
  background: #002921;
  border: 1px solid #004d40;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.app-more-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #e1c89c;
}

.app-more-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-more-list a {
  display: block;
  padding: 0.75rem 0;
  color: #c5e8d4;
  text-decoration: none;
  border-bottom: 1px solid #00332b;
  font-size: 1rem;
}

.app-more-list li:last-child a {
  border-bottom: none;
}

.app-more-close {
  margin-top: 1rem;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #3d6b55;
  border-radius: 6px;
  background: #1a1a1a;
  color: #e1c89c;
  font: inherit;
  cursor: pointer;
}

body.app-more-open {
  overflow: hidden;
}

.favorites-page-list {
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.favorites-page-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.favorites-page-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #00332b;
}

.favorites-page-items a {
  color: #fead57;
  text-decoration: none;
  font-size: 1.05rem;
  flex: 1;
}

/* Matches .shopping-list-remove palette so saved/list pages feel the same. */
.remove-favorite-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8ab89a;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.remove-favorite-btn:hover {
  color: #ffad56;
  background: rgba(0, 77, 64, 0.3);
}

.shopping-list-page .shopping-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 1rem 0 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.shopping-list-host {
  max-width: 640px;
  margin: 0 auto;
}

.shopping-list-empty {
  text-align: center;
  color: #8ab89a;
  padding: 2rem 1rem;
}

.shopping-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shopping-list-header {
  margin: 1.25rem 0 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fead57;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #00332b;
}

.shopping-list-header:first-child {
  margin-top: 0;
}

.shopping-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #002921;
}

.shopping-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  cursor: pointer;
  color: #e1c89c;
  font-size: 1rem;
  line-height: 1.35;
}

.shopping-list-item.is-done label span {
  text-decoration: line-through;
  opacity: 0.55;
}

.shopping-list-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #00695c;
}

.shopping-list-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8ab89a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.shopping-list-remove:hover {
  color: #ffad56;
  background: rgba(0, 77, 64, 0.3);
}

.scaler-button.shopping-list-button {
  background: #1a3a2a;
  border-color: #2d5735;
}

.recipeats-app #offline-banner {
  bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
}

#offline-banner[hidden] { display: none !important; }

#offline-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #e1c89c;
  background: #001a15;
  border-top: 1px solid #004d40;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35);
}

#offline-banner button {
  background: #004d40;
  color: #e1c89c;
  border: 1px solid #00695c;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
}

#offline-banner button:hover {
  background: #00695c;
}

.offline-banner-ready {
  background: #002921;
}

.offline-banner-offline {
  background: #3d2a00;
  border-top-color: #ff9800;
}

/* iOS "Add to Home Screen" instruction sheet (opened from the iPhone banner). */
.ios-a2hs-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.ios-a2hs-card {
  background: #002921;
  color: navajowhite;
  border: 1px solid #004d40;
  border-radius: 14px;
  max-width: 360px;
  width: 100%;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.ios-a2hs-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #e1c89c;
}

.ios-a2hs-card p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #b9cdbf;
}

.ios-a2hs-steps {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ios-a2hs-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.ios-a2hs-ic {
  flex: 0 0 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #004d40;
  border-radius: 8px;
  color: #e1c89c;
  font-size: 1.25rem;
  font-weight: 700;
}

.ios-a2hs-close {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background: #e1c89c;
  color: #002921;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.seasonal-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.seasonal-fx__piece {
  position: absolute;
  top: -10%;
  opacity: 0;
  animation-name: seasonal-fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
@keyframes seasonal-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.85; }
  100% { transform: translate(var(--sway, 20px), 115vh) rotate(20deg); opacity: 0.5; }
}

/* Recipe/search/meal-plan surfaces: static/recipe-ui.css */

/* ========== Site polish: home + mobile browser (2026-07) ==========
   Keep brand tokens. Fix density, fit, and touch without app chrome. */

/* Home quick links: gold not pure yellow (still bright, less neon) */
.content > p a,
.content .text-center + p a,
#whats-cooking-good-looking + p a {
  color: #fead57;
}
.content > p a:visited {
  color: #e1c89c;
}
.content > p a:hover {
  color: navajowhite;
}

/* Recipe index list: full width on phones, clearer rows */
@media (max-width: 600px) {
  .content {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .content > h1 {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
    margin-bottom: 0.65rem;
  }

  .content > p {
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 0 0.15rem;
  }

  .text-center {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.75rem 0 1rem;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .tag-toggle {
    width: 100%;
    max-width: none;
    min-height: 48px;
    justify-content: center;
    text-align: center;
    padding: 0.45rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.2;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .tag-toggle span {
    font-size: 0.95rem;
  }

  .search {
    width: 100%;
    max-width: none;
    margin: 0.75rem 0 1rem;
  }

  input#search {
    font-size: 1rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 14px;
    border-color: #004d40;
  }

  .recipe-list {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 1rem 0 2rem;
  }

  .recipe-item {
    margin: 0.5rem 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border-color: rgba(225, 200, 156, 0.18);
  }

  .recipe-item a {
    font-size: 1.05rem;
    line-height: 1.3;
    color: #fead57;
  }

  .recipe-item a:hover {
    color: navajowhite;
  }

  /* Home / index lists that are plain ul */
  .content > ul:not(.tag-list) {
    max-width: none;
    padding-left: 1.15rem;
    margin: 0.5rem 0 1.5rem;
    text-align: left;
  }

  .content > ul:not(.tag-list) li {
    margin: 0.45rem 0;
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .content > ul:not(.tag-list) a {
    color: #fead57;
  }

  .main-nav {
    padding: 0.4rem 0.35rem 0.15rem;
    gap: 0.25rem;
  }

  .nav-brand a {
    font-size: 1.25rem;
  }

  footer {
    padding-top: 1.25rem;
  }

  .footer-content {
    gap: 1.1rem;
  }
}

/* Tablet / large phone home */
@media (min-width: 601px) and (max-width: 900px) {
  .text-center {
    gap: 0.55rem;
  }

  .tag-toggle {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
  }

  .recipe-list {
    max-width: 28rem;
  }
}

/* Desktop home: slightly calmer list */
@media (min-width: 901px) {
  .recipe-item {
    border-color: rgba(225, 200, 156, 0.2);
  }

  .recipe-item a {
    color: #fead57;
  }
}
