/* ==========================================================================
   Exam Results redesign
   Navy "official notice board" with orange accents.
   ========================================================================== */

:root {
	--er-navy-950: #050f26;
	--er-navy-900: #081634;
	--er-navy-800: #0b1f4b;
	--er-navy-700: #14306b;
	--er-navy-600: #234391;
	--er-navy-100: #e6ebf6;
	--er-navy-50: #f2f5fb;
	--er-accent: #f26b1d;       /* decorative orange */
	--er-accent-strong: #c2410c;/* orange for text / buttons (AA on white) */
	--er-accent-50: #fff2ea;
	--er-paper: #f5f3ee;
	--er-surface: #ffffff;
	--er-ink: #131a2c;
	--er-muted: #5a6377;
	--er-line: #e4e1d9;
	--er-line-strong: #d3cfc4;
	--er-green: #12784a;
	--er-radius: 14px;
	--er-radius-sm: 9px;
	--er-shadow: 0 1px 2px rgba(11, 31, 75, .06), 0 6px 20px -8px rgba(11, 31, 75, .18);
	--er-shadow-lg: 0 2px 4px rgba(11, 31, 75, .06), 0 24px 48px -20px rgba(11, 31, 75, .35);
	--er-font-display: "Bricolage Grotesque", "Hind", system-ui, sans-serif;
	--er-font-body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
	--er-header-h: 68px;
	--er-sticky-top: calc(var(--er-header-h) + 16px);
}

/* ---------- Base (overrides legacy theme styles) ---------- */
body.er {
	background: var(--er-paper);
	color: var(--er-ink);
	font-family: var(--er-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.er h1, body.er h2, body.er h3, body.er h4, body.er h5, body.er h6,
body.er .entry-header .entry-title a, body.er .widget-title, body.er .post-title a {
	color: var(--er-ink);
	font-family: var(--er-font-display);
	letter-spacing: -0.015em;
	line-height: 1.2;
}
body.er a { color: var(--er-navy-600); }
body.er a:hover { color: var(--er-accent-strong); }
body.er :focus-visible {
	outline: 3px solid var(--er-accent);
	outline-offset: 2px;
	border-radius: 4px;
}
body.er img { max-width: 100%; height: auto; }
.er-site { overflow-x: clip; }
.er-wrap { max-width: 1540px; margin: 0 auto; padding: 0 16px; }
.er-i { flex: none; vertical-align: middle; }

/* ---------- Top bar ---------- */
.er-topbar {
	background: var(--er-navy-950);
	color: #c9d3ea;
	font-size: 14px;
}
.er-topbar__in {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 38px;
}
.er-topbar__date { display: inline-flex; align-items: center; gap: 8px; }
.er-topbar__date .er-i { width: 16px; height: 16px; color: var(--er-accent); }
.er-topbar__nav { display: flex; gap: 18px; list-style: none; margin: 0 0 0 auto; padding: 0; }
body.er .er-topbar a { color: #c9d3ea; text-decoration: none; }
body.er .er-topbar a:hover { color: #fff; }
.er-topbar__social { display: flex; gap: 6px; }
.er-topbar__social a {
	display: grid; place-items: center;
	width: 28px; height: 28px; border-radius: 50%;
	background: rgba(255,255,255,.06);
}
.er-topbar__social .er-i { width: 15px; height: 15px; }
@media (max-width: 720px) {
	.er-topbar__nav, .er-topbar__social { display: none; }
}

/* ---------- Header ---------- */
.er-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--er-line);
	transition: box-shadow .25s ease;
}
body.admin-bar .er-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .er-header { top: 0; } }
.er-header.is-stuck { box-shadow: 0 8px 24px -12px rgba(11,31,75,.25); }
.er-header__in {
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--er-header-h);
}

.er-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
	flex: none;
}
.er-brand__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--er-navy-800);
	color: #fff;
	font: 800 16px/1 var(--er-font-display);
	letter-spacing: .02em;
	position: relative;
	box-shadow: inset 0 -3px 0 var(--er-accent);
}
.er-brand__text {
	font: 800 21px/1 var(--er-font-display);
	color: var(--er-navy-800);
	letter-spacing: -0.03em;
}
.er-brand__text small { font-size: .7em; color: var(--er-accent-strong); font-weight: 700; margin-left: 1px; }
.er-brand--light .er-brand__text { color: #fff; }
.er-brand--light .er-brand__text small { color: var(--er-accent); }

.er-nav { flex: 1; }
.er-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.er-menu > li { position: relative; display: flex; align-items: center; }
body.er .er-menu a {
	display: block;
	padding: 9px 13px;
	border-radius: 9px;
	color: var(--er-ink);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: background .15s, color .15s;
}
body.er .er-menu a:hover { background: var(--er-navy-50); color: var(--er-navy-700); }
body.er .er-menu > .current-menu-item > a,
body.er .er-menu > .current-menu-ancestor > a {
	color: var(--er-navy-800);
	background: var(--er-navy-100);
}
.er-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--er-line);
	border-radius: 12px;
	box-shadow: var(--er-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .18s ease;
}
.er-menu li:hover > .sub-menu,
.er-menu li:focus-within > .sub-menu,
.er-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
body.er .er-menu .sub-menu a { font-weight: 500; font-size: 15px; }
.er-subtoggle {
	width: 26px; height: 26px; margin-left: -8px;
	border: 0; background: transparent; cursor: pointer; border-radius: 6px;
	position: relative;
}
.er-subtoggle::before {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 7px; height: 7px;
	border-right: 2px solid var(--er-muted); border-bottom: 2px solid var(--er-muted);
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s;
}
.er-subtoggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(-135deg); }

.er-header__actions { display: flex; gap: 6px; margin-left: auto; }
.er-iconbtn {
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border: 1px solid var(--er-line);
	border-radius: 11px;
	background: #fff;
	color: var(--er-navy-800);
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.er-iconbtn:hover { background: var(--er-navy-50); border-color: var(--er-line-strong); }
.er-burger { display: none; }

.er-search {
	border-top: 1px solid var(--er-line);
	padding: 14px 0;
	background: #fff;
}
.er-search .er-searchform { max-width: 760px; margin: 0 auto; }

@media (max-width: 991px) {
	.er-burger { display: grid; }
	.er-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--er-line);
		box-shadow: var(--er-shadow-lg);
		padding: 10px 16px 18px;
		max-height: calc(100vh - var(--er-header-h));
		overflow-y: auto;
	}
	.er-nav.is-open { display: block; animation: er-drop .2s ease; }
	.er-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.er-menu > li { flex-wrap: wrap; }
	.er-menu > li > a { flex: 1; }
	body.er .er-menu a { padding: 12px; font-size: 17px; }
	.er-subtoggle { width: 44px; height: 44px; margin: 0; }
	.er-menu .sub-menu {
		position: static; flex-basis: 100%;
		display: none; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0;
	}
	.er-menu li.is-open > .sub-menu { display: block; }
	.er-menu li:hover > .sub-menu { display: none; }
	.er-menu li.is-open:hover > .sub-menu { display: block; }
}
@keyframes er-drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Ticker ---------- */
.er-ticker {
	background: var(--er-navy-800);
	color: #fff;
	font-size: 15px;
}
.er-ticker__in { display: flex; align-items: center; gap: 14px; height: 44px; }
.er-ticker__tag {
	display: inline-flex; align-items: center; gap: 8px;
	flex: none;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--er-accent-strong);
	font: 700 13px/1.4 var(--er-font-display);
	text-transform: uppercase;
	letter-spacing: .08em;
}
.er-ticker__track {
	display: flex;
	overflow: hidden;
	flex: 1;
	mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.er-ticker__list {
	display: flex; flex: none; gap: 40px;
	margin: 0; padding: 0 40px 0 0; list-style: none;
	animation: er-marquee 55s linear infinite;
}
.er-ticker__track:hover .er-ticker__list,
.er-ticker__track:focus-within .er-ticker__list { animation-play-state: paused; }
.er-ticker__list li { white-space: nowrap; position: relative; }
.er-ticker__list li::before {
	content: ""; position: absolute; left: -22px; top: 50%;
	width: 5px; height: 5px; border-radius: 50%; background: var(--er-accent);
}
body.er .er-ticker a { color: #fff; text-decoration: none; }
body.er .er-ticker a:hover { color: #ffd2b8; text-decoration: underline; }
@keyframes er-marquee { to { transform: translateX(-100%); } }

.er-pulse {
	width: 8px; height: 8px; border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 0 rgba(255,255,255,.7);
	animation: er-pulse 1.8s infinite;
}
@keyframes er-pulse { 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ---------- Shell: left rail | content | right rail ---------- */
.er-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	max-width: 1540px;
	margin: 0 auto;
	padding: 0 16px;
}
.er-main { min-width: 0; padding-bottom: 48px; }
.er-rail { display: none; padding-top: 24px; }
.er-rail__inner { position: sticky; top: var(--er-sticky-top); }
body.admin-bar .er-rail__inner,
body.admin-bar .er-sticky { top: calc(var(--er-sticky-top) + 32px); }
@media (min-width: 1280px) {
	.er-shell { grid-template-columns: 120px minmax(0, 1fr) 120px; }
	.er-rail { display: block; }
}
@media (min-width: 1500px) {
	.er-shell { grid-template-columns: 160px minmax(0, 1140px) 160px; justify-content: center; }
}
/* Legacy containers inside the shell should fill the column. */
.er-main .container { max-width: 100%; }

/* ---------- Ads ---------- */
.er-ad {
	position: relative;
	margin: 28px auto;
	text-align: center;
	clear: both;
}
.er-ad__label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8a91a2;
}
.er-ad--incontent ins { min-height: 250px; }
.er-ad--leader ins { min-height: 90px; }
.er-ad--sidebar { margin: 0; }
.er-ad--sidebar ins { min-height: 600px; }
.er-ad--rail { margin: 0; }
.er-list__ad .er-ad { margin: 0; }
.er-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
@media (max-width: 767px) {
	.er-ad--leader ins { min-height: 100px; }
	.er-ad--sidebar { display: none; }
}

/* ---------- Containers / sections ---------- */
.er-container { padding-top: 24px; }
.er-section { margin: 36px 0; }
.er-section__head {
	display: flex; align-items: end; justify-content: space-between;
	margin-bottom: 16px;
}
.er-section__head h2 { font-size: 26px; margin: 0; }
.er-panel {
	background: var(--er-surface);
	border: 1px solid var(--er-line);
	border-radius: var(--er-radius);
	padding: 22px;
	box-shadow: var(--er-shadow);
}
.er-panel.er-section { padding: 22px; }
.er-panel__title {
	font-size: 19px !important;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--er-navy-800);
	position: relative;
}
.er-panel__title::after {
	content: ""; position: absolute; left: 0; bottom: -2px;
	width: 44px; height: 2px; background: var(--er-accent);
}

.er-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.er-layout__side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.er-layout__main { min-width: 0; }
.er-sticky { position: sticky; top: var(--er-sticky-top); }
@media (min-width: 1024px) {
	.er-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* ---------- Hero ---------- */
.er-hero {
	position: relative;
	margin: 24px 0 0;
	border-radius: 22px;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(900px 400px at 105% -10%, rgba(242,107,29,.32), transparent 60%),
		radial-gradient(700px 500px at -10% 120%, rgba(35,67,145,.8), transparent 60%),
		var(--er-navy-800);
	isolation: isolate;
}
.er-hero::before { /* ledger grid */
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background-image:
		linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.er-hero__grid {
	display: grid;
	gap: 32px;
	padding: 44px 40px;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
	.er-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding: 56px 48px; }
}
@media (max-width: 600px) { .er-hero__grid { padding: 30px 20px; } .er-hero { border-radius: 16px; } }

.er-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 16px;
	padding: 5px 14px 5px 12px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	font-size: 14px;
	color: #dfe6f7;
	background: rgba(255,255,255,.05);
}
body.er .er-hero__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(36px, 5.2vw, 62px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
}
.er-hero__title em {
	font-style: normal;
	color: var(--er-accent);
	position: relative;
}
.er-hero__lead {
	max-width: 52ch;
	margin: 0 0 24px;
	font-size: 18px;
	color: #c9d3ea;
}

/* Search form */
.er-searchform {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 6px 6px 16px;
	background: #fff;
	border: 1px solid var(--er-line-strong);
	border-radius: 14px;
	box-shadow: var(--er-shadow);
	transition: border-color .15s, box-shadow .15s;
}
.er-searchform:focus-within { border-color: var(--er-navy-600); box-shadow: 0 0 0 4px rgba(35,67,145,.15); }
.er-searchform .er-i { color: var(--er-muted); }
.er-searchform input[type="search"] {
	flex: 1; min-width: 0;
	height: 44px;
	border: 0 !important;
	outline: 0;
	background: transparent;
	font: 500 17px/1 var(--er-font-body);
	color: var(--er-ink);
	box-shadow: none !important;
	padding: 0 4px;
}
.er-searchform input::placeholder { color: #8a91a2; }
.er-searchform button {
	flex: none;
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--er-accent-strong);
	color: #fff;
	font: 700 16px/1 var(--er-font-display);
	cursor: pointer;
	transition: background .15s, transform .1s;
}
.er-searchform button:hover { background: #a3360a; }
.er-searchform button:active { transform: scale(.97); }
.er-searchform--hero, .er-searchform.hero { padding: 8px 8px 8px 18px; border: 0; box-shadow: 0 20px 40px -18px rgba(0,0,0,.55); }
.er-searchform.hero input[type="search"], .er-searchform.hero button { height: 52px; }
@media (max-width: 480px) {
	.er-searchform.hero .er-i { display: none; }
	.er-searchform button { padding: 0 16px; }
}

.er-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
body.er .er-chips a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.22);
	background: rgba(255,255,255,.06);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: .15s;
}
body.er .er-chips a:hover { background: #fff; color: var(--er-navy-800); border-color: #fff; }

/* Results board (perforated "mark sheet" card) */
.er-board {
	position: relative;
	background: #fff;
	color: var(--er-ink);
	border-radius: 18px;
	padding: 26px 24px 18px;
	box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
	transform: rotate(.6deg);
}
.er-board::before { /* perforation */
	content: "";
	position: absolute; left: 18px; right: 18px; top: -7px; height: 14px;
	background: radial-gradient(circle at 7px 7px, var(--er-navy-800) 5px, transparent 5.5px) 0 0 / 22px 14px repeat-x;
}
.er-board__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
body.er .er-board__head h2 { margin: 0; font-size: 22px; }
.er-stamp {
	display: inline-block;
	padding: 4px 12px;
	border: 2.5px solid var(--er-green);
	border-radius: 6px;
	color: var(--er-green);
	font: 800 13px/1.2 var(--er-font-display);
	letter-spacing: .14em;
	text-transform: uppercase;
	transform: rotate(-8deg);
	box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px var(--er-green);
	opacity: .9;
}
.er-board__list { list-style: none; margin: 0; padding: 0; }
.er-board__list li + li { border-top: 1px dashed var(--er-line-strong); }
body.er .er-board__list a {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 4px;
	color: var(--er-ink);
	text-decoration: none;
}
body.er .er-board__list a:hover .er-board__title { color: var(--er-accent-strong); }
.er-board__list a .er-i--arrow { margin-left: auto; color: var(--er-muted); transition: transform .2s; }
.er-board__list a:hover .er-i--arrow { transform: translateX(3px); color: var(--er-accent-strong); }
.er-board__date {
	flex: none;
	display: grid; place-items: center;
	width: 48px; height: 50px;
	border-radius: 10px;
	background: var(--er-navy-50);
	border: 1px solid var(--er-navy-100);
	font-size: 12px; line-height: 1;
	text-transform: uppercase;
	color: var(--er-navy-700);
	font-weight: 600;
}
.er-board__date b { display: block; font: 800 20px/1 var(--er-font-display); color: var(--er-navy-800); }
.er-board__title { font-weight: 600; line-height: 1.35; font-size: 16px; transition: color .15s; }
body.er .er-board__all {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 8px;
	font: 700 15px/1 var(--er-font-display);
	color: var(--er-accent-strong);
	text-decoration: none;
}
@media (max-width: 979px) { .er-board { transform: none; } }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
	.er-hero__copy > *, .er-board { animation: er-rise .7s cubic-bezier(.2,.7,.2,1) both; }
	.er-hero__copy > :nth-child(2) { animation-delay: .06s; }
	.er-hero__copy > :nth-child(3) { animation-delay: .12s; }
	.er-hero__copy > :nth-child(4) { animation-delay: .18s; }
	.er-hero__copy > :nth-child(5) { animation-delay: .24s; }
	.er-board { animation-delay: .2s; }
}
@keyframes er-rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- "New" badge ---------- */
.er-new {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--er-accent-50);
	color: var(--er-accent-strong);
	font: 700 11px/1.5 var(--er-font-display);
	letter-spacing: .08em;
	text-transform: uppercase;
	vertical-align: middle;
}

/* ---------- Category tiles ---------- */
.er-cats {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
	list-style: none; margin: 0; padding: 0;
}
body.er .er-cat {
	display: flex; flex-direction: column; gap: 4px;
	height: 100%;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--er-line);
	border-radius: var(--er-radius);
	color: var(--er-ink);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
body.er .er-cat:hover { transform: translateY(-3px); box-shadow: var(--er-shadow-lg); border-color: var(--er-navy-100); color: var(--er-ink); }
.er-cat__icon {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	margin-bottom: 8px;
	border-radius: 12px;
	background: var(--er-navy-800);
	color: #fff;
	transition: background .2s;
}
.er-cat:hover .er-cat__icon { background: var(--er-accent-strong); }
.er-cat__icon .er-i { width: 22px; height: 22px; }
.er-cat__name { font: 700 17px/1.2 var(--er-font-display); }
.er-cat__count { font-size: 14px; color: var(--er-muted); }

/* ---------- Tabs ---------- */
.er-tabs {
	display: flex; gap: 6px;
	margin: 0 0 8px;
	padding: 5px;
	background: var(--er-navy-50);
	border-radius: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.er-tabs::-webkit-scrollbar { display: none; }
.er-tabs [role="tab"] {
	flex: none;
	padding: 9px 16px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--er-muted);
	font: 600 15px/1 var(--er-font-display);
	cursor: pointer;
	transition: .15s;
}
.er-tabs [role="tab"]:hover { color: var(--er-navy-800); }
.er-tabs [role="tab"][aria-selected="true"] {
	background: #fff;
	color: var(--er-navy-800);
	box-shadow: 0 1px 3px rgba(11,31,75,.15);
}

/* ---------- Post rows ---------- */
.er-list { list-style: none; margin: 0; padding: 0; }
.er-row {
	display: flex; gap: 14px; align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--er-line);
}
.er-list > li:last-child { border-bottom: 0; }
.er-list__ad { padding: 14px 0; border-bottom: 1px solid var(--er-line); }
.er-row__thumb {
	flex: none;
	width: 112px;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: var(--er-navy-50);
}
.er-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.er-row:hover .er-row__thumb img { transform: scale(1.05); }
.er-row__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--er-navy-600); }
.er-row__ph .er-i { width: 30px; height: 30px; }
.er-row__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.er-row__cat {
	font: 700 12px/1 var(--er-font-display);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--er-accent-strong);
}
body.er .er-row__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
body.er .er-row__title a { color: var(--er-ink); text-decoration: none; }
body.er .er-row__title a:hover { color: var(--er-navy-600); }
.er-row__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--er-muted); }
.er-row__meta .er-i { width: 15px; height: 15px; }
.er-list--lg .er-row__thumb { width: 168px; }
@media (max-width: 520px) {
	.er-row__thumb, .er-list--lg .er-row__thumb { width: 88px; }
	body.er .er-row__title { font-size: 16px; }
}
.er-layout__side .er-row__thumb { width: 76px; }
.er-layout__side body.er .er-row__title, .er-layout__side .er-row__title { font-size: 15px !important; }

.er-list--grid { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.er-list--grid > li:last-child { border-bottom: 1px solid var(--er-line); }

body.er .er-more {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 12px;
	font: 700 15px/1 var(--er-font-display);
	color: var(--er-accent-strong);
	text-decoration: none;
}
.er-more .er-i { width: 16px; height: 16px; transition: transform .2s; }
.er-more:hover .er-i { transform: translateX(3px); }
.er-empty { color: var(--er-muted); padding: 16px 0; }

/* ---------- State grid ---------- */
.er-states__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	list-style: none; margin: 0; padding: 0;
}
@media (min-width: 600px) and (max-width: 1023px) {
	.er-states__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
body.er .er-states__grid a {
	display: flex; align-items: center; gap: 10px;
	padding: 8px;
	border: 1px solid var(--er-line);
	border-radius: 10px;
	color: var(--er-ink);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.2;
	transition: .15s;
}
body.er .er-states__grid a:hover { border-color: var(--er-navy-800); background: var(--er-navy-50); }
.er-states__grid b {
	flex: none;
	display: grid; place-items: center;
	width: 34px; height: 30px;
	border-radius: 7px;
	background: var(--er-navy-800);
	color: #fff;
	font: 800 12px/1 var(--er-font-display);
	letter-spacing: .04em;
}
.er-states__grid a:hover b { background: var(--er-accent-strong); }
.er-states__grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Breadcrumbs / page head ---------- */
.er-crumbs {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--er-muted);
}
body.er .er-crumbs a { color: var(--er-muted); text-decoration: none; }
body.er .er-crumbs a:hover { color: var(--er-navy-600); text-decoration: underline; }
.er-crumbs [aria-current] { color: var(--er-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.er-crumbs span[aria-hidden] { color: var(--er-line-strong); }

.er-pagehead {
	padding: 28px;
	margin-bottom: 4px;
	border-radius: var(--er-radius);
	background: var(--er-navy-800);
	color: #c9d3ea;
	position: relative;
	overflow: hidden;
}
.er-pagehead::after {
	content: ""; position: absolute; right: -60px; top: -60px;
	width: 220px; height: 220px; border-radius: 50%;
	border: 30px solid rgba(242,107,29,.25);
}
body.er .er-pagehead h1 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 800; position: relative; z-index: 1; }
.er-pagehead__desc { margin-top: 8px; max-width: 70ch; position: relative; z-index: 1; }
.er-pagehead .er-searchform { margin-top: 18px; max-width: 640px; position: relative; z-index: 1; }

/* ---------- Article ---------- */
.er-article {
	background: #fff;
	border: 1px solid var(--er-line);
	border-radius: var(--er-radius);
	padding: 32px;
	box-shadow: var(--er-shadow);
}
@media (max-width: 600px) { .er-article { padding: 20px 16px; border-radius: 12px; } }
.er-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
body.er .er-tags a {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--er-navy-800);
	color: #fff;
	font: 600 13px/1.4 var(--er-font-display);
	text-decoration: none;
}
body.er .er-tags a:hover { background: var(--er-accent-strong); }
body.er .er-tags--soft a { background: var(--er-navy-50); color: var(--er-navy-700); font-weight: 500; }
body.er .er-tags--soft a:hover { background: var(--er-navy-100); color: var(--er-navy-800); }
.er-tags--soft { margin: 28px 0 0; }

body.er .er-article__title {
	margin: 0 0 14px;
	font-size: clamp(28px, 3.6vw, 42px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.er-article__meta {
	display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--er-line);
	font-size: 15px;
	color: var(--er-muted);
}
.er-article__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.er-article__meta .er-i { width: 17px; height: 17px; }
.er-article__media { margin: 0 0 24px; border-radius: 12px; overflow: hidden; }
.er-article__media img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* Prose */
.er-prose { font-size: 18px; line-height: 1.75; }
.er-prose > * + * { margin-top: 1em; }
body.er .er-prose h2 { font-size: 28px; margin: 1.6em 0 .6em; }
body.er .er-prose h3 { font-size: 22px; margin: 1.5em 0 .5em; }
body.er .er-prose h4 { font-size: 19px; margin: 1.4em 0 .5em; }
body.er .er-prose h2.has-text-align-center {
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--er-navy-800);
	color: #fff;
	font-size: 22px;
}
.er-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.er-prose ul, .er-prose ol { padding-left: 1.3em; }
.er-prose li + li { margin-top: .35em; }
.er-prose li::marker { color: var(--er-accent-strong); font-weight: 700; }
.er-prose hr { border: 0; border-top: 1px dashed var(--er-line-strong); margin: 2em 0; }
.er-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.er-prose th, .er-prose td { padding: 10px 12px; border: 1px solid var(--er-line); text-align: left; }
.er-prose thead th, .er-prose tr:first-child th { background: var(--er-navy-800); color: #fff; }
.er-prose tr:nth-child(even) td { background: var(--er-navy-50); }
.er-prose iframe {
	width: 100%;
	border: 1px solid var(--er-line) !important;
	border-radius: 12px;
	background: var(--er-navy-50);
}
.er-prose blockquote {
	margin: 1.5em 0; padding: 14px 20px;
	border-left: 4px solid var(--er-accent);
	background: var(--er-accent-50);
	border-radius: 0 10px 10px 0;
}
.er-prose .addtoany_content { margin: 0 0 1em; }

.er-callout {
	margin: 24px 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--er-accent-50);
	border: 1px solid #fbd5bf;
	font-size: 15px;
	color: #6b2a07;
}

.er-related { margin-top: 36px; }

/* Post navigation */
.er-postnav { margin-top: 32px; }
.er-postnav .nav-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
body.er .er-postnav a {
	display: flex; flex-direction: column; gap: 4px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--er-line);
	border-radius: 12px;
	color: var(--er-ink);
	text-decoration: none;
	transition: .15s;
}
body.er .er-postnav a:hover { border-color: var(--er-navy-800); background: var(--er-navy-50); }
.er-postnav .nav-next { text-align: right; }
.er-postnav__label { font: 700 12px/1 var(--er-font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--er-accent-strong); }
.er-postnav__title { font-weight: 600; line-height: 1.35; }

/* Pagination */
.er-pagination { margin-top: 24px; }
.er-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
body.er .er-pagination .page-numbers {
	display: grid; place-items: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--er-line);
	border-radius: 10px;
	background: #fff;
	color: var(--er-ink);
	font-weight: 600;
	text-decoration: none;
}
body.er .er-pagination .page-numbers.current { background: var(--er-navy-800); border-color: var(--er-navy-800); color: #fff; }
body.er .er-pagination a.page-numbers:hover { border-color: var(--er-navy-800); }

.er-none h2 { margin-top: 0; }

/* ---------- Footer ---------- */
.er-footer {
	margin-top: 24px;
	background: var(--er-navy-950);
	color: #aeb9d3;
	font-size: 15px;
}
.er-footer__grid {
	display: grid;
	gap: 32px;
	padding-top: 52px;
	padding-bottom: 40px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
@media (min-width: 900px) { .er-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.er-footer__about p { margin: 16px 0; max-width: 40ch; }
body.er .er-footer__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: 15px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.er-footer__links { list-style: none; margin: 0; padding: 0; }
.er-footer__links li + li { margin-top: 8px; }
body.er .er-footer a { color: #aeb9d3; text-decoration: none; }
body.er .er-footer a:hover { color: #fff; }
.er-footer__social { display: flex; gap: 8px; }
.er-footer__social a {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border-radius: 10px;
	background: rgba(255,255,255,.07);
}
.er-footer__bar { border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.er-footer__bar .er-wrap {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	padding-top: 18px; padding-bottom: 18px;
}

.er-totop {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	display: grid; place-items: center;
	width: 46px; height: 46px;
	border-radius: 14px;
	background: var(--er-navy-800);
	color: #fff !important;
	box-shadow: var(--er-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: .25s;
}
.er-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.er-totop:hover { background: var(--er-accent-strong); }

/* ---------- Legacy pages (Elementor / page.php) inside the new shell ---------- */
body.er .main-container { padding: 28px 0; }
body.er .sidebar .widget {
	background: #fff;
	border: 1px solid var(--er-line);
	border-radius: var(--er-radius);
	padding: 20px;
	box-shadow: var(--er-shadow);
	margin-bottom: 24px;
}
body.er .sidebar .widget .widget-header { border: 0; margin-bottom: 12px; }
body.er .sidebar .widget .widget-header .widget-title {
	background: none;
	color: var(--er-ink);
	padding: 0 0 10px;
	font-size: 19px;
	border-bottom: 2px solid var(--er-navy-800);
	display: block;
}
body.er .sidebar .widget .widget-title span { display: none; }
body.er .elementor-widget-heading .elementor-heading-title { font-family: var(--er-font-display); }
body.er .elementor-button {
	background: var(--er-accent-strong);
	border-radius: 10px;
	font-family: var(--er-font-display);
	font-weight: 700;
}
body.er .elementor-button:hover { background: #a3360a; }

/* ---------- Playwrite IN handwritten accents ---------- */
.er-script {
	font-family: "Playwrite IN", cursive;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.6;
}
body.er .er-hero__title em {
	display: block;
	margin-top: .12em;
	font-family: "Playwrite IN", cursive;
	font-weight: 400;
	font-size: .74em;
	line-height: 1.55;
	letter-spacing: 0;
	color: var(--er-accent);
	transform: rotate(-2deg);
	transform-origin: left center;
}
.er-kicker {
	display: block;
	margin-bottom: 2px;
	font-size: 15px;
	color: var(--er-accent-strong);
}
.er-kicker--light { color: #ffb48a; position: relative; z-index: 1; }
.er-board__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.er-board__foot .er-board__all { margin-top: 0; }
.er-board__note { font-size: 15px; color: var(--er-navy-600); transform: rotate(-4deg); }
.er-footer__script { color: #ffb48a; font-size: 15px; margin-top: -4px !important; }

/* ---------- Icons in headings / UI ---------- */
.er-section__head h2 { display: flex; align-items: center; gap: 12px; }
.er-hicon {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border-radius: 11px;
	background: var(--er-accent-50);
	color: var(--er-accent-strong);
	flex: none;
}
.er-hicon .er-i { width: 20px; height: 20px; }
.er-panel__title { display: flex; align-items: center; gap: 9px; }
.er-panel__title .er-i { width: 20px; height: 20px; color: var(--er-accent-strong); }
body.er .er-board__head h2 { display: flex; align-items: center; gap: 8px; }
.er-board__head h2 .er-i { color: var(--er-accent-strong); width: 22px; height: 22px; }
.er-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 7px; }
.er-tabs [role="tab"] .er-i { width: 17px; height: 17px; opacity: .8; }
.er-tabs [role="tab"][aria-selected="true"] .er-i { color: var(--er-accent-strong); opacity: 1; }
.er-cat__count { display: inline-flex; align-items: center; gap: 2px; }
.er-cat__count .er-i { width: 15px; height: 15px; transition: transform .2s; }
.er-cat:hover .er-cat__count .er-i { transform: translateX(3px); color: var(--er-accent-strong); }
.er-crumbs a { display: inline-flex; align-items: center; gap: 5px; }
.er-crumbs .er-i { width: 16px; height: 16px; }

/* Hero: trending label + trust row */
.er-chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.er-chips-row .er-chips { margin: 0; }
.er-chips__label {
	display: inline-flex; align-items: center; gap: 6px;
	font: 600 14px/1 var(--er-font-display);
	color: #ffb48a;
}
.er-chips__label .er-i { width: 18px; height: 18px; }
.er-trust {
	display: flex; flex-wrap: wrap; gap: 10px 22px;
	margin: 22px 0 0; padding: 18px 0 0;
	list-style: none;
	border-top: 1px solid rgba(255,255,255,.12);
	font-size: 15px;
	color: #c9d3ea;
}
.er-trust li { display: inline-flex; align-items: center; gap: 8px; }
.er-trust .er-i {
	width: 30px; height: 30px; padding: 6px;
	border-radius: 9px;
	background: rgba(242,107,29,.16);
	color: var(--er-accent);
}

/* Callout with icon */
.er-callout { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.er-callout > .er-i { width: 22px; height: 22px; color: var(--er-accent-strong); margin-top: 2px; }
.er-callout p { margin: 0; }
.er-callout__note { grid-column: 2; font-size: 14px; color: var(--er-accent-strong); }

/* Empty state */
.er-none { text-align: center; }
.er-none__icon {
	display: inline-grid; place-items: center;
	width: 60px; height: 60px; margin-bottom: 8px;
	border-radius: 18px;
	background: var(--er-navy-50);
	color: var(--er-navy-600);
}
.er-none__icon .er-i { width: 28px; height: 28px; }
.er-none .er-searchform { max-width: 520px; margin: 16px auto 0; }

/* Footer icons */
body.er .er-footer__title { display: flex; align-items: center; gap: 8px; }
.er-footer__title .er-i { width: 18px; height: 18px; color: var(--er-accent); }
.er-footer__links a { display: inline-flex; align-items: center; gap: 6px; transition: transform .15s; }
.er-footer__links a::before {
	content: ""; width: 6px; height: 6px;
	border-right: 1.5px solid var(--er-accent); border-top: 1.5px solid var(--er-accent);
	transform: rotate(45deg);
}
.er-footer__links a:hover { transform: translateX(3px); }

/* Social brand icons */
.er-topbar__social a:hover { background: var(--er-accent-strong); }
.er-footer__social a:hover { background: var(--er-accent-strong); color: #fff; }
.er-footer__social .er-i { width: 18px; height: 18px; }

/* Keep header actions from being squeezed off-screen */
.er-header__actions { flex: none; }
.er-nav { min-width: 0; }
@media (min-width: 992px) and (max-width: 1180px) {
	body.er .er-menu a { padding: 9px 9px; font-size: 15px; }
	.er-header__in { gap: 16px; }
}

/* ---------- Side-rail fallback (shown only when the rail ad is unfilled) ---------- */
.er-house { display: none; }
.er-rail--house .er-house { display: block; }
.er-rail--house .er-ad { display: none; }
.er-house {
	padding: 14px 12px;
	background: #fff;
	border: 1px solid var(--er-line);
	border-radius: 14px;
	box-shadow: var(--er-shadow);
	font-size: 14px;
	line-height: 1.35;
}
.er-house__title {
	display: flex; align-items: center; gap: 6px;
	margin: 0 0 10px;
	font: 700 14px/1.2 var(--er-font-display);
	color: var(--er-navy-800);
}
.er-house__title .er-i { width: 16px; height: 16px; color: var(--er-accent-strong); }
.er-house__title--sm { margin-top: 14px; }
.er-house ul { list-style: none; margin: 0; padding: 0; }
.er-house li + li { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--er-line); }
body.er .er-house a { color: var(--er-ink); text-decoration: none; font-weight: 500; }
body.er .er-house a:hover { color: var(--er-accent-strong); }
body.er .er-house__more { display: inline-block; margin-top: 10px; color: var(--er-accent-strong); font-weight: 700; }
.er-house__states { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.er-house__states li + li { margin: 0; padding: 0; border: 0; }
body.er .er-house__states a {
	display: grid; place-items: center;
	height: 32px;
	border-radius: 8px;
	background: var(--er-navy-800);
	color: #fff;
	font: 800 12px/1 var(--er-font-display);
}
body.er .er-house__states a:hover { background: var(--er-accent-strong); color: #fff; }
.er-house__search { display: flex; border: 1px solid var(--er-line-strong); border-radius: 9px; overflow: hidden; }
.er-house__search input { flex: 1; min-width: 0; height: 36px; border: 0 !important; padding: 0 8px; font-size: 13px; box-shadow: none !important; }
.er-house__search button { flex: none; width: 34px; border: 0; background: var(--er-accent-strong); color: #fff; cursor: pointer; display: grid; place-items: center; }
.er-house__search .er-i { width: 16px; height: 16px; }
@media (max-width: 1499px) {
	.er-house { padding: 12px 9px; font-size: 13px; }
	.er-house__states { grid-template-columns: 1fr; }
}

/* ---------- Result checker box ([er_result]) ---------- */
.er-result {
	margin: 28px 0;
	border: 2px solid var(--er-navy-800);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--er-shadow-lg);
}
.er-result__head {
	display: flex; align-items: center; gap: 14px;
	padding: 16px 18px;
	background: var(--er-navy-800);
	color: #fff;
}
.er-result__icon {
	display: grid; place-items: center; flex: none;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--er-accent-strong);
}
.er-result__icon .er-i { width: 24px; height: 24px; }
.er-result__title { display: block; font: 700 19px/1.25 var(--er-font-display); color: #fff; }
.er-result__sub { display: block; font-size: 14px; color: #c9d3ea; }
.er-result__live {
	display: inline-flex; align-items: center; gap: 7px;
	margin-left: auto; flex: none;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(18,120,74,.9);
	font: 700 12px/1.3 var(--er-font-display);
	letter-spacing: .1em; text-transform: uppercase;
}
.er-result__frame { background: var(--er-navy-50); }
.er-result__frame iframe {
	display: block;
	width: 100%;
	min-height: 640px;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff;
}
@media (max-width: 600px) { .er-result__frame iframe { min-height: 760px; } }
.er-result__card {
	padding: 22px 18px;
	background: var(--er-navy-50);
	font-size: 16px;
	color: var(--er-muted);
	text-align: center;
}
.er-result__actions {
	display: flex; flex-wrap: wrap; gap: 10px;
	padding: 16px 18px;
	border-top: 1px solid var(--er-line);
	justify-content: center;
}
body.er .er-btn {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border: 1.5px solid var(--er-navy-800);
	border-radius: 11px;
	background: #fff;
	color: var(--er-navy-800);
	font: 700 15px/1 var(--er-font-display);
	text-decoration: none;
	transition: background .15s, color .15s, transform .1s;
}
body.er .er-btn:hover { background: var(--er-navy-50); color: var(--er-navy-800); }
body.er .er-btn:active { transform: scale(.98); }
body.er .er-btn--primary { background: var(--er-accent-strong); border-color: var(--er-accent-strong); color: #fff; }
body.er .er-btn--primary:hover { background: #a3360a; border-color: #a3360a; color: #fff; }
.er-btn .er-i { width: 18px; height: 18px; }
.er-result__tabs {
	display: flex; gap: 6px;
	padding: 10px 12px 0;
	background: var(--er-navy-50);
	border-bottom: 1px solid var(--er-line);
	overflow-x: auto;
}
.er-result__tabs [role="tab"] {
	display: inline-flex; align-items: center; gap: 7px; flex: none;
	padding: 11px 16px;
	border: 1px solid transparent; border-bottom: 0;
	border-radius: 10px 10px 0 0;
	background: transparent;
	color: var(--er-muted);
	font: 600 15px/1 var(--er-font-display);
	cursor: pointer;
	margin-bottom: -1px;
}
.er-result__tabs [role="tab"] .er-i { width: 17px; height: 17px; }
.er-result__tabs [role="tab"][aria-selected="true"] {
	background: #fff;
	border-color: var(--er-line);
	color: var(--er-navy-800);
}
.er-result__tabs [role="tab"][aria-selected="true"] .er-i { color: var(--er-accent-strong); }
.er-result__frame iframe[hidden] { display: none; }

/* On-page full screen */
.er-result:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; overflow: auto; }
.er-result:fullscreen .er-result__frame { flex: 1; }
.er-result:fullscreen .er-result__frame iframe { height: 100%; min-height: 0; }
.er-result.is-expanded {
	position: fixed; inset: 0; z-index: 1000;
	margin: 0; border-radius: 0;
	display: flex; flex-direction: column; overflow: auto;
}
.er-result.is-expanded .er-result__frame { flex: 1; }
.er-result.is-expanded .er-result__frame iframe { height: 100%; }

/* Old theme bits that no longer apply */
body.er .BackTo { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.er-ticker__list { animation: none; }
	.er-ticker__track { overflow-x: auto; }
}

/* Print: just the result. */
@media print {
	.er-topbar, .er-header, .er-ticker, .er-rail, .er-ad, .er-layout__side, .er-footer, .er-totop, .er-related, .er-postnav { display: none !important; }
	.er-shell, .er-layout { display: block; }
	.er-article { border: 0; box-shadow: none; padding: 0; }
}
