/*
 * Money Symbol 1.1.0 — design system
 * See /design-proposal.md. Palette contrast (on white unless noted):
 *   ink 15.7:1 · muted 5.9:1 · green 6.5:1 · gold-text 5.5:1 · error 6.6:1
 *   white on navy 16.5:1 · #C9D3E0 on navy 10.9:1 · gold on navy 6.2:1
 *   gold-500 on white is 2.7:1 → decoration only, never text.
 */

:root {
	--ms-navy-900: #0B1F3A;
	--ms-navy-800: #132C4F;
	--ms-ink: #1B2430;
	--ms-muted: #5A6675;
	--ms-green-700: #0E6B4E;
	--ms-green-800: #0B5A41;
	--ms-mint-50: #E8F3EE;
	--ms-gold-500: #C8962E;
	--ms-gold-text: #8A6212;
	--ms-canvas: #F5F7FA;
	--ms-surface: #FFFFFF;
	--ms-line: #DDE3EA;
	--ms-error: #B42318;
	--ms-error-bg: #FEF3F2;
	--ms-on-navy: #C9D3E0;

	--ms-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ms-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

	--ms-fs-xs: 0.8125rem;
	--ms-fs-sm: 0.9375rem;
	--ms-fs-base: 1.0625rem;
	--ms-fs-lg: 1.25rem;
	--ms-fs-h3: 1.375rem;
	--ms-fs-h2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	--ms-fs-h1: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);

	--ms-s1: 4px; --ms-s2: 8px; --ms-s3: 12px; --ms-s4: 16px; --ms-s5: 24px;
	--ms-s6: 32px; --ms-s7: 48px; --ms-s8: 64px;

	--ms-radius: 12px;
	--ms-radius-sm: 8px;
	--ms-shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
	--ms-shadow: 0 1px 2px rgba(11, 31, 58, 0.06), 0 8px 24px rgba(11, 31, 58, 0.08);
	--ms-focus: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--ms-green-700);

	--ms-max: 1200px;
	--ms-gutter: clamp(16px, 4vw, 32px);
	--ms-header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ms-header-h) + 16px); }
body {
	margin: 0;
	background: var(--ms-canvas);
	color: var(--ms-ink);
	font-family: var(--ms-font-sans);
	font-size: var(--ms-fs-base);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ms-green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ms-green-800); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--ms-focus); border-radius: 4px; }
h1, h2, h3, h4 {
	font-family: var(--ms-font-serif);
	font-weight: 700;
	color: var(--ms-navy-900);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 var(--ms-s4);
}
h1 { font-size: var(--ms-fs-h1); }
h2 { font-size: var(--ms-fs-h2); }
h3 { font-size: var(--ms-fs-h3); }
p { margin: 0 0 var(--ms-s4); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--ms-navy-900); color: #fff; padding: 10px 16px; border-radius: var(--ms-radius-sm);
	font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--ms-max); margin: 0 auto; padding-left: var(--ms-gutter); padding-right: var(--ms-gutter); }
.narrow { max-width: 760px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; display: block; }
.brand__logo { max-height: 40px; width: auto; }
.brand__word { font-family: var(--ms-font-sans); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; }
.brand__money { color: var(--ms-navy-900); }
.brand__symbol { color: var(--ms-green-700); }
.brand--light .brand__money { color: #fff; }
.brand--light .brand__symbol { color: var(--ms-gold-500); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--ms-line);
	box-shadow: var(--ms-shadow-sm);
}
@supports (backdrop-filter: blur(8px)) {
	.site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(180%) blur(8px); }
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: var(--ms-s5); min-height: var(--ms-header-h); }
.header-panel { display: flex; align-items: center; gap: var(--ms-s5); flex: 1; justify-content: flex-end; }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav .menu > li { position: relative; }
.primary-nav a {
	display: flex; align-items: center; min-height: 44px; padding: 0 12px;
	font-size: var(--ms-fs-sm); font-weight: 600; color: var(--ms-ink); text-decoration: none;
	border-radius: var(--ms-radius-sm); position: relative; white-space: nowrap;
}
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
	background: var(--ms-green-700); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav .current-page-ancestor > a::after { transform: scaleX(1); }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ms-navy-900); }
.primary-nav .menu-item-has-children > a { padding-right: 26px; }
.primary-nav .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px;
	background: var(--ms-surface); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { font-weight: 500; white-space: normal; padding: 8px 12px; min-height: 40px; }
.primary-nav .sub-menu a:hover { background: var(--ms-mint-50); }

.search-form { display: flex; align-items: center; position: relative; }
.search-field {
	width: 200px; height: 40px; padding: 0 40px 0 14px;
	font: inherit; font-size: var(--ms-fs-sm); color: var(--ms-ink);
	background: var(--ms-canvas); border: 1px solid var(--ms-line); border-radius: 999px;
	transition: width .2s, border-color .2s, background .2s;
}
.search-field::placeholder { color: var(--ms-muted); }
.search-field:focus { outline: none; width: 240px; background: #fff; border-color: var(--ms-green-700); box-shadow: 0 0 0 3px rgba(14, 107, 78, .18); }
.search-submit {
	position: absolute; right: 2px; top: 2px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: var(--ms-muted); cursor: pointer; display: grid; place-items: center;
}
.search-submit:hover { color: var(--ms-green-700); }
.entry-content .search-form .search-field, .page-header + p + .search-form .search-field { width: 100%; max-width: 420px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn { display: none; }

@media (max-width: 899px) {
	.header-inner { flex-wrap: wrap; gap: 0; justify-content: space-between; }
	.nav-toggle-btn {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; padding: 0 11px; border-radius: var(--ms-radius-sm); cursor: pointer;
	}
	.nav-toggle-btn span[aria-hidden] { display: block; height: 2px; background: var(--ms-navy-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
	.nav-toggle:focus-visible + .nav-toggle-btn { box-shadow: var(--ms-focus); }
	.header-panel {
		display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--ms-s4);
		padding: var(--ms-s2) 0 var(--ms-s5); border-top: 1px solid var(--ms-line);
		max-height: calc(100vh - var(--ms-header-h)); overflow-y: auto;
	}
	.nav-toggle:checked ~ .header-panel { display: flex; }
	.nav-toggle:checked + .nav-toggle-btn span[aria-hidden]:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle:checked + .nav-toggle-btn span[aria-hidden]:nth-of-type(3) { opacity: 0; }
	.nav-toggle:checked + .nav-toggle-btn span[aria-hidden]:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav a { min-height: 48px; font-size: var(--ms-fs-base); padding: 0 4px; border-bottom: 1px solid var(--ms-line); border-radius: 0; }
	.primary-nav .menu > li > a::after, .primary-nav .menu-item-has-children > a::before { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.search-field, .search-field:focus { width: 100%; }
	.header-search, .search-form { width: 100%; }
}

/* ---------- Layout ---------- */
.site-main { padding-top: var(--ms-s6); padding-bottom: var(--ms-s8); }
.layout { display: grid; gap: var(--ms-s6); }
.layout__main { min-width: 0; }
@media (min-width: 1024px) {
	.layout--article { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--ms-s7); align-items: start; }
	.layout--article .layout__main { max-width: 760px; }
	.aside-sticky { position: sticky; top: calc(var(--ms-header-h) + var(--ms-s5)); }
	.admin-bar .aside-sticky { top: calc(var(--ms-header-h) + var(--ms-s5) + 32px); }
}
.layout__aside { min-width: 0; }
.aside-sticky > * + * { margin-top: var(--ms-s5); }

/* ---------- Article ---------- */
.entry {
	background: var(--ms-surface); border: 1px solid var(--ms-line); border-radius: var(--ms-radius);
	padding: clamp(20px, 4vw, 48px); box-shadow: var(--ms-shadow-sm);
}
.breadcrumbs ol { list-style: none; margin: 0 0 var(--ms-s4); padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--ms-fs-xs); color: var(--ms-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.breadcrumbs li + li::before { content: "›"; color: var(--ms-muted); margin-right: 2px; }
.breadcrumbs a { color: var(--ms-muted); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { color: var(--ms-green-700); text-decoration: underline; }
.breadcrumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }
.entry-header { margin-bottom: var(--ms-s5); }
.entry-title { margin-bottom: var(--ms-s3); overflow-wrap: anywhere; hyphens: auto; }
.entry-lead { font-size: var(--ms-fs-lg); color: var(--ms-muted); line-height: 1.55; margin: 0; }
.entry-meta { font-size: var(--ms-fs-xs); color: var(--ms-muted); margin: 0; font-weight: 500; }
.entry-meta a { color: var(--ms-green-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.entry-meta a:hover, .entry-meta a:focus-visible { text-decoration-thickness: 2px; }
.meta-sep { margin: 0 4px; }

.ms-featured { margin: 0 0 var(--ms-s6); }
.ms-featured--hero { border-radius: var(--ms-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ms-mint-50); }
.ms-featured--hero img, .ms-featured--hero svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ms-featured__caption { font-size: var(--ms-fs-xs); color: var(--ms-muted); padding: var(--ms-s2) 0 0; }
.ms-placeholder { display: block; width: 100%; height: 100%; }

.entry-content { font-size: var(--ms-fs-base); max-width: 70ch; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin-bottom: 1.15em; }
.entry-content h2 { margin-top: 1.8em; margin-bottom: .6em; padding-top: .2em; }
.entry-content h3 { margin-top: 1.5em; margin-bottom: .5em; }
.entry-content strong { color: var(--ms-navy-900); font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; padding-left: .2em; }
.entry-content ul li::marker { color: var(--ms-green-700); }
.entry-content ol li::marker { color: var(--ms-green-700); font-weight: 700; }
.entry-content blockquote {
	margin: 1.5em 0; padding: var(--ms-s4) var(--ms-s5); border-left: 4px solid var(--ms-gold-500);
	background: var(--ms-canvas); border-radius: 0 var(--ms-radius-sm) var(--ms-radius-sm) 0; font-family: var(--ms-font-serif); font-size: var(--ms-fs-lg);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--ms-fs-sm); font-variant-numeric: tabular-nums; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--ms-line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--ms-canvas); color: var(--ms-navy-900); }
.entry-content code { font-size: .9em; background: var(--ms-canvas); padding: 2px 6px; border-radius: 4px; }
.entry-content img { border-radius: var(--ms-radius-sm); }
.entry-content .wp-block-image figcaption, .entry-content .wp-caption-text { font-size: var(--ms-fs-xs); color: var(--ms-muted); }
.entry-footer { margin-top: var(--ms-s6); padding-top: var(--ms-s5); border-top: 1px solid var(--ms-line); }
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--ms-fs-xs); margin: 0; }
.tag-links span { font-weight: 600; color: var(--ms-muted); margin-right: 4px; }
.tag-links a { padding: 4px 10px; border-radius: 999px; background: var(--ms-mint-50); text-decoration: none; font-weight: 500; }
.post-navigation { margin-top: var(--ms-s6); }
.post-navigation .nav-links { display: grid; gap: var(--ms-s4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.post-navigation a { display: block; padding: var(--ms-s4); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); text-decoration: none; color: var(--ms-navy-900); font-weight: 600; line-height: 1.4; }
.post-navigation a:hover { border-color: var(--ms-green-700); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: var(--ms-fs-xs); color: var(--ms-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

/* ---------- Sidebar ---------- */
.section-nav, .layout__aside .widget {
	background: var(--ms-surface); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); padding: var(--ms-s5);
}
.section-nav__title, .widget-title { font-family: var(--ms-font-sans); font-size: var(--ms-fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ms-muted); margin: 0 0 var(--ms-s3); }
.section-nav__title a { color: inherit; text-decoration: none; }
.section-nav ul, .layout__aside .widget ul { list-style: none; margin: 0; padding: 0; }
.section-nav li + li, .layout__aside .widget li + li { border-top: 1px solid var(--ms-line); }
.section-nav a { display: block; padding: 8px 0; font-size: var(--ms-fs-sm); line-height: 1.4; color: var(--ms-ink); text-decoration: none; }
.section-nav a:hover { color: var(--ms-green-700); }
.section-nav a[aria-current] { color: var(--ms-green-700); font-weight: 600; box-shadow: inset 3px 0 0 var(--ms-green-700); padding-left: 10px; }

/* ---------- Page header / listings ---------- */
.page-header { margin-bottom: var(--ms-s6); }
.page-title { margin-bottom: var(--ms-s2); }
.archive-description { color: var(--ms-muted); }
.card-grid { display: grid; gap: var(--ms-s5); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
	display: flex; flex-direction: column; background: var(--ms-surface); border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius); overflow: hidden; box-shadow: var(--ms-shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--ms-shadow); transform: translateY(-2px); border-color: #C7D1DC; }
.card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ms-mint-50); }
.card-image img, .card-image svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--ms-s5); display: flex; flex-direction: column; gap: var(--ms-s2); flex: 1; }
.card-title { font-size: 1.1875rem; margin: 0; line-height: 1.3; }
.card-title a { color: var(--ms-navy-900); text-decoration: none; }
.card-title a:hover { color: var(--ms-green-700); }
.card-title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt { font-size: var(--ms-fs-sm); color: var(--ms-muted); line-height: 1.6; }
.card-excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { margin-top: auto; padding-top: var(--ms-s2); font-size: var(--ms-fs-sm); font-weight: 600; text-decoration: none; }
.navigation.pagination { margin-top: var(--ms-s6); }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--ms-line); border-radius: var(--ms-radius-sm); background: #fff; text-decoration: none; font-weight: 600; font-size: var(--ms-fs-sm); }
.page-numbers.current { background: var(--ms-navy-900); color: #fff; border-color: var(--ms-navy-900); }

/* ---------- Front page ---------- */
.is-front .site-main { padding-top: 0; }
.hero {
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(14, 107, 78, .35), transparent 60%),
		linear-gradient(160deg, var(--ms-navy-900) 0%, var(--ms-navy-800) 100%);
	color: #fff; padding: clamp(40px, 7vw, 88px) 0;
}
.hero-grid { display: grid; gap: var(--ms-s6); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--ms-s7); } }
.hero-kicker { color: var(--ms-gold-500); font-weight: 700; font-size: var(--ms-fs-xs); text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--ms-s3); }
.hero-title { color: #fff; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem); margin-bottom: var(--ms-s4); }
.hero-lead { color: var(--ms-on-navy); font-size: var(--ms-fs-lg); line-height: 1.6; max-width: 56ch; }
.hero-points { list-style: none; padding: 0; margin: var(--ms-s5) 0 0; display: grid; gap: 8px; color: #fff; font-weight: 500; font-size: var(--ms-fs-sm); }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--ms-green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hero-calc__more { margin: var(--ms-s3) 0 0; font-size: var(--ms-fs-sm); }
.hero-calc__more a { color: #fff; font-weight: 600; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--ms-surface); border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ms-s4); margin-bottom: var(--ms-s5); flex-wrap: wrap; }
.section-header h2 { margin: 0; }
.section-link { font-weight: 600; font-size: var(--ms-fs-sm); }
.topic-grid { display: grid; gap: var(--ms-s5); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.topic-card {
	display: block; padding: var(--ms-s5); background: var(--ms-surface); border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius); text-decoration: none; color: var(--ms-ink); box-shadow: var(--ms-shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.topic-card:hover { border-color: var(--ms-green-700); box-shadow: var(--ms-shadow); color: var(--ms-ink); }
.topic-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ms-mint-50); color: var(--ms-green-700); font-family: var(--ms-font-serif); font-weight: 700; font-size: 1.375rem; margin-bottom: var(--ms-s4); box-shadow: inset 0 0 0 2px var(--ms-gold-500); }
.topic-card h3 { font-size: 1.1875rem; margin-bottom: var(--ms-s2); }
.topic-card p { margin: 0; color: var(--ms-muted); font-size: var(--ms-fs-sm); line-height: 1.55; }

/* ---------- Converter ---------- */
.converter-slot { margin: 0 0 var(--ms-s6); }
.layout__aside .converter-slot { margin: 0; }
.ms-calc {
	position: relative; background: var(--ms-surface); color: var(--ms-ink);
	border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow);
	padding: var(--ms-s5); overflow: hidden; font-variant-numeric: tabular-nums;
}
.ms-calc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--ms-green-700), var(--ms-green-700) 70%, var(--ms-gold-500)); }
.ms-calc__title { font-family: var(--ms-font-sans); font-weight: 700; font-size: var(--ms-fs-sm); color: var(--ms-navy-900); margin: 0 0 var(--ms-s3); display: flex; align-items: center; gap: 8px; }
.ms-calc__title::before { content: "⇄"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ms-mint-50); color: var(--ms-green-700); font-size: .9rem; }
.ms-calc__row { display: grid; gap: var(--ms-s3); align-items: end; }
.ms-calc--full .ms-calc__row { grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.ms-calc--full .ms-calc__row { grid-template-columns: minmax(110px, 1fr) minmax(0, 1.4fr) 44px minmax(0, 1.4fr); }
}
.ms-calc__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ms-calc__field label { font-size: var(--ms-fs-xs); font-weight: 600; color: var(--ms-muted); text-transform: uppercase; letter-spacing: .06em; }
.ms-calc__field input, .ms-calc__field select {
	width: 100%; height: 48px; padding: 0 12px; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ms-ink);
	background: var(--ms-canvas); border: 1px solid var(--ms-line); border-radius: var(--ms-radius-sm); font-variant-numeric: tabular-nums;
	text-overflow: ellipsis; appearance: none; -webkit-appearance: none;
}
.ms-calc__field select {
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235A6675' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
.ms-calc__field input:focus, .ms-calc__field select:focus { outline: none; background-color: #fff; border-color: var(--ms-green-700); box-shadow: 0 0 0 3px rgba(14, 107, 78, .18); }
.ms-calc__swap {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ms-line); background: #fff; color: var(--ms-green-700);
	font-size: 1.25rem; cursor: pointer; display: grid; place-items: center; margin-bottom: 2px; transition: background .15s, transform .25s;
	justify-self: center;
}
.ms-calc__swap:hover { background: var(--ms-mint-50); transform: rotate(180deg); }
.ms-calc__result {
	display: block; margin-top: var(--ms-s5); padding: var(--ms-s4); border-radius: var(--ms-radius-sm); background: var(--ms-mint-50);
	font-family: var(--ms-font-sans); font-weight: 700; font-size: 1.75rem; line-height: 1.25; color: var(--ms-navy-900); overflow-wrap: anywhere;
}
.ms-calc.is-loading .ms-calc__result { color: var(--ms-muted); font-size: var(--ms-fs-base); font-weight: 500; }
.ms-calc.is-error .ms-calc__result { background: var(--ms-error-bg); color: var(--ms-error); font-size: var(--ms-fs-base); font-weight: 600; }
.ms-calc.is-stale .ms-calc__result { box-shadow: inset 3px 0 0 var(--ms-gold-500); }
.ms-calc__meta { margin: var(--ms-s3) 0 0; font-size: var(--ms-fs-xs); color: var(--ms-muted); line-height: 1.5; }
.ms-calc__meta:empty { display: none; }
.ms-calc__meta a { color: var(--ms-green-700); }
.ms-calc__more { margin: var(--ms-s3) 0 0; font-size: var(--ms-fs-sm); font-weight: 600; }
.ms-calc__more a { text-decoration: none; }

.ms-calc--compact { padding: var(--ms-s4) var(--ms-s5) var(--ms-s5); box-shadow: var(--ms-shadow-sm); }
.ms-calc--compact .ms-calc__row { grid-template-columns: 1fr 1fr; }
.ms-calc--compact .ms-calc__field--amount { grid-column: 1 / -1; }
.ms-calc--compact .ms-calc__swap { display: none; }
.ms-calc--compact .ms-calc__field input, .ms-calc--compact .ms-calc__field select { height: 44px; font-size: .9375rem; }
.ms-calc--compact .ms-calc__result { font-size: 1.25rem; margin-top: var(--ms-s4); padding: var(--ms-s3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ms-navy-900); color: var(--ms-on-navy); padding: var(--ms-s8) 0 0; font-size: var(--ms-fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--ms-gold-500); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--ms-s6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-title { font-family: var(--ms-font-sans); font-size: var(--ms-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ms-gold-500); margin: 0 0 var(--ms-s4); }
.footer-tagline { margin: var(--ms-s4) 0 var(--ms-s3); line-height: 1.6; }
.footer-note, .footer-small { font-size: var(--ms-fs-xs); line-height: 1.6; margin: 0; }
.site-footer .menu, .footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
	display: flex; flex-wrap: wrap; gap: var(--ms-s3) var(--ms-s5); justify-content: space-between;
	margin-top: var(--ms-s7); padding-top: var(--ms-s5); padding-bottom: var(--ms-s5); border-top: 1px solid rgba(201, 211, 224, .2); font-size: var(--ms-fs-xs);
}
.footer-bottom p { margin: 0; }

/* ---------- Comments ---------- */
.comments-area { margin-top: var(--ms-s6); padding-top: var(--ms-s5); border-top: 1px solid var(--ms-line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: var(--ms-s4) 0; border-bottom: 1px solid var(--ms-line); }

/* ---------- Mobile article ---------- */
@media (max-width: 1023px) {
	.layout__aside .aside-sticky { display: grid; gap: var(--ms-s5); }
	.aside-sticky > * + * { margin-top: 0; }
}
@media (max-width: 599px) {
	.site-main { padding-top: var(--ms-s5); }
	.entry { border-radius: 0; border-left: 0; border-right: 0; margin-left: calc(var(--ms-gutter) * -1); margin-right: calc(var(--ms-gutter) * -1); }
	.ms-calc__result { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.site-header, .site-footer, .layout__aside, .converter-slot, .post-navigation { display: none !important; }
	.entry { border: 0; box-shadow: none; padding: 0; }
	body { background: #fff; }
}

/* Pages with nothing in the sidebar use the full width. */
.aside-sticky:empty { display: none; }
@media (min-width: 1024px) {
	.layout--article:has(.aside-sticky:empty) { grid-template-columns: minmax(0, 1fr); }
	.layout--article:has(.aside-sticky:empty) .layout__main { max-width: 860px; margin: 0 auto; width: 100%; }
}

/* ---------- 1.1.2: currency-symbol hero banner ---------- */
.hero--symbols { position: relative; overflow: hidden; isolation: isolate; }
.hero--symbols .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero--symbols .hero-bg text { fill: #FFFFFF; font-family: var(--ms-font-serif); font-weight: 700; }
.hero--symbols::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--ms-green-700), var(--ms-gold-500)); }
.hero-symbols { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--ms-s4); padding: 0; }
.hero-symbols span {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	font-family: var(--ms-font-serif); font-weight: 700; font-size: 1.375rem; line-height: 1;
	color: var(--ms-gold-500); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(200, 150, 46, .7);
}
.hero-symbols span:nth-child(even) { color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
@media (max-width: 599px) {
	.hero--symbols .hero-bg__m { display: none; }
	.hero-symbols span { width: 36px; height: 36px; font-size: 1.125rem; }
	.hero-title { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.4rem); }
}
.ms-featured__caption { font-size: var(--ms-fs-xs); color: var(--ms-muted); padding: 6px 2px 0; line-height: 1.4; }
.ms-featured--hero:has(.ms-featured__caption) { aspect-ratio: auto; background: none; overflow: visible; }
.ms-featured--hero:has(.ms-featured__caption) img { aspect-ratio: 16 / 9; height: auto; border-radius: var(--ms-radius); }
