/*
 * Animal Fact of the Day. Everything is scoped under .aft.aft-root so the ruki theme (.entry-content,
 * .the-post, bare element rules) cannot leak in. The doubled class gives every rule (0,3,0) or more,
 * which beats ruki's `.the-post .entry-content p` (0,2,1). No url() (Autoptimize aggregates this file),
 * no :is() / :where(). Fonts: Fredoka and Nunito Sans are loaded sitewide, nothing is enqueued.
 * Palette: Flora Fauna Fun brand tokens. Shadows are tinted with ink, never black.
 */

.aft.aft-root {
	--aft-ink: #1a3a2f;
	--aft-ink2: #3b5a4f;
	--aft-mute: #4f675d;
	--aft-green: #4e9a3c;
	--aft-green-d: #2f6f23;
	--aft-leaf: #7bc142;
	--aft-coral: #ff8a5b;
	--aft-coral-d: #e8703f;
	--aft-sky: #6fa8e8;
	--aft-paper: #fdfbf2;
	--aft-cream: #fbf3d8;
	--aft-gold: #e2a82b;
	--aft-mint: #e8f4ec;
	--aft-line: rgba(26, 58, 47, 0.14);
	--aft-card: #ffffff;
	--aft-r1: 8px;
	--aft-r2: 12px;
	--aft-r3: 16px;
	--aft-shadow-1: 0 1px 2px rgba(26, 58, 47, 0.06), 0 4px 10px rgba(26, 58, 47, 0.08);
	--aft-shadow-2: 0 2px 4px rgba(26, 58, 47, 0.08), 0 14px 32px rgba(26, 58, 47, 0.2), 0 30px 60px -16px rgba(26, 58, 47, 0.24);
	--aft-display: Fredoka, 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--aft-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--aft-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	box-sizing: border-box;
	display: block;
	position: relative;
	max-width: 1100px;
	margin: 0 auto 32px;
	padding: 0;
	color: var(--aft-ink);
	font-family: var(--aft-body);
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	text-align: left;
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
}
.aft.aft-root *,
.aft.aft-root *::before,
.aft.aft-root *::after { box-sizing: border-box; }
.aft.aft-root [hidden] { display: none !important; }

.aft.aft-root h1,
.aft.aft-root h2,
.aft.aft-root h3,
.aft.aft-root nav,
.aft.aft-root em,
.aft.aft-root time {
	margin: 0;
	padding: 0;
	border: 0;
	float: none;
	background: none;
	color: inherit;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-align: inherit;
	text-shadow: none;
}
/* class-level twin of the reset above: ruki's `.the-post .entry-content h2` ties with (0,2,1), these win */
.aft.aft-root .aft-q,
.aft.aft-root .aft-title,
.aft.aft-root .aft-h3,
.aft.aft-root .aft-month,
.aft.aft-root .aft-arch-title {
	text-transform: none;
	border: 0;
	padding: 0;
	background: none;
	letter-spacing: normal;
	text-shadow: none;
	float: none;
}
.aft.aft-root h1::before, .aft.aft-root h1::after,
.aft.aft-root h2::before, .aft.aft-root h2::after,
.aft.aft-root h3::before, .aft.aft-root h3::after { content: none; }
/* no ul / ol / li inside the tool: Auto Ads anchors on them, the lists are div[role=list] > div[role=listitem] */
.aft.aft-root .aft-item { margin: 0; padding: 0; min-width: 0; }
.aft.aft-root .aft-sr {
	border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px;
}

/* theme links lose their colour and underline inside the tool */
.aft.aft-root a,
.aft.aft-root a:visited { text-decoration: none; }

/* -------------------------------------------------------------- hero stage */

.aft.aft-root .aft-note {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: var(--aft-r2);
	background: var(--aft-cream);
	border-left: 5px solid var(--aft-gold);
	font-weight: 700;
	font-size: 15px;
}

.aft.aft-root .aft-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 640px;
	border-radius: 0;
	background: linear-gradient(180deg, var(--aft-c1, #4e9a3c) 0%, var(--aft-c2, #2f6f23) 55%, var(--aft-c3, #1a3a2f) 100%);
}
.aft.aft-root .aft-canvas,
.aft.aft-root .aft-fx {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	display: block;
	margin: 0; padding: 0; border: 0;
}
.aft.aft-root .aft-canvas { z-index: 0; }
.aft.aft-root .aft-fx { z-index: 3; pointer-events: none; }
.aft.aft-root .aft-hero-in { position: relative; z-index: 2; padding: 112px 12px 52px; }
.aft.aft-root .aft-hero.aft-enter { animation: aft-enter 0.8s var(--aft-ease) both; }
@keyframes aft-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ the flip card */

.aft.aft-root .aft-flip { position: relative; max-width: 640px; margin: 0 auto; perspective: 1800px; }
.aft.aft-root .aft-flipper { position: relative; transform-style: preserve-3d; transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.2, 1); }
.aft.aft-root .aft-face {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	width: 100%;
	padding: 20px 18px 20px;
	border-radius: var(--aft-r3);
	background: var(--aft-paper);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: var(--aft-shadow-2);
}
.aft.aft-root .aft-back { transform: rotateY(180deg); }
/* before the script is ready: the teaser is in flow, the reveal is parked */
.aft.aft-root:not([data-aft-ready]) .aft-back { position: absolute; top: 0; left: 0; visibility: hidden; }
.aft.aft-root[data-aft-state='revealed'] .aft-flipper { transform: rotateY(180deg); }
.aft.aft-root[data-aft-state='revealed']:not([data-aft-ready]) .aft-back { position: relative; visibility: visible; }
.aft.aft-root[data-aft-state='revealed']:not([data-aft-ready]) .aft-front { position: absolute; top: 0; left: 0; visibility: hidden; }
/* ready: both faces stacked, the script sets the height of .aft-flip */
.aft.aft-root[data-aft-ready] .aft-flipper { height: 100%; }
.aft.aft-root[data-aft-ready] .aft-face { position: absolute; top: 0; left: 0; }
.aft.aft-root[data-aft-ready] .aft-flip { transition: height 0.55s var(--aft-ease); }
/* a fact page and a card without a teaser: the reveal sits in flow, nothing flips */
.aft.aft-root .aft-flip--solo .aft-flipper { transform: none; transition: none; height: auto; }
.aft.aft-root .aft-flip--solo .aft-back { position: relative; top: auto; left: auto; visibility: visible; transform: none; }

/* ------------------------------------------------------------------ teaser */

/* the teaser card: a habitat-tinted accent strip and glow, a floating decorative glyph, a staggered entrance */
.aft.aft-root .aft-front {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(120% 75% at 100% 0%, rgba(var(--aft-acc-rgb, 78, 154, 60), 0.17), rgba(var(--aft-acc-rgb, 78, 154, 60), 0) 62%),
		radial-gradient(90% 60% at 0% 100%, rgba(var(--aft-acc-rgb, 78, 154, 60), 0.09), rgba(var(--aft-acc-rgb, 78, 154, 60), 0) 60%),
		var(--aft-paper);
	animation: aft-card-in 0.7s var(--aft-ease) backwards;
}
.aft.aft-root .aft-front::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 6px;
	background: linear-gradient(90deg, var(--aft-c1, #4e9a3c), var(--aft-acc, #4e9a3c) 55%, var(--aft-c2, #2f6f23));
}
.aft.aft-root .aft-front > * { position: relative; z-index: 1; }
.aft.aft-root .aft-front > .aft-deco { position: absolute; z-index: 0; pointer-events: none; color: rgba(var(--aft-acc-rgb, 78, 154, 60), 0.14); }
.aft.aft-root .aft-deco-q { top: -18px; right: 4px; font-family: var(--aft-display); font-size: 150px; font-weight: 700; line-height: 1; animation: aft-float 9s ease-in-out infinite; }
.aft.aft-root .aft-deco-p { right: 18px; bottom: 6px; font-size: 54px; line-height: 1; animation: aft-float 12s ease-in-out -4s infinite; }
@keyframes aft-card-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes aft-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
.aft.aft-root .aft-front-top,
.aft.aft-root .aft-kicker,
.aft.aft-root .aft-q,
.aft.aft-root .aft-choice,
.aft.aft-root .aft-front-foot { animation: aft-rise 0.5s var(--aft-ease) backwards; }
.aft.aft-root .aft-front-top { animation-delay: 0.14s; }
.aft.aft-root .aft-kicker { animation-delay: 0.2s; }
.aft.aft-root .aft-q { animation-delay: 0.28s; }
.aft.aft-root .aft-choice:nth-child(1) { animation-delay: 0.4s; }
.aft.aft-root .aft-choice:nth-child(2) { animation-delay: 0.48s; }
.aft.aft-root .aft-choice:nth-child(3) { animation-delay: 0.56s; }
.aft.aft-root .aft-front-foot { animation-delay: 0.66s; }

.aft.aft-root .aft-front-top { display: flex; align-items: center; gap: 8px; }
.aft.aft-root .aft-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 28px;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--aft-cream);
	color: var(--aft-ink);
	font-family: var(--aft-body);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
}
.aft.aft-root a.aft-pill,
.aft.aft-root a.aft-pill:visited { background: var(--aft-mint); color: var(--aft-ink) !important; }
.aft.aft-root a.aft-pill:hover { background: #d4ebd9; }
.aft.aft-root .aft-hab-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.aft.aft-root .aft-kicker { margin-top: 14px; font-family: var(--aft-display); font-size: 16px; font-weight: 600; color: var(--aft-green-d); }
.aft.aft-root .aft-q { margin: 4px 0 16px; font-family: var(--aft-display); font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--aft-ink); }
.aft.aft-root .aft-choices { display: grid; gap: 10px; }

.aft.aft-root .aft-choice {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	padding: 9px 14px;
	border-radius: var(--aft-r2);
	border: 2px solid var(--aft-line);
	background: var(--aft-card);
	color: var(--aft-ink);
	font-family: var(--aft-body);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
	cursor: pointer;
	transition: transform 0.16s var(--aft-ease), border-color 0.16s, box-shadow 0.16s, background-color 0.16s, opacity 0.2s;
}
.aft.aft-root .aft-choice:hover,
.aft.aft-root .aft-choice:focus-visible { border-color: var(--aft-acc, var(--aft-green)); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(var(--aft-acc-rgb, 78, 154, 60), 0.28), 0 1px 2px rgba(26, 58, 47, 0.08); }
.aft.aft-root .aft-choice:hover .aft-ch-l,
.aft.aft-root .aft-choice:focus-visible .aft-ch-l { background: rgba(var(--aft-acc-rgb, 78, 154, 60), 0.2); }
.aft.aft-root .aft-choice:focus-visible,
.aft.aft-root .aft-skip:focus-visible,
.aft.aft-root .aft-wow:focus-visible,
.aft.aft-root .aft-sb:focus-visible,
.aft.aft-root .aft-btn:focus-visible,
.aft.aft-root .aft-cal-nav:focus-visible { outline: 3px solid var(--aft-sky); outline-offset: 2px; }
.aft.aft-root .aft-ch-l {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--aft-mint);
	color: var(--aft-ink);
	font-family: var(--aft-display);
	font-size: 16px;
	font-weight: 600;
}
.aft.aft-root .aft-ch-t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.aft.aft-root .aft-ch-m { flex: none; width: 26px; text-align: center; font-size: 20px; font-weight: 800; }
.aft.aft-root .aft-choice.is-locked { cursor: default; pointer-events: none; transform: none; }
.aft.aft-root .aft-choice.is-right,
.aft.aft-root .aft-choice.is-correct { background: #e3f5d6; border-color: var(--aft-green); box-shadow: 0 0 0 4px rgba(123, 193, 66, 0.28); }
.aft.aft-root .aft-choice.is-right .aft-ch-l,
.aft.aft-root .aft-choice.is-correct .aft-ch-l { background: var(--aft-leaf); }
.aft.aft-root .aft-choice.is-right .aft-ch-m::after,
.aft.aft-root .aft-choice.is-correct .aft-ch-m::after { content: '\2713'; color: var(--aft-green-d); }
.aft.aft-root .aft-choice.is-correct { animation: aft-pulse 0.9s 0.35s var(--aft-ease) 1; }
.aft.aft-root .aft-choice.is-wrong { background: #ffe8de; border-color: var(--aft-coral); }
.aft.aft-root .aft-choice.is-wrong .aft-ch-m::after { content: '\2715'; color: #b4451a; }
.aft.aft-root .aft-choice.is-dim { opacity: 0.55; }
.aft.aft-root .aft-front.is-shake { animation: aft-shake 0.5s ease-in-out 1; }
@keyframes aft-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes aft-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.03); } }

.aft.aft-root .aft-front-foot { margin-top: 10px; text-align: center; }
.aft.aft-root .aft-skip {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	color: var(--aft-ink2);
	font-family: var(--aft-body);
	font-size: 15px;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.aft.aft-root .aft-skip:hover { color: var(--aft-ink); }

/* ------------------------------------------------------------------ reveal */

.aft.aft-root .aft-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aft.aft-root .aft-animal { margin-top: 14px; font-family: var(--aft-display); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--aft-ink); }
.aft.aft-root .aft-sci { margin-top: 3px; color: var(--aft-mute); font-size: 17px; font-weight: 600; }
.aft.aft-root .aft-sci em { font-style: italic; }
.aft.aft-root .aft-verdict {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
	margin-top: 12px; padding: 10px 14px;
	border-radius: var(--aft-r2);
	font-size: 15px; line-height: 1.35;
}
.aft.aft-root .aft-verdict.is-r { background: #e3f5d6; color: #1c4a12; }
.aft.aft-root .aft-verdict.is-w { background: #ffe8de; color: #6f2a10; }
.aft.aft-root .aft-v-main { font-family: var(--aft-display); font-size: 18px; font-weight: 600; }
.aft.aft-root .aft-v-pct { font-weight: 700; }
.aft.aft-root .aft-v-streak { margin-left: auto; font-weight: 800; white-space: nowrap; }
.aft.aft-root .aft-title { margin: 14px 0 12px; font-family: var(--aft-display); font-size: 27px; font-weight: 600; line-height: 1.18; color: var(--aft-ink); }
.aft.aft-root .aft-w { display: inline-block; }

.aft.aft-root .aft-fig {
	margin: 14px 0 6px;
	padding: 14px 16px;
	border-radius: var(--aft-r2);
	background: var(--aft-mint);
	border-left: 6px solid var(--aft-leaf);
}
.aft.aft-root .aft-figval { display: block; font-family: var(--aft-display); line-height: 1.05; color: var(--aft-green-d); }
.aft.aft-root .aft-figvis { display: inline-flex; align-items: baseline; flex-wrap: wrap; }
.aft.aft-root .aft-num { display: inline-block; font-size: 54px; font-weight: 700; font-variant-numeric: tabular-nums; }
.aft.aft-root .aft-fp { font-size: 24px; font-weight: 600; }
.aft.aft-root .aft-fs { font-size: 24px; font-weight: 600; margin-left: 2px; }
.aft.aft-root .aft-fp-sp { margin-right: 8px; }
.aft.aft-root .aft-fs-sp { margin-left: 10px; }
.aft.aft-root .aft-figlabel { margin-top: 6px; color: var(--aft-ink2); font-size: 15px; font-weight: 700; }

.aft.aft-root .aft-body { margin-top: 14px; }
.aft.aft-root .aft-p { margin: 0 0 0.85em; color: var(--aft-ink); font-size: 17px; line-height: 1.62; }
.aft.aft-root .aft-p:last-child { margin-bottom: 0; }
.aft.aft-root .aft-human {
	display: flex; gap: 12px; align-items: flex-start;
	margin-top: 14px; padding: 12px 14px;
	border-radius: var(--aft-r2);
	background: var(--aft-cream);
	border-left: 5px solid var(--aft-gold);
	font-size: 16px; font-weight: 700; line-height: 1.45;
}
.aft.aft-root .aft-human i { flex: none; margin-top: 3px; color: #b07f10; font-size: 18px; }
.aft.aft-root .aft-src { margin-top: 14px; font-size: 15px; color: var(--aft-ink2); }
.aft.aft-root .aft-source { margin-bottom: 8px; overflow-wrap: anywhere; }
.aft.aft-root .aft-source a,
.aft.aft-root .aft-source a:visited { color: var(--aft-green-d) !important; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.aft.aft-root .aft-readmore,
.aft.aft-root .aft-readmore:visited {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 0 16px;
	border-radius: 999px;
	background: var(--aft-ink);
	color: var(--aft-paper) !important;
	font-weight: 800; text-decoration: none !important;
	transition: transform 0.16s var(--aft-ease), background-color 0.16s;
}
.aft.aft-root .aft-readmore:hover { background: #0f2a20; transform: translateY(-1px); }

/* entrance of the reveal parts, only while the flip plays */
.aft.aft-root[data-aft-anim] .aft-w { opacity: 0; transform: translateY(0.45em); animation: aft-word 0.55s var(--aft-ease) forwards; animation-delay: calc(var(--i) * 75ms + 500ms); }
.aft.aft-root[data-aft-anim] .aft-animal,
.aft.aft-root[data-aft-anim] .aft-sci,
.aft.aft-root[data-aft-anim] .aft-verdict,
.aft.aft-root[data-aft-anim] .aft-fig,
.aft.aft-root[data-aft-anim] .aft-body,
.aft.aft-root[data-aft-anim] .aft-human,
.aft.aft-root[data-aft-anim] .aft-src,
.aft.aft-root[data-aft-anim] .aft-actions { animation: aft-rise 0.6s var(--aft-ease) both; }
.aft.aft-root[data-aft-anim] .aft-animal { animation-delay: 0.3s; }
.aft.aft-root[data-aft-anim] .aft-sci { animation-delay: 0.4s; }
.aft.aft-root[data-aft-anim] .aft-verdict { animation-delay: 0.5s; }
.aft.aft-root[data-aft-anim] .aft-fig { animation-delay: 0.9s; }
.aft.aft-root[data-aft-anim] .aft-body { animation-delay: 1.2s; }
.aft.aft-root[data-aft-anim] .aft-human { animation-delay: 1.4s; }
.aft.aft-root[data-aft-anim] .aft-src { animation-delay: 1.5s; }
.aft.aft-root[data-aft-anim] .aft-actions { animation-delay: 1.6s; }
@keyframes aft-word { to { opacity: 1; transform: none; } }
@keyframes aft-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------- mind blown and sharing */

.aft.aft-root .aft-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--aft-line); }
.aft.aft-root .aft-wow {
	all: unset;
	box-sizing: border-box;
	position: relative;
	display: flex; align-items: center; gap: 10px;
	width: 100%; min-height: 58px;
	padding: 8px 18px;
	border-radius: var(--aft-r2);
	background: var(--aft-cream);
	border: 2px solid var(--aft-gold);
	color: var(--aft-ink);
	cursor: pointer;
	transition: transform 0.16s var(--aft-ease), background-color 0.2s, box-shadow 0.16s;
}
.aft.aft-root .aft-wow:hover { transform: translateY(-1px); box-shadow: var(--aft-shadow-1); }
.aft.aft-root .aft-wow-e { font-size: 28px; line-height: 1; }
.aft.aft-root .aft-wow-l { flex: none; font-family: var(--aft-display); font-size: 21px; font-weight: 600; white-space: nowrap; }
.aft.aft-root .aft-wow-n { flex: 1 1 auto; min-width: 0; margin-left: auto; font-size: 13px; font-weight: 800; line-height: 1.25; color: var(--aft-ink2); text-align: right; }
.aft.aft-root .aft-wow.is-on { background: var(--aft-gold); cursor: default; }
.aft.aft-root .aft-wow.is-on .aft-wow-n { color: var(--aft-ink); }
.aft.aft-root .aft-wow.is-pop .aft-wow-e { animation: aft-pop 0.7s var(--aft-ease); }
@keyframes aft-pop { 0% { transform: scale(1); } 35% { transform: scale(1.7) rotate(-12deg); } 70% { transform: scale(0.9) rotate(6deg); } 100% { transform: scale(1); } }

.aft.aft-root .aft-share { margin-top: 16px; }
.aft.aft-root .aft-share-l { margin-bottom: 8px; font-family: var(--aft-display); font-size: 17px; font-weight: 600; color: var(--aft-ink2); }
.aft.aft-root .aft-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.aft.aft-root .aft-sb,
.aft.aft-root .aft-sb:visited {
	all: unset;
	box-sizing: border-box;
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 44px; padding: 0 15px;
	border-radius: 999px;
	border: 1.5px solid var(--aft-line);
	background: var(--aft-card);
	color: var(--aft-ink) !important;
	font-family: var(--aft-body);
	font-size: 14px; font-weight: 800;
	cursor: pointer;
	text-decoration: none !important;
	transition: border-color 0.16s, transform 0.16s var(--aft-ease), background-color 0.16s;
}
.aft.aft-root .aft-sb:hover { border-color: var(--aft-green); transform: translateY(-1px); }
.aft.aft-root .aft-sb i { font-size: 15px; line-height: 1; }
.aft.aft-root .aft-sb .aft-x { font-family: var(--aft-display); font-size: 15px; font-weight: 700; line-height: 1; }
.aft.aft-root .aft-sb-save { background: var(--aft-coral); border-color: var(--aft-coral); }
.aft.aft-root .aft-sb-save:hover { background: var(--aft-coral-d); border-color: var(--aft-coral-d); }

/* ------------------------------------------------------------- under the card */

.aft.aft-root .aft-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 16px 16px 0; }
.aft.aft-root .aft-clock { display: flex; align-items: baseline; gap: 10px; font-weight: 800; color: var(--aft-ink2); }
.aft.aft-root .aft-clock-t { display: inline-block; min-width: 8ch; font-family: var(--aft-display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--aft-ink); }
.aft.aft-root .aft-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.aft.aft-root .aft-btn,
.aft.aft-root .aft-btn:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 44px; padding: 0 16px;
	border-radius: 999px;
	border: 1.5px solid var(--aft-line);
	background: var(--aft-card);
	color: var(--aft-ink) !important;
	font-family: var(--aft-body);
	font-size: 15px; font-weight: 800; line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: border-color 0.16s, transform 0.16s var(--aft-ease), background-color 0.16s;
}
.aft.aft-root .aft-btn:hover { border-color: var(--aft-green); transform: translateY(-1px); }
.aft.aft-root .aft-btn-solid,
.aft.aft-root .aft-btn-solid:visited { background: var(--aft-coral); border-color: var(--aft-coral); box-shadow: var(--aft-shadow-1); }
.aft.aft-root .aft-btn-solid:hover { background: var(--aft-coral-d); border-color: var(--aft-coral-d); }

.aft.aft-root .aft-sec { margin: 36px 16px 0; }
.aft.aft-root .aft-h3 { margin: 0 0 14px; font-family: var(--aft-display); font-size: 25px; font-weight: 600; line-height: 1.2; color: var(--aft-ink); }

.aft.aft-root .aft-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.aft.aft-root .aft-card,
.aft.aft-root .aft-card:visited {
	display: flex; flex-direction: column; gap: 6px;
	height: 100%; min-height: 98px;
	padding: 13px 16px 14px;
	border-radius: var(--aft-r2);
	background: var(--aft-card);
	border: 1px solid var(--aft-line);
	border-top: 5px solid var(--d, var(--aft-leaf));
	box-shadow: var(--aft-shadow-1);
	color: var(--aft-ink) !important;
	text-decoration: none !important;
	transition: transform 0.18s var(--aft-ease), box-shadow 0.18s;
}
.aft.aft-root .aft-card:hover { transform: translateY(-3px); box-shadow: var(--aft-shadow-2); }
.aft.aft-root .aft-cd { color: var(--aft-mute); font-size: 13px; font-weight: 800; }
.aft.aft-root .aft-cn { font-family: var(--aft-display); font-size: 18px; font-weight: 600; line-height: 1.25; }

/* ---------------------------------------------------------------- calendar */

.aft.aft-root .aft-cal { max-width: 560px; padding: 16px 16px 18px; border-radius: var(--aft-r3); background: var(--aft-card); border: 1px solid var(--aft-line); box-shadow: var(--aft-shadow-1); }
.aft.aft-root .aft-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.aft.aft-root .aft-cal-head .aft-h3 { margin: 0; font-size: 22px; }
.aft.aft-root .aft-cal-nav,
.aft.aft-root .aft-cal-nav:visited {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--aft-mint);
	color: var(--aft-ink) !important;
	font-size: 26px; font-weight: 800; line-height: 1;
	text-decoration: none !important;
}
.aft.aft-root a.aft-cal-nav:hover { background: #d4ebd9; }
.aft.aft-root .aft-cal-nav.is-off { opacity: 0.3; }
.aft.aft-root .aft-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.aft.aft-root .aft-cal-dow { text-align: center; color: var(--aft-mute); font-size: 12px; font-weight: 800; padding-bottom: 2px; }
.aft.aft-root .aft-day {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	min-height: 44px;
	border-radius: var(--aft-r1);
	color: var(--aft-mute);
	font-size: 14px; font-weight: 700;
}
.aft.aft-root .aft-day.is-pad { visibility: hidden; }
.aft.aft-root .aft-day.is-today { box-shadow: inset 0 0 0 2px var(--aft-coral); }
.aft.aft-root a.aft-day.has,
.aft.aft-root a.aft-day.has:visited { background: var(--aft-paper); border: 1px solid var(--aft-line); color: var(--aft-ink) !important; text-decoration: none !important; }
.aft.aft-root a.aft-day.has:hover { background: var(--aft-mint); border-color: var(--d); }
.aft.aft-root .aft-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--d, var(--aft-leaf)); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }

/* ------------------------------------------------------------------- chips */

.aft.aft-root .aft-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aft.aft-root .aft-chip,
.aft.aft-root .aft-chip:visited {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 16px;
	border-radius: 999px;
	background: var(--aft-mint);
	border: 1.5px solid transparent;
	color: var(--aft-ink) !important;
	font-size: 15px; font-weight: 800;
	text-decoration: none !important;
	transition: border-color 0.16s, background-color 0.16s;
}
.aft.aft-root .aft-chip:hover { border-color: var(--aft-green); background: #d9eedf; }
.aft.aft-root .aft-chip.is-current { background: var(--aft-ink); color: var(--aft-paper) !important; }
.aft.aft-root .aft-chip-n { padding: 1px 8px; border-radius: 999px; background: rgba(26, 58, 47, 0.1); font-size: 12px; }
.aft.aft-root .aft-chip.is-current .aft-chip-n { background: rgba(253, 251, 242, 0.2); }
.aft.aft-root .aft-chip-all { background: var(--aft-cream); }

/* --------------------------------------------------------------- WunderWild */

.aft.aft-root .aft-ww {
	display: flex; flex-direction: column; gap: 12px;
	margin: 36px 16px 0; padding: 22px;
	border-radius: var(--aft-r3);
	border: 1px solid rgba(26, 58, 47, 0.1);
	border-left: 6px solid var(--aft-leaf);
	background: var(--aft-cream);
}
.aft.aft-root .aft-ww-logo { display: block; align-self: flex-start; height: 40px; width: auto; max-width: 100%; object-fit: contain; border: 0; margin: 0; }
.aft.aft-root .aft-ww-head { font-family: var(--aft-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.aft.aft-root .aft-ww-body { margin-top: 4px; font-size: 16px; color: var(--aft-ink2); }
.aft.aft-root .aft-ww-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 14px; }
.aft.aft-root .aft-store,
.aft.aft-root .aft-store:visited {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 8px 20px 8px 16px;
	border-radius: 14px;
	background: var(--aft-coral);
	color: var(--aft-ink) !important;
	text-decoration: none !important;
	box-shadow: var(--aft-shadow-1);
	transition: transform 0.18s var(--aft-ease), background-color 0.18s;
}
.aft.aft-root .aft-store:hover { background: var(--aft-coral-d); transform: translateY(-2px); }
.aft.aft-root .aft-store i { font-size: 26px; }
.aft.aft-root .aft-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.aft.aft-root .aft-store small { font-size: 11px; font-weight: 700; }
.aft.aft-root .aft-store b { font-family: var(--aft-display); font-size: 20px; font-weight: 600; }
.aft.aft-root .aft-ww-more,
.aft.aft-root .aft-ww-more:visited { color: var(--aft-ink) !important; font-weight: 800; text-decoration: underline !important; text-underline-offset: 3px; }

/* ----------------------------------------------- single fact page, footer */

.aft.aft-root.aft-single { margin-bottom: 16px; }
.aft.aft-root.aft-after { margin-top: 0; }
.aft.aft-root .aft-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 16px; }
.aft.aft-root .aft-pn { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 24px 16px 0; }
.aft.aft-root .aft-pn-a,
.aft.aft-root .aft-pn-a:visited {
	display: flex; flex-direction: column; gap: 4px;
	padding: 14px 16px;
	border-radius: var(--aft-r2);
	background: var(--aft-card);
	border: 1px solid var(--aft-line);
	box-shadow: var(--aft-shadow-1);
	color: var(--aft-ink) !important;
	text-decoration: none !important;
}
.aft.aft-root .aft-pn-a:hover { border-color: var(--aft-green); }
.aft.aft-root .aft-pn-next { text-align: right; }
.aft.aft-root .aft-pn-d { color: var(--aft-mute); font-size: 13px; font-weight: 800; }
.aft.aft-root .aft-pn-t { font-family: var(--aft-display); font-size: 18px; font-weight: 600; line-height: 1.25; }

/* ----------------------------------------------------------------- archive */

.aft-main { display: block; padding: 24px 16px 8px; }
.aft.aft-root.aft-archive { max-width: 1100px; }
.aft.aft-root .aft-arch-head {
	margin: 0 0 22px; padding: 30px 22px 28px;
	border-radius: var(--aft-r3);
	background: linear-gradient(135deg, #1a3a2f 0%, #2f6f23 60%, #4e9a3c 100%);
	color: var(--aft-paper);
	box-shadow: var(--aft-shadow-2);
}
.aft.aft-root .aft-arch-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #bfe79a; }
.aft.aft-root .aft-arch-title { margin: 6px 0 8px; font-family: var(--aft-display); font-size: 38px; font-weight: 600; line-height: 1.1; color: #ffffff; }
.aft.aft-root .aft-arch-desc { max-width: 640px; font-size: 17px; line-height: 1.55; color: #eaf3e4; }
.aft.aft-root .aft-arch-today { margin-top: 18px; }
.aft.aft-root .aft-chips-nav { margin: 0 0 8px; }
.aft.aft-root .aft-month { margin: 28px 0 12px; font-family: var(--aft-display); font-size: 24px; font-weight: 600; color: var(--aft-ink); }
.aft.aft-root .aft-empty { padding: 28px 0; font-weight: 700; }
.aft.aft-root .aft-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.aft.aft-root .aft-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 14px;
	border-radius: 999px;
	background: var(--aft-card); border: 1.5px solid var(--aft-line);
	color: var(--aft-ink) !important; font-weight: 800; text-decoration: none !important;
}
.aft.aft-root .aft-pager .page-numbers.current { background: var(--aft-ink); color: var(--aft-paper) !important; }

/* ------------------------------------------------------------- breakpoints */

@media (min-width: 701px) {
	.aft.aft-root .aft-hero { min-height: 700px; border-radius: var(--aft-r3); }
	.aft.aft-root .aft-deco-q { font-size: 190px; top: -26px; right: 16px; }
	.aft.aft-root .aft-deco-p { font-size: 64px; right: 30px; bottom: 10px; }
	.aft.aft-root .aft-hero-in { padding: 150px 24px 76px; }
	.aft.aft-root .aft-face { padding: 26px 30px 26px; }
	.aft.aft-root .aft-q { font-size: 32px; margin-bottom: 20px; }
	.aft.aft-root .aft-title { font-size: 32px; }
	.aft.aft-root .aft-animal { font-size: 34px; }
	.aft.aft-root .aft-num { font-size: 64px; }
	.aft.aft-root .aft-under,
	.aft.aft-root .aft-sec,
	.aft.aft-root .aft-ww,
	.aft.aft-root .aft-cta-row,
	.aft.aft-root .aft-pn { margin-left: 0; margin-right: 0; }
	.aft.aft-root .aft-pn { grid-template-columns: 1fr 1fr; }
	.aft.aft-root .aft-ww { flex-direction: row; align-items: center; gap: 22px; }
	.aft.aft-root .aft-ww-logo { flex: none; align-self: center; }
	.aft.aft-root .aft-arch-head { padding: 40px 36px 36px; }
	.aft.aft-root .aft-arch-title { font-size: 48px; }
	.aft-main { padding: 36px 24px 12px; }
}

/* ruki pads .entry-content by 30px: the tool bleeds back to the screen edge on a phone */
@media (max-width: 700px) {
	.entry-content .aft.aft-root,
	.the-post .aft.aft-root { margin-left: -30px; margin-right: -30px; width: auto; max-width: none; }
	.aft.aft-root .aft-recent .aft-cards { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
	.aft.aft-root .aft-recent .aft-cards > .aft-item { flex: 0 0 76%; scroll-snap-align: start; }
	.aft.aft-root .aft-cal { margin-left: 16px; margin-right: 16px; }
}
@media (max-width: 360px) {
	.aft.aft-root .aft-q { font-size: 23px; }
	.aft.aft-root .aft-num { font-size: 46px; }
	.aft.aft-root .aft-face { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.aft.aft-root .aft-flipper,
	.aft.aft-root .aft-flip,
	.aft.aft-root .aft-choice,
	.aft.aft-root .aft-btn,
	.aft.aft-root .aft-card { transition: none; }
	.aft.aft-root .aft-front,
	.aft.aft-root .aft-front-top,
	.aft.aft-root .aft-kicker,
	.aft.aft-root .aft-q,
	.aft.aft-root .aft-choice,
	.aft.aft-root .aft-front-foot,
	.aft.aft-root .aft-deco,
	.aft.aft-root .aft-front.is-shake,
	.aft.aft-root .aft-choice.is-correct,
	.aft.aft-root .aft-wow.is-pop .aft-wow-e,
	.aft.aft-root .aft-hero.aft-enter { animation: none; }
	.aft.aft-root[data-aft-anim] .aft-w { opacity: 1; transform: none; animation: none; }
	.aft.aft-root[data-aft-anim] .aft-animal,
	.aft.aft-root[data-aft-anim] .aft-sci,
	.aft.aft-root[data-aft-anim] .aft-verdict,
	.aft.aft-root[data-aft-anim] .aft-fig,
	.aft.aft-root[data-aft-anim] .aft-body,
	.aft.aft-root[data-aft-anim] .aft-human,
	.aft.aft-root[data-aft-anim] .aft-src,
	.aft.aft-root[data-aft-anim] .aft-actions { animation: none; }
}

/* Fact page only (body class from aft_body_class()). On phones the theme's featured image above the title pushes the teaser
   down: hide it (it stays in og:image and on desktop). ruki markup: article.single-page > .post-thumbnail. */
@media (max-width: 700px) {
	body.aft-fact-page article.single-page .post-thumbnail { display: none; }
}
/* The theme's visually hidden "Search" label on the mobile toggle is 32 px wide at the right edge and gives every page of the
   site 1 px of horizontal scroll at 390 px. Keep it inside the viewport on the fact page. */
body.aft-fact-page .mobile-toggle .screen-reader-text { width: 1px !important; max-width: 1px !important; overflow: hidden !important; }
