/*
Theme Name: Money Saving Schemes
Theme URI: https://moneysavingschemes.com/
Description: Independent guide to post office savings schemes: rate strip, scheme cards, growth-ring calculators and a scheme picker. Built for moneysavingschemes.com.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: moneysavingschemes
*/

@font-face { font-family: "Fustat"; font-weight: 600; font-display: swap; src: url(assets/fonts/fustat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fustat"; font-weight: 800; font-display: swap; src: url(assets/fonts/fustat-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Radio Canada Big"; font-weight: 400; font-display: swap; src: url(assets/fonts/radio-canada-big-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Radio Canada Big"; font-weight: 600; font-display: swap; src: url(assets/fonts/radio-canada-big-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Radio Canada Big"; font-weight: 700; font-display: swap; src: url(assets/fonts/radio-canada-big-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url(assets/fonts/geist-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 700; font-display: swap; src: url(assets/fonts/geist-mono-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Palanquin Dark"; font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; src: url(assets/fonts/palanquin-dark-devanagari-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Palanquin Dark"; font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; src: url(assets/fonts/palanquin-dark-devanagari-700-normal.woff2) format("woff2"); }

:root {
	--ink: #1d0f33;
	--plum: #2a1342;
	--plum-2: #3d1d66;
	--coral: #ff6b4a;
	--coral-d: #d9452a;
	--mint: #22c58b;
	--mint-d: #0f8a5f;
	--butter: #ffd666;
	--canvas: #f6f3fc;
	--card: #ffffff;
	--line: #e7def5;
	--muted: #62577a;
	--ac: #ff6b4a;
	--r-lg: 26px;
	--r-md: 18px;
	--r-sm: 12px;
	--shadow: 0 1px 2px rgba(42, 19, 66, .06), 0 12px 32px -12px rgba(42, 19, 66, .22);
	--shadow-lg: 0 2px 6px rgba(42, 19, 66, .08), 0 30px 60px -24px rgba(42, 19, 66, .38);
	--head: "Fustat", "Radio Canada Big", system-ui, sans-serif;
	--body: "Radio Canada Big", "Palanquin Dark", system-ui, -apple-system, "Segoe UI", sans-serif;
	--num: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--plum-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-d); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
[lang="hi"] { font-family: "Palanquin Dark", var(--body); line-height: 1.85; }
.ms-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ms-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.ms-skip:focus { left: 12px; }

/* ------------------------------------------------------------ header */
.ms-top { background: var(--plum); color: #fff; position: sticky; top: 0; z-index: 30; }
.ms-top-row { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.ms-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 19px/1 var(--head); letter-spacing: -.02em; white-space: nowrap; }
.ms-logo b { color: var(--butter); font-weight: 800; }
.ms-logo:hover { color: #fff; }
.ms-nav { display: flex; gap: 4px; margin-left: auto; padding: 5px; background: rgba(255, 255, 255, .07); border-radius: 999px; }
.ms-nav a { color: #eee6fb; text-decoration: none; font: 600 14.5px/1 var(--body); padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.ms-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ms-cta { background: var(--coral); color: #fff; text-decoration: none; font: 700 14.5px/1 var(--body); padding: 12px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(255, 107, 74, .8); }
.ms-cta:hover { background: #ff825f; color: #fff; }
.ms-menubtn { display: none; align-items: center; gap: 8px; margin-left: auto; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 999px; padding: 10px 14px; font: 600 15px/1 var(--body); cursor: pointer; }
.ms-menubtn-bars, .ms-menubtn-bars::before, .ms-menubtn-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.ms-menubtn-bars::before, .ms-menubtn-bars::after { content: ""; position: absolute; left: 0; }
.ms-menubtn-bars::before { top: -5px; }
.ms-menubtn-bars::after { top: 5px; }
.ms-drawer { background: var(--plum-2); border-top: 1px solid rgba(255, 255, 255, .08); }
.ms-drawer ul { list-style: none; margin: 0; padding: 14px 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ms-drawer a { display: block; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; border-left: 4px solid var(--ac); }
.ms-drawer b { display: block; font: 600 15px/1.3 var(--body); }
.ms-drawer span { font-size: 13px; color: #cfc3e6; }

.ms-ticker { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .06); }
.ms-ticker-row { display: flex; align-items: center; gap: 12px; min-height: 42px; overflow: hidden; }
.ms-ticker-q { flex: none; color: var(--butter); text-decoration: none; font: 700 12.5px/1 var(--num); text-transform: uppercase; letter-spacing: .06em; }
.ms-ticker-q:hover { color: #fff; }
.ms-ticker ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.ms-ticker ul::-webkit-scrollbar { display: none; }
.ms-ticker li a, .ms-ticker li span { display: inline-flex; gap: 7px; align-items: baseline; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #e4dbf5; text-decoration: none; font: 500 13px/1 var(--body); white-space: nowrap; }
.ms-ticker li a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ms-ticker i { font: 700 13px/1 var(--num); font-style: normal; color: #7ef0c1; }

/* ------------------------------------------------------------- hero */
.ms-hero { position: relative; color: #fff; padding: 54px 0 70px; background:
	radial-gradient(60% 80% at 85% 10%, rgba(255, 107, 74, .38), transparent 60%),
	radial-gradient(50% 70% at 10% 100%, rgba(34, 197, 139, .28), transparent 60%),
	linear-gradient(160deg, var(--plum) 0%, var(--plum-2) 100%); overflow: hidden; }
.ms-hero::after { content: ""; position: absolute; inset: auto -10% -1px -10%; height: 46px; background: var(--canvas); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.ms-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.ms-eyebrow { display: inline-block; margin: 0 0 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 600 13px/1 var(--body); color: var(--butter); letter-spacing: .02em; }
.ms-hero h1 { margin: 0 0 16px; font: 800 clamp(34px, 5vw, 58px)/1.04 var(--head); letter-spacing: -.035em; }
.ms-hero-lede { margin: 0 0 26px; font-size: 19px; color: #e9e1f7; max-width: 34em; }
.ms-hero-jump { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ms-hero-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; font: 600 14.5px/1 var(--body); }
.ms-hero-jump a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.ms-hero-jump b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: var(--ac); color: var(--ink); font: 700 12.5px/1 var(--num); }

/* ------------------------------------------------------------- page head */
.ms-head { padding: 34px 0 34px; background: linear-gradient(180deg, #fff 0%, var(--canvas) 100%); border-bottom: 1px solid var(--line); }
.ms-head-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.ms-head--plain .ms-head-grid { grid-template-columns: 1fr; }
.ms-trail { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.ms-trail a { color: var(--muted); text-decoration: none; }
.ms-trail a:hover { color: var(--coral-d); }
.ms-head h1 { margin: 0 0 12px; font: 800 clamp(29px, 4vw, 44px)/1.1 var(--head); letter-spacing: -.03em; color: var(--plum); }
.ms-head-gist { margin: 0 0 16px; font-size: 19px; line-height: 1.5; color: #3c3352; max-width: 40em; }
.ms-head-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13.5px; }
.ms-head-meta a, .ms-head-meta span { padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.ms-head-meta a:first-child { background: var(--ac); border-color: transparent; color: var(--ink); font-weight: 600; }
.ms-scard { position: relative; background: var(--plum); color: #fff; border-radius: var(--r-lg); padding: 20px 22px 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ms-scard::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--ac); opacity: .9; }
.ms-scard-top { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; font: 800 17px/1.2 var(--head); }
.ms-scard dl { position: relative; margin: 0; display: grid; gap: 10px; }
.ms-scard dl div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .2); }
.ms-scard dt { font: 500 12px/1 var(--num); text-transform: uppercase; letter-spacing: .08em; color: #c8bce0; }
.ms-scard dd { margin: 0; font: 700 16.5px/1.3 var(--body); }
.ms-scard dl div:first-child dd { font: 700 22px/1.1 var(--num); color: #7ef0c1; }

/* ------------------------------------------------------------- body */
.ms-body { padding: 34px 0 20px; }
.ms-article { max-width: 780px; margin-inline: auto; }
.ms-body--narrow .ms-article { max-width: 720px; }
.ms-body--home { padding-top: 10px; }
.ms-article > * + * { margin-top: 0; }
.ms-article h2 { font: 800 clamp(23px, 3vw, 29px)/1.2 var(--head); letter-spacing: -.02em; color: var(--plum); margin: 0 0 14px; }
.ms-article h3 { font: 700 19px/1.3 var(--head); margin: 22px 0 8px; color: var(--plum-2); }
.ms-article p, .ms-article ul, .ms-article ol { margin: 0 0 16px; }
.ms-article li { margin-bottom: 6px; }
.ms-article li::marker { color: var(--coral); }
.ms-article strong { color: var(--plum); }
.ms-intro { font-size: 18.5px; margin-bottom: 22px; }
.ms-intro p:first-child::first-line { font-weight: 600; }

.ms-glance { margin: 0 0 26px; padding: 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ms-glance-h { margin: 0 0 12px !important; font: 700 12.5px/1 var(--num); text-transform: uppercase; letter-spacing: .09em; color: var(--coral-d); }
.ms-glance ul { list-style: none; margin: 0 !important; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ms-glance li { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--canvas); }
.ms-glance-n { margin: 0 0 4px !important; font-size: 13px; color: var(--muted); }
.ms-glance-v { font: 700 16px/1.35 var(--body); color: var(--ink); }

.ms-toc { margin: 0 0 30px; padding: 16px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.ms-toc p { margin: 0 0 8px !important; font: 700 13px/1 var(--num); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ms-toc ol { margin: 0 !important; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: t; }
.ms-toc li { margin: 0; counter-increment: t; }
.ms-toc a { display: inline-flex; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--canvas); color: var(--plum-2); text-decoration: none; font-size: 14px; line-height: 1.25; }
.ms-toc a::before { content: counter(t); font: 700 12px/1.3 var(--num); color: var(--coral-d); }
.ms-toc a:hover, .ms-toc a[aria-current] { background: var(--plum); color: #fff; }

.ms-part { margin: 0 0 34px; }
.ms-table { margin: 0 0 18px; overflow-x: auto; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.ms-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 460px; }
.ms-table caption { caption-side: top; text-align: left; padding: 14px 16px 4px; font: 600 14px/1.3 var(--body); color: var(--muted); }
.ms-table th, .ms-table td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ms-table thead th { background: var(--plum); color: #fff; font: 600 14px/1.3 var(--body); }
.ms-table thead th:first-child { border-top-left-radius: var(--r-md); }
.ms-table thead th:last-child { border-top-right-radius: var(--r-md); }
.ms-table tbody tr:nth-child(even) { background: #faf8fe; }
.ms-table tbody tr:last-child td, .ms-table tbody tr:last-child th { border-bottom: 0; }
.ms-table td:has(+ td), .ms-table tbody th { font-weight: 600; }
.ms-num { font-family: var(--num); }

.ms-article .example, .ms-article .note, .ms-article .steps, .ms-article .warn { margin: 0 0 18px; padding: 16px 18px; border-radius: var(--r-md); }
.ms-article .example { background: #fff; border: 2px solid var(--mint); box-shadow: 0 10px 24px -18px rgba(15, 138, 95, .6); }
.ms-article .example::before { content: "Worked example"; display: block; margin-bottom: 6px; font: 700 12px/1 var(--num); text-transform: uppercase; letter-spacing: .08em; color: var(--mint-d); }
.ms-article .note { background: #fff7df; border-left: 5px solid var(--butter); }
.ms-article .warn { background: #fff0ec; border-left: 5px solid var(--coral); }
.ms-article .steps { background: #fff; box-shadow: var(--shadow); }
.ms-article .steps ol { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.ms-article .steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 12px; }
.ms-article .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: #fff; font: 700 13px/1 var(--num); }
.ms-article [lang="hi"] .example::before, [lang="hi"] .ms-article .example::before { content: "उदाहरण"; }
.ms-article > *:last-child, .ms-article .example > :last-child, .ms-article .note > :last-child, .ms-article .warn > :last-child, .ms-part > :last-child { margin-bottom: 0; }

.ms-faq details { margin: 0 0 10px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); }
.ms-faq summary { cursor: pointer; list-style: none; padding: 15px 50px 15px 18px; font: 600 16.5px/1.4 var(--body); position: relative; }
.ms-faq summary::-webkit-details-marker { display: none; }
.ms-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); color: var(--coral-d); font: 700 18px/1 var(--num); }
.ms-faq details[open] summary::after { content: "−"; background: var(--coral); color: #fff; }
.ms-faq-a { padding: 0 18px 14px; }
.ms-ad { margin: 0 0 30px; text-align: center; }

/* ------------------------------------------------------------- tools */
.ms-tool { margin: 0 0 30px; }
.ms-calc { background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ms-calc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; background: var(--plum); color: #fff; font: 800 16px/1.2 var(--head); }
.ms-calc-bar small { font: 600 12.5px/1 var(--num); color: #7ef0c1; letter-spacing: .04em; }
.ms-calc-in { padding: 18px 20px 6px; display: grid; gap: 14px; }
.ms-field label, .ms-field > span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font: 600 14.5px/1.3 var(--body); color: var(--plum); }
.ms-field output { font: 700 14.5px/1.3 var(--num); color: var(--coral-d); }
.ms-field input[type="number"], .ms-field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 600 16.5px/1.2 var(--num); color: var(--ink); background: #fbfaff; }
.ms-field input[type="number"]:focus, .ms-field select:focus { outline: none; border-color: var(--plum-2); background: #fff; }
.ms-field input[type="range"] { width: 100%; accent-color: var(--coral); margin-top: 8px; }
.ms-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-seg button { flex: 1 1 auto; min-width: 70px; border: 1.5px solid var(--line); background: #fbfaff; color: var(--plum-2); border-radius: 999px; padding: 9px 12px; font: 600 14px/1.1 var(--body); cursor: pointer; }
.ms-seg button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.ms-calc-out { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; padding: 16px 20px 20px; margin-top: 8px; background: linear-gradient(180deg, #faf7ff, #f3eefc); border-top: 1px solid var(--line); }
.ms-ring { width: 140px; height: 140px; }
.ms-ring circle { fill: none; stroke-width: 16; }
.ms-ring .a { stroke: #e3daf2; }
.ms-ring .b { stroke: var(--mint); stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.ms-ring text { font: 700 17px var(--num); fill: var(--plum); }
.ms-ring text.s { font: 500 10px var(--num); fill: var(--muted); letter-spacing: .06em; }
.ms-res { margin: 0; display: grid; gap: 8px; }
.ms-res div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-bottom: 7px; border-bottom: 1px dashed #d9cdee; }
.ms-res div:last-child { border: 0; padding: 0; }
.ms-res dt { font-size: 14.5px; color: var(--muted); }
.ms-res dd { margin: 0; font: 700 16px/1.2 var(--num); color: var(--ink); text-align: right; }
.ms-res .big dd { font-size: 23px; color: var(--mint-d); }
.ms-calc-note { margin: 0; padding: 0 20px 16px; font-size: 13px; color: var(--muted); background: #f3eefc; }
.ms-sched { padding: 0 20px 18px; background: #f3eefc; }
.ms-sched summary { cursor: pointer; font: 600 14.5px/1.3 var(--body); color: var(--plum-2); padding: 4px 0 10px; }
.ms-sched table { width: 100%; border-collapse: collapse; font: 500 14px/1.3 var(--num); background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.ms-sched th, .ms-sched td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.ms-sched th:first-child, .ms-sched td:first-child { text-align: left; }
.ms-sched thead th { background: var(--canvas); font-family: var(--body); font-weight: 600; color: var(--plum); }

.ms-hero-tool .ms-calc { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.ms-pick-list { list-style: none; margin: 0; padding: 0 20px 18px; display: grid; gap: 8px; background: #f3eefc; }
.ms-pick-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 11px 13px; background: #fff; border-radius: var(--r-sm); box-shadow: 0 1px 2px rgba(42, 19, 66, .06); }
.ms-pick-list li:first-child { outline: 2px solid var(--mint); }
.ms-pick-rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); font: 700 13px/1 var(--num); color: var(--plum); }
.ms-pick-list li:first-child .ms-pick-rank { background: var(--mint); color: #fff; }
.ms-pick-name { font: 700 15px/1.25 var(--body); }
.ms-pick-name a { color: var(--plum); text-decoration: none; }
.ms-pick-name small { display: block; font: 400 13px/1.35 var(--body); color: var(--muted); }
.ms-pick-val { text-align: right; font: 700 15px/1.2 var(--num); color: var(--mint-d); white-space: nowrap; }
.ms-pick-val small { display: block; font: 500 11.5px/1.2 var(--num); color: var(--muted); }

/* ------------------------------------------------------------- directory */
.ms-home-dir { padding: 20px 0 30px; }
.ms-home-dir-h { margin: 0 0 18px; font: 800 clamp(25px, 3.4vw, 34px)/1.15 var(--head); letter-spacing: -.02em; color: var(--plum); text-align: center; }
.ms-dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ms-dir--one { grid-template-columns: 1fr; max-width: 900px; margin: 10px auto 34px; }
.ms-dir-panel { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 120px; }
.ms-dir-panel h2 { margin: 0; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 800 18px/1.25 var(--head); color: var(--plum); border-bottom: 4px solid var(--ac); }
.ms-dir-panel h2 small { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--ac); color: var(--ink); font: 700 13px/1 var(--num); }
.ms-dir-panel table { width: 100%; border-collapse: collapse; }
.ms-dir-panel th, .ms-dir-panel td { padding: 11px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.ms-dir-panel tr:last-child th, .ms-dir-panel tr:last-child td { border-bottom: 0; }
.ms-dir-panel th { width: 42%; font-weight: 600; }
.ms-dir-panel th a { color: var(--plum); text-decoration: none; }
.ms-dir-panel th a:hover { color: var(--coral-d); text-decoration: underline; }
.ms-dir-panel td { color: var(--muted); }
.ms-tag { display: inline-block; margin-left: 4px; padding: 3px 7px; border-radius: 6px; background: #e3fbef; color: var(--mint-d); font: 700 10.5px/1 var(--num); text-transform: uppercase; letter-spacing: .05em; vertical-align: 2px; }
.ms-tag--hub { background: #fff1d6; color: #9a6400; }

.ms-related { max-width: 1180px; margin: 10px auto 40px; }
.ms-related h2 { margin: 0 0 14px; font: 800 24px/1.2 var(--head); color: var(--plum); }
.ms-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ms-related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-top: 5px solid var(--ac); transition: transform .15s ease; }
.ms-related a:hover { transform: translateY(-3px); color: var(--ink); }
.ms-related small { font: 600 11.5px/1 var(--num); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ms-related b { font: 700 17px/1.25 var(--head); color: var(--plum); }
.ms-related span { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ------------------------------------------------------------- blog */
.ms-listing { padding: 34px 0 40px; }
.ms-list-title h1 { font: 800 clamp(29px, 4vw, 42px)/1.1 var(--head); color: var(--plum); margin: 0 0 20px; }
.ms-postlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ms-postrow { padding: 18px 20px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); }
.ms-postrow h2 { margin: 0 0 6px; font: 700 19px/1.3 var(--head); }
.ms-postrow h2 a { color: var(--plum); text-decoration: none; }
.ms-postrow p { margin: 0 0 6px; font-size: 15px; }
.ms-date { color: var(--muted); font: 500 13px/1 var(--num); }
.ms-pager { margin: 26px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ms-pager a, .ms-pager span { padding: 8px 13px; border-radius: 10px; background: #fff; text-decoration: none; }
.ms-pager .current { background: var(--plum); color: #fff; }
.ms-article--post img { border-radius: var(--r-md); }
.ms-article--post p { font-size: 17.5px; }
.ms-post-guides { margin: 40px 0 10px; }
.ms-post-guides-h { font: 800 22px/1.2 var(--head); color: var(--plum); margin: 0 0 12px; }
.ms-latest { margin: 20px auto 40px; }
.ms-latest h2 { font: 800 24px/1.2 var(--head); color: var(--plum); margin: 0 0 12px; }
.ms-latest ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ms-latest a { display: block; padding: 14px 16px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); text-decoration: none; }
.ms-latest b { display: block; color: var(--plum); font: 600 16px/1.35 var(--body); }
.ms-latest small { color: var(--muted); font: 500 12.5px/1 var(--num); }
.ms-latest-more { display: inline-block; margin-top: 14px; font-weight: 600; }

/* ------------------------------------------------------------- footer */
.ms-foot { margin-top: 30px; background: #ece5f8; color: #3c3352; }
.ms-foot-top { padding: 42px 0 24px; }
.ms-foot-word { margin: 0 0 26px; font: 800 clamp(34px, 7.4vw, 92px)/.95 var(--head); letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1.5px var(--plum-2); white-space: nowrap; overflow: hidden; }
.ms-foot-word b { color: var(--coral); -webkit-text-stroke: 0; font-weight: 800; }
.ms-foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.ms-foot-h { margin: 0 0 10px; font: 700 13px/1 var(--num); text-transform: uppercase; letter-spacing: .08em; color: var(--plum); }
.ms-foot p { font-size: 15px; margin: 0 0 10px; }
.ms-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.ms-foot a { color: var(--plum-2); text-decoration: none; }
.ms-foot a:hover { color: var(--coral-d); text-decoration: underline; }
.ms-foot-note { padding: 12px 14px; border-radius: var(--r-sm); background: #fff; font-size: 13.5px !important; line-height: 1.5; }
.ms-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 0 26px; border-top: 1px solid #d8cceb; font-size: 14px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
	.ms-nav { display: none; }
	.ms-menubtn { display: inline-flex; }
	.ms-cta { margin-left: auto; }
	.ms-menubtn { margin-left: 0; }
}
@media (max-width: 900px) {
	.ms-hero-grid, .ms-head-grid { grid-template-columns: 1fr; gap: 26px; }
	.ms-dir { grid-template-columns: 1fr; }
	.ms-foot-cols { grid-template-columns: 1fr 1fr; }
	.ms-foot-cols > div:first-child { grid-column: 1 / -1; }
	.ms-scard { max-width: 420px; }
}
@media (max-width: 560px) {
	body { font-size: 16.5px; }
	.ms-top-row { min-height: 58px; gap: 10px; }
	.ms-logo { font-size: 16px; }
	.ms-logo img { width: 30px; height: 30px; }
	.ms-cta { display: none; }
	.ms-menubtn { margin-left: auto; }
	.ms-hero { padding: 34px 0 60px; }
	.ms-hero-lede { font-size: 17px; }
	.ms-calc-out { grid-template-columns: 1fr; justify-items: center; }
	.ms-res { width: 100%; }
	.ms-dir-panel th, .ms-dir-panel td { display: block; width: auto; padding: 4px 16px; border: 0; }
	.ms-dir-panel th { padding-top: 12px; }
	.ms-dir-panel td { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
	.ms-foot-cols { grid-template-columns: 1fr; }
	.ms-head-gist { font-size: 17.5px; }
	.ms-toc ol { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
	.ms-toc a { white-space: nowrap; }
	.ms-scard::before { width: 140px; height: 140px; right: -58px; top: -58px; border-width: 18px; opacity: .45; }
	.ms-scard dl div:first-child dd { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
