/* Sumadillo — quiet surfaces, strong type, clear numbers. */
:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  color: #171815;
  background: #f4f3ed;
  --ink: #171815;
  --paper: #f4f3ed;
  --surface: #fffefa;
  --muted: #595b53;
  --lime: #d9f95e;
  --line: #c8c9be;
  --green: #171815;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, input, select, a, summary { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.page { max-width: 1320px; margin: 0 auto; padding: 0 48px; }

/* Navigation and identity */
header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 104px; padding: 20px 0; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -1.35px; white-space: nowrap; text-decoration: none; }
.brand-name { font-weight: 800; }
.brand-mark { display: block; width: 40px; height: 40px; }
.brand-dot { width: 8px; height: 8px; background: var(--lime); margin: 16px 0 0 -6px; font-size: 0; }
header nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 700; }
header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
header nav > a:hover { text-decoration: underline; }
.language-switch { display: flex; border: 1px solid var(--ink); margin-left: 8px; }
.language-switch a { justify-content: center; min-width: 44px; padding: 10px; font-size: 12px; }
.language-switch [aria-current="true"] { background: var(--ink); color: var(--paper); }
.language-switch a:not([aria-current="true"]):hover { background: var(--lime); }

/* The calculation comes first. */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 48px; padding: 65px 0 32px; }
.intro > * { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; font-size: 10px; line-height: 1.6; font-weight: 800; letter-spacing: 1.65px; }
.eyebrow > span { display: block; width: 7px; height: 7px; background: var(--ink); flex-shrink: 0; }
h1 { font-size: clamp(44px, 6vw, 82px); line-height: .99; letter-spacing: -.065em; font-weight: 800; margin: 0 0 24px; overflow-wrap: anywhere; }
h1 em { font-style: normal; color: var(--muted); font-weight: inherit; }
.intro h1.seo-heading { font-size: clamp(44px, 6vw, 82px); line-height: 1.01; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.045em; overflow-wrap: break-word; }
h3 { font-size: 27px; line-height: 1.14; font-weight: 800; letter-spacing: -.04em; }
.intro-copy { max-width: 700px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-note { border-left: 1px solid var(--line); padding-left: 28px; }
.hero-symbol { display: block; width: 96px; height: 96px; margin: 0 0 25px; font-size: 98px; font-weight: 800; line-height: 1; letter-spacing: -.08em; }
.hero-symbol svg { display: block; width: 100%; height: 100%; }
.hero-note strong { display: block; font-size: 25px; line-height: 1.1; font-weight: 800; letter-spacing: -.8px; }
.hero-note p { margin: 15px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.small-mark { display: block; font-size: 70px; line-height: 1; font-weight: 800; margin: 0 0 20px; }
.task-links { display: flex; flex-wrap: wrap; gap: 4px 25px; margin: 0 0 33px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.task-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 0; }
.calculator { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: var(--surface); border-radius: 4px; }
#calculator-form, .result { padding: 34px 36px; min-width: 0; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.section-heading h2 { font-size: 16px; letter-spacing: -.35px; line-height: 1.25; }
.step { padding: 5px 7px; border: 1px solid currentColor; font-size: 10px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.reset { margin-left: auto; border: 0; background: none; padding: 10px 0 10px 8px; min-height: 44px; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.mode-field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { margin-bottom: 10px; padding: 0; font-size: 12px; font-weight: 700; line-height: 1.5; }
.modes { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 3px; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.modes label { position: relative; display: block; min-width: 0; cursor: pointer; }
.modes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.modes span { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 4px; font-size: 12px; font-weight: 700; text-align: center; border-radius: 1px; }
.modes input:checked + span { background: var(--ink); color: var(--paper); }
.modes input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.modes label:hover input:not(:checked) + span { background: #e8e9df; }
.currency-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; margin-bottom: 22px; }
.currency-row label { font-size: 12px; font-weight: 700; }
.currency-row select { min-height: 44px; padding: 8px 26px 8px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; font-size: 12px; }
.currency-row span { font-size: 10px; line-height: 1.5; color: var(--muted); }
.field-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; font-size: 13px; }
.field-label strong { font-weight: 700; }
.field-label > span { font-size: 11px; color: var(--muted); }
.input-wrap { position: relative; min-width: 0; }
.input-wrap input { width: 100%; min-width: 0; height: 70px; border: 1px solid var(--ink); border-radius: 3px; background: var(--surface); padding: 12px 62px 12px 16px; font-size: 32px; font-weight: 700; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.input-wrap input:hover { background: #fafaf4; }
.input-wrap input:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.input-wrap input[aria-invalid="true"] { border: 2px solid #a12e19; }
.input-wrap > span { position: absolute; top: 50%; right: 17px; transform: translateY(-50%); pointer-events: none; font-size: 19px; font-weight: 700; }
#currency-symbol { font-size: 17px; }
.hint { margin: 9px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.rate-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.optional { color: var(--muted); font-size: 11px; }
.rate-controls { display: flex; gap: 12px; }
.presets { display: flex; flex: 1; gap: 8px; }
.presets button { flex: 1; min-height: 48px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); padding: 10px 13px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.presets button[aria-pressed="true"] { background: var(--lime); border-color: var(--ink); }
.presets button:hover { border-color: var(--ink); }
.rate-wrap { width: 104px; flex: 0 0 auto; }
.rate-wrap input { height: 48px; padding: 10px 33px 10px 12px; font-size: 18px; letter-spacing: -.3px; }
.rate-wrap > span { right: 12px; font-size: 14px; }
.instant { display: flex; align-items: center; gap: 9px; margin: 20px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.instant > span { color: var(--ink); font-size: 22px; }
.error { margin: 8px 0 16px; color: #a12e19; font-size: 12px; line-height: 1.6; font-weight: 700; }
.context-note { background: #edece3; border-left: 2px solid var(--ink); margin: 12px 0; padding: 12px; font-size: 12px; line-height: 1.6; }

/* Result panel */
.result { display: flex; flex-direction: column; container-type: inline-size; border-left: 1px solid var(--ink); border-radius: 0 3px 3px 0; background: var(--lime); color: var(--ink); }
.result .section-heading { margin-bottom: 34px; }
.result-symbol { margin-left: auto; font-size: 29px; font-weight: 400; }
.net-label { margin: 0 0 9px; font-size: 12px; font-weight: 700; }
.net-value { margin: 0 0 30px; font-size: clamp(36px, 5vw, 66px); font-size: clamp(30px, 13cqi, 66px); font-weight: 800; line-height: 1.07; letter-spacing: -.065em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.composition { height: 8px; background: #a6bd50; overflow: hidden; }
.composition > span { display: block; width: 84.0336%; height: 100%; background: var(--ink); transition: width .15s ease; }
.breakdown { margin: 18px 0 27px; font-size: 13px; }
.breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0; }
.breakdown dt { line-height: 1.6; }
.breakdown dd { margin: 0; min-width: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.legend { display: inline-block; width: 7px; height: 7px; margin-right: 8px; }
.net-legend { background: var(--ink); }
.tax-legend { background: #a6bd50; border: 1px solid #718432; }
#rate-detail { margin-left: 5px; font-size: 11px; white-space: nowrap; }
.breakdown .total { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ink); }
.total dt { font-weight: 700; }
.total dd { font-size: 18px; }
.result-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-top: auto; }
.result-actions button { min-height: 46px; border: 1px solid var(--ink); border-radius: 3px; padding: 10px 12px; background: transparent; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.4; }
.result-actions button:first-child { background: var(--ink); color: var(--lime); }
.result-actions button:hover:not(:disabled) { background: #c6e454; }
.result-actions button:first-child:hover:not(:disabled) { background: #33372a; color: var(--lime); }
.result-actions button span { margin-left: 5px; }
.copy-status { min-height: 18px; margin: 9px 0 2px; text-align: center; font-size: 11px; line-height: 1.5; }
.result-note { margin: 7px 0 0; font-size: 11px; line-height: 1.6; }

/* Explanations and reference content */
.trust-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 20px 0 25px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.trust-row > span:first-child { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.formula { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink); }
.formula-heading { display: flex; align-items: center; gap: 15px; min-width: 0; }
.formula-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; font-size: 37px; font-weight: 800; }
.formula h2 { font-size: 15px; letter-spacing: -.3px; }
.formula-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.formula-expression { min-width: 0; text-align: right; }
.formula-expression p { margin: 0 0 7px; font-size: 13px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.formula-expression span { font-size: 12px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.knowledge { padding-top: 78px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.section-intro .eyebrow { margin-bottom: 12px; }
.section-intro > p { margin: 0; max-width: 340px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.knowledge-card { display: flex; flex-direction: column; min-width: 0; padding: 29px 26px; }
.knowledge-card:first-child { padding-left: 0; }
.knowledge-card:last-child { padding-right: 0; }
.knowledge-card + .knowledge-card { border-left: 1px solid var(--line); }
.card-number { font-size: 10px; font-weight: 700; letter-spacing: .9px; line-height: 1.6; }
.knowledge-card h3 { margin: 27px 0 16px; font-size: clamp(24px, 2.4vw, 30px); }
.knowledge-card p { margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.example-line { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding-top: 18px; margin: auto 0 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.example-line strong { font-weight: 700; }
.example-line > span { font-size: 11px; color: var(--muted); }
.text-link { display: inline-block; margin-top: auto; padding: 10px 0; font-size: 12px; font-weight: 700; line-height: 1.6; }
.seo-note { max-width: 860px; margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.reference-table { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; margin-top: 56px; padding: 33px 0; border-bottom: 1px solid var(--ink); }
.reference-table > * { min-width: 0; }
.reference-table .eyebrow { margin-bottom: 13px; }
.reference-table h2 { font-size: 30px; }
.reference-table p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.table-scroll { align-self: center; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
caption { padding: 12px 0; text-align: left; color: var(--muted); font-size: 12px; line-height: 1.6; white-space: normal; }
th, td { border-bottom: 1px solid var(--line); padding: 16px 12px; text-align: right; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-size: 11px; font-weight: 700; }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
.faq { display: grid; grid-template-columns: .8fr 1.3fr; gap: 65px; padding: 76px 0 54px; }
.faq > * { min-width: 0; }
.faq h2 { max-width: 310px; }
.faq > div > p:not(.eyebrow) { margin-top: 18px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.faq-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 21px 32px 21px 0; font-size: 14px; line-height: 1.6; font-weight: 700; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: 2px; top: 16px; content: '+'; font-size: 26px; font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { margin: 0 24px 24px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
details a { font-weight: 700; }
.notice { padding: 20px 23px; border-left: 3px solid var(--ink); background: #eaeae1; font-size: 13px; line-height: 1.75; color: var(--muted); }
.notice strong { color: var(--ink); font-weight: 700; }
.notice p { margin: 7px 0 0; }
.final-note { margin: 0 0 56px; }
.final-note p { font-size: 12px; }
.ad-slot { margin: 30px 0; }

/* Footer and static documents */
footer { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 31px 0 28px; border-top: 1px solid var(--ink); }
.footer-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-main .brand { font-size: 23px; letter-spacing: -.8px; }
.footer-main .brand-mark { width: 30px; height: 30px; }
.footer-main .brand-dot { width: 6px; height: 6px; margin-top: 13px; }
.footer-main p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; font-size: 11px; line-height: 1.5; }
footer nav a, .privacy-settings { display: inline-flex; align-items: center; min-height: 44px; }
.fine { grid-column: 1 / -1; margin: 0; font-size: 10px; line-height: 1.6; color: var(--muted); }
.document-heading { max-width: 950px; padding: 66px 0 34px; }
.document-heading h1 { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.06; letter-spacing: -.055em; }
.document-heading > p:last-child { max-width: 740px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.document { max-width: 800px; padding-bottom: 64px; }
.document h2 { margin: 38px 0 16px; font-size: 25px; letter-spacing: -.65px; line-height: 1.25; }
.document p, .document li, .document dd { font-size: 15px; line-height: 1.85; color: var(--muted); overflow-wrap: anywhere; }
.document ul, .document ol { padding-left: 22px; }
.document li { margin-bottom: 9px; }
.document .notice { margin-bottom: 30px; }
.document .notice p { font-size: 14px; }
.formula-list dt, .legal-fields dt { margin: 24px 0 6px; font-size: 15px; line-height: 1.5; font-weight: 700; }
.formula-list dd, .legal-fields dd { margin: 0; }
.button-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 24px; padding: 13px 20px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 3px; text-decoration: none; font-size: 13px; font-weight: 700; }
.button-link:hover { background: var(--lime); color: var(--ink); }

/* Optional analytics preferences, separate from the calculator. */
.privacy-settings { font: inherit; border: 0; padding: 0; background: none; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.privacy-panel { position: fixed; z-index: 20; bottom: 18px; right: 18px; width: min(470px, calc(100% - 36px)); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow-y: auto; overscroll-behavior: contain; padding: 25px; border: 2px solid var(--ink); border-radius: 4px; background: var(--surface); color: var(--ink); }
.privacy-panel h2 { font-size: 22px; letter-spacing: -.5px; line-height: 1.2; }
.privacy-panel p { margin: 14px 0; font-size: 13px; line-height: 1.65; }
.privacy-actions { display: flex; gap: 10px; }
.privacy-actions button { flex: 1; min-height: 48px; border: 1px solid var(--ink); border-radius: 2px; padding: 11px 10px; background: var(--surface); font-size: 12px; line-height: 1.5; font-weight: 700; }
.privacy-actions button:hover { background: var(--paper); }
.privacy-status { font-size: 10px !important; color: var(--muted); }
.privacy-status:empty { display: none; }
.skip { position: absolute; top: -120px; left: 20px; z-index: 30; padding: 14px 18px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip:focus { top: 10px; outline-color: var(--lime); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.preview-banner { border-bottom: 1px solid var(--ink); padding: 10px 20px; background: var(--paper); text-align: center; font-size: 12px; line-height: 1.5; }
.preview-banner span { padding: 0 6px; }

@media (max-width: 1050px) {
  .page { padding: 0 32px; }
  .intro { grid-template-columns: minmax(0, 1fr) 180px; gap: 30px; }
  .hero-note { padding-left: 23px; }
  .hero-note strong { font-size: 22px; }
  #calculator-form, .result { padding: 28px; }
  .rate-controls { gap: 8px; }
  .presets { gap: 6px; }
  .presets button { padding: 10px 9px; }
  .rate-wrap { width: 90px; }
  .result-actions { grid-template-columns: 1fr 1fr; }
  .result-actions button:first-child { grid-column: 1 / -1; }
  .knowledge-card { padding-left: 21px; padding-right: 21px; }
  .faq { gap: 40px; }
  .reference-table { gap: 32px; }
}
@media (max-width: 760px) {
  .page { padding: 0 22px; }
  header { min-height: 88px; padding: 17px 0; gap: 16px; flex-wrap: wrap; }
  .brand { font-size: 26px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-dot { margin-top: 14px; }
  header nav { gap: 18px; margin-left: auto; font-size: 12px; }
  header nav > a { display: none; }
  .language-switch { margin-left: 0; }
  .intro { grid-template-columns: 1fr; padding: 42px 0 24px; gap: 26px; }
  .eyebrow { margin-bottom: 19px; font-size: 9px; letter-spacing: 1.35px; }
  .intro h1.seo-heading { font-size: clamp(39px, 8.6vw, 65px); }
  h1 { font-size: 48px; }
  .intro-copy { max-width: 610px; font-size: 14px; line-height: 1.75; }
  .hero-note { display: none; }
  .task-links { gap: 4px 20px; margin-bottom: 25px; font-size: 11px; }
  .calculator { grid-template-columns: 1fr; }
  #calculator-form, .result { padding: 27px; }
  .result { border-left: 0; border-top: 1px solid var(--ink); border-radius: 0 0 3px 3px; }
  .section-heading { margin-bottom: 24px; }
  .result .section-heading { margin-bottom: 26px; }
  .net-value { font-size: clamp(38px, 9vw, 66px); font-size: clamp(32px, 13cqi, 66px); margin-bottom: 27px; }
  .result-actions { grid-template-columns: minmax(0, 1fr) auto auto; }
  .result-actions button:first-child { grid-column: auto; }
  .trust-row { justify-content: flex-start; gap: 10px 20px; padding: 19px 0 23px; }
  .trust-row > span:first-child { flex-basis: 100%; }
  .formula { flex-direction: column; align-items: flex-start; gap: 18px; padding: 23px 0; }
  .formula-expression { text-align: left; padding-left: 59px; }
  .formula-expression p { font-size: 12px; }
  .formula-expression span { font-size: 11px; }
  .knowledge { padding-top: 52px; }
  .section-intro { display: block; margin-bottom: 26px; }
  .section-intro > p { max-width: none; margin-top: 18px; }
  .section-intro > p br { display: none; }
  h2 { font-size: 32px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card, .knowledge-card:first-child, .knowledge-card:last-child { padding: 29px 0; }
  .knowledge-card + .knowledge-card { border-left: 0; border-top: 1px solid var(--line); }
  .knowledge-card h3 { margin: 19px 0 15px; font-size: 28px; }
  .knowledge-card h3 br { display: none; }
  .knowledge-card p { font-size: 14px; }
  .example-line { justify-content: flex-start; gap: 18px; font-size: 16px; }
  .reference-table { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; padding: 26px 0; }
  .reference-table h2 { font-size: 29px; }
  .reference-table h2 br { display: none; }
  .reference-table p:not(.eyebrow) { font-size: 13px; }
  th, td { padding: 14px 10px; }
  .faq { grid-template-columns: 1fr; gap: 24px; padding: 51px 0 37px; }
  .faq h2 { max-width: none; }
  .faq > div > p:not(.eyebrow) { margin-top: 15px; }
  details p { font-size: 14px; }
  .notice { padding: 18px; }
  .final-note { margin-bottom: 40px; }
  .footer-main { display: block; }
  .footer-main p { margin-top: 16px; }
  footer nav { gap: 5px 21px; }
  .document-heading { padding-top: 42px; }
  .document-heading h1 { font-size: clamp(37px, 8vw, 52px); }
  .document-heading > p:last-child { font-size: 14px; }
  .document h2 { font-size: 24px; }
  .document p, .document li, .document dd { font-size: 14px; }
}
@media (max-width: 400px) {
  .page { padding: 0 16px; }
  header { gap: 12px; }
  .brand { font-size: 23px; gap: 7px; letter-spacing: -1px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-dot { width: 6px; height: 6px; margin-left: -3px; }
  .language-switch a { min-width: 38px; padding: 9px; }
  .intro h1.seo-heading { font-size: 39px; }
  #calculator-form, .result { padding: 23px 20px; }
  .section-heading { gap: 9px; }
  .section-heading h2 { font-size: 15px; }
  .currency-row span { flex-basis: 100%; }
  .presets { gap: 5px; }
  .presets button { padding: 10px 8px; font-size: 13px; }
  .rate-wrap { width: 86px; }
  .result-actions { grid-template-columns: 1fr 1fr; }
  .result-actions button:first-child { grid-column: 1 / -1; }
  .formula-expression { padding-left: 0; }
  .total dd { font-size: 16px; }
  th, td { padding: 12px 7px; font-size: 12px; }
}
@media (max-width: 480px) {
  .privacy-panel { right: 10px; bottom: 10px; width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 20px; }
  .privacy-actions { flex-wrap: wrap; }
  .privacy-actions button { min-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root, body { color: #111; background: white; }
  .page { max-width: none; padding: 0; }
  header { min-height: 0; padding: 10px 0 18px; border-color: #555; }
  .preview-banner, header nav, .intro, .task-links, .knowledge, .faq, .reference-table,
  .final-note, .trust-row, .result-actions, .copy-status, .reset, .instant,
  .ad-slot, footer, .skip, .optional, .privacy-panel, .privacy-settings { display: none !important; }
  .calculator { grid-template-columns: 1fr 1fr; margin-top: 24px; border-color: #777; break-inside: avoid; }
  #calculator-form, .result { padding: 20px; }
  .result { background: white; color: #111; border-left: 1px solid #777; border-top: 0; }
  .result * { color: #111 !important; }
  .section-heading { margin-bottom: 20px; }
  .input-wrap input { height: 45px; border: 0; padding-left: 0; background: white; font-size: 23px; }
  .input-wrap input:focus { outline: 0; }
  .modes { display: block; border: 0; padding: 0; background: white; }
  .modes label:not(:has(input:checked)) { display: none; }
  .modes input:checked + span { justify-content: flex-start; min-height: 0; padding: 0; background: white; color: #111; }
  .presets { display: none; }
  .rate-wrap { width: 90px; }
  .rate-wrap > span { right: 24px; }
  .net-value { font-size: 33px; }
  .net-label, .breakdown, .result-note { font-size: 11px; }
  .composition { background: #ccc; }
  .composition > span, .net-legend { background: #222; }
  .tax-legend { background: #ccc; }
  .formula { margin-top: 20px; border-color: #777; break-inside: avoid; }
  .currency-row select { border: 0; padding-left: 0; }
  .hint, .error, .context-note { font-size: 10px; }
  .document-heading { padding-top: 30px; }
  .document-heading h1 { font-size: 40px; }
  .document { max-width: none; }
  .document h2 { break-after: avoid; }
  a { text-decoration: none; }
  .notice { background: white; border-color: #777; }
  details, tr { break-inside: avoid; }
}
