/* vpsa.com.br — app layout (sidebar + content + rail), light and dark themes */
:root {
  --bg: #f4f6fb; --side: #ffffff; --card: #ffffff; --card2: #f7f8fc; --line: #e5e9f2; --line2: #d7dceb;
  --ink: #0f1e3c; --ink2: #2a3a5c; --muted: #66779a; --brand: #1062f0; --brand2: #e6f0ff; --brand-ink: #ffffff;
  --sh: 0 1px 2px rgba(16,24,64,.04), 0 6px 20px -8px rgba(16,24,64,.10);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 16px; --side-w: 276px; --rail-w: 340px;
  /* tones: fg / bg */
  --indigo: #1062f0; --indigo-b: #e6f0ff; --orange: #f2711c; --orange-b: #fff1e6; --green: #12a46c; --green-b: #e4f7ee; --blue: #1f7bf2; --blue-b: #e6f1ff;
  --teal: #0aa3b5; --teal-b: #e2f6f8; --pink: #e0457b; --pink-b: #fde9f0; --violet: #8b4bf0; --violet-b: #f3ebff; --amber: #e39a06; --amber-b: #fff5dc;
  --rose: #e5484d; --rose-b: #fdebec; --plain: #4a5578; --plain-b: #eef1f7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1020; --side: #10152a; --card: #141a31; --card2: #192039; --line: #232b47; --line2: #2e3858; --ink: #eef1fb; --ink2: #cdd3ea; --muted: #8e97b8;
    --brand: #8e7bff; --brand2: #262049; --sh: 0 1px 0 rgba(255,255,255,.02), 0 10px 30px -12px rgba(0,0,0,.6);
    --indigo: #9a8bff; --indigo-b: #241f4a; --orange: #ff9a52; --orange-b: #3a2414; --green: #3fd394; --green-b: #12301f; --blue: #5ea6ff; --blue-b: #13284a;
    --teal: #3fd0e0; --teal-b: #0f2d33; --pink: #ff7aa6; --pink-b: #3a1626; --violet: #b88cff; --violet-b: #2a1b46; --amber: #ffc24a; --amber-b: #352a0d;
    --rose: #ff7b7f; --rose-b: #3b1719; --plain: #aeb6d6; --plain-b: #1d2440; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1020; --side: #10152a; --card: #141a31; --card2: #192039; --line: #232b47; --line2: #2e3858; --ink: #eef1fb; --ink2: #cdd3ea; --muted: #8e97b8;
  --brand: #8e7bff; --brand2: #262049; --sh: 0 1px 0 rgba(255,255,255,.02), 0 10px 30px -12px rgba(0,0,0,.6);
  --indigo: #9a8bff; --indigo-b: #241f4a; --orange: #ff9a52; --orange-b: #3a2414; --green: #3fd394; --green-b: #12301f; --blue: #5ea6ff; --blue-b: #13284a;
  --teal: #3fd0e0; --teal-b: #0f2d33; --pink: #ff7aa6; --pink-b: #3a1626; --violet: #b88cff; --violet-b: #2a1b46; --amber: #ffc24a; --amber-b: #352a0d;
  --rose: #ff7b7f; --rose-b: #3b1719; --plain: #aeb6d6; --plain-b: #1d2440; color-scheme: dark;
}
.t-indigo { --tf: var(--indigo); --tb: var(--indigo-b); } .t-orange { --tf: var(--orange); --tb: var(--orange-b); } .t-green { --tf: var(--green); --tb: var(--green-b); }
.t-blue { --tf: var(--blue); --tb: var(--blue-b); } .t-teal { --tf: var(--teal); --tb: var(--teal-b); } .t-pink { --tf: var(--pink); --tb: var(--pink-b); }
.t-violet { --tf: var(--violet); --tb: var(--violet-b); } .t-amber { --tf: var(--amber); --tb: var(--amber-b); } .t-rose { --tf: var(--rose); --tb: var(--rose-b); } .t-plain { --tf: var(--plain); --tb: var(--plain-b); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15.5px/1.6 var(--font); }
a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .88em; background: var(--brand2); color: var(--brand); padding: 1px 6px; border-radius: 6px; }
h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 8px; font-weight: 800; }
h2, h3 { letter-spacing: -.01em; line-height: 1.25; font-weight: 800; }
.ic { width: 22px; height: 22px; flex: none; }
.ia { width: 16px; height: 16px; vertical-align: -3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 4px; }

/* app frame */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--side) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px), var(--line) var(--side-w), transparent var(--side-w)); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; padding: 4px 8px 10px; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nv, .grp > summary { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; color: var(--ink2); font-weight: 650; font-size: 14.5px; line-height: 1.25; cursor: pointer; list-style: none; text-decoration: none !important; }
.grp > summary::-webkit-details-marker { display: none; }
.nv:hover, .grp > summary:hover { background: var(--card2); }
.nv.on { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px -6px var(--brand); }
.nv.on .nvi { background: rgba(255,255,255,.2); color: #fff; }
.nvi { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--tb, var(--plain-b)); color: var(--tf, var(--plain)); flex: none; }
.nvi .ic { width: 19px; height: 19px; }
.grp .chev { width: 16px; height: 16px; margin-left: auto; color: var(--muted); transition: transform .15s; }
.grp[open] .chev { transform: rotate(90deg); }
.subs { display: flex; flex-direction: column; margin: 2px 0 6px 52px; border-left: 2px solid var(--line); }
.sub { padding: 6px 12px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.sub:hover, .sub.on { color: var(--brand); text-decoration: none; }
.sub.on { border-left: 2px solid var(--brand); margin-left: -2px; }
.nv-h { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 10px 4px; }
.cnt { margin-left: auto; font-size: 12px; background: var(--rose-b); color: var(--rose); border-radius: 999px; padding: 0 8px; }
.cnt:empty { display: none; }
.favs { display: flex; flex-direction: column; margin: 0 0 4px 52px; }
.favs a { font-size: 14px; padding: 4px 8px; color: var(--ink2); }
.favs .empty { font-size: 12.5px; color: var(--muted); margin: 0 8px 4px; line-height: 1.4; }
.side-card { margin-top: auto; background: linear-gradient(160deg, var(--brand2), var(--card2)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.sc-h { display: flex; align-items: center; gap: 8px; color: var(--amber); }
.sc-h b { color: var(--ink); }
.side-card p { font-size: 13.5px; color: var(--muted); margin: 8px 0 12px; line-height: 1.45; }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff !important; border-radius: 12px; padding: 10px 14px; font-weight: 750; text-decoration: none !important; }
.scrim { display: none; }

.col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 26px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.topbar .brand.mini { display: none; }
.search { position: relative; flex: 1; max-width: 720px; }
.search .si { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search input { width: 100%; height: 48px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 14px; padding: 0 84px 0 48px; font: 500 15px var(--font); box-shadow: var(--sh); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand2); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 12px var(--font); color: var(--muted); border: 1px solid var(--line2); border-radius: 7px; padding: 3px 7px; background: var(--card2); }
.hits { position: absolute; top: 54px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh); overflow: hidden; }
.hits:empty { display: none; }
.hits a { display: block; padding: 11px 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.hits a:hover { background: var(--card2); text-decoration: none; }
.iconbtn { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; box-shadow: var(--sh); }
.iconbtn:hover { color: var(--brand); }
.iconbtn.menu { display: none; }
.cta { margin-left: auto; background: var(--brand); color: #fff !important; border-radius: 14px; padding: 12px 18px; font-weight: 750; white-space: nowrap; text-decoration: none !important; box-shadow: 0 8px 18px -8px var(--brand); }
.cta:hover { filter: brightness(1.07); }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); gap: 22px; padding: 6px 26px 0; align-items: start; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.rail { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 22px; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--sh); min-width: 0; }

/* section heads */
.sh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sh h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0; }
.sh p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.shi { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--tb); color: var(--tf); flex: none; }
.shi .ic { width: 20px; height: 20px; }
.more { flex: none; font-size: 13.5px; color: var(--brand); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 11px; background: var(--card2); }
.more:hover { text-decoration: none; border-color: var(--brand); }

/* hero banner */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 32px; color: #fff; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 10px;
  background: radial-gradient(120% 140% at 100% 0%, #3b2f9a 0%, transparent 55%), linear-gradient(120deg, #0d1230 0%, #161b4a 55%, #241c63 100%); box-shadow: 0 20px 40px -24px rgba(36,28,99,.8); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/100% 26px; pointer-events: none; }
.kick { font-weight: 800; font-size: 12.5px; letter-spacing: .18em; color: #c9c2ff; margin: 0; }
.hero h1 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); margin: 10px 0 10px; }
.hero-txt > p:not(.kick) { color: #c7cbe6; margin: 0 0 18px; max-width: 520px; }
.stats { display: flex; flex-wrap: wrap; gap: 22px; }
.st { display: flex; align-items: center; gap: 9px; }
.sti { width: 26px; height: 26px; color: #ffd166; }
.st b { display: block; font-size: 20px; line-height: 1.1; }
.st small { color: #b9bedc; font-size: 12.5px; font-weight: 600; }
.art { width: 100%; height: auto; position: relative; z-index: 1; }
.art .ln line { stroke: rgba(160,150,255,.55); stroke-width: 2; }
.art .nd circle { fill: #e9e6ff; stroke: #8e7bff; stroke-width: 3; }
.art .nd circle.hub { fill: #ffd166; stroke: #fff; }
.art .tag rect { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.35); }
.art .tag text { fill: #fff; font: 700 18px var(--mono); }
.art .t2 text { fill: #5ee6c3; }

/* calculator */
.calc .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .flabel { font-weight: 750; font-size: 14px; color: var(--ink2); }
.field small { color: var(--muted); font-size: 13px; line-height: 1.4; }
input, select, textarea { font: 600 17px var(--font); color: var(--ink); background: var(--card2); border: 1.5px solid var(--line2); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
textarea { font: 600 15px var(--mono); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand2); background: var(--card); }
.calc-card .field:first-child input[type=text] { font: 700 24px var(--mono); padding: 14px 16px; letter-spacing: -.01em; }
.with-unit { display: flex; }
.with-unit input { border-radius: 12px 0 0 12px; }
.with-unit .u, .with-unit select { border: 1.5px solid var(--line2); border-left: 0; border-radius: 0 12px 12px 0; background: var(--brand2); color: var(--brand); font-weight: 750; padding: 0 14px; display: flex; align-items: center; width: auto; flex: none; font-size: 15px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.examples span { font-weight: 700; color: var(--muted); font-size: 13.5px; }
.ex { font: 700 13.5px var(--mono); background: var(--card2); color: var(--ink2); border: 1px solid var(--line2); border-radius: 9px; padding: 6px 11px; cursor: pointer; }
.ex:hover { border-color: var(--brand); color: var(--brand); background: var(--brand2); }
.go { margin-top: 16px; width: 100%; font: 800 16.5px var(--font); color: #fff; background: var(--brand); border: 0; border-radius: 13px; padding: 14px; cursor: pointer; box-shadow: 0 10px 20px -10px var(--brand); }
.go:hover { filter: brightness(1.07); }
.result { margin-top: 18px; border-radius: 16px; background: var(--green-b); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); padding: 18px; }
.result[data-state=warn] { background: var(--orange-b); border-color: color-mix(in srgb, var(--orange) 25%, transparent); }
.result[data-state=bad] { background: var(--rose-b); border-color: color-mix(in srgb, var(--rose) 25%, transparent); }
.res-label { font-weight: 700; color: var(--muted); font-size: 14px; }
.res-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 2px 0 8px; }
.res-big .big { font: 700 clamp(28px, 4.6vw, 44px)/1.1 var(--mono); color: var(--ink); letter-spacing: -.03em; word-break: break-all; }
.res-big .unit { font-weight: 800; font-size: 18px; color: var(--brand); background: var(--card); border-radius: 9px; padding: 2px 10px; }
.status { display: inline-block; font-weight: 750; font-size: 13.5px; border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; background: var(--card); }
.status.ok { color: var(--green); } .status.warn { color: var(--orange); } .status.bad { color: var(--rose); }
.res-rows { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.res-rows div { background: var(--card); border-radius: 12px; padding: 10px 13px; min-width: 0; }
.res-rows dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.res-rows dd { margin: 0; font: 700 15.5px var(--mono); overflow-wrap: anywhere; }
.res-rows b, .res-steps b { color: var(--brand); }
.res-table h3 { font-size: 15.5px; margin: 16px 0 8px; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 12px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th { text-align: left; background: var(--card2); color: var(--muted); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 9px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { font-family: var(--mono); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.masks tbody tr:hover { background: var(--card2); }
.res-steps { margin-top: 14px; background: var(--card); border-radius: 12px; padding: 12px 16px; }
.res-steps summary { cursor: pointer; font-weight: 800; color: var(--brand); }
.res-steps ol { margin: 8px 0 0; padding-left: 22px; }
.res-steps code { overflow-wrap: anywhere; }
.res-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
pre.cli, .prose pre { background: #0f1530; color: #d8ffe9; border-radius: 12px; padding: 12px 16px; font: 600 14px var(--mono); overflow-x: auto; max-width: 100%; }
.res-actions { display: flex; gap: 10px; margin-top: 12px; }
.res-actions button { font: 700 14px var(--font); background: var(--card2); color: var(--ink2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.res-actions button:hover { border-color: var(--brand); color: var(--brand); }

/* quick calculators */
.qcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qc { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 46px; color: var(--ink); box-shadow: var(--sh); transition: transform .14s, border-color .14s; }
.qc:hover { transform: translateY(-2px); border-color: var(--brand); text-decoration: none; }
.qc b { font-size: 16.5px; margin-top: 8px; }
.qc > span:not(.qi) { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.45; }
.qi { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--tb); color: var(--tf); }
.qi .ic { width: 28px; height: 28px; }
.bd { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 12px; font-weight: 750; color: var(--tf); background: var(--tb); border-radius: 999px; padding: 3px 10px; }
.qc .go { position: absolute; right: 14px; bottom: 14px; width: 28px; height: 28px; margin: 0; padding: 0; border-radius: 50%; background: var(--brand2); color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: none; }
.qc .go .ic { width: 16px; height: 16px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.pts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; color: var(--ink); background: var(--card2); }
.pt:hover { border-color: var(--brand); text-decoration: none; }
.pti { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--tb); color: var(--tf); flex: none; }
.pt b { display: block; font-size: 14.5px; line-height: 1.25; }
.pt small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tips { display: flex; flex-direction: column; gap: 10px; }
.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--tb); border-radius: 14px; padding: 12px 14px; }
.tpi { width: 30px; height: 30px; color: var(--tf); flex: none; }
.tip b { color: var(--tf); font-size: 14.5px; }
.tip p { margin: 2px 0 0; color: var(--ink2); font-size: 13.5px; line-height: 1.45; }
.cts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct { display: flex; align-items: center; gap: 12px; background: var(--tb); border-radius: 16px; padding: 16px; color: var(--tf); }
.ct:hover { text-decoration: none; filter: saturate(1.2); transform: translateY(-1px); }
.cti { width: 30px; height: 30px; }
.ct b { display: block; font-size: 15.5px; }
.ct small { color: var(--ink2); opacity: .75; font-weight: 600; }

/* rail */
.ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ph h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; margin: 0; }
.hi { width: 22px; height: 22px; color: var(--brand); }
.link { background: none; border: 0; color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; }
.link:hover { color: var(--brand); }
.frs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fr { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card2); color: var(--ink); min-width: 0; }
.fr:hover { border-color: var(--brand); text-decoration: none; }
.bi { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--tb); color: var(--tf); flex: none; }
.fr b { display: block; font: 700 18px/1.2 var(--mono); white-space: nowrap; }
.fr small { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.3; display: block; }
.fr > span:last-child { min-width: 0; }
.recent { display: flex; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.recent:last-child { border-bottom: 0; }
.recent:hover { text-decoration: none; color: var(--brand); }
.r-t { font-weight: 700; font-size: 14px; min-width: 0; }
.r-t small, .r-v small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.r-v { text-align: right; font: 700 14px var(--mono); flex: none; max-width: 50%; overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: 13.5px; margin: 4px 0; line-height: 1.45; }
.rls { display: flex; flex-direction: column; gap: 8px; }
.rl { display: flex; gap: 11px; align-items: center; color: var(--ink); padding: 8px; border-radius: 12px; }
.rl:hover { background: var(--card2); text-decoration: none; }
.rl b { display: block; font-size: 14.5px; }
.rl small { color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; display: block; }

/* tool / answer pages */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.cr { width: 14px; height: 14px; }
.thead { display: flex; gap: 16px; align-items: flex-start; }
.thi { width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--tb); color: var(--tf); flex: none; }
.thi .ic { width: 34px; height: 34px; }
.thead > div { flex: 1; min-width: 0; }
.lede { color: var(--muted); font-size: 16.5px; margin: 0; max-width: 760px; }
.fav { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 9px 12px; font: 700 14px var(--font); color: var(--ink2); cursor: pointer; }
.fav .ic { width: 18px; height: 18px; }
.fav.on { color: var(--amber); border-color: var(--amber); background: var(--amber-b); }
.fav.on svg path { fill: currentColor; }
.qh { margin-top: 2px; }
.answer { background: linear-gradient(130deg, #5b45f0, #7b61ff 60%, #9a6bff); color: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: 0 18px 36px -20px #5b45f0; }
.a-label { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #e5e0ff; }
.al { width: 18px; height: 18px; color: #ffd166; }
.a-big { font: 700 clamp(28px, 5vw, 46px)/1.15 var(--mono); margin: 6px 0 10px; overflow-wrap: anywhere; }
.a-big small { font-size: .42em; opacity: .85; font-family: var(--font); font-weight: 700; }
.answer p { margin: 0; font-size: 16.5px; color: #f0eeff; }
.answer code { background: rgba(255,255,255,.18); color: #fff; }
.prose { font-size: 16.5px; color: var(--ink2); max-width: 820px; min-width: 0; }
.prose h2 { font-size: 23px; margin: 26px 0 10px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose .formula { font: 700 15.5px var(--mono); background: var(--card2); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 13px 16px; margin: 14px 0; overflow-x: auto; color: var(--ink); }
.prose .tip { display: block; background: var(--green-b); border-radius: 12px; padding: 12px 16px; }
.prose .table-wrap { margin: 14px 0; }
.prose :not(.table-wrap) > table { display: block; overflow-x: auto; max-width: 100%; }
.prose a, .prose p { overflow-wrap: anywhere; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { background: var(--card2); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; font-weight: 700; color: var(--ink2); font-size: 14.5px; }
.pills a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.faq details { border-bottom: 1px solid var(--line); padding: 13px 2px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 750; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* 32-bit visual on mask pages */
.bits { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 12px; }
.bits i { width: 22px; height: 30px; border-radius: 6px; font: 700 13px/30px var(--mono); text-align: center; font-style: normal; }
.bits i.n { background: var(--brand); color: #fff; } .bits i.h { background: var(--orange-b); color: var(--orange); } .bits i.s { width: 8px; background: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 700; font-size: 14px; color: var(--muted); }
.legend b { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* features strip + footer */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 26px 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.feat { display: flex; align-items: center; gap: 12px; }
.feat b { display: block; font-size: 14.5px; }
.feat small { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.35; display: block; }
.foot { padding: 20px 26px 30px; color: var(--muted); font-size: 13.5px; }
.foot a { color: var(--muted); font-weight: 600; }
.ft { margin: 0 0 8px; }
.fl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0; }

@media (max-width: 1280px) {
  :root { --rail-w: 300px; }
  .qcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: 290px; transform: translateX(-105%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .menu-open .side { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10,14,30,.45); z-index: 25; }
  .iconbtn.menu { display: inline-flex; }
  .topbar .brand.mini { display: flex; padding: 0; }
  .topbar .brand.mini .mark { width: 34px; height: 34px; }
  .topbar .brand.mini b { font-size: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .art { max-height: 170px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; }
  .search kbd { display: none; }
  .iconbtn { width: 40px; height: 40px; border-radius: 12px; }
  .cta { padding: 9px 12px; font-size: 13.5px; border-radius: 12px; }
  .grid { padding: 4px 14px 0; gap: 16px; }
  .main { gap: 16px; }
  .card, .panel { padding: 16px; border-radius: 18px; }
  .hero { padding: 22px 18px; border-radius: 20px; }
  .stats { gap: 14px; }
  .qcs, .pts, .cts { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .calc .fields { grid-template-columns: minmax(0, 1fr); }
  .calc-card .field:first-child input[type=text] { font-size: 20px; }
  .thead { flex-wrap: wrap; }
  .thi { width: 52px; height: 52px; border-radius: 15px; }
  .feats { margin: 22px 14px 0; grid-template-columns: minmax(0, 1fr); }
  .foot { padding: 18px 14px 26px; }
  .bits i { width: 15px; height: 26px; line-height: 26px; font-size: 11px; }
  .res-rows { grid-template-columns: minmax(0, 1fr); }
}

.two .pts { grid-template-columns: minmax(0, 1fr); }
.fr .bi { width: 34px; height: 34px; }
.fr .bi .ic { width: 19px; height: 19px; }
.home-calc .res-table, .home-calc .res-steps, .home-calc .res-note { display: none; }
.fr small { overflow-wrap: anywhere; }
.art { max-width: 460px; justify-self: end; }
.sh { flex-wrap: wrap; } .sh > div { min-width: 0; flex: 1 1 220px; }

/* logo lockup */
.side .brand { align-items: center; gap: 12px; padding: 4px 6px 12px; }
.side .brand .mark { width: 54px; height: 54px; }
.brand b i { font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: 0; margin-left: 1px; }
.side .brand small { color: var(--brand); font-weight: 750; font-size: 12px; line-height: 1.25; margin-top: 4px; }
.brand .lg { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11px; color: var(--muted); font-weight: 600; }
.brand .lg em { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.brand .lg em.n { background: var(--brand); } .brand .lg em.h { background: var(--orange-b); border: 1.5px solid var(--orange); margin-left: 6px; }

/* ===== VPSA blue brand (logo-driven) ===== */
:root { --wm-ink: #0f1e3c; --wm-sub: #6b7a99; --bg: #f3f7fd; --line: #e2e9f5; --line2: #d3dcee; --card2: #f5f8fe; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wm-ink: #eef4ff; --wm-sub: #8ea0c4; --brand: #4c9bff; --brand2: #13284d; --indigo: #6aa9ff; --indigo-b: #13284d; } }
:root[data-theme="dark"] { --wm-ink: #eef4ff; --wm-sub: #8ea0c4; --brand: #4c9bff; --brand2: #13284d; --indigo: #6aa9ff; --indigo-b: #13284d; }
.side .brand { flex-direction: column; align-items: flex-start; gap: 10px; padding: 6px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.side .brand .mark { width: 92px; height: 74px; }
.side .brand .bw { display: block; }
.wordmark { display: block; width: 168px; height: auto; }
.side .brand small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; margin-top: 6px; }
.nv.on { background: linear-gradient(120deg, #1aa0ff, #0a4fe6); box-shadow: 0 8px 18px -8px #0a4fe6; }
.btn, .cta, .go { background: linear-gradient(120deg, #1a8fff, #0a4fe6); }
.topbar .brand.mini { align-items: center; gap: 6px; }
.topbar .brand.mini .mark { width: 44px; height: 36px; }
.topbar .brand.mini .wordmark { width: 70px; }
.hero { background: radial-gradient(90% 120% at 100% 0%, #2aa8ff 0%, transparent 55%), linear-gradient(120deg, #06163f 0%, #0a2f8f 55%, #0d4fe0 100%); box-shadow: 0 22px 44px -24px rgba(10,79,230,.75); }
.kick { color: #9fd6ff; }
.hero-txt > p:not(.kick) { color: #cfe0ff; }
.sti { color: #ffc23d; }
.st small { color: #b5cbf2; }
.art { max-width: 470px; }
.answer { background: linear-gradient(125deg, #0a3fc0, #0f62f0 55%, #22a6ff); box-shadow: 0 18px 36px -20px #0a4fe6; }
.answer p { color: #eef5ff; }
.side-card { background: linear-gradient(160deg, #e6f0ff, var(--card2)); }
.qc:hover, .fr:hover, .pt:hover { border-color: #1a8fff; }
.result { background: #eaf7f0; }
:root[data-theme="dark"] .result { background: var(--green-b); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .result { background: var(--green-b); } }
@media (max-width: 900px) { .side .brand .mark { width: 76px; height: 61px; } }
@media (max-width: 640px) { .topbar .cta { display: none; } .topbar .brand.mini { margin-right: auto; } }
.side .brand { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.side .brand .mark { width: 78px; height: 63px; }
.side .brand .wordmark { width: 150px; }
.side .brand .tgl { flex-basis: 100%; margin-top: 2px; }
.side .brand .mark { width: 66px; height: 53px; }
.side .brand .wordmark { width: 138px; }
@media (max-width: 1400px) { .frs { grid-template-columns: minmax(0, 1fr); } .fr { padding: 9px 12px; } .fr small { display: inline; margin-left: 6px; } .fr b { display: inline; } }

/* links to sister sites */
.calc-card .sister { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--muted); font-size: 14.5px; }
.foot .fs { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
