/* ==========================================================================
   IRMAA Calculator — main stylesheet (hand-written port of the Tailwind design)
   Tokens → base → layout → components → pages → print
   ========================================================================== */

:root {
	--bg: #0B1C2C;
	--bg-2: #0F2537;
	--card: #132D45;
	--input: #0D2035;
	--accent: #FF5E00;
	--accent-hover: #E05200;
	--accent-10: rgba(255, 94, 0, .10);
	--accent-15: rgba(255, 94, 0, .15);
	--accent-30: rgba(255, 94, 0, .30);
	--accent-40: rgba(255, 94, 0, .40);
	--text: #FFFFFF;
	--muted: #A8BCCF;
	--border: #1E3A52;
	--success: #22C55E;
	--danger: #F87171;
	--amber: #F59E0B;
	--amber-300: #FCD34D;
	--amber-400: #FBBF24;
	--amber-200: #FDE68A;
	--amber-100: #FEF3C7;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 4px 24px rgba(0, 0, 0, .3);
	--shadow-accent: 0 4px 16px rgba(255, 94, 0, .3);
	--font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	--header-h: 64px;
	--ease: .2s ease;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(255, 94, 0, .3); color: #fff; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; font-weight: 700; color: var(--text); }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.site-main { flex: 1; outline: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.icon { width: 16px; height: 16px; flex-shrink: 0; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 36px; height: 36px; }

/* Text utilities */
.t-xs { font-size: 12px; line-height: 1.5; }
.t-sm { font-size: 14px; line-height: 1.5; }
.t-muted { color: var(--muted); }
.t-white { color: #fff; }
.t-strong { font-weight: 600; color: #fff; }
.t-green { color: var(--success); }
.t-right { text-align: right; }
.t-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.t-num { font-variant-numeric: tabular-nums; }

.h2 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.15; }
.h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; }
.h4 { font-size: 20px; }
.h5 { font-size: 20px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 896px; }
.container--mid { max-width: 1024px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 64px 0; position: relative; }
@media (min-width: 640px) { .section { padding: 80px 0; } }
.section--tight { padding: 56px 0; }
@media (min-width: 640px) { .section--tight { padding: 64px 0; } }
.section--alt { background-color: var(--bg-2); }
.section--border { border-top: 1px solid var(--border); }
.section--border-b { border-bottom: 1px solid var(--border); }

.section-head { max-width: 672px; margin-bottom: 48px; }
.section-head__lead { margin-top: 12px; color: var(--muted); }
.section-head--split { max-width: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
@media (min-width: 768px) { .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head--split .section-head__lead { margin-top: 8px; max-width: 672px; }

/* Textures */
.bg-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 75% 60% at 75% 25%, rgba(255, 94, 0, .14) 0%, rgba(255, 94, 0, .03) 45%, transparent 72%),
		radial-gradient(ellipse 65% 55% at 15% 15%, rgba(30, 58, 82, .45) 0%, transparent 70%),
		var(--bg);
	border-bottom: 1px solid var(--border);
}
.bg-grid {
	position: absolute; inset: 0; pointer-events: none; opacity: .4;
	background-image:
		linear-gradient(to right, rgba(30, 58, 82, .28) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(30, 58, 82, .28) 1px, transparent 1px);
	background-size: 48px 48px;
}
.bg-grid--soft { opacity: .35; }
.bg-noise { background-image: radial-gradient(rgba(168, 188, 207, .055) 1px, transparent 0); background-size: 20px 20px; }

/* ---------- Components ---------- */
.card {
	background-color: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.card--accent { border-top: 4px solid var(--accent); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
	font-weight: 600; font-size: 15px; line-height: 1.25; text-align: center; white-space: nowrap;
	transition: all var(--ease); cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 14px 24px; font-size: 16px; font-weight: 700; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--glow { box-shadow: var(--shadow-accent); }
.btn--glow:hover { box-shadow: 0 6px 20px rgba(255, 94, 0, .4); }
.btn--ghost { background: rgba(15, 37, 55, .8); border-color: var(--border); color: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }
.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--dark { background: var(--bg); color: #fff; font-weight: 700; }
.btn--dark:hover { background: var(--bg-2); color: #fff; }

.link-accent {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap;
	background: none; border: 0; padding: 0;
}
.link-accent:hover { text-decoration: underline; }
.link-accent--btn:hover { color: #fff; text-decoration: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }

.icon-box {
	width: 40px; height: 40px; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-sm); background: var(--accent-15); border: 1px solid var(--accent-30); color: var(--accent);
}
.icon-box .icon { width: 20px; height: 20px; }
.icon-box--lg { width: 44px; height: 44px; border-radius: 10px; }

.pill {
	display: inline-block; padding: 2px 10px; border-radius: 999px;
	background: var(--accent-15); border: 1px solid var(--accent-40); color: var(--accent);
	font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.pill--solid { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; padding: 4px 12px; }
a.pill--solid:hover { text-decoration: none; background: var(--accent-hover); }

.chip {
	padding: 4px 10px; border-radius: 6px; font-size: 12px;
	background: var(--input); border: 1px solid var(--border); color: var(--muted);
	transition: all var(--ease);
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip-icon {
	width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-sm); background: var(--input); border: 1px solid var(--border); color: var(--accent);
}

.notice {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 14px; border-radius: var(--radius-sm); font-size: 12px; line-height: 1.6;
}
.notice .icon { margin-top: 2px; }
.notice--amber { background: rgba(245, 158, 11, .15); border: 1px solid rgba(251, 191, 36, .4); color: var(--amber-100); }
.notice--amber .icon { color: var(--amber-400); }
.notice--sm { padding: 10px; align-items: center; color: var(--amber-200); font-weight: 500; }

.note-green { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--success); padding-top: 4px; }
.note-green .icon { margin-top: 2px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--accent); margin-top: 3px; }

.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dot-list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.soft-box {
	padding: 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border);
	font-size: 14px; color: var(--muted); line-height: 1.6;
}
.soft-box strong { color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 28, 44, .95);
	border-bottom: 1px solid rgba(30, 58, 82, .6);
	transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.site-header.is-scrolled {
	background: rgba(11, 28, 44, .88);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom-color: var(--border);
	box-shadow: var(--shadow);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0; border-radius: var(--radius-sm); }
.brand:hover { color: #fff; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--accent-15); border: 1px solid var(--accent-30); flex-shrink: 0; }
.brand__mark svg { width: 16px; height: 16px; fill: var(--accent); }
.brand--footer .brand__mark { width: 28px; height: 28px; }

.nav { display: none; }
@media (min-width: 768px) { .nav { display: block; } }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav__list a {
	position: relative; display: block; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.nav__list a:hover { color: #fff; text-decoration: none; }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--accent); }
.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent);
}

.site-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
.menu-toggle {
	width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); color: #fff;
	transition: border-color var(--ease);
}
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle .icon { width: 20px; height: 20px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
@media (min-width: 768px) { .menu-toggle, .mobile-nav { display: none !important; } }

.mobile-nav { background: var(--bg-2); border-top: 1px solid var(--border); padding: 16px; }
.mobile-nav__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mobile-nav__list a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 14px; font-weight: 500; color: var(--muted); }
.mobile-nav__list a:hover { color: #fff; background: var(--card); text-decoration: none; }
.mobile-nav__list .current-menu-item > a { background: var(--accent-15); color: var(--accent); border-color: var(--accent-30); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); color: var(--muted); }
.site-footer .container { padding-top: 48px; padding-bottom: 48px; }
.site-footer__top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
.site-footer__brand { display: grid; gap: 12px; align-content: start; }
.site-footer__brand p { font-size: 14px; max-width: 448px; line-height: 1.7; }
@media (min-width: 768px) { .site-footer__links { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; } }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.site-footer__note { font-size: 12px; color: rgba(168, 188, 207, .8); margin-top: 16px; }
@media (min-width: 768px) { .site-footer__note { text-align: right; } }
.site-footer__bottom { padding-top: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 12px; color: rgba(168, 188, 207, .85); }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__disclaimer { max-width: 768px; line-height: 1.7; }
.site-footer__copy { white-space: nowrap; }
@media (max-width: 480px) { .site-footer__copy { white-space: normal; } }
.site-footer__copy a { font-weight: 500; }

/* ---------- Home: hero ---------- */
.hero__inner { position: relative; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 640px) { .hero__inner { padding-top: 80px; padding-bottom: 80px; } }
@media (min-width: 1024px) { .hero__inner { padding-top: 96px; padding-bottom: 96px; } }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1fr; } }
.hero__copy { display: grid; gap: 24px; }
.hero__title { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.hero__lead { font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 576px; line-height: 1.7; }
.hero__actions { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; align-items: center; } }

.hero-visual { position: relative; width: 100%; max-width: 512px; margin: 0 auto; user-select: none; }
@media (min-width: 1024px) { .hero-visual { margin-right: 0; } }
.hero-visual__glow {
	position: absolute; inset: -16px; border-radius: 24px; pointer-events: none; filter: blur(40px);
	background: linear-gradient(to top right, rgba(255, 94, 0, .15), rgba(30, 58, 82, .2), transparent);
}
.hero-visual__card { position: relative; overflow: hidden; padding: 24px; background: rgba(19, 45, 69, .95); }
@media (min-width: 640px) { .hero-visual__card { padding: 28px; } }
.hero-visual__grid {
	position: absolute; inset: 0; opacity: .15; pointer-events: none;
	background-image: linear-gradient(to right, var(--muted) .6px, transparent .6px), linear-gradient(to bottom, var(--muted) .6px, transparent .6px);
	background-size: 24px 24px;
}
.hero-visual__body { position: relative; display: grid; gap: 20px; }
.hero-visual__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.hero-visual__id { display: flex; align-items: center; gap: 12px; }
.hero-visual__badge { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0, 0, 0, .2); }
.hero-visual__badge .icon { width: 24px; height: 24px; }
.hero-visual__chips { display: flex; gap: 8px; }
@media (max-width: 400px) { .hero-visual__chips { display: none; } .hero-visual__card { padding: 18px; } }
.hero-visual__ladder { display: grid; gap: 8px; }
.hero-visual__ladder-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.tier {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
	background: rgba(13, 32, 53, .85); color: var(--muted); font-size: 12px;
}
@media (min-width: 640px) { .tier { font-size: 14px; } }
.tier__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.tier__amount { font-family: var(--mono); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .9); flex-shrink: 0; }
.tier.is-active { background: var(--accent-15); border-color: var(--accent); color: #fff; font-weight: 600; }
.tier.is-active .tier__amount { color: var(--accent); }
.hero-visual__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

.trust { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(30, 58, 82, .8); display: grid; gap: 16px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust__item { padding: 16px; display: flex; align-items: center; gap: 14px; transition: border-color var(--ease); }
.trust__item:hover { border-color: rgba(255, 94, 0, .5); }
.trust__text { min-width: 0; }
.trust__title { font-size: 14px; font-weight: 700; color: #fff; }
.trust__sub { font-size: 12px; color: var(--muted); }

/* Steps / values */
.steps { display: grid; gap: 24px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card, .value-card { padding: 24px; display: grid; gap: 16px; align-content: start; transition: all var(--ease); }
@media (min-width: 640px) { .step-card, .value-card { padding: 28px; } }
.step-card:hover { transform: translateY(-2px); border-color: rgba(255, 94, 0, .6); }
.step-card p, .value-card p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.step-card__num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0, 0, 0, .2); }

/* Info cards */
.info-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { padding: 24px; display: grid; gap: 16px; justify-items: start; }
.info-card > p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.info-card strong { color: #fff; }
.info-card__more { padding-top: 8px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.expand-chev { transition: transform var(--ease); }
[aria-expanded="true"] > .expand-chev { transform: rotate(180deg); }

/* ---------- FAQ ---------- */
.faq__head { display: grid; gap: 8px; margin-bottom: 32px; }
.faq__title { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.02em; }
.faq__lead { font-size: 15px; color: var(--muted); max-width: 672px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); border: 1px solid var(--border); background: rgba(19, 45, 69, .75); transition: border-color var(--ease), background var(--ease); }
.faq__item:hover { border-color: rgba(255, 94, 0, .4); }
.faq__item.is-open { background: var(--card); border-color: rgba(255, 94, 0, .6); box-shadow: var(--shadow); }
.faq__q { font-size: inherit; }
.faq__q button {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 20px; text-align: left; background: none; border: 0; border-radius: var(--radius);
	font-size: 15px; font-weight: 600; color: #fff; line-height: 1.4;
}
@media (min-width: 640px) { .faq__q button { padding: 20px 24px; font-size: 16px; } }
.faq__chev { width: 20px; height: 20px; color: var(--muted); transition: transform var(--ease); }
.faq__item.is-open .faq__chev { transform: rotate(180deg); color: var(--accent); }
.faq__a { padding: 14px 20px 20px; border-top: 1px solid rgba(30, 58, 82, .7); color: var(--muted); font-size: 15px; line-height: 1.7; }
@media (min-width: 640px) { .faq__a { padding: 14px 24px 24px; font-size: 16px; } }
.faq--inset .faq__head { margin-bottom: 20px; }
.faq--inset .faq__item { background: rgba(13, 32, 53, .8); }
.faq--inset .faq__item.is-open { background: var(--input); border-color: rgba(255, 94, 0, .65); box-shadow: none; }

.h-bar { font-size: clamp(24px, 3vw, 28px); border-left: 4px solid var(--accent); padding-left: 16px; line-height: 1.3; }

/* ---------- Calculator ---------- */
.calc-section { background: var(--bg); }
.calc { overflow: hidden; border-top: 4px solid var(--accent); }
.calc__head {
	padding: 24px; border-bottom: 1px solid var(--border); background: rgba(15, 37, 55, .6);
	display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 640px) { .calc__head { padding: 28px 32px; } }
@media (min-width: 1024px) { .calc__head { flex-direction: row; align-items: center; justify-content: space-between; } }
.calc__title { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.2; }
.calc__sub { margin-top: 6px; color: var(--muted); font-size: 15px; }

.progress { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (min-width: 640px) { .progress { gap: 12px; } }
.progress__step {
	display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
	border: 1px solid var(--border); background: var(--input); color: var(--muted); font-size: 12px; transition: all var(--ease);
}
.progress__num { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; background: var(--border); color: var(--muted); flex-shrink: 0; }
.progress__text { display: none; line-height: 1.25; }
.progress__text b { display: block; font-weight: 600; white-space: nowrap; }
.progress__text small { display: block; font-size: 11px; opacity: .8; white-space: nowrap; }
@media (min-width: 640px) { .progress__text { display: block; } }
.progress__sep { width: 12px; height: 1px; background: var(--border); }
@media (min-width: 640px) { .progress__sep { width: 20px; } }
.progress__step.is-done { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .4); color: #fff; }
.progress__step.is-done .progress__num { background: var(--success); color: var(--bg); }
.progress__step.is-current { background: var(--accent-15); border-color: var(--accent); color: #fff; }
.progress__step.is-current .progress__num { background: var(--accent); color: #fff; }

.calc__grid { display: grid; }
@media (min-width: 1024px) { .calc__grid { grid-template-columns: 1fr 1fr; } }
.calc__form { padding: 24px; display: grid; gap: 32px; align-content: start; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .calc__form { padding: 32px; } }
@media (min-width: 1024px) { .calc__form { border-bottom: 0; border-right: 1px solid var(--border); } }
.calc__step { display: grid; gap: 24px; }
.calc__results { padding: 24px; background: rgba(15, 37, 55, .5); scroll-margin-top: calc(var(--header-h) + 12px); }
@media (min-width: 640px) { .calc__results { padding: 32px; } }

.step-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.step-head h3 { font-size: 18px; flex: 1; min-width: 0; }
@media (min-width: 640px) { .step-head h3 { font-size: 20px; } }
.step-head__num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-head__num.is-idle { background: var(--border); color: var(--muted); }
.step-head__num.is-done { background: var(--success); color: var(--bg); }
.step-head__meta { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }

.field { display: grid; gap: 8px; }
.field--tight { gap: 6px; }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field__label { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.field__label--sm { font-size: 12px; }
.field__badge { font-size: 12px; font-weight: 500; color: var(--accent); text-align: right; }
.field__help { font-size: 12px; color: var(--muted); line-height: 1.6; }
.field__error { font-size: 12px; font-weight: 500; color: var(--danger); }
.field-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.req { color: var(--accent); }
.opt { font-size: 12px; font-weight: 400; color: var(--muted); }

.input {
	width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
	background: var(--input); border: 1px solid var(--border); color: #fff; font-size: 14px; font-weight: 500;
	transition: border-color var(--ease), box-shadow var(--ease);
}
.input::placeholder { color: rgba(168, 188, 207, .5); font-family: var(--font); font-weight: 400; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.input.is-invalid { border-color: #EF4444; box-shadow: none; }
.input--mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.select {
	appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8BCCF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.select option { background: var(--input); color: #fff; }
.textarea { height: auto; min-height: 132px; padding: 14px; resize: vertical; line-height: 1.6; }
.input-money { position: relative; }
.input-money__sign { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); font-weight: 600; pointer-events: none; }
.input-money .input { padding-left: 32px; }
#magi-input { height: 48px; font-size: 16px; }

.seg { display: grid; gap: 10px; }
@media (min-width: 640px) { .seg { grid-template-columns: repeat(3, 1fr); } }
.seg__btn {
	padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--input);
	color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; transition: all var(--ease);
}
@media (min-width: 640px) { .seg__btn { font-size: 14px; } }
.seg__btn:hover { color: #fff; border-color: rgba(255, 94, 0, .6); }
.seg__btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(255, 94, 0, .3); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--input); border: 1px solid var(--border); }
.switch-row__title { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.switch-row__text { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.switch {
	position: relative; width: 48px; height: 28px; flex-shrink: 0; padding: 0; border-radius: 999px;
	background: var(--card); border: 1px solid var(--border); transition: background var(--ease), border-color var(--ease);
}
.switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--ease); }
.switch.is-on { background: var(--accent); border-color: var(--accent); }
.switch.is-on .switch__knob { transform: translateX(20px); }

.lce-panel { display: grid; gap: 16px; margin-top: 4px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid rgba(245, 158, 11, .4); }

.examples { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: -12px; }
.examples__list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Results */
.results-empty { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.results-empty__card { margin-top: 24px; padding: 24px; display: grid; gap: 16px; }
.results-empty__card h4 { font-size: 18px; }
.results-empty__card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.results-empty__card strong { color: #fff; }
.results-empty__note { padding: 16px; border-radius: var(--radius-sm); background: rgba(13, 32, 53, .7); border: 1px solid var(--border); font-size: 12px; color: var(--muted); }

.results { display: grid; gap: 24px; }
.results__head-meta { font-size: 12px; font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.result-block { padding: 20px; border-radius: var(--radius); background: var(--input); border: 1px solid var(--border); }
.result-block--sm { padding: 16px; }
.result-block--accent { border-color: rgba(255, 94, 0, .5); }
.result-block__eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); }
.result-block__title { font-size: 18px; margin-top: 2px; }
.result-block__h { font-size: 14px; font-weight: 700; color: #fff; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.result-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.range-tag { font-size: 12px; font-family: var(--mono); font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 6px; background: var(--accent-15); border: 1px solid var(--accent-40); color: var(--accent); font-weight: 600; }

.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ladder__row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(30, 58, 82, .8);
	background: rgba(19, 45, 69, .5); color: var(--muted); font-size: 12px;
}
.ladder__name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ladder__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.ladder__range { display: none; color: rgba(168, 188, 207, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .ladder__range { display: inline; } }
.ladder__amt { font-family: var(--mono); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ladder__row.is-match { background: rgba(255, 94, 0, .18); border-color: var(--accent); color: #fff; font-weight: 600; }
.ladder__row.is-match .ladder__dot { background: var(--accent); }

.cost-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .cost-grid { grid-template-columns: 1fr 1fr; } }
.kv { display: grid; gap: 8px; font-size: 12px; }
@media (min-width: 640px) { .kv { font-size: 14px; } }
.kv__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kv__row > span:first-child { color: var(--muted); }
.kv__row > span:last-child { text-align: right; }
.kv__row--total { padding-top: 8px; border-top: 1px solid var(--border); font-weight: 600; }
.kv__row--total > span:first-child { color: #fff; }
.kv__note { font-size: 11px; color: rgba(168, 188, 207, .9); padding-top: 4px; }
.kv__plain { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: #fff; }
.num--accent { color: var(--accent); font-weight: 600; }
.num--neg { color: var(--danger); }
.is-none, .ok { color: var(--success); font-weight: 600; font-family: var(--font); }

.totals { display: grid; gap: 16px; }
@media (min-width: 640px) { .totals { grid-template-columns: 1fr 1fr; } }
.totals__label { display: block; font-size: 12px; color: var(--muted); }
.totals__value { display: block; margin-top: 2px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--accent); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.net { font-size: 18px; font-weight: 700; }
.net.is-pos { color: var(--success); }
.net.is-neg { color: var(--danger); }

.future-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.future-head h4 { font-size: 14px; }
.future-head span { font-size: 11px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.future-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.future-table th { padding: 8px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.future-table td { padding: 10px 8px; border-bottom: 1px solid rgba(30, 58, 82, .7); color: var(--muted); white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.future-table th:first-child, .future-table td:first-child { padding-left: 0; }
.future-table th:last-child, .future-table td:last-child { padding-right: 0; text-align: right; color: #fff; }
.future-table td.is-year { color: #fff; font-family: var(--font); }
.future-table td.is-tier { font-family: var(--font); }
.future-table tr.is-changed td { background: rgba(255, 94, 0, .18); color: #fff; font-weight: 600; }
.future-table tr:last-child td { border-bottom: 0; }
.changed { margin-left: 4px; color: var(--accent); font-weight: 700; }
.future-note { margin-top: 12px; font-size: 11px; color: rgba(168, 188, 207, .8); }

.lce-notice { display: flex; gap: 10px; padding: 16px; border-radius: var(--radius); background: rgba(245, 158, 11, .15); border: 1px solid rgba(251, 191, 36, .5); color: var(--amber-100); font-size: 13px; line-height: 1.65; }
.lce-notice .icon { width: 20px; height: 20px; color: var(--amber-400); margin-top: 1px; }
.lce-notice__body { display: grid; gap: 6px; }
.lce-notice__title { font-weight: 700; color: var(--amber-200); }
.lce-notice__compare { padding-top: 4px; font-weight: 500; color: #fff; }

.results__foot { display: grid; gap: 16px; padding-top: 8px; }
.results__disclaimer { font-size: 12px; color: rgba(168, 188, 207, .85); line-height: 1.7; }
.results__notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12px; color: rgba(168, 188, 207, .85); line-height: 1.6; }
.results .notice { font-size: 13px; }
.results .notice strong { color: var(--amber-200); }
.field__badge.is-estimate { color: var(--amber-400); }
.results__actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .results__actions { flex-direction: row; } .results__actions .btn { flex: 1; } }
.btn-recalc { background: var(--input); border-color: var(--border); color: #fff; }
.btn-recalc .icon { color: var(--accent); }
.btn-recalc:hover { border-color: var(--accent); color: #fff; }

.print-only-header { display: none; }

/* ---------- Page heroes ---------- */
.page-hero__inner { position: relative; padding-top: 56px; padding-bottom: 56px; display: grid; gap: 16px; }
@media (min-width: 640px) { .page-hero__inner { padding-top: 80px; padding-bottom: 80px; } }
.page-hero__text { max-width: 768px; display: grid; gap: 12px; }
.page-hero__title { font-size: clamp(36px, 5vw, 48px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.page-hero__title--xl { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; }
.page-hero__lead { font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 672px; }
.page-hero__intro { display: grid; gap: 16px; color: var(--muted); max-width: 768px; line-height: 1.7; }
.page-hero__intro p:first-child { font-size: clamp(16px, 2vw, 18px); }
.page-hero--center .page-hero__inner { text-align: center; justify-items: center; }
.page-hero .search-form { display: flex; gap: 8px; max-width: 480px; }
.page-hero .search-field { flex: 1; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--input); border: 1px solid var(--border); color: #fff; }
.page-hero .search-submit { padding: 0 18px; border-radius: var(--radius-sm); background: var(--accent); border: 0; color: #fff; font-weight: 600; }

/* About */
.mission { padding: 32px; display: grid; gap: 16px; }
@media (min-width: 640px) { .mission { padding: 40px; } }
.mission p { color: var(--muted); font-size: clamp(16px, 2vw, 18px); line-height: 1.7; }
.notice-bar { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .notice-bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.notice-bar__text { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.7; }
.notice-bar__text .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.notice-bar__text strong { color: #fff; }

/* Contact */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.contact-grid__form { padding: 24px; }
@media (min-width: 640px) { .contact-grid__form { padding: 32px; } }
.contact-grid__info { display: grid; gap: 24px; }
.contact-form { display: grid; gap: 20px; }
.contact-form .field { gap: 6px; }
.contact-form__title { font-size: 24px; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #FECACA; font-size: 14px; }
.form-success { padding: 24px; border-radius: var(--radius); background: rgba(34, 197, 94, .15); border: 1px solid rgba(34, 197, 94, .4); display: grid; gap: 16px; justify-items: start; }
.form-success__head { display: flex; align-items: center; gap: 12px; color: var(--success); }
.form-success__head h2 { font-size: 20px; }
.form-success p { color: var(--muted); line-height: 1.7; }
.info-list { padding: 24px; display: grid; gap: 20px; }
@media (min-width: 640px) { .info-list { padding: 28px; } }
.info-list__item { display: flex; gap: 14px; align-items: flex-start; }
.info-list__value { font-weight: 600; color: #fff; word-break: break-word; }
.info-list__value a { color: #fff; }
.info-list__note { margin-top: 4px; }

/* Blog listing */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.filters__tab {
	padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2);
	color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all var(--ease);
}
.filters__tab:hover { color: #fff; border-color: rgba(255, 94, 0, .5); text-decoration: none; }
.filters__tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(255, 94, 0, .3); }

.post-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); } .post-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-grid__more { margin-top: 48px; display: flex; justify-content: center; gap: 12px; }
.post-grid__empty { color: var(--muted); padding: 24px 0; }

.post-card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: all var(--ease); }
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 8px 30px rgba(255, 94, 0, .16); }
.post-card__thumb { position: relative; display: block; height: 192px; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.post-card--compact .post-card__thumb { height: 160px; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(11, 28, 44, .75), rgba(11, 28, 44, .15) 50%, transparent); }
.thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(to bottom right, var(--bg-2), var(--card), var(--bg)); }
.thumb-fallback__icon { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); background: rgba(11, 28, 44, .85); border: 1px solid rgba(255, 94, 0, .35); color: var(--accent); }
.post-card__body { padding: 24px 24px 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.post-card--compact .post-card__body { padding: 20px 20px 0; gap: 10px; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.post-card__title { font-size: 20px; line-height: 1.35; }
.post-card--compact .post-card__title { font-size: 18px; }
.post-card__title a { color: #fff; transition: color var(--ease); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover .post-card__title a { color: var(--accent); text-decoration: none; }
.post-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__foot { padding: 16px 24px 24px; }
.post-card--compact .post-card__foot { padding: 12px 20px 20px; }
.post-card:hover .post-card__btn { background: var(--accent); color: #fff; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--muted); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Article ---------- */
.article-page { padding-top: 40px; }
@media (min-width: 640px) { .article-page { padding-top: 56px; } }
.article-top { display: grid; gap: 16px; justify-items: start; margin-bottom: 48px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
@media (min-width: 640px) { .breadcrumb ol { font-size: 14px; } }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumb li + li::before { content: ""; width: 14px; height: 14px; background: currentColor; opacity: .6; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; text-decoration: none; }
.breadcrumb [aria-current] span { color: #fff; font-weight: 500; display: inline-block; max-width: 448px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 640px) { .breadcrumb [aria-current] span { max-width: 220px; } }

.article-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; } }
.article { padding: 24px; min-width: 0; }
@media (min-width: 640px) { .article { padding: 40px; } }
.article__head { display: grid; gap: 16px; justify-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article__title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.article__meta { font-size: 14px; color: var(--muted); }
.article__cover { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--input); }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__cta { padding-top: 20px; margin-top: 32px; border-top: 1px solid var(--border); }
.article__faq { padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--border); }

.author { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.author__avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--input); border: 1px solid var(--border); color: var(--accent); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.author__name { font-weight: 700; color: #fff; }
.author__bio { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 4px; }

.share { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.share__label { font-size: 14px; font-weight: 600; color: #fff; }
.share__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share__btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm);
	background: var(--input); border: 1px solid var(--border); color: #fff; font-size: 13px; font-weight: 500; transition: border-color var(--ease);
}
.share__btn:hover { border-color: var(--accent); color: #fff; text-decoration: none; }
.share__btn .icon { color: var(--accent); }
.share__state { display: inline-flex; align-items: center; gap: 6px; }
.share__state--done, .share__btn.is-copied .share__state--idle { display: none; }
.share__btn.is-copied .share__state--done { display: inline-flex; color: var(--success); }
.share__btn.is-copied .share__state--done .icon { color: var(--success); }

.sidebar { display: grid; gap: 24px; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: calc(var(--header-h) + 32px); } .admin-bar .sidebar { top: calc(var(--header-h) + 64px); } }
.sidebar-cta { padding: 24px; border-radius: var(--radius); background: var(--accent); color: #fff; box-shadow: 0 4px 24px rgba(255, 94, 0, .28); display: grid; gap: 12px; }
.sidebar-cta h2 { font-size: 20px; font-weight: 800; line-height: 1.3; }
.sidebar-cta p { font-size: 14px; color: rgba(255, 255, 255, .9); line-height: 1.6; }
.sidebar-box { padding: 24px; display: grid; gap: 16px; }
.sidebar-box__title { font-size: 18px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related-list a { display: grid; gap: 6px; padding: 14px; border-radius: var(--radius-sm); background: var(--input); border: 1px solid var(--border); transition: border-color var(--ease); }
.related-list a:hover { border-color: var(--accent); text-decoration: none; }
.related-list__cat { font-size: 11px; font-weight: 600; color: var(--accent); }
.related-list__title { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.4; }

.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); display: grid; gap: 24px; }

/* ---------- Entry content (articles + pages) ---------- */
.entry-content { padding-top: 28px; display: grid; gap: 20px; color: var(--muted); line-height: 1.7; }
.entry-content > * { margin: 0; }
.entry-content p { color: var(--muted); }
.entry-content .is-style-lead { font-size: clamp(16px, 2vw, 18px); }
.entry-content h2 { margin-top: 16px; font-size: clamp(24px, 3vw, 28px); line-height: 1.3; border-left: 4px solid var(--accent); padding-left: 16px; color: #fff; }
.entry-content h3 { margin-top: 8px; font-size: 20px; color: #fff; }
.entry-content strong { color: #fff; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding: 0; display: grid; gap: 10px; }
.entry-content ul { list-style: none; }
.entry-content ul li { position: relative; padding-left: 20px; }
.entry-content ul li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.entry-content ol { padding-left: 22px; }
.entry-content ol li::marker { color: var(--accent); font-weight: 700; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.entry-content blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: #fff; font-size: 18px; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); }
.entry-content--page { margin-top: 40px; }

.entry-content .is-style-callout {
	padding: 20px; border-radius: var(--radius); background: var(--amber-300); color: var(--bg);
	display: grid; gap: 6px;
}
.entry-content .is-style-callout > * { margin: 0; }
.entry-content .is-style-callout p { color: rgba(11, 28, 44, .9); font-size: 14px; line-height: 1.65; }
.entry-content .is-style-callout .callout__title { color: var(--bg); font-size: 15px; display: flex; gap: 8px; align-items: center; }
.entry-content .is-style-callout .callout__title strong { color: var(--bg); }
.entry-content .is-style-callout .callout__title::before {
	content: ""; width: 20px; height: 20px; flex-shrink: 0; background: #B45309;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry-content .is-style-card { padding: 24px; border-radius: var(--radius); background: var(--input); border: 1px solid var(--border); }

/* Tables: bracket tables + any core table block */
.irmaa-table-wrap, .entry-content .wp-block-table { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--input); }
.irmaa-table, .entry-content .wp-block-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
@media (min-width: 640px) { .irmaa-table, .entry-content .wp-block-table table { font-size: 14px; } }
.irmaa-table th, .entry-content .wp-block-table th,
.entry-content .wp-block-table thead td { padding: 12px 16px; background: var(--accent); color: #fff; font-weight: 700; border: 0; white-space: nowrap; }
.irmaa-table td, .entry-content .wp-block-table td { padding: 12px 16px; border: 0; border-top: 1px solid var(--border); color: var(--muted); }
.irmaa-table td.is-num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.irmaa-table td:first-child, .irmaa-table td.is-num:nth-child(2):not(:nth-last-child(-n+2)) { color: #fff; }
.irmaa-table tbody tr:nth-child(even), .entry-content .wp-block-table tbody tr:nth-child(even) { background: rgba(19, 45, 69, .65); }
.entry-content .wp-block-table figcaption { padding: 8px 16px; font-size: 12px; color: var(--muted); text-align: left; margin: 0; border-top: 1px solid var(--border); }
.entry-content .wp-block-table { margin: 0; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { min-width: 120px; }
.entry-content .wp-block-table tbody td:first-child { color: #fff; font-weight: 500; }
/* Comparison style: highlight the 2nd column. */
.entry-content .wp-block-table.is-style-compare tbody td:nth-child(2) { background: rgba(255, 94, 0, .12); color: #fff; font-weight: 600; }
.entry-content .wp-block-table.is-style-compare thead th:nth-child(2) { background: var(--accent-hover); }
/* Tables pasted as plain HTML. */
.table-scroll-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--input); }
.table-scroll-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-scroll-wrap th { padding: 12px 16px; background: var(--accent); color: #fff; text-align: left; }
.table-scroll-wrap td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); }
.table-scroll-wrap tr:nth-child(even) td { background: rgba(19, 45, 69, .65); }
/* FAQ written inside the article (H2 + H3 questions → accordion). */
.entry-content .faq--content { margin-top: 4px; }
.entry-content .faq__q { margin: 0; padding: 0; border: 0; font-size: inherit; line-height: inherit; }
.entry-content .faq__a > * { margin: 0 0 10px; }
.entry-content .faq__a > *:last-child { margin-bottom: 0; }
.irmaa-table-note { font-size: 12px; color: var(--muted); }

/* Legal pages */
.page-plain__head { display: grid; gap: 12px; padding-bottom: 24px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.page-card { padding: 24px; }
@media (min-width: 640px) { .page-card { padding: 40px; } }
.page-card .entry-content { padding-top: 0; gap: 10px; }
.page-card .entry-content h2 { border-left: 0; padding-left: 0; margin-top: 22px; font-size: clamp(20px, 2.4vw, 24px); }
.page-card .entry-content h2:first-child { margin-top: 0; }
.page-card .entry-content p { font-size: 15px; }
@media (min-width: 640px) { .page-card .entry-content p { font-size: 16px; } }
.entry-content.is-numbered { counter-reset: legal; }
.entry-content.is-numbered > h2 { counter-increment: legal; }
.entry-content.is-numbered > h2::before { content: counter(legal) "."; color: var(--accent); margin-right: 8px; }
.page-card__foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }

/* ---------- Motion ---------- */
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-enter { animation: pageFadeIn .3s ease both; }
@keyframes resultsIn { from { opacity: 0; } to { opacity: 1; } }
.results { animation: resultsIn .3s ease both; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .no-print, .skip-link, #wpadminbar { display: none !important; }
	html, body, main { background: #fff !important; color: #0B1C2C !important; margin: 0 !important; padding: 0 !important; }
	.page-enter { animation: none; }
	.section { padding: 0 !important; }
	.container { max-width: 100%; padding: 0; }
	.print-only-header { display: block !important; color: #0B1C2C !important; border-bottom: 2px solid #FF5E00; padding-bottom: 12px; margin-bottom: 20px; }
	.print-only-header h1 { color: #0B1C2C; font-size: 22px; }
	.print-results-card, .print-article-body {
		background: #fff !important; color: #0B1C2C !important; border: 1px solid #CBD5E1 !important; box-shadow: none !important; width: 100% !important; max-width: 100% !important;
	}
	.print-results-card *, .print-article-body * { color: #0B1C2C !important; background-color: transparent !important; border-color: #CBD5E1 !important; box-shadow: none !important; }
	.print-results-card .print-highlight { color: #C2410C !important; font-weight: 700 !important; }
	.print-results-card .print-green, .print-results-card .is-none, .print-results-card .ok { color: #15803D !important; }
	.print-hide-inputs { display: none !important; }
	.calc__grid { display: block; }
	.calc__results { padding: 16px; }
	.article-layout { display: block; }
	.irmaa-table th { background: #FF5E00 !important; color: #fff !important; }
	.entry-content .is-style-callout { border: 1px solid #B45309 !important; }
	a { text-decoration: none; }
}
