/*
Theme Name: Mobile Battery Model
Theme URI: https://mobilebatterymodel.com/
Description: Battery label theme for mobilebatterymodel.com: graphite top bar with a volt charge line, the battery code printed as a cell label sticker in every page head (model, capacity, cell type, fits list), battery-pack code finder on the home page, family lists as battery cards with a terminal nub, battery time estimator on capacity pages. Fonts: Oxanium, Instrument Sans and Chivo Mono (SIL OFL, included).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mobilebatterymodel
*/

@font-face { font-family: "Oxanium"; font-weight: 600; font-display: swap; src: url(assets/fonts/oxanium-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Oxanium"; font-weight: 700; font-display: swap; src: url(assets/fonts/oxanium-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Oxanium"; font-weight: 800; font-display: swap; src: url(assets/fonts/oxanium-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/instrument-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url(assets/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url(assets/fonts/instrument-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Chivo Mono"; font-weight: 500; font-display: swap; src: url(assets/fonts/chivo-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Chivo Mono"; font-weight: 700; font-display: swap; src: url(assets/fonts/chivo-mono-latin-700-normal.woff2) format("woff2"); }

:root {
	--ink: #16181f;
	--ink-2: #2a2e3a;
	--muted: #5d6272;
	--paper: #f5f2ea;
	--paper-2: #ece7da;
	--card: #fffdf8;
	--line: #ddd6c6;
	--volt: #c8f23a;
	--volt-d: #5d7d00;
	--coral: #ff6243;
	--coral-d: #c4381c;
	--amber: #f6b73c;
	--dk: #13a374;
	--r: 14px;
	--hd: "Oxanium", "Segoe UI", system-ui, sans-serif;
	--tx: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	--mo: "Chivo Mono", ui-monospace, Menlo, Consolas, monospace;
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--tx); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral-d); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--hd); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
code, kbd { font: 500 .9em var(--mo); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; }
.mx-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.mx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mx-skip { position: absolute; left: -999px; top: 8px; background: var(--volt); color: var(--ink); padding: 8px 14px; z-index: 50; font-weight: 700; }
.mx-skip:focus { left: 8px; }

/* ---------------------------------------------------------------- top bar */
.mx-top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 0 var(--volt); }
.mx-top-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.mx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.mx-logo img { width: 34px; height: 34px; }
.mx-logo-word { font: 700 20px/1 var(--hd); letter-spacing: -.01em; }
.mx-logo-word b { color: var(--volt); font-weight: 800; padding: 0 .08em; }
.mx-search { flex: 1; max-width: 460px; margin-left: auto; position: relative; display: flex; align-items: center; }
.mx-search svg { position: absolute; left: 12px; color: #9aa0b3; pointer-events: none; }
.mx-search input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid #3a3f4e; background: #22252f; color: #fff; font: 500 15px var(--tx); padding: 0 12px 0 38px; }
.mx-search input::placeholder { color: #9aa0b3; }
.mx-menubtn { display: none; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid #3a3f4e; border-radius: 10px; height: 42px; padding: 0 12px; font: 600 14px var(--tx); cursor: pointer; }
.mx-menubtn-bars, .mx-menubtn-bars::before, .mx-menubtn-bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: ""; }
.mx-menubtn-bars::before { position: absolute; top: -5px; } .mx-menubtn-bars::after { position: absolute; top: 5px; }
.mx-rail { background: #1e212b; border-top: 1px solid #2c303c; }
.mx-rail-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.mx-rail-row::-webkit-scrollbar { display: none; }
.mx-rail a { flex: none; display: inline-flex; align-items: center; gap: 7px; color: #e7e9f0; text-decoration: none; font: 600 14px var(--tx); padding: 6px 12px 6px 8px; border-radius: 8px; border: 1px solid #343949; }
.mx-rail a:hover { border-color: var(--dk); color: #fff; }
.mx-rail-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--dk); color: #fff; }
.mx-drawer { background: #1e212b; border-top: 1px solid #2c303c; padding: 12px 0 18px; }
.mx-drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mx-drawer-list a { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 8px; border-radius: 10px; background: #262a35; }
.mx-drawer-list span:last-child { color: #9aa0b3; font-size: 13px; }
.mx-sq { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--dk, #444); color: #fff; }

/* ---------------------------------------------------------------- home hero */
.mx-hero { background: radial-gradient(900px 420px at 85% 10%, #2b3040 0, transparent 70%), var(--ink); color: #fff; padding: 46px 0 56px; position: relative; overflow: hidden; }
.mx-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: repeating-linear-gradient(90deg, var(--volt) 0 46px, transparent 46px 52px); opacity: .9; }
.mx-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.mx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mo); letter-spacing: .04em; color: #c9cede; margin: 0 0 16px; }
.mx-charge { width: 30px; height: 15px; border: 2px solid var(--volt); border-radius: 4px; position: relative; padding: 2px; }
.mx-charge::after { content: ""; position: absolute; right: -6px; top: 3px; width: 3px; height: 5px; background: var(--volt); border-radius: 0 2px 2px 0; }
.mx-charge i { display: block; height: 100%; width: 70%; background: var(--volt); border-radius: 1px; }
.mx-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin-bottom: 14px; }
.mx-hero-lede { font-size: 18px; color: #d7dae4; max-width: 34em; margin: 0 0 22px; }
.mx-hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.mx-hero-stats li { border: 1px solid #3a3f4e; border-radius: 10px; padding: 8px 14px; font-size: 14px; color: #c9cede; }
.mx-hero-stats b { font: 700 20px var(--hd); color: var(--volt); margin-right: 4px; }
.mx-pack { background: var(--card); color: var(--ink); border-radius: 20px; padding: 6px 18px 18px; position: relative; box-shadow: 0 30px 60px -24px #000c; border: 3px solid #e9e3d4; }
.mx-pack::after { content: ""; position: absolute; right: -14px; top: 50%; width: 11px; height: 54px; margin-top: -27px; background: #e9e3d4; border-radius: 0 6px 6px 0; }
.mx-pack-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px dashed var(--line); padding: 10px 0; margin-bottom: 12px; font: 700 15px var(--hd); letter-spacing: .02em; text-transform: uppercase; }
.mx-pack-gauge { width: 70px; height: 12px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.mx-pack-gauge b { display: block; height: 100%; width: 78%; background: linear-gradient(90deg, var(--volt-d), var(--volt)); }

/* ---------------------------------------------------------------- finder */
.mx-f-l { display: block; font: 700 13px var(--mo); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.mx-f-row { position: relative; }
.mx-f-row input { width: 100%; height: 54px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font: 700 20px var(--mo); padding: 0 92px 0 14px; color: var(--ink); text-transform: none; }
.mx-f-n { position: absolute; right: 14px; top: 17px; font: 500 13px var(--mo); color: var(--volt-d); }
.mx-f-try { font-size: 14px; color: var(--muted); margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mx-f-try button { font: 500 13px var(--mo); border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 10px; cursor: pointer; color: var(--ink); }
.mx-f-try button:hover { border-color: var(--ink); }
.mx-f-out { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mx-f-out a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-decoration: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mx-f-out a:hover { border-color: var(--ink); color: var(--ink); }
.mx-f-code { font: 700 14px var(--mo); background: var(--ink); color: var(--volt); padding: 6px 9px; border-radius: 7px; min-width: 64px; text-align: center; }
.mx-f-t b { display: block; font: 700 16px var(--hd); }
.mx-f-t small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.mx-f-cap { font: 500 13px var(--mo); color: var(--volt-d); white-space: nowrap; }
.mx-f-none { padding: 12px; border-radius: 12px; background: #fff3ef; border: 1px solid #ffc9bb; font-size: 15px; }

/* ---------------------------------------------------------------- family cards */
.mx-desks { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; padding-top: 42px; padding-bottom: 20px; align-items: start; }
.mx-desks-h { grid-column: 1 / -1; font-size: 30px; margin: 0; }
.mx-desks--one { grid-template-columns: 1fr; padding-top: 10px; }
.mx-desks--one .mx-desk-list { columns: 3 260px; }
.mx-desks--mini { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-top: 16px; }
.mx-desk { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); position: relative; margin-right: 10px; }
.mx-desk::after { content: ""; position: absolute; right: -10px; top: 22px; width: 8px; height: 30px; background: var(--ink); border-radius: 0 5px 5px 0; }
.mx-desk-head { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 2px solid var(--ink); background: linear-gradient(90deg, color-mix(in srgb, var(--dk) 18%, transparent), transparent 70%); border-radius: 12px 12px 0 0; }
.mx-desk-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--dk); color: #fff; }
.mx-desk-head h2 { font-size: 19px; margin: 0; }
.mx-desk-head h2 a { text-decoration: none; }
.mx-desk-count { font: 700 14px var(--mo); background: var(--ink); color: var(--volt); border-radius: 6px; padding: 3px 8px; }
.mx-desk-list { list-style: none; margin: 0; padding: 6px 0; }
.mx-desk-list li { break-inside: avoid; }
.mx-desk-list a { display: block; padding: 8px 16px; text-decoration: none; border-bottom: 1px dashed var(--line); }
.mx-desk-list li:last-child a { border-bottom: 0; }
.mx-desk-list b { font: 700 15px var(--mo); }
.mx-desk-list i { font: 600 11px var(--tx); font-style: normal; text-transform: uppercase; letter-spacing: .05em; background: var(--volt); color: var(--ink); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.mx-desk-list span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mx-desk-list a:hover { background: var(--paper); color: var(--ink); }
.mx-desk-more { display: block; text-align: center; padding: 11px; font: 700 14px var(--hd); text-decoration: none; border-top: 2px solid var(--ink); background: var(--ink); color: var(--volt); border-radius: 0 0 11px 11px; }
.mx-desk-more:hover { color: #fff; }

/* ---------------------------------------------------------------- page head and label */
.mx-pagehead { background: var(--paper-2); border-bottom: 2px solid var(--ink); padding: 26px 0 28px; }
.mx-pagehead-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.mx-pagehead--label .mx-pagehead-grid { grid-template-columns: 1.15fr .85fr; }
.mx-trail { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mx-trail a { color: var(--muted); }
.mx-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--tx); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 5px; margin: 0 0 14px; }
.mx-chip-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--dk); color: #fff; }
.mx-pagehead h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.mx-answer { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; font-weight: 600; background: var(--card); border-left: 6px solid var(--volt-d); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 6px 0 12px; max-width: 40em; }
.mx-answer-bolt { flex: none; width: 18px; height: 22px; margin-top: 3px; background: var(--coral); clip-path: polygon(55% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 58% 38%); }
.mx-pagehead-meta { font: 500 13px var(--mo); color: var(--muted); margin: 0; }
.mx-owner { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.mx-label { margin: 0; position: relative; padding-right: 14px; }
.mx-label-cell { background: #fbfaf5; color: #111; border: 2px solid #111; border-radius: 16px; padding: 16px 18px 14px; position: relative; box-shadow: 8px 8px 0 var(--ink); background-image: linear-gradient(90deg, transparent 0 calc(100% - 64px), color-mix(in srgb, var(--dk) 14%, transparent) calc(100% - 64px)); }
.mx-label-cell::after { content: ""; position: absolute; right: -14px; top: 50%; width: 11px; height: 46px; margin-top: -23px; background: #111; border-radius: 0 6px 6px 0; }
.mx-label-top { display: flex; justify-content: space-between; align-items: center; font: 700 13px var(--mo); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #111; padding-bottom: 8px; }
.mx-label-pol { font: 700 16px var(--mo); letter-spacing: .3em; }
.mx-label-model { margin: 12px 0 6px; display: flex; flex-direction: column; }
.mx-label-model small { font: 500 12px var(--mo); text-transform: uppercase; letter-spacing: .1em; color: #555; }
.mx-label-model b { font: 800 clamp(34px, 5vw, 48px)/1 var(--hd); letter-spacing: .01em; overflow-wrap: anywhere; }
.mx-label-spec { margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mx-label-spec dt { font: 500 11px var(--mo); text-transform: uppercase; letter-spacing: .1em; color: #555; }
.mx-label-spec dd { margin: 0; font: 700 18px var(--mo); }
.mx-label-bars { display: flex; gap: 4px; height: 22px; }
.mx-label-bars i { flex: 1; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px); }
.mx-label-fits { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mx-label-fits p { margin: 0 0 6px; font: 700 12px var(--mo); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mx-label-fits ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mx-label-fits li { font: 600 14px var(--tx); background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 9px; }
.mx-label-fits small { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- reading column */
.mx-read { display: grid; gap: 34px; padding-top: 30px; padding-bottom: 50px; }
.mx-read--guide { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.mx-read--narrow, .mx-read--home { max-width: 860px; }
.mx-article { min-width: 0; }
.mx-article > *:first-child { margin-top: 0; }
.mx-article p { margin: 0 0 1em; }
.mx-article ul, .mx-article ol { padding-left: 1.3em; margin: 0 0 1em; }
.mx-article li { margin-bottom: .35em; }
.mx-article h2 { font-size: 27px; margin-top: 0; }
.mx-article h3 { font-size: 20px; margin: 1.2em 0 .4em; }
.mx-intro { font-size: 18px; }
.mx-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 22px; }
.mx-toc p { font: 700 13px var(--mo); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; color: var(--muted); }
.mx-toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; font-size: 15px; }
.mx-toc a { text-decoration: none; }
.mx-toc a[aria-current] { color: var(--coral-d); font-weight: 700; }
.mx-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; margin: 6px 0 28px; background: var(--card); }
.mx-key-h { grid-column: 1 / -1; margin: 0; background: var(--ink); color: var(--volt); font: 700 13px var(--mo); text-transform: uppercase; letter-spacing: .08em; padding: 8px 14px; }
.mx-key > div { padding: 10px 14px; border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.mx-key-name { display: block; font: 500 12px var(--mo); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mx-key-val { display: block; font-weight: 700; line-height: 1.4; }
.mx-key-val p { margin: 0; }
.mx-part { margin: 0 0 34px; padding-top: 4px; }
.mx-part > h2 { padding-left: 14px; border-left: 6px solid var(--dk); }
.mx-table { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mx-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.mx-table caption { text-align: left; font: 700 13px var(--mo); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px 4px; }
.mx-table th { background: var(--ink); color: #fff; text-align: left; font: 600 14px var(--tx); padding: 9px 12px; }
.mx-table td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.mx-table tr:nth-child(even) td { background: #faf7f0; }
.mx-tip, .mx-warn, .mx-example, .mx-note { border-radius: 12px; padding: 12px 16px 12px 48px; margin: 0 0 1.2em; position: relative; font-size: 16px; }
.mx-tip::before, .mx-warn::before, .mx-example::before, .mx-note::before { position: absolute; left: 14px; top: 11px; font: 700 13px var(--mo); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; }
.mx-tip { background: #f2fbd8; border: 1px solid #cfe58a; } .mx-tip::before { content: "+"; background: var(--volt); color: var(--ink); }
.mx-warn { background: #fff0eb; border: 1px solid #ffbfae; } .mx-warn::before { content: "!"; background: var(--coral); color: #fff; }
.mx-example { background: var(--card); border: 1px dashed var(--ink-2); } .mx-example::before { content: "e.g"; background: var(--ink); color: var(--volt); font-size: 10px; }
.mx-note { background: #eef1ff; border: 1px solid #c7cffb; } .mx-note::before { content: "i"; background: #3d5afe; color: #fff; }
.mx-tip p:last-child, .mx-warn p:last-child, .mx-example p:last-child, .mx-note p:last-child { margin-bottom: 0; }
.mx-steps { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 18px; margin: 0 0 34px; }
.mx-steps-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mx-steps-top h2 { font-size: 23px; margin: 0; }
.mx-steps-count { font: 500 13px var(--mo); color: var(--muted); }
.mx-steps-bar { height: 10px; border-radius: 5px; background: var(--paper-2); margin: 10px 0 12px; overflow: hidden; border: 1px solid var(--line); }
.mx-steps-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--volt-d), var(--volt)); transition: width .25s; }
.mx-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.mx-step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); counter-increment: st; }
.mx-step::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--volt); font: 700 16px var(--mo); }
.mx-step h3 { font-size: 17px; margin: 4px 0 4px; }
.mx-step p { margin: 0; font-size: 16px; }
.mx-step-tick { align-self: start; font: 600 13px var(--tx); border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.mx-step.is-done::before { background: var(--volt); color: var(--ink); }
.mx-step.is-done .mx-step-tick { background: var(--volt); border-color: var(--volt-d); }
.mx-faq { margin: 0 0 30px; }
.mx-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.mx-faq summary { cursor: pointer; font: 700 17px var(--hd); padding: 12px 40px 12px 16px; list-style: none; position: relative; }
.mx-faq summary::-webkit-details-marker { display: none; }
.mx-faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font: 700 20px var(--mo); color: var(--coral); }
.mx-faq details[open] summary::after { content: "\2212"; }
.mx-faq-a { padding: 0 16px 6px; }
.mx-sources { font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.mx-tool { margin: 0 0 28px; }
.mx-article .mx-tool { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 18px; box-shadow: 6px 6px 0 var(--volt); }
.mx-r-h { font: 700 18px var(--hd); margin: 0 0 10px; }
.mx-r-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.mx-r-grid label { display: grid; gap: 4px; font: 600 14px var(--tx); }
.mx-r-grid input, .mx-r-grid select { height: 46px; border-radius: 10px; border: 2px solid var(--ink); font: 700 17px var(--mo); padding: 0 10px; background: #fff; color: var(--ink); width: 100%; }
.mx-r-grid select { font: 600 15px var(--tx); }
.mx-r-out { margin-top: 12px; }
.mx-r-out p { margin: 4px 0; }
.mx-r-out b { font-family: var(--mo); }
.mx-r-bar { height: 22px; border: 2px solid var(--ink); border-radius: 6px; padding: 2px; position: relative; margin-right: 8px; }
.mx-r-bar::after { content: ""; position: absolute; right: -8px; top: 4px; width: 5px; height: 10px; background: var(--ink); border-radius: 0 3px 3px 0; }
.mx-r-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--amber) 35%, var(--volt)); border-radius: 3px; }
.mx-r-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ---------------------------------------------------------------- side and related */
.mx-related { position: sticky; top: 130px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.mx-related h2 { font: 700 14px var(--mo); text-transform: uppercase; letter-spacing: .06em; margin: 0; padding: 10px 14px; background: var(--ink); color: var(--volt); }
.mx-related ul { list-style: none; margin: 0; padding: 0; }
.mx-related a { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; padding: 10px 14px; text-decoration: none; border-top: 1px dashed var(--line); }
.mx-related-ico { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--dk); color: #fff; }
.mx-related b { font: 700 15px var(--mo); }
.mx-related span:last-child { font-size: 13px; color: var(--muted); line-height: 1.35; }
.mx-ad { margin: 0 0 30px; text-align: center; }
.mx-latest { padding-bottom: 40px; }
.mx-latest ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mx-latest a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.mx-latest small { display: block; color: var(--muted); }
.mx-latest-more { font-weight: 700; }
.mx-guides { margin-top: 20px; }
.mx-guides-h { font: 700 18px var(--hd); }

/* ---------------------------------------------------------------- blog lists */
.mx-list-title { padding: 30px 0 10px; }
.mx-postlist { display: grid; gap: 12px; padding-bottom: 20px; }
.mx-postrow { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.mx-postrow h2 { font-size: 21px; margin: 0 0 4px; }
.mx-postrow h2 a { text-decoration: none; }
.mx-date { font: 500 13px var(--mo); color: var(--muted); margin: 0 0 6px; }
.mx-pager { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 40px; }
.mx-pager a, .mx-pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; }
.mx-article--post img { border-radius: 10px; }

/* ---------------------------------------------------------------- footer */
.mx-foot { background: var(--ink); color: #c9cede; margin-top: 30px; border-top: 4px solid var(--volt); }
.mx-foot-band { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding-top: 38px; padding-bottom: 26px; }
.mx-foot-brand p { margin: 0 0 12px; font-size: 15px; }
.mx-logo--foot { margin-bottom: 14px; }
.mx-foot-note { font-size: 13px !important; color: #9aa0b3; }
.mx-foot-desks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; align-content: start; }
.mx-foot-desks a { display: flex; align-items: center; gap: 8px; color: #e7e9f0; text-decoration: none; padding: 8px 10px; border: 1px solid #343949; border-radius: 8px; font-size: 14px; }
.mx-foot-desks small { margin-left: auto; font: 500 12px var(--mo); color: var(--volt); }
.mx-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--dk); flex: none; }
.mx-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid #2c303c; padding-top: 16px; padding-bottom: 26px; font-size: 14px; }
.mx-foot-legal a { color: #c9cede; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
	.mx-hero-grid, .mx-pagehead--label .mx-pagehead-grid, .mx-read--guide, .mx-foot-band { grid-template-columns: 1fr; }
	.mx-related { position: static; }
	.mx-hero { padding: 30px 0 44px; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.mx-top-row { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
	.mx-search { order: 3; flex-basis: 100%; max-width: none; }
	.mx-menubtn { display: inline-flex; margin-left: auto; }
	.mx-rail { display: none; }
	.mx-top { position: static; }
	html { scroll-padding-top: 10px; }
	.mx-logo-word { font-size: 18px; }
	.mx-desks { grid-template-columns: 1fr; padding-top: 28px; }
	.mx-pack { margin-right: 12px; padding: 4px 12px 14px; }
	.mx-f-row input { font-size: 17px; }
	.mx-f-out a { grid-template-columns: auto 1fr; }
	.mx-f-cap { grid-column: 2; }
	.mx-r-grid { grid-template-columns: 1fr; }
	.mx-step { grid-template-columns: 30px 1fr; }
	.mx-step-tick { grid-column: 2; justify-self: start; }
	.mx-label-cell { box-shadow: 5px 5px 0 var(--ink); }
	.mx-article h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .mx-top, .mx-foot, .mx-related, .mx-tool, .mx-ad { display: none; } body { background: #fff; } }
