/* =====================================================================
   Red Mill Haunted Village Magazine — magazine.css
   Editorial design system: dark cinematic chrome, cream reading paper.
   ===================================================================== */

:root {
	--mag-ink: #151515;
	--mag-ink-2: #1b1c20;
	--mag-night: #20232c;
	--mag-night-2: #2b2f3a;
	--mag-ember: #c65d2e;
	--mag-ember-btn: #b4501f;
	--mag-ember-lt: #e58a54;
	--mag-ember-dk: #9a3f16;
	--mag-cream: #f4ebdd;
	--mag-cream-2: #eadfcb;
	--mag-mute: #a5a5a5;
	--mag-burgundy: #54262b;
	--mag-text: #ece6da;
	--mag-paper-text: #1f1b17;
	--mag-paper-mute: #564d43;
	--mag-line: rgba(244, 235, 221, .13);
	--mag-paper-line: rgba(31, 27, 23, .16);
	--mag-radius: 10px;
	--mag-wrap: 1200px;
	--mag-font-head: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--mag-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Re-map the legacy tool palette so calculators and planners match. */
	--rmhv-black: #151515;
	--rmhv-night: #1b1c20;
	--rmhv-night-2: #20232c;
	--rmhv-night-3: #2b2f3a;
	--rmhv-blood: #b4501f;
	--rmhv-blood-2: #54262b;
	--rmhv-amber: #e58a54;
	--rmhv-amber-2: #c65d2e;
	--rmhv-bone: #f4ebdd;
	--rmhv-parchment: #eadfcb;
	--rmhv-text: #ece6da;
	--rmhv-muted: #a5a5a5;
	--rmhv-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body.mag {
	margin: 0;
	background: var(--mag-ink);
	color: var(--mag-text);
	font-family: var(--mag-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	padding-bottom: 0;
}
.mag img, .mag svg { max-width: 100%; height: auto; }
.mag img { display: block; }
.mag a { color: var(--mag-ember-lt); text-decoration: none; }
.mag a:hover { color: var(--mag-cream); }
.mag h1, .mag h2, .mag h3, .mag h4 { font-family: var(--mag-font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.012em; color: var(--mag-cream); margin: 0 0 .5em; }
.mag p { margin: 0 0 1.1em; }
.mag button { font-family: inherit; cursor: pointer; }
.mag :focus-visible { outline: 3px solid var(--mag-ember-lt); outline-offset: 3px; border-radius: 4px; }
.mag .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.mag [hidden] { display: none !important; }

.mag-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--mag-cream); color: var(--mag-ink) !important; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; }
.mag-skip:focus { left: 0; }

.mag-wrap { width: 100%; max-width: var(--mag-wrap); margin: 0 auto; padding: 0 24px; }
.mag-narrow { max-width: 760px; }
.mag-main { min-height: 60vh; }

/* ---------- Buttons, labels, chips ---------- */
.mag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 1px solid transparent; font-family: var(--mag-font-body); font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; text-decoration: none !important; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.mag-btn-lg { min-height: 50px; padding: 13px 26px; font-size: 16px; }
.mag-btn-primary, .mag a.mag-btn-primary, .mag-btn-amz, .mag a.mag-btn-amz { background: var(--mag-ember-btn); color: #fff8ee; }
.mag-btn-primary:hover, .mag a.mag-btn-primary:hover, .mag-btn-amz:hover, .mag a.mag-btn-amz:hover { background: var(--mag-ember); color: #fff; transform: translateY(-1px); }
.mag-btn-ghost, .mag a.mag-btn-ghost { background: rgba(21, 21, 21, .45); border-color: rgba(244, 235, 221, .55); color: var(--mag-cream); }
.mag-btn-ghost:hover, .mag a.mag-btn-ghost:hover { background: var(--mag-cream); color: var(--mag-ink); }
.mag-btn-amz::after { content: "\2197"; font-size: .95em; }

.mag-label, .mag a.mag-label { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mag-ember-lt); margin-bottom: 8px; }
.mag a.mag-label:hover { color: var(--mag-cream); }
.mag-kicker, .mag-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mag-ember-lt); margin: 0 0 10px; }
.mag-chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; }
.mag-chip, .mag a.mag-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; border: 1px solid var(--mag-line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--mag-text); background: rgba(244, 235, 221, .04); }
.mag a.mag-chip:hover { border-color: var(--mag-ember-lt); color: var(--mag-cream); }

/* ---------- Top bar + header ---------- */
.mag-topbar { background: var(--mag-burgundy); color: #f6e9dc; font-size: 13px; }
.mag-topbar p { margin: 0; padding: 7px 0; text-align: center; }
.mag-topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

.mag-header { position: sticky; top: 0; z-index: 200; background: rgba(21, 21, 21, .96); border-bottom: 1px solid var(--mag-line); }
@supports (backdrop-filter: blur(8px)) { .mag-header { background: rgba(21, 21, 21, .86); backdrop-filter: blur(10px); } }
.mag-header-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.mag-brand, .mag a.mag-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--mag-cream); flex-shrink: 0; }
.mag-mark { color: var(--mag-ember); flex-shrink: 0; }
.mag-brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--mag-font-head); }
.mag-brand-top { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mag-ember-lt); margin-bottom: 4px; }
.mag-brand-main { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--mag-cream); }
.mag-brand-logo img { max-height: 52px; width: auto; }

.mag-nav { flex: 1; min-width: 0; }
.mag-menu { list-style: none; display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; }
.mag-menu > li { position: relative; }
.mag-menu a { display: block; padding: 10px 11px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--mag-text); border-radius: 6px; }
.mag-menu a:hover, .mag-menu .current-menu-item > a, .mag-menu .current-menu-parent > a, .mag-menu .current-post-ancestor > a { color: var(--mag-cream); background: rgba(244, 235, 221, .08); }
.mag-menu .current-menu-item > a, .mag-menu .current-post-ancestor > a { box-shadow: inset 0 -2px 0 var(--mag-ember); border-radius: 6px 6px 0 0; }
.mag-menu .sub-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; background: var(--mag-night); border: 1px solid var(--mag-line); border-radius: var(--mag-radius); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.mag-menu li:hover > .sub-menu, .mag-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.mag-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mag-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--mag-line); background: transparent; color: var(--mag-cream); }
.mag-icon-btn:hover, .mag-icon-btn[aria-expanded="true"] { background: rgba(244, 235, 221, .1); border-color: rgba(244, 235, 221, .35); }
.mag-burger { display: none; }

.mag-search-panel, .mag-drawer { border-top: 1px solid var(--mag-line); background: var(--mag-ink-2); padding: 18px 0 22px; }
.mag-searchform { display: flex; gap: 10px; width: 100%; }
.mag-searchform input[type="search"] { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(244, 235, 221, .28); background: #0f0f10; color: var(--mag-cream); font: inherit; font-size: 16px; }
.mag-searchform input[type="search"]::placeholder { color: #8f8a82; }
.mag-drawer { max-height: calc(100vh - 110px); overflow-y: auto; }
.mag-drawer-menu, .mag-drawer-menu ul { list-style: none; margin: 0; padding: 0; }
.mag-drawer-menu a { display: block; padding: 13px 4px; font-size: 17px; font-weight: 500; color: var(--mag-cream); border-bottom: 1px solid var(--mag-line); }
.mag-drawer-menu ul a { padding-left: 20px; font-size: 15.5px; color: var(--mag-text); }

@media (max-width: 1120px) {
	.mag-nav { display: none; }
	.mag-header-inner { justify-content: space-between; }
	.mag-burger { display: inline-flex; }
}
@media (min-width: 1121px) { .mag-drawer { display: none !important; } }

/* ---------- Hero ---------- */
.mag-hero { position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 700px); background: #0c1216; overflow: hidden; isolation: isolate; }
.mag-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: -2; }
.mag-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 12, 14, .88) 0%, rgba(12, 12, 14, .55) 48%, rgba(12, 12, 14, .15) 100%), linear-gradient(0deg, rgba(21, 21, 21, 1) 0%, rgba(21, 21, 21, 0) 42%); }
.mag-hero-inner { padding-top: 110px; padding-bottom: 76px; }
.mag-hero-title { font-size: clamp(38px, 6.2vw, 74px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; max-width: 13ch; margin: 0 0 20px; color: #fff8ee; text-wrap: balance; }
.mag-hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 54ch; color: #e9e1d3; margin-bottom: 30px; }
.mag-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.mag-hero-credit { position: absolute; right: 16px; bottom: 10px; margin: 0; font-size: 11px; color: rgba(244, 235, 221, .62); }

/* ---------- Sections ---------- */
.mag-sec { padding: 72px 0; }
.mag-sec + .mag-sec { border-top: 1px solid var(--mag-line); }
.mag-sec-head { margin-bottom: 34px; max-width: 720px; }
.mag-sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.mag-sec-title { font-size: clamp(27px, 3.2vw, 38px); margin: 0; }
.mag-sec-sub { color: var(--mag-mute); font-size: 16.5px; margin: 12px 0 0; max-width: 62ch; }
.mag-more, .mag a.mag-more { flex-shrink: 0; font-size: 14.5px; font-weight: 600; padding: 10px 0; border-bottom: 2px solid var(--mag-ember); color: var(--mag-cream); }
.mag a.mag-more:hover { color: var(--mag-ember-lt); }

/* ---------- Cards ---------- */
.mag-grid { display: grid; gap: 34px 28px; }
.mag-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mag-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mag-card { display: flex; flex-direction: column; min-width: 0; }
.mag-card-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--mag-radius); background: var(--mag-night); }
.mag-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mag-card:hover .mag-card-media img { transform: scale(1.04); }
.mag-thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mag-ember); background: linear-gradient(135deg, var(--mag-night), var(--mag-burgundy)); }
.mag-card-body { padding-top: 16px; }
.mag-card-title { font-size: 21px; line-height: 1.22; margin: 0 0 8px; }
.mag-card-title a, .mag .mag-card-title a { color: var(--mag-cream); background-image: linear-gradient(var(--mag-ember), var(--mag-ember)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.mag-card-title a:hover { background-size: 100% 2px; }
.mag-card-excerpt { color: #c9c3b8; font-size: 15.5px; line-height: 1.55; margin: 0 0 10px; }
.mag-card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mag-mute); margin: 0; }

.mag-card-overlay { position: relative; border-radius: var(--mag-radius); overflow: hidden; min-height: 420px; justify-content: flex-end; background: var(--mag-night); }
.mag-card-overlay .mag-card-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.mag-card-overlay .mag-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 12, 14, .95) 0%, rgba(12, 12, 14, .62) 45%, rgba(12, 12, 14, .05) 78%); }
.mag-card-overlay .mag-card-body { position: relative; padding: 28px; }
.mag-card-overlay .mag-card-title { font-size: clamp(25px, 2.6vw, 34px); line-height: 1.12; }
.mag-card-overlay .mag-card-excerpt { color: #e3dccf; font-size: 16px; max-width: 56ch; }
.mag-card-overlay .mag-card-meta { color: #cfc8bb; }

.mag-card-compact .mag-card-title { font-size: 18px; }
.mag-card-compact .mag-card-body { padding-top: 12px; }

.mag-card-row { flex-direction: row; gap: 20px; align-items: flex-start; }
.mag-card-row .mag-card-media { flex: 0 0 42%; max-width: 240px; }
.mag-card-row .mag-card-body { padding-top: 0; flex: 1; min-width: 0; }
.mag-card-row .mag-card-title { font-size: 20px; }

.mag-featured-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "big s1 s2" "big s3 s4"; }
.mag-featured-grid > .mag-card-overlay { grid-area: big; }

/* ---------- Category cards ---------- */
.mag-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mag-cat-card, .mag a.mag-cat-card { position: relative; display: flex; align-items: flex-end; min-height: 230px; border-radius: var(--mag-radius); overflow: hidden; background: var(--mag-night); color: var(--mag-cream); isolation: isolate; }
.mag-cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.mag-cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 12, 14, .94) 0%, rgba(12, 12, 14, .6) 55%, rgba(12, 12, 14, .22) 100%); transition: background-color .2s ease; }
.mag-cat-card:hover img { transform: scale(1.06); }
.mag-cat-card-body { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.mag-cat-card-title { font-family: var(--mag-font-head); font-size: 21px; font-weight: 700; line-height: 1.15; color: #fff8ee; }
.mag-cat-card-desc { font-size: 14px; line-height: 1.45; color: #e3dccf; }
.mag-cat-card-count { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mag-ember-lt); margin-top: 6px; }

/* ---------- Start here ---------- */
.mag-start { background: var(--mag-night); }
.mag-start-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.mag-start .mag-sec-head { margin: 0; position: sticky; top: 110px; }
.mag-start-list { list-style: none; counter-reset: start; margin: 0; padding: 0; }
.mag-start-list li { counter-increment: start; border-bottom: 1px solid var(--mag-line); }
.mag-start-list li:first-child { border-top: 1px solid var(--mag-line); }
.mag-start-list a { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: baseline; padding: 20px 0; color: var(--mag-cream); }
.mag-start-list a::before { content: counter(start, decimal-leading-zero); grid-row: span 2; font-family: var(--mag-font-head); font-size: 26px; font-weight: 700; color: var(--mag-ember); }
.mag-start-title { font-family: var(--mag-font-head); font-size: 21px; font-weight: 600; line-height: 1.25; }
.mag-start-list a:hover .mag-start-title { color: var(--mag-ember-lt); }
.mag-start-meta { font-size: 13px; color: var(--mag-mute); margin-top: 6px; }
.mag-start-meta .mag-label { margin: 0 8px 0 0; }

/* ---------- Gear + tools ---------- */
.mag-gear-note { margin: 34px 0 0; padding: 14px 18px; border-left: 3px solid var(--mag-ember); background: rgba(244, 235, 221, .05); font-size: 14px; color: #cfc8bb; border-radius: 0 8px 8px 0; }
.mag-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mag-tool-card, .mag a.mag-tool-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--mag-line); border-radius: var(--mag-radius); background: linear-gradient(160deg, var(--mag-night), var(--mag-ink-2)); color: var(--mag-text); transition: border-color .2s ease, transform .2s ease; }
.mag a.mag-tool-card:hover { border-color: var(--mag-ember); transform: translateY(-3px); }
.mag-tool-title { font-family: var(--mag-font-head); font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--mag-cream); }
.mag-tool-desc { font-size: 14.5px; line-height: 1.5; color: #c9c3b8; flex: 1; }
.mag-tool-go { font-size: 14px; font-weight: 600; color: var(--mag-ember-lt); }
.mag-explore-more { text-align: center; }
.mag-explore-more .mag-sec-sub { margin: 12px auto 24px; }
.mag-explore-more .mag-chip-list { justify-content: center; }

/* ---------- Page / archive heads ---------- */
.mag-page-head { position: relative; padding: 46px 0 40px; border-bottom: 1px solid var(--mag-line); background: linear-gradient(180deg, var(--mag-night) 0%, var(--mag-ink) 100%); isolation: isolate; overflow: hidden; }
.mag-page-head-img { padding: 70px 0 54px; }
.mag-page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mag-page-head-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 12, 14, .93) 0%, rgba(12, 12, 14, .74) 55%, rgba(12, 12, 14, .5) 100%); }
.mag-page-title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.mag-page-num { font-size: .5em; font-weight: 600; color: var(--mag-mute); letter-spacing: 0; }
.mag-page-sub { color: #d5cec1; font-size: 18px; line-height: 1.55; max-width: 68ch; margin: 16px 0 0; }
.mag-page-sub p { margin: 0 0 .6em; }
.mag-page-head .mag-searchform { max-width: 560px; margin-top: 22px; }
.mag-archive > .mag-wrap { padding-top: 48px; padding-bottom: 80px; }
.mag-empty { color: #d5cec1; font-size: 18px; }
.mag-other-topics { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--mag-line); }
.mag-other-topics h2 { font-size: 22px; }
.mag-404 .mag-page-head { border-bottom: 0; }
.mag-404-official { margin-top: 26px; font-size: 15px; color: #d5cec1; }

.mag-crumbs { margin-bottom: 18px; font-size: 13px; }
.mag-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; color: var(--mag-mute); }
.mag-crumbs li + li::before { content: "/"; margin-right: 8px; color: #6f6b65; }
.mag-crumbs a { color: #cfc8bb; }
.mag-crumbs a:hover { color: var(--mag-ember-lt); }
.mag-crumbs li[aria-current] { color: var(--mag-mute); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mag-pagination { margin-top: 56px; }
.mag-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mag-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--mag-line); border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--mag-cream); }
.mag-pagination .page-numbers.current { background: var(--mag-ember-btn); border-color: var(--mag-ember-btn); color: #fff8ee; }
.mag-pagination a.page-numbers:hover { border-color: var(--mag-ember-lt); }

/* ---------- Article ---------- */
.mag-article-head { padding: 44px 0 30px; background: linear-gradient(180deg, var(--mag-night) 0%, var(--mag-ink) 100%); }
.mag-article-head-inner { max-width: 900px; }
.mag-article-title { font-size: clamp(32px, 4.8vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -.022em; margin: 4px 0 18px; color: #fff8ee; text-wrap: balance; }
.mag-article-dek { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: #dcd5c8; max-width: 62ch; margin-bottom: 20px; }
.mag-article-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--mag-mute); margin: 0; }
.mag-byline { color: var(--mag-cream); font-weight: 600; }
.mag-article-figure { max-width: 1088px; margin: 0 auto; }
.mag-article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--mag-radius); }
.mag-article-figure figcaption { font-size: 12.5px; color: var(--mag-mute); padding: 8px 2px 0; text-align: right; }

.mag-paper { background: var(--mag-cream); color: var(--mag-paper-text); margin: 34px auto 0; max-width: 900px; padding: 56px 72px 48px; border-radius: 14px 14px 0 0; }
.mag-page .mag-paper { margin-top: 0; border-radius: 0 0 14px 14px; margin-bottom: 80px; }
.mag-article .mag-paper { margin-bottom: 0; }
.mag-prose { font-size: 18px; line-height: 1.75; }
.mag-prose > *:first-child { margin-top: 0; }
.mag .mag-prose h2, .mag .mag-prose h3, .mag .mag-prose h4 { color: var(--mag-paper-text); }
.mag-prose h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 1.9em 0 .6em; padding-top: .2em; }
.mag-prose h3 { font-size: 22px; margin: 1.6em 0 .5em; }
.mag-prose h4 { font-size: 18px; font-family: var(--mag-font-body); letter-spacing: 0; margin: 1.4em 0 .4em; }
.mag-prose p, .mag-prose ul, .mag-prose ol { margin: 0 0 1.25em; }
.mag-prose ul, .mag-prose ol { padding-left: 1.3em; }
.mag-prose li { margin-bottom: .5em; }
.mag-prose li::marker { color: var(--mag-ember-dk); font-weight: 700; }
.mag .mag-prose a { color: var(--mag-ember-dk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mag .mag-prose a:hover { color: var(--mag-paper-text); }
.mag-prose strong { font-weight: 650; }
.mag-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--mag-ember); font-family: var(--mag-font-head); font-size: 22px; line-height: 1.45; color: #3b332b; }
.mag-prose img { border-radius: 8px; }
.mag-prose figure { margin: 1.8em 0; }
.mag-prose figcaption, .mag-prose .wp-caption-text { font-size: 13.5px; color: var(--mag-paper-mute); margin-top: 8px; }
.mag-prose hr { border: 0; border-top: 1px solid var(--mag-paper-line); margin: 2.4em 0; }
.mag-page-updated { font-size: 14px; color: var(--mag-paper-mute); margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--mag-paper-line); }

.mag-disclosure { font-size: 14.5px; line-height: 1.55; padding: 14px 18px; background: var(--mag-cream-2); border-left: 4px solid var(--mag-ember); border-radius: 0 8px 8px 0; color: #3b332b; }
.mag-toc { margin: 1.6em 0 2em; border: 1px solid var(--mag-paper-line); border-radius: var(--mag-radius); background: #fbf5ea; }
.mag-toc summary { cursor: pointer; padding: 15px 20px; font-family: var(--mag-font-head); font-size: 19px; font-weight: 700; }
.mag-toc ol { margin: 0; padding: 0 22px 18px 44px; columns: 2; column-gap: 40px; font-size: 16px; line-height: 1.45; }
.mag-toc li { margin-bottom: .55em; break-inside: avoid; }
.mag .mag-prose .mag-toc a { text-decoration: none; color: #3b332b; }
.mag .mag-prose .mag-toc a:hover { color: var(--mag-ember-dk); text-decoration: underline; }

.mag-callout { margin: 1.8em 0; padding: 20px 24px; border-radius: var(--mag-radius); background: #fbf5ea; border: 1px solid var(--mag-paper-line); border-top: 4px solid var(--mag-ember); }
.mag-callout > *:last-child { margin-bottom: 0; }
.mag-callout-title { font-family: var(--mag-font-head); font-size: 20px; font-weight: 700; margin: 0 0 .5em; }
.mag-callout-safety { border-top-color: var(--mag-burgundy); background: #f6e7e2; }
.mag-checklist { list-style: none; padding-left: 0 !important; }
.mag-checklist li { position: relative; padding-left: 32px; }
.mag-checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border: 2px solid var(--mag-ember-dk); border-radius: 4px; }

.mag-table-wrap { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--mag-paper-line); border-radius: var(--mag-radius); background: #fbf5ea; -webkit-overflow-scrolling: touch; }
.mag-prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.mag-prose th, .mag-prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mag-paper-line); }
.mag-prose thead th { background: var(--mag-night); color: var(--mag-cream); font-weight: 600; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.mag-prose tbody th { font-weight: 650; }
.mag-prose tbody tr:last-child > * { border-bottom: 0; }
.mag-prose tbody tr:nth-child(even) { background: rgba(31, 27, 23, .035); }

.mag-product { margin: 2em 0; padding: 26px 28px; border-radius: 12px; background: #fffaf1; border: 1px solid var(--mag-paper-line); box-shadow: 0 14px 30px -22px rgba(31, 27, 23, .5); }
.mag-product-type { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mag-ember-dk); margin: 0 0 6px; }
.mag .mag-prose .mag-product-title { font-size: 24px; margin: 0 0 10px; }
.mag-product-best { margin: 0 0 14px; }
.mag-product-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mag-paper-mute); margin: 0 0 6px; }
.mag-product ul { margin: 0 0 14px; padding-left: 1.2em; font-size: 16.5px; }
.mag-product li { margin-bottom: .3em; }
.mag-product-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.mag-pros li::marker { content: "+  "; color: #2f6b3a; }
.mag-cons li::marker { content: "\2212  "; color: #9a2f22; }
.mag-product-note { font-size: 15px; color: var(--mag-paper-mute); }
.mag-product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 0; }
.mag .mag-prose a.mag-btn { text-decoration: none; color: #fff8ee; }
.mag-product-paid { font-size: 13px; color: var(--mag-paper-mute); }
.mag-prose p > .mag-btn-amz { margin: 4px 0; }

.mag-faq { margin: 1.4em 0 2em; border-top: 1px solid var(--mag-paper-line); }
.mag-faq-item { border-bottom: 1px solid var(--mag-paper-line); }
.mag-faq-item summary { cursor: pointer; list-style: none; position: relative; padding: 16px 40px 16px 0; font-weight: 650; font-size: 18px; line-height: 1.4; }
.mag-faq-item summary::-webkit-details-marker { display: none; }
.mag-faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--mag-ember-dk); line-height: 1; }
.mag-faq-item[open] summary::after { content: "\2212"; }
.mag-faq-a { padding: 0 0 16px; }
.mag-faq-a p:last-child { margin-bottom: 0; }
.mag-sources { font-size: 15.5px; }
.mag-sources li { margin-bottom: .4em; }

.mag-article-foot { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--mag-paper-line); }
.mag-paper .mag-chip-list { margin: 0 0 22px; }
.mag-paper .mag-chip, .mag .mag-paper a.mag-chip { border-color: var(--mag-paper-line); color: #3b332b; background: transparent; min-height: 36px; font-size: 13.5px; }
.mag .mag-paper a.mag-chip:hover { border-color: var(--mag-ember-dk); color: var(--mag-ember-dk); }
.mag-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.mag-share-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mag-paper-mute); margin-right: 6px; }
.mag-share-link, .mag .mag-paper a.mag-share-link { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--mag-paper-line); border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #3b332b; text-decoration: none; }
.mag-share-link:hover, .mag .mag-paper a.mag-share-link:hover { background: var(--mag-night); border-color: var(--mag-night); color: var(--mag-cream); }
.mag-about-box { padding: 18px 22px; border-radius: var(--mag-radius); background: var(--mag-cream-2); font-size: 15px; line-height: 1.6; color: #3b332b; }
.mag-about-box p { margin: 0; }
.mag .mag-about-box a { color: var(--mag-ember-dk); text-decoration: underline; text-underline-offset: 3px; }
.mag-related { border-top: 0 !important; }

/* ---------- Forms, credits and tool cards on paper ---------- */
.mag-form { margin: 1.2em 0 2em; }
.mag-form p { margin: 0 0 16px; }
.mag-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.mag-form input[type="text"], .mag-form input[type="email"], .mag-form select, .mag-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(31, 27, 23, .38); border-radius: 8px; background: #fffaf1; color: var(--mag-paper-text); font: inherit; font-size: 16px; }
.mag-form textarea { min-height: 160px; resize: vertical; }
.mag-form input:focus-visible, .mag-form select:focus-visible, .mag-form textarea:focus-visible { outline: 3px solid var(--mag-ember-dk); outline-offset: 1px; }
.mag-form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mag-form-consent { font-size: 14px; color: var(--mag-paper-mute); }
.mag-form-note { padding: 14px 18px; border-radius: 8px; font-weight: 600; }
.mag-form-note-ok { background: #e2efdf; border: 1px solid #7fae7a; color: #1f4a22; }
.mag-form-note-err { background: #f6e0dc; border: 1px solid #c98478; color: #6d1f14; }
.mag-credits td, .mag-credits th { vertical-align: middle; }
.mag-credit-thumb { width: 84px; }
.mag-credit-thumb img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; }
.mag-tool-grid-paper { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.6em 0; }
.mag .mag-prose a.mag-tool-card { text-decoration: none; background: var(--mag-night); border-color: var(--mag-night); color: var(--mag-text); }
.mag .mag-prose a.mag-tool-card:hover { border-color: var(--mag-ember); color: var(--mag-text); }
.mag-prose .mag-amz-link { font-weight: 600; }
@media (max-width: 719px) { .mag-tool-grid-paper { grid-template-columns: 1fr; } }

/* ---------- Tool pages (legacy components on the new chrome) ---------- */
body.mag.rmhv-theme { background: var(--mag-ink); padding-bottom: 0; }
.mag-tools-body { padding-bottom: 60px; }
.mag-tools-body > p, .mag-tools-body > h2, .mag-tools-body > ul { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.mag-tools-body .rmhv-sec { padding-top: 48px; padding-bottom: 48px; }
.mag-tools-body .rmhv-sec-title { font-size: clamp(24px, 3vw, 32px); }

/* ---------- Footer ---------- */
.mag-footer { background: #0e0e0f; border-top: 1px solid var(--mag-line); padding: 64px 0 28px; font-size: 15px; color: #c9c3b8; }
.mag-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.mag-footer-brand p { margin: 18px 0 0; max-width: 42ch; line-height: 1.6; }
.mag-footer-note { font-size: 13.5px; color: var(--mag-mute); }
.mag-footer-col h2 { font-family: var(--mag-font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mag-ember-lt); margin: 6px 0 16px; }
.mag-footer-col ul { list-style: none; margin: 0; padding: 0; }
.mag-footer-col a { display: inline-block; padding: 6px 0; color: #dcd5c8; }
.mag-footer-col a:hover { color: var(--mag-ember-lt); }
.mag-footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--mag-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: 13.5px; color: var(--mag-mute); }
.mag-footer-bottom p { margin: 0; }
.mag-top, .mag a.mag-top { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mag-ember-btn); color: #fff8ee; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .8); }
.mag a.mag-top:hover { background: var(--mag-ember); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.mag-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mag-cat-grid, .mag-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mag-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "big big" "s1 s2" "s3 s4"; }
	.mag-card-overlay { min-height: 380px; }
	.mag-start-inner { grid-template-columns: 1fr; gap: 28px; }
	.mag-start .mag-sec-head { position: static; }
	.mag-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mag-footer-brand { grid-column: 1 / -1; }
	.mag-paper { padding: 44px 40px 40px; border-radius: 0; }
}
@media (max-width: 719px) {
	body.mag { font-size: 16.5px; }
	.mag-wrap { padding: 0 18px; }
	.mag-topbar { font-size: 12px; }
	.mag-header-inner { min-height: 62px; gap: 12px; }
	.mag-brand-main { font-size: 19px; }
	.mag-sec { padding: 52px 0; }
	.mag-sec-head { margin-bottom: 26px; }
	.mag-sec-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
	.mag-hero { min-height: 560px; }
	.mag-hero-shade { background: linear-gradient(0deg, rgba(21, 21, 21, 1) 0%, rgba(12, 12, 14, .82) 45%, rgba(12, 12, 14, .35) 100%); }
	.mag-hero-inner { padding-top: 90px; padding-bottom: 54px; }
	.mag-hero-cta .mag-btn { flex: 1 1 100%; }
	.mag-grid-3, .mag-grid-2 { grid-template-columns: 1fr; }
	.mag-featured-grid { grid-template-columns: 1fr; grid-template-areas: none; }
	.mag-featured-grid > .mag-card-overlay { grid-area: auto; min-height: 340px; }
	.mag-card-overlay .mag-card-body { padding: 20px; }
	.mag-featured-grid .mag-card-compact { flex-direction: row; gap: 14px; }
	.mag-featured-grid .mag-card-compact .mag-card-media { flex: 0 0 38%; }
	.mag-featured-grid .mag-card-compact .mag-card-body { padding-top: 0; }
	.mag-card-row .mag-card-media { flex-basis: 38%; }
	.mag-card-row .mag-card-excerpt { display: none; }
	.mag-card-row .mag-card-title { font-size: 18px; }
	.mag-cat-grid { gap: 14px; }
	.mag-cat-card, .mag a.mag-cat-card { min-height: 190px; }
	.mag-cat-card-body { padding: 14px; }
	.mag-cat-card-title { font-size: 18px; }
	.mag-cat-card-desc { font-size: 13px; }
	.mag-tool-grid { grid-template-columns: 1fr; }
	.mag-searchform { flex-direction: column; }
	.mag-start-list a { grid-template-columns: 44px minmax(0, 1fr); }
	.mag-start-title { font-size: 19px; }
	.mag-page-head { padding: 32px 0 30px; }
	.mag-article-head { padding: 28px 0 22px; }
	.mag-article-figure { padding: 0; }
	.mag-article-figure img { border-radius: 0; }
	.mag-article-figure figcaption { padding: 8px 18px 0; }
	.mag-paper { padding: 32px 20px 34px; margin-top: 22px; }
	.mag-prose { font-size: 17.5px; line-height: 1.7; }
	.mag-toc ol { columns: 1; }
	.mag-product { padding: 22px 20px; }
	.mag-product-pc { grid-template-columns: 1fr; }
	.mag-product-cta .mag-btn { width: 100%; }
	.mag-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
	.mag-footer-bottom { flex-direction: column; }
	.mag-crumbs li[aria-current] { max-width: 24ch; }
}
@media (max-width: 420px) {
	.mag-cat-grid { grid-template-columns: 1fr; }
	.mag-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mag *, .mag *::before, .mag *::after { transition: none !important; animation: none !important; }
}
@media print {
	.mag-topbar, .mag-header, .mag-footer, .mag-top, .mag-share, .mag-related { display: none !important; }
	body.mag, .mag-paper { background: #fff; color: #000; }
}
