:root { color-scheme: light; --bg: #F7F8F2; --surface: #FFFFFF; --surface-2: #EEF0E4; --ink: #191E12; --ink-2: #4C5444; --muted: #4C5444; --line: #D8DCCB; --field: #7A8270; --brand: #4A5C19; --brand-strong: #374510; --brand-soft: #E9EDDA; --brand-ink: #FFFFFF; --panel: #F3F5EC; --panel-ink: #191E12; --panel-muted: #4C5444; --panel-line: #D8DCCB; --accent: #0D5A87; --good: #2F6B2A; --good-soft: #E6F1E1; --warn: #8A4600; --warn-soft: #FBF0DF; --bad: #A32A23; --bad-soft: #FBEBE8; --focus: #4A5C19; --foot-bg: #1B2113; --foot-ink: #FFFFFF; --foot-muted: #C4C5C2; }
/* adjustedgrossincomecalculator.com. Phone-first, light only. Colors come from brand/tokens.json (written above this line by the build). */
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin.woff2) format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-variant-numeric: normal; background: var(--bg); color: var(--ink); font: 400 1rem/1.62 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: 14px; }
h3 { font-size: 1.1rem; margin: 18px 0 6px; }
p { margin: 0 0 1em; } a { color: var(--brand); text-underline-offset: 2px; } a:hover { color: var(--brand-strong); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; } li { margin-bottom: .45em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 60; background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(247, 248, 242, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-head .wrap { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; min-width: 0; }
.brand picture { display: block; line-height: 0; } .brand .logo { display: block; height: 42px; width: auto; margin-left: -7px; }
.nav { display: none; gap: 2px; margin-left: auto; } .nav a { color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .95rem; padding: 10px 12px; border-radius: 10px; } .nav a:hover, .nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.menu { position: relative; margin-left: auto; } .menu summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; list-style: none; color: var(--ink); } .menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(330px, calc(100vw - 32px)); max-height: calc(100dvh - 90px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 14px 36px rgba(25, 30, 18, .18); }
.menu-panel p { margin: 8px 8px 4px; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 6px 8px; color: var(--ink); text-decoration: none; border-radius: 8px; } .menu-panel a:hover { background: var(--surface-2); }
@media (min-width: 1000px) { .nav { display: flex; } .menu { margin-left: 4px; } }
/* Hero */
.hero { padding: 18px 0 26px; background: linear-gradient(var(--surface-2), var(--bg)); }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--muted); }
.eyebrow { display: block; color: var(--brand); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.lead { font-size: 1.12rem; color: var(--ink-2); margin: 12px 0 0; max-width: 70ch; }
.points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; } .points li { position: relative; padding-left: 24px; margin: 0; color: var(--ink-2); font-weight: 550; } .points li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); margin: 14px 0 0; } .meta span { white-space: nowrap; }
.hero-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (max-width: 559.98px) { .hero-grid.tool .points { display: none; } .hero-grid.tool .lead { font-size: 1.02rem; } }
@media (min-width: 1000px) { .hero-grid.tool { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } .hero-grid.tool .hero-copy { position: sticky; top: 86px; } }
/* Tool */
.tool { display: grid; gap: 12px; min-width: 0; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 10px 28px rgba(25, 30, 18, .07); display: grid; gap: 10px; min-width: 0; }
.calc-in { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .calc-in, .more-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .calc-in .check, .more-in .check { grid-column: 1 / -1; } }
.field { display: block; min-width: 0; } .lab { display: block; font-size: .86rem; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.inp { display: flex; align-items: center; min-height: 48px; background: var(--surface); border: 1.5px solid var(--field); border-radius: 12px; padding: 0 12px; gap: 6px; } .inp:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.inp i { font-style: normal; font-weight: 700; color: var(--muted); } .inp input, .inp select { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 650 1.04rem "IBM Plex Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; min-height: 44px; padding: 0; } .inp select { font-weight: 550; font-size: .98rem; }
.inp input::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
.help { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; font-size: .95rem; } .check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.more { border: 1px solid var(--line); border-radius: 12px; } .more summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 12px; font-weight: 700; cursor: pointer; list-style: none; color: var(--brand); } .more summary::-webkit-details-marker { display: none; } .more summary .cnt { margin-left: auto; margin-right: 10px; font-size: .82rem; font-weight: 600; color: var(--muted); } .more[open] .chev { transform: rotate(180deg); } .more-in { display: grid; gap: 10px; padding: 4px 12px 14px; }
.err { margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--bad-soft); border-left: 4px solid var(--bad); font-size: .92rem; }
.result { background: var(--panel); color: var(--panel-ink); border: 1px solid var(--panel-line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; } .tile { min-width: 0; } .tile.big { grid-column: 1 / -1; }
.tile .k { display: block; font-size: .84rem; color: var(--panel-muted); line-height: 1.3; } .tile .v { display: block; font-size: 1.32rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .tile.big .v { font-size: clamp(2.1rem, 1.6rem + 2vw, 2.8rem); color: var(--accent); }
.sumline { margin: 0; font-size: .88rem; color: var(--panel-muted); }
.note { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: .92rem; line-height: 1.45; background: var(--surface); color: var(--ink); border-left: 4px solid var(--line); } .note.good { background: var(--good-soft); border-color: var(--good); } .note.warn { background: var(--warn-soft); border-color: var(--warn); } .note.bad { background: var(--bad-soft); border-color: var(--bad); } .note.info { border-color: var(--field); } .note.hint { background: transparent; color: var(--panel-muted); border: 0; padding: 0; font-size: .86rem; }
.lines summary { cursor: pointer; font-weight: 700; color: var(--brand); min-height: 44px; display: flex; align-items: center; } .lines .rtable { margin-top: 8px; }
/* Tables: cards on phones, grids when there is room */
.rtable { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 1em; } .result .rtable { margin: 0; }
.rtable table { width: 100%; border-collapse: collapse; font-size: .95rem; } .rtable caption { text-align: left; font-weight: 700; padding: 10px 12px; background: var(--surface-2); font-size: .92rem; }
.rtable thead { display: none; } .rtable tr { display: block; padding: 10px 12px; border-top: 1px solid var(--line); } .rtable tbody th { display: block; text-align: left; font-weight: 700; margin-bottom: 4px; } .rtable td { font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; text-align: right; font-variant-numeric: tabular-nums; } .rtable td::before { content: attr(data-l); color: var(--muted); text-align: left; font-size: .86rem; flex: 0 0 44%; }
@media (min-width: 720px) {
  .rtable.chart thead, .rtable.magi thead { display: table-header-group; } .rtable.chart tr, .rtable.magi tr { display: table-row; padding: 0; }
  .rtable.chart th, .rtable.chart td, .rtable.magi th, .rtable.magi td { display: table-cell; padding: 9px 12px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; } .rtable.chart td::before, .rtable.magi td::before { content: none; }
  .rtable.chart thead th, .rtable.magi thead th { background: var(--surface-2); border-top: 0; font-size: .85rem; color: var(--ink-2); }
}
.rtable.cases td { font-size: .86rem; } .nc { color: var(--warn); font-weight: 650; }
/* Content */
.layout { display: grid; gap: 28px; padding: 30px 0 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr) 280px; } .aside { position: sticky; top: 86px; align-self: start; } }
.content { min-width: 0; max-width: 78ch; } .content section { margin-bottom: 34px; }
.toc, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; } .toc p, .panel-title { font-weight: 600; margin: 0 0 8px; } .toc ol { margin: 0; padding-left: 1.2em; font-size: .94rem; } .aside { display: grid; gap: 14px; }
.panel dl { margin: 0; display: grid; gap: 10px; } .panel dt { font-size: .82rem; color: var(--muted); } .panel dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.callout { border-radius: 14px; padding: 12px 16px; margin: 0 0 1em; background: var(--brand-soft); border-left: 4px solid var(--brand); } .callout.notlaw { background: var(--warn-soft); border-color: var(--warn); }
.worked { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 4px; background: var(--surface); margin: 0 0 1em; } .worked-h { font-weight: 600; color: var(--brand); margin-bottom: 6px; }
.faq h3 { font-size: 1.05rem; } .sources { font-size: .9rem; color: var(--ink-2); } .sources li { overflow-wrap: anywhere; }
.related { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); padding: 0; list-style: none; } @media (min-width: 640px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; } .related a span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; } .related a:hover { border-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: 650 .95rem "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; text-decoration: none; margin: 0 6px 6px 0; } .btn.ghost { background: transparent; color: var(--brand); } .btn:hover { background: var(--brand-strong); color: var(--brand-ink); }
pre.code { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); padding: 12px; border-radius: 10px; font-size: .85rem; }
.disclaimer { font-size: .88rem; color: var(--muted); }
/* Footer */
.site-foot { background: var(--foot-bg); color: var(--foot-muted); padding: 34px 0 26px; margin-top: 20px; font-size: .92rem; } .site-foot a { color: var(--foot-ink); } .site-foot h2 { color: var(--foot-ink); font-size: .95rem; margin: 0 0 8px; }
.foot-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); } @media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; } .foot-grid li { margin: 0; } .foot-grid li a { display: inline-flex; min-height: 34px; align-items: center; }
.fine { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 22px; padding-top: 16px; } .foot-logo { margin: 0 0 6px; line-height: 0; } .foot-logo img { height: 44px; width: auto; margin-left: -8px; } .foot-name { color: var(--foot-ink); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
/* Embed */
.embed-body { background: var(--surface); } .embed-body main { padding: 12px; } .credit { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
@media print { .site-head, .site-foot, .ad-slot, .aside, .print-actions, .calc, .related, .toc { display: none !important; } body { background: #fff; } .rtable.chart thead { display: table-header-group; } .rtable.chart tr { display: table-row; } .rtable.chart th, .rtable.chart td { display: table-cell; padding: 4px 8px; border-top: 1px solid #ccc; } .rtable.chart td::before { content: none; } }


/* AdSense units (adsense-unit.mjs): space reserved, labelled, collapsed when unfilled or off */
.ad-slot { display: block; position: relative; clear: both; min-height: 280px; margin: 40px auto 32px; padding-top: 4px; box-sizing: border-box; grid-column: 1 / -1; flex-basis: 100%; max-width: 100%; contain: layout; }
.ad-slot::before { content: "Advertisement"; position: absolute; top: -20px; left: 0; font-size: .72rem; line-height: 1.4; color: #6b6b6b; letter-spacing: .02em; }
main > .ad-slot { width: min(1100px, calc(100% - 32px)); }
@media (min-width: 900px) { .ad-slot { min-height: 250px; } }
.ads-off .ad-slot, .ad-slot:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
@media print { .ad-slot { display: none !important; } }
