/* Easy Tax Prep — static site styles. Palette: slate header, paper page, signal red accent. */
:root {
  color-scheme: light;
  --paper: #faf8f4;
  --surface: #ffffff;
  --tint: #f3f0e9;
  --ink: #16191d;
  --muted: #4d535b;
  --fine: #5f656c;
  --line: #e2ddd3;
  --line-strong: #cfc8bb;
  --red: #b8322a;
  --red-deep: #962820;
  --slate: #1c2b2d;
  --slate-2: #273a3d;
  --on-dark: #f4f1ea;
  --on-dark-muted: #c3cbc9;
  --on-accent: #ffffff;
  --accent-on-dark: #e8867e;
  --mast-line: #5b6e71;
  --dark-line: #3c5154;
  --foot-bg: #142022;
  --foot-line: #2f4245;
  --sp-bg: #f6eed8;
  --sp-line: #e3d3a6;
  --sp-text: #6a4a00;
  --notice-bg: #fff4d6;
  --notice-line: #e3c36a;
  --focus: #1f5fbf;
  --font: "Libre Franklin", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;
  --r: 6px;
  --wrap: 72rem;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { color: var(--red-deep); text-decoration-color: currentColor; } }
button, input, select { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: 0; transform: translateY(-150%); background: var(--ink); color: var(--paper); padding: 0.6rem 0.9rem; z-index: 30; }
.skip:focus { transform: none; color: var(--paper); }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { :focus-visible { outline: 2px solid Highlight; } .btn, .chip, .slot { border: 1px solid ButtonText; } }

/* Header */
.masthead { background: var(--slate); color: var(--on-dark); position: relative; }
.mast-row { display: flex; align-items: center; gap: var(--s5); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--on-dark-hi, #fff); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; min-height: 44px; }
.brand img { width: 28px; height: 28px; display: block; }
.masthead a { color: var(--on-dark); }
@media (hover: hover) { .masthead a:hover { color: #fff; } }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--s5); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 0.97rem; border-bottom: 3px solid transparent; padding-top: 3px; }
.nav a[aria-current="page"] { border-bottom-color: #e8867e; color: #fff; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 var(--s4); background: transparent; color: var(--on-dark); border: 1px solid var(--mast-line); border-radius: var(--r); font-weight: 650; cursor: pointer; }
@media (max-width: 47.5rem) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .mast-row { flex-wrap: wrap; gap: 0 var(--s3); }
  .nav { margin-left: 0; width: 100%; border-top: 1px solid var(--dark-line); }
  .nav ul { flex-direction: column; gap: 0; padding: var(--s2) 0 var(--s3); }
  .nav a { width: 100%; border-bottom: 0; border-left: 3px solid transparent; padding-left: var(--s3); }
  .nav a[aria-current="page"] { border-left-color: #e8867e; }
  .js .nav:not(.open) { display: none; }
}

/* Not-a-government notice */
.gov-notice { background: var(--notice-bg); border-bottom: 2px solid var(--notice-line); color: #3d2f00; }
.gov-notice p { padding: 0.7rem 0; font-size: 0.94rem; line-height: 1.45; }
.gov-notice strong { font-weight: 800; }
.gov-notice a { color: #3d2f00; }

/* Buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s5); background: var(--red); color: var(--on-accent); border: 0; border-radius: var(--r); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-deep); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: var(--tint); color: var(--ink); }
.chip { display: inline-block; padding: 0.1rem 0.55rem; border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 0.82rem; font-weight: 600; color: var(--muted); background: var(--surface); }
.kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-deep); }

/* Typography */
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.06; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.dek { font-size: 1.2rem; color: var(--muted); max-width: 42rem; margin-top: var(--s4); }
.asof, .fine { font-size: 0.88rem; color: var(--fine); }
main { display: block; }
.section { padding: var(--s7) 0; }
.section + .section { border-top: 2px solid var(--ink); }
.section.band { background: var(--tint); border-top: 0; }
.section-head { margin-bottom: var(--s5); }
.section-head p { color: var(--muted); margin-top: var(--s2); max-width: 44rem; }
.prose { max-width: 46rem; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s7); padding-top: var(--s4); border-top: 2px solid var(--ink); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.3rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s2); }
.prose li::marker { color: var(--red-deep); }

/* Breadcrumb */
.crumbs { padding: var(--s4) 0 0; font-size: 0.9rem; color: var(--fine); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.1rem 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); }
@media (max-width: 47.5rem) { .crumbs a { min-height: 44px; } }

/* Page head */
.page-head { padding: var(--s6) 0 var(--s6); border-bottom: 2px solid var(--ink); }
.page-head .kicker { display: block; margin-bottom: var(--s3); }

/* Hero + search */
.hero { background: var(--surface); padding: var(--s7) 0 var(--s7); border-bottom: 2px solid var(--ink); }
.hero h1 { max-width: 16em; }
.search { margin-top: var(--s6); display: grid; grid-template-columns: 1fr 1fr auto; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); max-width: 52rem; }
.search .field { display: flex; flex-direction: column; padding: var(--s2) var(--s4); min-width: 0; }
.search .field + .field { border-left: 1px solid var(--line-strong); }
.search label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.search input, .search select { border: 0; background: transparent; padding: 0.35rem 0; min-height: 36px; width: 100%; font-size: 1.05rem; }
.search input::placeholder { color: #6b7076; }
.search .btn { border-radius: 0 3px 3px 0; padding: 0 var(--s6); }
@media (max-width: 47.5rem) {
  .search { grid-template-columns: 1fr; }
  .search .field + .field { border-left: 0; border-top: 1px solid var(--line-strong); }
  .search .btn { border-radius: 0 0 3px 3px; min-height: 48px; }
}
.search-result { margin-top: var(--s5); max-width: 52rem; }
.search-result:empty { display: none; }
.result-box { border: 1px solid var(--line-strong); border-left: 4px solid var(--ink); background: var(--paper); border-radius: var(--r); padding: var(--s4) var(--s5); }
.result-box > * + * { margin-top: var(--s3); }
.result-box ul { list-style: disc; padding-left: 1.2rem; }
.result-box li + li { margin-top: 0.35rem; }
.pop { margin-top: var(--s4); font-size: 0.95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.25rem var(--s4); align-items: center; }
.pop a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 47.5rem) { .pop a { min-height: 44px; } }

/* Category browse (rows and rules) */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.cat { padding: var(--s4) var(--s4) var(--s5) 0; border-bottom: 1px solid var(--line); }
.cat h3 { font-size: 1.05rem; }
.cat h3 a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.cat p { color: var(--muted); font-size: 0.95rem; margin-top: var(--s2); }
.cat .kicker { display: block; margin-bottom: var(--s2); }
@media (max-width: 62rem) { .cats { grid-template-columns: repeat(2, 1fr); } .cat { padding-right: var(--s4); } }
@media (max-width: 40rem) { .cats { grid-template-columns: 1fr; } .cat h3 a { min-height: 44px; } }

/* Rows */
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 3rem 1fr auto; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); align-items: start; }
.row .num { font-weight: 800; font-size: 1.3rem; color: var(--red-deep); font-variant-numeric: tabular-nums; }
.row h3 a { text-decoration: none; }
.row .meta { color: var(--fine); font-size: 0.9rem; margin-top: var(--s1); }
.row p { margin-top: var(--s2); color: var(--muted); max-width: 40rem; }
.row .tags { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }
.row .go { display: flex; flex-direction: column; gap: var(--s2); align-items: stretch; min-width: 11rem; }
@media (max-width: 47.5rem) {
  .row { grid-template-columns: 2rem 1fr; }
  .row .go { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
}
.row.hidden { display: none; }

/* Placeholder / sponsored slots */
.slot { border: 1px dashed var(--line-strong); background: var(--sp-bg); border-left: 4px solid #b8892a; border-radius: var(--r); padding: var(--s4) var(--s5); color: var(--sp-text); }
.slot .slot-label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sp-text); }
.slot p { margin-top: var(--s2); color: #4a3500; font-size: 0.96rem; }
.slot a { color: #4a3500; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s4); }
.ad-slot { border: 1px dashed var(--line-strong); background: var(--tint); border-radius: var(--r); padding: var(--s4); text-align: center; color: var(--fine); font-size: 0.9rem; min-height: 5.5rem; display: flex; flex-direction: column; justify-content: center; }
.ad-slot strong { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Callouts */
.callout { border-left: 4px solid var(--red); background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s5); }
.callout > * + * { margin-top: var(--s2); }
.callout h3, .callout h2 { font-size: 1.05rem; }
.crosslink { background: var(--slate); color: var(--on-dark); padding: var(--s5) 0; }
.crosslink p { max-width: 50rem; }
.crosslink a { color: #fff; font-weight: 650; }
.crosslink .kicker { color: var(--accent-on-dark); display: block; margin-bottom: var(--s2); }

/* Layout with aside */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--s7); align-items: start; }
.aside > * + * { margin-top: var(--s4); }
.aside .box { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.aside .box h2 { font-size: 1rem; }
.aside .box ul { margin-top: var(--s2); }
.aside .box li a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 62rem) { .two { grid-template-columns: 1fr; } }
@media (max-width: 47.5rem) { .aside .box li a { min-height: 44px; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; padding: var(--s3) var(--s4); font-weight: 700; }
th, td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
thead th { background: var(--tint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tbody th { font-weight: 700; }

/* Checklist */
.check { border-top: 2px solid var(--ink); }
.check li { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.check li::before { content: ""; width: 1.05rem; height: 1.05rem; margin-top: 0.3rem; border: 2px solid var(--ink); border-radius: 3px; }
.prose .check { list-style: none; padding-left: 0; }
.prose .check li + li { margin-top: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin-top: var(--s2); color: var(--muted); }
.faq { border-top: 2px solid var(--ink); }

/* Filter bar */
.filter { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; margin-bottom: var(--s5); }
.filter label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.filter input { min-height: 44px; border: 2px solid var(--ink); border-radius: var(--r); padding: 0 var(--s3); background: var(--surface); width: min(100%, 22rem); }
.filter-status { color: var(--fine); font-size: 0.9rem; min-height: 1.4em; }
html:not(.js) .js-only { display: none; }

/* Footer */
.foot { background: var(--foot-bg); color: var(--on-dark-muted); margin-top: var(--s8); padding: var(--s7) 0 var(--s6); font-size: 0.95rem; }
.foot a { color: var(--on-dark); }
@media (hover: hover) { .foot a:hover { color: #fff; } }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.foot h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-on-dark); font-weight: 700; margin-bottom: var(--s2); }
.foot .brand { margin-bottom: var(--s3); }
.foot li a { display: inline-flex; align-items: center; min-height: 32px; }
.foot .gov-foot { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--foot-line); color: var(--on-dark); }
.foot .small { margin-top: var(--s3); font-size: 0.85rem; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
@media (max-width: 47.5rem) { .foot-grid { grid-template-columns: 1fr; } .foot li a, .foot .small a { min-height: 44px; } }
.h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
