/* Guides (generated by scripts/guides/build.mjs). Light by default; .theme-dark (session-hint.js) follows the app's choice. */
:root { --bg: #fafafa; --surface: #fff; --text: #1c1b22; --muted: #5e5c6a; --title: #35375e; --accent: #444b98; --line: #e3e2ea; --soft: #eeecf7; }
.theme-dark { --bg: #121320; --surface: #1a1b2a; --text: #e7e6f0; --muted: #a4a3b5; --title: #d3d3ee; --accent: #8087d2; --line: #2c2d3f; --soft: #1e1f33; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Rubik, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; max-width: 1000px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; color: var(--title); text-decoration: none; }
.brand img { border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.top nav a { text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
/* On a phone the menu goes under the name, and the home link is the name itself */
@media (max-width: 600px) {
  .top .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .top nav { flex-wrap: wrap; gap: 6px 14px; }
  .top nav > a:first-child { display: none; }
}
.button { display: inline-block; background: var(--accent); color: #fff !important; border-radius: 999px; padding: 12px 22px; font-weight: 500; text-decoration: none; }
.button.small { padding: 7px 14px; }
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-hint a { font-weight: 500; }
.lang-hint button { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
main { padding: 24px 16px 48px; }
.crumbs { margin: 0 0 8px; font-size: 14px; }
h1 { font-family: Exo, Rubik, sans-serif; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; color: var(--title); margin: 8px 0 16px; }
h2 { font-family: Exo, Rubik, sans-serif; font-size: 22px; color: var(--title); margin: 32px 0 8px; }
.shot { margin: 20px auto 8px; max-width: 280px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; border: 8px solid #1c1d2b; box-shadow: 0 16px 40px rgba(36, 40, 98, 0.25); }
.updated { margin: -4px 0 12px; color: var(--muted); font-size: 13px; }
.answer { font-size: 18px; background: var(--soft); border-radius: 16px; padding: 16px 20px; margin: 0 0 8px; }
dt { font-weight: 600; margin-top: 16px; }
dd { margin: 4px 0 0; color: var(--muted); }
.cta { margin: 36px 0; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.cta h2 { margin-top: 0; }
.cta .note { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.related ul, .cards { list-style: none; padding: 0; }
.related li { margin: 8px 0; }
.cards { display: grid; gap: 12px; }
.cards a { display: block; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.cards strong { display: block; color: var(--title); font-size: 17px; }
.cards span { color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }
footer a { display: inline-block; padding: 12px 2px; }
.toc { margin: 24px 0 8px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.toc ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--soft); text-decoration: none; font-size: 14px; }
.feature { scroll-margin-top: 16px; border-top: 1px solid var(--line); margin-top: 32px; }
.checks { padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #5b8cc1, #444b98); }
.checks li::after { content: ''; position: absolute; left: 6px; top: 9px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Calculators (public/tools.js) */
.calc { margin: 24px 0; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); flex: 1; min-width: 0; }
.calc select { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.calc .with-parts label:has([name='parts']) { flex: 0 0 76px; }
/* A table in a guide (a comparison, an example with numbers) */
.table { overflow-x: auto; margin: 12px 0; }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--title); font-weight: 600; background: var(--soft); }
.table caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: 12px; padding-top: 6px; }
.sources { font-size: 13px; color: var(--muted); }
.byline { margin: -4px 0 12px; color: var(--muted); font-size: 13px; }
.calc input { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.calc input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc .rows { display: grid; gap: 10px; }
.calc .row { display: flex; gap: 10px; align-items: flex-end; }
.calc .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.calc .remove { flex: none; width: 40px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 20px; cursor: pointer; }
.calc .add { margin-top: 10px; border: 0; background: var(--soft); color: var(--accent); font: inherit; font-weight: 500; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.calc .result { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc .result p { margin: 6px 0; }
.calc .result .big { font-size: 20px; color: var(--title); }
.calc .result .verdict { font-weight: 600; }
.calc .transfers { padding-left: 18px; }
.calc .transfers li { margin: 6px 0; }
.calc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.calc th, .calc td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.calc th:first-child, .calc td:first-child { text-align: left; }
.calc:not(.ready) .add, .calc:not(.ready) .remove { display: none; }
