/* Meal Steals shared site CSS, imported by `/` and `/deals`.
   Variables, brand bar (Layer 1 watermark), LAT press card, install bar,
   install buttons, toast. Page-specific styles live in each page's
   <style> block. */

:root {
	--orange: #ff6b35;
	--orange-dark: #e55a2b;
	--orange-text: #c44b1a;
	--charcoal: #1a1a2e;
	--text: #1a1a1a;
	--text2: #555;
	--text3: #767676;
	--border: #e8e8e8;
	--red: #dc2626;
	--red-bg: #fef2f2;
	--green: #059669;
	--green-bg: #ecfdf5;
	--blue: #2563eb;
	--blue-bg: #eff6ff;
	--code-bg: #f3f4f6;
	--code-border: #d1d5db;
	/* Brand-bar height (Layer 1 watermark). Page styles use this to offset
	   the sticky .site-header so a future bump to .brand-bar padding can't
	   silently desync the two stuck rows. Mobile default; desktop override
	   in the @media block below. */
	--brand-bar-height: 36px;
}
@media (min-width: 768px) {
	:root {
		--brand-bar-height: 40px;
	}
}

/* -- Brand bar (Layer 1 page-header watermark) --
   Sticky top, ~36px tall on mobile, 44px on desktop. Lives above the
   site-header so any screenshot of the page top carries the wordmark and
   today's date. Tap returns to homepage. */
.brand-bar {
	position: sticky;
	top: 0;
	z-index: 110;
	background: #fff;
	border-bottom: 1px solid var(--border);
	padding: 6px 16px;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.brand-bar-inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 24px;
}
.brand-bar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--orange-text);
	text-decoration: none;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.brand-bar-link img {
	width: 16px;
	height: 16px;
	border-radius: 3px;
}
.brand-bar-link:hover {
	color: var(--orange);
}
.brand-bar-date {
	font-size: 11px;
	font-weight: 600;
	color: var(--text3);
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (min-width: 768px) {
	.brand-bar {
		padding: 8px 24px;
	}
	.brand-bar-link {
		font-size: 13px;
	}
	.brand-bar-link img {
		width: 18px;
		height: 18px;
	}
	.brand-bar-date {
		font-size: 12px;
	}
}

/* -- LAT press badge + pull quote (60-day visibility) -- */
.lat-press {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 14px;
	transition: box-shadow 0.15s, border-color 0.15s;
}
.lat-press:hover {
	border-color: var(--orange);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.lat-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--orange-text);
	background: #fff3ed;
	padding: 3px 7px;
	border-radius: 3px;
	margin-bottom: 6px;
}
.lat-quote {
	font-size: 14px;
	line-height: 1.4;
	color: var(--text);
	font-style: italic;
	margin-bottom: 4px;
}
.lat-attribution {
	font-size: 11px;
	color: var(--text3);
	font-weight: 500;
}
.lat-attribution strong {
	color: var(--text2);
	font-weight: 600;
}

/* -- Install buttons (hero) -- */
.hero-install {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	background: var(--charcoal);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 6px;
	transition: opacity 0.15s;
	font-family: inherit;
}
.hero-install:first-of-type {
	background: #000;
}
.hero-install:hover {
	opacity: 0.88;
}

/* Outline secondary button (e.g. Share) */
.hero-share {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text2);
	background: transparent;
	border: 1px solid var(--border);
	padding: 9px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	font-family: inherit;
}
.hero-share:hover {
	background: #fff;
	color: var(--text);
}

/* -- Sticky install bar (appears after hero scrolls offscreen) -- */
.install-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	border-top: 3px solid var(--orange);
	padding: 10px 14px;
	padding-bottom: max(10px, env(safe-area-inset-bottom));
	z-index: 90;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
	display: none;
	align-items: center;
	gap: 10px;
	transform: translateY(100%);
	transition: transform 0.2s;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.install-bar.show {
	display: flex;
	transform: translateY(0);
}
.install-bar-text {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.3;
}
.install-bar-text small {
	display: block;
	font-size: 11px;
	font-weight: 500;
	color: var(--text3);
	margin-top: 1px;
}
.install-bar-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.install-bar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 44px;
	padding: 10px 12px;
	background: var(--charcoal);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 5px;
	transition: opacity 0.15s;
}
.install-bar-btn-apple {
	background: #000;
}
.install-bar-btn:hover {
	opacity: 0.88;
}
.install-bar-close {
	background: none;
	border: none;
	color: var(--text3);
	font-size: 18px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	min-width: 44px;
	min-height: 44px;
	font-family: inherit;
}
.install-bar-close:hover {
	color: var(--text);
}

/* Pad the body when the install bar is visible so it does not cover the footer. */
body.install-bar-visible {
	padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

/* -- Toast notification -- */
.toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--charcoal);
	color: #fff;
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
	z-index: 200;
	white-space: nowrap;
}
.toast.show {
	opacity: 1;
}
