/*
 * Refund estimator and W-4 withholding calculator, and the sections of their tax_tool pages.
 * Layout from the R2 wireframes (Tax Refund Calculator Page / W-4 Calculator Page).
 *
 * Every selector is prefixed with .efile-tool… and most are doubled up with an ancestor,
 * because overlay.css has broad, high-specificity rules for p, a, img and form controls
 * inside .entry-content / main. Loaded only on pages that render one of these tools.
 */

html:not(#efile-tools) .efile-tool, html:not(#efile-tools) .efile-tool-pagesec {
  --t-navy: #22304A;
  --t-navy-2: #2A3D5C;
  --t-ink: #22304A;
  --t-body: #37474F;
  --t-muted: #5D6F7F;
  --t-line: #8A99A6;
  --t-line-soft: #DDE3E8;
  --t-canvas: #F5F7F9;
  --t-orange: #E8603C;
  --t-orange-hover: #D14F2C;
  --t-radius: 16px;
  --t-shadow: 0 2px 6px rgba(15, 25, 45, 0.16);
}

/* ---------- Section wrapper: full-bleed tinted band, 1280px content ---------- */
html:not(#efile-tools) .efile-tool-section.efile-tool-section {
  width: 100vw; max-width: none;
  margin: 0 calc(50% - 50vw); padding: 56px 24px 72px;
  background: #F5F7F9; box-sizing: border-box;
}
html:not(#efile-tools) .efile-tool-section > * { max-width: 1280px; margin-left: auto !important; margin-right: auto !important; }

html:not(#efile-tools) .efile-tool { color: var(--t-body); font-size: 15px; line-height: 1.6; }
html:not(#efile-tools) .efile-tool *, html:not(#efile-tools) .efile-tool *::before, html:not(#efile-tools) .efile-tool *::after { box-sizing: border-box; }
html:not(#efile-tools) .efile-tool-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 36px; align-items: start;
}
html:not(#efile-tools) .efile-tool-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 40px; }

/* ---------- The form card ---------- */
html:not(#efile-tools) .efile-tool .efile-tool-form {
  background: #fff; border-radius: var(--t-radius); box-shadow: var(--t-shadow);
  padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 28px; margin: 0;
}
html:not(#efile-tools) .efile-tool .efile-tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
html:not(#efile-tools) .efile-tool .efile-tool-q { display: flex; flex-direction: column; margin: 0; min-width: 0; }
html:not(#efile-tools) .efile-tool fieldset.efile-tool-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
html:not(#efile-tools) .efile-tool .efile-tool-label,
html:not(#efile-tools) .efile-tool legend.efile-tool-label {
  display: block; font-size: 17px; font-weight: 700; line-height: 1.35;
  color: var(--t-ink); margin: 0 0 8px; padding: 0; text-transform: none; letter-spacing: 0;
}
html:not(#efile-tools) .efile-tool p.efile-tool-help {
  font-size: 15px; line-height: 1.6; color: var(--t-body); margin: 0 0 14px; max-width: none;
}
html:not(#efile-tools) .efile-tool p.efile-tool-help a, html:not(#efile-tools) .efile-tool p.efile-tool-foot a, html:not(#efile-tools) .efile-tool p.efile-tool-note a {
  color: var(--t-ink); text-decoration: underline; text-underline-offset: 2px;
}

/* Money inputs */
html:not(#efile-tools) .efile-tool .efile-tool-money { position: relative; display: flex; align-items: center; margin-top: auto; }
html:not(#efile-tools) .efile-tool .efile-tool-money-prefix {
  position: absolute; left: 12px; font-size: 15px; font-weight: 600; color: var(--t-ink); pointer-events: none;
}
html:not(#efile-tools) .efile-tool .efile-tool-money-suffix {
  position: absolute; right: 14px; font-size: 15px; color: var(--t-body); pointer-events: none;
}
html:not(#efile-tools) .efile-tool .efile-tool-money input,
html:not(#efile-tools) .efile-tool input.efile-tool-date {
  width: 100%; max-width: 100%; height: 40px; margin: 0;
  border: 1px solid var(--t-line); border-radius: 6px; background: #fff;
  padding: 6px 12px 6px 30px; font: inherit; font-size: 15px; color: var(--t-ink);
  font-variant-numeric: tabular-nums; box-shadow: none;
}
html:not(#efile-tools) .efile-tool input.efile-tool-date { padding-left: 12px; margin-top: auto; }
html:not(#efile-tools) .efile-tool .efile-tool-money input:focus,
html:not(#efile-tools) .efile-tool input.efile-tool-date:focus,
html:not(#efile-tools) .efile-tool .efile-tool-stepper input:focus {
  outline: none; border-color: var(--t-navy); box-shadow: 0 0 0 3px rgba(232, 96, 60, 0.22);
}

/* Radio cards */
html:not(#efile-tools) .efile-tool .efile-tool-choices { display: grid; gap: 18px 36px; }
html:not(#efile-tools) .efile-tool .efile-tool-choices-2 { grid-template-columns: 1fr 1fr; }
html:not(#efile-tools) .efile-tool .efile-tool-choices-3 { grid-template-columns: repeat(3, 1fr); gap: 30px; }
html:not(#efile-tools) .efile-tool .efile-tool-choice { position: relative; display: block; margin: 0; cursor: pointer; }
html:not(#efile-tools) .efile-tool .efile-tool-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
html:not(#efile-tools) .efile-tool .efile-tool-choice span {
  display: flex; align-items: center; min-height: 38px; height: 100%;
  padding: 8px 14px 8px 40px; border: 1px solid var(--t-line); border-radius: 6px;
  font-size: 15px; color: var(--t-ink); line-height: 1.5; position: relative; background: #fff;
}
html:not(#efile-tools) .efile-tool .efile-tool-choices-3 .efile-tool-choice span { min-height: 104px; padding-left: 52px; }
html:not(#efile-tools) .efile-tool .efile-tool-choice span::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border: 1px solid var(--t-line); border-radius: 50%; background: #fff;
}
html:not(#efile-tools) .efile-tool .efile-tool-choices-3 .efile-tool-choice span::before { left: 18px; }
html:not(#efile-tools) .efile-tool .efile-tool-choice input:checked + span { border-color: var(--t-navy); box-shadow: inset 0 0 0 1px var(--t-navy); }
html:not(#efile-tools) .efile-tool .efile-tool-choice input:checked + span::before { border: 4px solid var(--t-navy); }
html:not(#efile-tools) .efile-tool .efile-tool-choice input:focus-visible + span { outline: 3px solid rgba(232, 96, 60, 0.45); outline-offset: 2px; }

/* Segmented control (pay frequency) */
html:not(#efile-tools) .efile-tool .efile-tool-seg { display: flex; gap: 4px; background: #F2F2F2; border-radius: 10px; padding: 8px; }
html:not(#efile-tools) .efile-tool .efile-tool-seg .efile-tool-choice { flex: 1 1 0; }
html:not(#efile-tools) .efile-tool .efile-tool-seg .efile-tool-choice span {
  justify-content: center; text-align: center; padding: 8px 6px; min-height: 42px;
  border: 0; background: transparent; border-radius: 8px; font-size: 15px;
}
html:not(#efile-tools) .efile-tool .efile-tool-seg .efile-tool-choice span::before { display: none; }
html:not(#efile-tools) .efile-tool .efile-tool-seg .efile-tool-choice input:checked + span {
  background: var(--t-navy); color: #fff; font-weight: 700; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Per year / per paycheck toggle */
html:not(#efile-tools) .efile-tool .efile-tool-label-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
html:not(#efile-tools) .efile-tool .efile-tool-toggle { display: inline-flex; background: #F2F2F2; border-radius: 999px; margin-bottom: 8px; }
html:not(#efile-tools) .efile-tool .efile-tool-toggle label { margin: 0; cursor: pointer; position: relative; }
html:not(#efile-tools) .efile-tool .efile-tool-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
html:not(#efile-tools) .efile-tool .efile-tool-toggle span { display: block; padding: 4px 26px; border-radius: 999px; font-size: 15px; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool .efile-tool-toggle input:checked + span { background: var(--t-navy); color: #fff; }
html:not(#efile-tools) .efile-tool .efile-tool-toggle input:focus-visible + span { outline: 3px solid rgba(232, 96, 60, 0.45); }

/* Checkboxes (65 or older) */
html:not(#efile-tools) .efile-tool .efile-tool-checks { display: flex; flex-wrap: wrap; gap: 12px; }
html:not(#efile-tools) .efile-tool .efile-tool-check {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer;
  border: 1px solid var(--t-line); border-radius: 6px; padding: 6px 10px 6px 8px; font-size: 15px; color: var(--t-ink);
}
html:not(#efile-tools) .efile-tool .efile-tool-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--t-navy); }
html:not(#efile-tools) .efile-tool .efile-tool-check[hidden] { display: none; }

/* − 0 + stepper */
html:not(#efile-tools) .efile-tool .efile-tool-stepper {
  display: inline-flex; align-items: center; margin-top: auto; align-self: flex-start;
  border: 1px solid var(--t-line); border-radius: 6px; height: 36px; background: #fff;
}
html:not(#efile-tools) .efile-tool .efile-tool-stepper button {
  width: 36px; height: 34px; border: 0; background: transparent; cursor: pointer; padding: 0;
  font-size: 20px; font-weight: 700; color: var(--t-ink); line-height: 1;
}
html:not(#efile-tools) .efile-tool .efile-tool-stepper button:focus-visible { outline: 3px solid rgba(232, 96, 60, 0.45); border-radius: 6px; }
html:not(#efile-tools) .efile-tool .efile-tool-stepper input {
  width: 32px; height: 34px; border: 0; padding: 0; margin: 0; text-align: center; background: transparent;
  font: inherit; font-size: 15px; color: var(--t-ink); -moz-appearance: textfield; box-shadow: none;
}
html:not(#efile-tools) .efile-tool .efile-tool-stepper input::-webkit-outer-spin-button,
html:not(#efile-tools) .efile-tool .efile-tool-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Collapsible groups with a navy head */
html:not(#efile-tools) .efile-tool .efile-tool-group { border-radius: 12px; box-shadow: var(--t-shadow); overflow: hidden; background: #fff; }
html:not(#efile-tools) .efile-tool .efile-tool-group-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--t-navy); color: #fff; padding: 22px 26px 22px 18px;
}
html:not(#efile-tools) .efile-tool p.efile-tool-group-title { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: #fff; }
html:not(#efile-tools) .efile-tool p.efile-tool-group-sub { margin: 0; font-size: 14px; color: #fff; line-height: 1.5; }
html:not(#efile-tools) .efile-tool .efile-tool-group-toggle {
  background: transparent; border: 0; color: #fff; font: inherit; font-size: 15px; cursor: pointer;
  padding: 6px 4px; flex: none;
}
html:not(#efile-tools) .efile-tool .efile-tool-group-toggle:hover { text-decoration: underline; }
html:not(#efile-tools) .efile-tool .efile-tool-group-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html:not(#efile-tools) .efile-tool .efile-tool-group-body { padding: 26px 18px 30px; display: flex; flex-direction: column; gap: 24px; }
html:not(#efile-tools) .efile-tool .efile-tool-group-body[hidden] { display: none; }

/* W-4 step headings */
html:not(#efile-tools) .efile-tool p.efile-tool-step {
  display: flex; align-items: center; gap: 12px; margin: 0 0 -12px;
  font-size: 28px; font-weight: 600; color: var(--t-ink); line-height: 1.2;
}
html:not(#efile-tools) .efile-tool .efile-tool-step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; background: var(--t-orange); color: #fff;
  font-size: 22px; font-weight: 700;
}
html:not(#efile-tools) .efile-tool hr.efile-tool-rule { border: 0; border-top: 1px solid #9AA6B2; margin: 4px 0 0; width: 100%; }

/* W-4 deductions worksheet */
html:not(#efile-tools) .efile-tool .efile-tool-linkbtn {
  background: none; border: 0; padding: 0; margin: 14px 0 0; cursor: pointer; align-self: flex-start;
  font: inherit; font-size: 14px; color: var(--t-ink); text-decoration: underline; text-underline-offset: 2px;
}
html:not(#efile-tools) .efile-tool .efile-tool-worksheet { background: #F2F2F2; border-radius: 16px; padding: 28px 18px 22px; display: flex; flex-direction: column; gap: 20px; }
html:not(#efile-tools) .efile-tool .efile-tool-worksheet[hidden] { display: none; }
html:not(#efile-tools) .efile-tool p.efile-tool-worksheet-title { margin: 0 0 -14px; font-size: 17px; font-weight: 700; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool .efile-tool-worksheet-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid #C9CFD5; padding-top: 18px;
}
html:not(#efile-tools) .efile-tool .efile-tool-worksheet-foot p { margin: 0; font-size: 16px; font-weight: 700; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool .efile-tool-btn {
  background: var(--t-navy); color: #fff; border: 0; border-radius: 2px; padding: 14px 24px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
html:not(#efile-tools) .efile-tool .efile-tool-btn:hover { background: var(--t-navy-2); }

/* Small print in the form */
html:not(#efile-tools) .efile-tool p.efile-tool-error { margin: 8px 0 0; font-size: 14px; color: #B42318; font-weight: 600; }
html:not(#efile-tools) .efile-tool p.efile-tool-note { margin: 0; font-size: 14px; color: var(--t-body); line-height: 1.55; }
html:not(#efile-tools) .efile-tool p.efile-tool-privacy { margin: 0; font-size: 14px; color: var(--t-muted); }
html:not(#efile-tools) .efile-tool p.efile-tool-foot { margin: 0; font-size: 15px; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool p.efile-tool-aside-note { margin: -12px 0 0; }
html:not(#efile-tools) .efile-tool [hidden] { display: none !important; }
html:not(#efile-tools) .efile-tool .efile-tool-slot:empty { display: none; }

/* ---------- Result: the navy summary card ---------- */
html:not(#efile-tools) .efile-tool .efile-tool-summary {
  background: var(--t-navy); color: #fff; border-radius: var(--t-radius);
  padding: 34px 32px 30px; box-shadow: var(--t-shadow); display: flex; flex-direction: column; gap: 16px;
}
html:not(#efile-tools) .efile-tool .efile-tool-summary p { color: #fff; margin: 0; }
html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-summary-empty { font-size: 30px; line-height: 1.15; font-weight: 400; }
html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-summary-eye { font-size: 16px; font-weight: 700; }
html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-summary-amount {
  font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-summary-prompt { font-size: 15px; color: #EAF1F7; }
html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-disclaimer { font-size: 13px; line-height: 1.5; color: #EAF1F7; }
html:not(#efile-tools) .efile-tool .efile-tool-w4 .efile-tool-summary p.efile-tool-disclaimer { text-align: center; font-size: 12px; }
html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-year { font-size: 13px; color: #BCD0E2; }
html:not(#efile-tools) .efile-tool .efile-tool-summary a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
html:not(#efile-tools) .efile-tool .efile-tool-summary a:hover { color: #BCD0E2; }
html:not(#efile-tools) .efile-tool .efile-tool-summary a.efile-tool-cta {
  display: block; text-align: center; background: var(--t-orange); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 12px 18px; border-radius: 4px; margin-top: 6px;
}
html:not(#efile-tools) .efile-tool .efile-tool-summary a.efile-tool-cta:hover { background: var(--t-orange-hover); color: #fff; }
html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-cross { font-size: 15px; line-height: 1.6; }
html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 15px; }

html:not(#efile-tools) .efile-tool dl.efile-tool-summary-lines { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.5); padding-top: 14px; }
html:not(#efile-tools) .efile-tool dl.efile-tool-summary-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
html:not(#efile-tools) .efile-tool dl.efile-tool-summary-lines dt, html:not(#efile-tools) .efile-tool dl.efile-tool-summary-lines dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
html:not(#efile-tools) .efile-tool dl.efile-tool-summary-lines > div.is-total { font-size: 18px; font-weight: 700; }

/* Refund / paycheck slider */
html:not(#efile-tools) .efile-tool .efile-tool-slider { background: #fff; color: var(--t-ink); border-radius: 12px; padding: 16px 16px 12px; box-shadow: var(--t-shadow); }
html:not(#efile-tools) .efile-tool .efile-tool-slider-head { display: flex; justify-content: space-between; font-size: 15px; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool .efile-tool-slider-head label { margin: 0; font-weight: 400; }
html:not(#efile-tools) .efile-tool .efile-tool-slider input[type="range"] { width: 100%; margin: 12px 0 6px; accent-color: var(--t-orange); }
html:not(#efile-tools) .efile-tool .efile-tool-slider-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--t-ink); }

/* ---------- Result: white cards (breakdown, the W-4 lines) ---------- */
html:not(#efile-tools) .efile-tool .efile-tool-card {
  background: #fff; border-radius: var(--t-radius); box-shadow: var(--t-shadow); padding: 32px;
}
html:not(#efile-tools) .efile-tool .efile-tool-card-title,
html:not(#efile-tools) .efile-tool details.efile-tool-breakdown > summary {
  font-size: 17px; font-weight: 700; color: var(--t-ink); margin: 0 0 16px; list-style: none;
}
html:not(#efile-tools) .efile-tool details.efile-tool-breakdown > summary { cursor: pointer; position: relative; padding-right: 24px; }
html:not(#efile-tools) .efile-tool details.efile-tool-breakdown > summary::-webkit-details-marker { display: none; }
html:not(#efile-tools) .efile-tool details.efile-tool-breakdown > summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 20px; font-weight: 400; }
html:not(#efile-tools) .efile-tool details.efile-tool-breakdown[open] > summary::after { content: "−"; }
html:not(#efile-tools) .efile-tool p.efile-tool-card-sub { font-size: 15px; font-weight: 700; color: var(--t-ink); margin: 22px 0 8px; }

html:not(#efile-tools) .efile-tool table.efile-tool-lines { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; border: 0; }
html:not(#efile-tools) .efile-tool table.efile-tool-lines th,
html:not(#efile-tools) .efile-tool table.efile-tool-lines td {
  padding: 8px 0; border: 0; background: none; color: var(--t-body); font-weight: 400; text-align: left; vertical-align: top;
}
html:not(#efile-tools) .efile-tool table.efile-tool-lines td { text-align: right; padding-left: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool table.efile-tool-lines tr.is-sum th,
html:not(#efile-tools) .efile-tool table.efile-tool-lines tr.is-sum td { font-weight: 700; color: var(--t-ink); border-top: 1px solid var(--t-line); padding-top: 14px; }
html:not(#efile-tools) .efile-tool table.efile-tool-compare { font-size: 14px; }
html:not(#efile-tools) .efile-tool table.efile-tool-compare thead th { font-size: 12px; font-weight: 700; color: var(--t-muted); text-align: right; border-bottom: 1px solid var(--t-line-soft); }
html:not(#efile-tools) .efile-tool table.efile-tool-compare thead th:first-child { text-align: left; }
html:not(#efile-tools) .efile-tool table.efile-tool-compare tbody th { padding-right: 8px; }
html:not(#efile-tools) .efile-tool .efile-tool-total { border-top: 1px solid var(--t-line); margin-top: 18px; padding-top: 26px; }
html:not(#efile-tools) .efile-tool .efile-tool-total span { display: block; font-size: 15px; font-weight: 700; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool .efile-tool-total strong { display: block; font-size: 44px; font-weight: 700; line-height: 1.15; color: var(--t-ink); font-variant-numeric: tabular-nums; }
html:not(#efile-tools) .efile-tool p.efile-tool-stats { margin: 12px 0 0; font-size: 14px; color: var(--t-body); }
html:not(#efile-tools) .efile-tool p.efile-tool-assume { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: var(--t-muted); }
html:not(#efile-tools) .efile-tool .efile-tool-card p.efile-tool-year { margin: 16px 0 0; font-size: 12px; color: var(--t-muted); }
html:not(#efile-tools) .efile-tool .efile-tool-card p.efile-tool-note { margin: 12px 0 0; }

/* The copyable W-4 block */
html:not(#efile-tools) .efile-tool .efile-tool-w4block { border: 1px solid var(--t-line-soft); border-radius: 10px; margin: 0 0 14px; overflow: hidden; }
html:not(#efile-tools) .efile-tool .efile-tool-w4block-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #F2F4F7; padding: 8px 12px; font-size: 14px; font-weight: 700; color: var(--t-ink);
}
html:not(#efile-tools) .efile-tool .efile-tool-copy {
  background: var(--t-navy); color: #fff; border: 0; border-radius: 4px; padding: 5px 14px;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
html:not(#efile-tools) .efile-tool .efile-tool-copy:hover { background: var(--t-navy-2); }
html:not(#efile-tools) .efile-tool pre.efile-tool-w4text {
  margin: 0; padding: 14px 12px; background: #fff; color: var(--t-ink); border: 0; border-radius: 0;
  font-family: Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.5px; line-height: 1.65;
  white-space: pre; overflow-x: auto; max-width: 100%;
}

/* ---------- Phone ---------- */
@media (max-width: 880px) {
  html:not(#efile-tools) .efile-tool-section.efile-tool-section { padding: 28px 16px 48px; }
  html:not(#efile-tools) .efile-tool .efile-tool-grid { grid-template-columns: 1fr; }
  html:not(#efile-tools) .efile-tool .efile-tool-aside { position: static; gap: 20px; }
  html:not(#efile-tools) .efile-tool .efile-tool-form { padding: 24px 18px; gap: 24px; }
  html:not(#efile-tools) .efile-tool .efile-tool-row { grid-template-columns: 1fr; gap: 24px; }
  html:not(#efile-tools) .efile-tool .efile-tool-choices-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  html:not(#efile-tools) .efile-tool .efile-tool-choices-3 { grid-template-columns: 1fr; gap: 10px; }
  html:not(#efile-tools) .efile-tool .efile-tool-choices-3 .efile-tool-choice span { min-height: 44px; padding-left: 44px; }
  html:not(#efile-tools) .efile-tool .efile-tool-seg { flex-wrap: wrap; }
  html:not(#efile-tools) .efile-tool .efile-tool-seg .efile-tool-choice { flex: 1 1 40%; }
  html:not(#efile-tools) .efile-tool .efile-tool-summary { padding: 24px 20px; }
  html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-summary-empty { font-size: 24px; }
  html:not(#efile-tools) .efile-tool .efile-tool-summary p.efile-tool-summary-amount { font-size: 40px; }
  html:not(#efile-tools) .efile-tool .efile-tool-card { padding: 22px 18px; }
  html:not(#efile-tools) .efile-tool p.efile-tool-step { font-size: 22px; }
  html:not(#efile-tools) .efile-tool .efile-tool-slot:empty { display: none; }
  html:not(#efile-tools) .efile-tool .efile-tool-group-head { padding: 16px 14px; }
}
@media (max-width: 400px) {
  html:not(#efile-tools) .efile-tool .efile-tool-choices-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   Page sections around the tools (tax_tool pages)
   ========================================================= */
html:not(#efile-tools) .efile-tool-hero.efile-dir-hero h1 { max-width: none; font-size: clamp(30px, 4.4vw, 44px); }
html:not(#efile-tools) .efile-tool-hero.efile-dir-hero .efile-dir-lede { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.6; }
html:not(#efile-tools) .efile-tool-hero.efile-dir-hero h1 a, html:not(#efile-tools) .efile-tool-hero.efile-dir-hero p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article { max-width: 900px; margin: 72px auto 0; padding: 0 24px; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article h2,
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article h3 {
  text-align: center; font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.25;
  color: #111 !important; margin: 72px 0 28px; letter-spacing: -0.01em;
}
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article > :first-child { margin-top: 0; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article p,
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article li { font-size: 16px; line-height: 1.6; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article p { margin: 0 0 22px; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article ul { margin: 0 0 22px; padding-left: 22px; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article a { color: var(--t-ink); text-decoration: underline; text-underline-offset: 2px; }

html:not(#efile-tools) .efile-tool-pagesec.efile-tool-band {
  max-width: 736px; margin: 96px auto 0; background: var(--t-navy); color: #fff;
  border-radius: 8px; padding: 48px 32px; text-align: center; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-band p { color: #fff !important; margin: 0; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-band p.efile-tool-band-text { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.3; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-band p.efile-tool-band-text a { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-band p.efile-tool-band-action { margin-top: 28px; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-band a.efile-tool-band-btn {
  display: inline-block; background: var(--t-orange); color: #fff !important; text-decoration: none !important;
  font-weight: 700; font-size: 18px; padding: 12px 24px; border-radius: 4px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-band a.efile-tool-band-btn:hover { background: var(--t-orange-hover); }

html:not(#efile-tools) .efile-tool-pagesec.efile-tool-faq {
  max-width: 1000px; margin: 120px auto 96px; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); gap: 48px; align-items: start;
}
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-faq p.efile-tool-faq-eye {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #5D6F7F; margin: 0 0 8px;
}
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-faq h2 { font-size: 28px; font-weight: 600; color: #111 !important; margin: 0; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-faq .efile-faq { max-width: none; margin: 0; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-faq .efile-faq details {
  border: 0; border-radius: 6px; box-shadow: 0 2px 5px rgba(15, 25, 45, 0.22); padding: 28px 22px 26px 16px; margin: 0 0 18px; background: #fff;
}
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-faq .efile-faq summary { font-size: 16px; color: #111; }
html:not(#efile-tools) .efile-tool-pagesec.efile-tool-faq .efile-faq .answer a { color: var(--t-ink); text-decoration: underline; }

@media (max-width: 880px) {
  html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article { margin-top: 48px; padding: 0 16px; }
  html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article h2,
  html:not(#efile-tools) .efile-tool-pagesec.efile-tool-article h3 { margin: 48px 0 18px; }
  html:not(#efile-tools) .efile-tool-pagesec.efile-tool-band { margin: 56px 16px 0; padding: 36px 20px; }
  html:not(#efile-tools) .efile-tool-pagesec.efile-tool-faq { grid-template-columns: 1fr; gap: 20px; margin: 64px auto 56px; padding: 0 16px; }
}

/* W-4 lines as a table inside each block (the copied text keeps the dot-leader layout) */
html:not(#efile-tools) .efile-tool table.efile-tool-w4table { margin: 0; }
html:not(#efile-tools) .efile-tool table.efile-tool-w4table th,
html:not(#efile-tools) .efile-tool table.efile-tool-w4table td { padding: 7px 12px; border-top: 1px solid var(--t-line-soft); font-size: 14px; }
html:not(#efile-tools) .efile-tool table.efile-tool-w4table td { white-space: normal; font-weight: 700; color: var(--t-ink); text-align: right; }
html:not(#efile-tools) .efile-tool table.efile-tool-w4table td.is-blank { font-weight: 400; color: var(--t-muted); }
html:not(#efile-tools) .efile-tool .efile-tool-w4step { display: block; font-size: 12px; font-weight: 700; color: var(--t-ink); }
html:not(#efile-tools) .efile-tool p.efile-tool-w4prod { margin: 0; padding: 10px 12px; border-top: 1px solid var(--t-line-soft); font-size: 14px; color: var(--t-ink); font-weight: 600; }
html:not(#efile-tools) .efile-tool p.efile-tool-w4fed { margin: 0; padding: 0 12px 12px; font-size: 13px; color: var(--t-muted); }
