/**
 * BoiledEggTimer — site furniture.
 *
 * Prose, timing charts, FAQ blocks, bylines, sticky CTA. GeneratePress still
 * owns the header, navigation, and footer — this does not rebuild them, which
 * is why it is a fraction of the size of the old Customizer dump.
 */

body {
	background: var(--bet-paper);
	color: var(--bet-ink);
	font-family: var(--bet-font-body);
	font-size: var(--bet-step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.entry-title {
	font-family: var(--bet-font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
	color: var(--bet-ink);
}

h1, .entry-title { font-size: var(--bet-step-4); }
h2 { font-size: var(--bet-step-3); margin-top: var(--bet-space-xl); }
h3 { font-size: var(--bet-step-2); margin-top: var(--bet-space-l); }
h4 { font-size: var(--bet-step-1); }

.entry-content p,
.entry-content li {
	max-width: var(--bet-measure);
}

.entry-content a {
	color: var(--bet-ink);
	text-decoration-color: var(--bet-yolk-deep);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--bet-yolk-deep);
}

:focus-visible {
	outline: 3px solid var(--bet-yolk-deep);
	outline-offset: 2px;
}

/* ---------------------------------------------------- the 40-word answer -- */

/**
 * Every page opens with this. It is the featured-snippet target, the AI-answer
 * target, and the thing a person standing at a stove actually needs.
 */
.bet-answer {
	font-family: var(--bet-font-display);
	font-size: var(--bet-step-1);
	line-height: 1.4;
	font-weight: 500;
	background: var(--bet-surface);
	border: var(--bet-border);
	border-left: 4px solid var(--bet-yolk);
	border-radius: var(--bet-radius-m);
	padding: var(--bet-space-s) var(--bet-space-m);
	margin-block: var(--bet-space-m);
	max-width: var(--bet-measure);
}

/* --------------------------------------------------------- timing chart -- */

.bet-chart {
	margin-block: var(--bet-space-l);
}

.bet-chart__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: var(--bet-border);
	border-radius: var(--bet-radius-m);
	background: var(--bet-surface);
}

.bet-chart table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.bet-chart caption {
	text-align: left;
	font-size: var(--bet-step--1);
	color: var(--bet-ink-muted);
	padding-bottom: var(--bet-space-2xs);
}

.bet-chart th,
.bet-chart td {
	padding: var(--bet-space-2xs) var(--bet-space-xs);
	text-align: left;
	border-bottom: 1px solid var(--bet-shell);
}

.bet-chart thead th {
	font-size: var(--bet-step--1);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bet-ink-muted);
	background: var(--bet-surface-sunk);
	position: sticky;
	top: 0;
}

.bet-chart tbody th {
	font-weight: 600;
	font-family: var(--bet-font-display);
}

.bet-chart tbody tr:last-child th,
.bet-chart tbody tr:last-child td {
	border-bottom: none;
}

/**
 * Every time cell is a start button. This is the #3 cluster by volume
 * (2,597,850) and the fastest path from "how long" to a running timer.
 */
.bet-chart__start {
	font: inherit;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	min-height: var(--bet-tap);
	width: 100%;
	text-align: left;
	background: transparent;
	border: 2px solid transparent;
	border-radius: var(--bet-radius-s);
	padding: var(--bet-space-3xs) var(--bet-space-2xs);
	cursor: pointer;
	color: var(--bet-ink);
	display: flex;
	align-items: center;
	gap: var(--bet-space-2xs);
}

.bet-chart__start::after {
	content: 'Start';
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bet-yolk-deep);
	border: 1px solid currentColor;
	border-radius: var(--bet-radius-pill);
	padding: 1px 8px;
	opacity: 0;
	transition: opacity var(--bet-motion-fast) var(--bet-ease);
}

.bet-chart__start:hover,
.bet-chart__start:focus-visible {
	background: var(--bet-yolk-wash);
	border-color: var(--bet-yolk);
}

.bet-chart__start:hover::after,
.bet-chart__start:focus-visible::after {
	opacity: 1;
}

/* Touch has no hover, so the affordance is always on. */
@media (hover: none) {
	.bet-chart__start::after { opacity: 1; }
}

/* ------------------------------------------------------------------ FAQ -- */

.bet-faq {
	margin-block: var(--bet-space-l);
	max-width: var(--bet-measure);
}

.bet-faq details {
	border-bottom: 1px solid var(--bet-shell);
}

.bet-faq summary {
	font-family: var(--bet-font-display);
	font-size: var(--bet-step-1);
	font-weight: 600;
	cursor: pointer;
	padding: var(--bet-space-xs) var(--bet-space-l) var(--bet-space-xs) 0;
	min-height: var(--bet-tap);
	position: relative;
	list-style: none;
}

.bet-faq summary::-webkit-details-marker { display: none; }

.bet-faq summary::after {
	content: '';
	position: absolute;
	right: var(--bet-space-2xs);
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--bet-ink-muted);
	border-bottom: 2px solid var(--bet-ink-muted);
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--bet-motion) var(--bet-ease);
}

.bet-faq details[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.bet-faq details > :not(summary) {
	padding-bottom: var(--bet-space-s);
}

/* --------------------------------------------------------------- byline -- */

/**
 * Required on every nutrition, health, pet, infant, and food-safety page.
 * These are YMYL topics and an uncredited claim on one is the biggest
 * compliance exposure on the site.
 */
.bet-byline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bet-space-2xs) var(--bet-space-s);
	align-items: center;
	font-size: var(--bet-step--1);
	color: var(--bet-ink-muted);
	padding: var(--bet-space-2xs) 0;
	border-block: 1px solid var(--bet-shell);
	margin-block: var(--bet-space-s);
}

.bet-byline__reviewer {
	font-weight: 600;
	color: var(--bet-ink);
}

/* ---------------------------------------------------------- sticky CTA -- */

/**
 * Mobile only. Rendered by a GP Block Element with display rules, so it never
 * needs a template override.
 */
.bet-sticky-cta {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	padding: var(--bet-space-2xs) var(--bet-space-s)
		calc(var(--bet-space-2xs) + env(safe-area-inset-bottom));
	background: var(--bet-surface);
	border-top: var(--bet-border);
	box-shadow: 0 -8px 24px -16px rgba(26, 23, 20, 0.4);
	display: flex;
	gap: var(--bet-space-2xs);
	align-items: center;
	justify-content: space-between;
}

.bet-sticky-cta a {
	background: var(--bet-ink);
	color: var(--bet-surface);
	text-decoration: none;
	font-weight: 600;
	border-radius: var(--bet-radius-pill);
	min-height: var(--bet-tap);
	display: inline-flex;
	align-items: center;
	padding-inline: var(--bet-space-m);
}

@media (min-width: 769px) {
	.bet-sticky-cta { display: none; }
}

body.bet-fullscreen-open .bet-sticky-cta { display: none; }

/* ------------------------------------------------------- related links -- */

.bet-related {
	background: var(--bet-surface);
	border: var(--bet-border);
	border-radius: var(--bet-radius-m);
	padding: var(--bet-space-m);
	margin-block: var(--bet-space-l);
}

.bet-related h2 {
	margin-top: 0;
	font-size: var(--bet-step-1);
}

.bet-related ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--bet-space-2xs);
}

.bet-related a {
	display: block;
	padding: var(--bet-space-2xs) 0;
	min-height: var(--bet-tap);
}

@media print {
	.bet-sticky-cta,
	.bet-timer__controls,
	.bet-timer__settings { display: none; }

	.bet-chart__scroll { border: none; }
}
