/* Free tools: GST/HST penalty calculator */
.tool-intro { padding-bottom: 8px; background: var(--surface-2); }
.tool-intro h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -.035em; margin: 14px 0 18px; max-width: 900px; }
.tool-intro .lede { max-width: 780px; }
.tool-body { padding-top: 40px; background: linear-gradient(var(--surface-2) 0 120px, transparent 120px); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 28px; align-items: start; }
.calc-form { display: grid; gap: 22px; }
.calc-mode { max-width: 420px; }
.calc-form [hidden] { display: none !important; }
.field input[type=date] { height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); width: 100%; min-width: 0; }
.field input[type=date]:disabled { opacity: .5; }
.field input[type=date]:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money input { padding-left: 30px !important; font-size: 18px !important; font-weight: 600; width: 100%; }
.field .check.plain { margin-top: 2px; }
.calc-more { border-top: 1px dashed var(--line-2); padding-top: 18px; }
.calc-more summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--brand); }
.calc-more-body { display: grid; gap: 18px; margin-top: 18px; }

.calc-result { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.result-total { background: var(--navy); color: #fff; padding: 24px 26px; }
.result-total span { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #b9c8e4; }
.result-total strong { display: block; font-size: 44px; line-height: 1.1; letter-spacing: -.03em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.result-total small { color: #b9c8e4; font-size: 13.5px; }
.result-lines { margin: 0; padding: 8px 26px; }
.result-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.result-lines div:last-child { border-bottom: 0; }
.result-lines dt { font-weight: 600; font-size: 15px; }
.result-lines dt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.result-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-lines .owing dt, .result-lines .owing dd { color: var(--muted); font-weight: 500; }
.result-next { margin: 0 26px 14px; padding: 12px 14px; border-radius: 8px; background: var(--warn-soft); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.result-next b { color: var(--warn); }
.result-actions { padding: 6px 26px 10px; }
.result-actions h2, .result-actions h3 { font-size: 15px; margin-bottom: 8px; }
.result-actions ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.result-actions a { color: var(--brand); }
.result-notes { margin: 0 26px 14px; padding: 12px 14px 12px 30px; background: var(--surface-2); border-radius: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; display: grid; gap: 6px; }
.result-notes[hidden], .result-next[hidden], .result-periods[hidden] { display: none; }
.result-periods { margin: 0 26px 14px; font-size: 14px; }
.result-periods summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.result-periods table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.result-periods th, .result-periods td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.result-periods th:not(:first-child), .result-periods td:not(:first-child) { text-align: right; }
.result-cta { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--surface-2); }
.result-calendar { display: grid; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); background: var(--surface-2); }
.result-calendar h3 { font-size: 16px; margin: 0; }
.result-calendar label { font-weight: 600; font-size: 14px; }
.result-calendar select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); }
.result-calendar p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.result-calendar .btn { justify-self: start; }
.result-disclaimer { padding: 0 26px 18px; background: var(--surface-2); font-size: 12px; color: var(--muted); line-height: 1.6; }

.lead { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.lead-copy h2 { font-size: clamp(28px, 3vw, 38px); margin: 12px 0 14px; letter-spacing: -.03em; }
.lead-copy p { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.lead-copy .help { font-size: 13.5px; margin-top: 18px; }
.lead-copy .help a { color: var(--brand); }
.lead-points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lead-points li { position: relative; padding-left: 28px; font-weight: 500; }
.lead-points li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border: 2px solid var(--ok); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.lead-form { display: grid; gap: 20px; }
.lead-needs { border: 0; padding: 0; margin: 0; }
.lead-needs .checks { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.optional { color: var(--faint); font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-done h3 { font-size: 22px; margin-bottom: 10px; color: var(--ok); }
.lead-done p { color: var(--ink-2); margin-bottom: 20px; line-height: 1.7; }
.lead-done[hidden], .lead-form[hidden] { display: none; }

.tool-explainer { max-width: 900px; }
.tool-explainer .prose { max-width: none; }
.tool-explainer .prose h2 { font-size: 26px; margin-top: 40px; }
.tool-explainer .prose ul { padding-left: 20px; display: grid; gap: 6px; }
.tool-explainer .prose a { color: var(--brand); }
.rate-table-wrap { margin: 16px 0 8px; overflow-x: auto; }
.rate-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.rate-table th, .rate-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rate-table th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.rate-table tbody tr:first-child td { background: var(--brand-soft); }
.deadline-table tbody tr:first-child td { background: none; }
.rate-table tr.older { display: none; }
.rate-table.show-all tr.older { display: table-row; }
.rate-table-wrap .linkbtn { margin-top: 10px; font-size: 14px; }
.guide-faq { margin-top: 40px; }
.guide-faq h2 { font-size: 26px; margin-bottom: 14px; }
.guide-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.guide-faq summary { cursor: pointer; font-weight: 600; }
.guide-faq details p { margin-top: 8px; color: var(--muted); line-height: 1.7; }
.guide-next { margin: 32px 0; font-size: 15px; }
.guide-next h2 { font-size: 22px; margin-bottom: 10px; }
.guide-next ul { padding-left: 20px; display: grid; gap: 6px; }
.guide-next a { color: var(--brand); }

@media (max-width: 1000px) {
  .calc, .lead { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .lead { gap: 28px; }
}
@media (max-width: 640px) {
  .calc-form, .lead-form { padding: 20px; }
  .lead-needs .checks { grid-template-columns: 1fr; }
  .result-total strong { font-size: 36px; }
  .result-lines, .result-actions { padding-left: 18px; padding-right: 18px; }
  .result-next, .result-notes, .result-periods { margin-left: 18px; margin-right: 18px; }
  .result-cta, .result-calendar, .result-disclaimer { padding-left: 18px; padding-right: 18px; }
}

/* Federal annual return check */
.corp-tool { max-width: 860px; display: grid; gap: 20px; }
.corp-search { display: grid; gap: 10px; }
.corp-search > label { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.corp-search-row { display: flex; gap: 10px; }
.corp-search-row input { flex: 1; min-width: 0; height: 54px; padding: 0 16px; font-size: 17px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); }
.corp-search-row input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.corp-search-row .btn { height: 54px; padding: 0 26px; }
.corp-search small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.corp-search .status:empty { display: none; }
.corp-results:empty { display: none; }
.corp-results .help { margin-top: 10px; }
.corp-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.corp-list li + li { border-top: 1px solid var(--line); }
.corp-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; text-align: left; padding: 14px 18px; background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit; }
.corp-list button:hover, .corp-list button:focus-visible { background: var(--surface-2); }
.corp-list button:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent); outline-offset: -3px; }
.corp-list-name { font-weight: 600; overflow-wrap: anywhere; }
.corp-list-meta { grid-column: 1; color: var(--muted); font-size: 13.5px; }
.corp-list .pill { grid-column: 2; grid-row: 1 / span 2; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.soon { background: var(--warn-soft); color: var(--warn); }
.pill.late { background: var(--late-soft); color: var(--late); }
.corp-empty b { display: block; margin-bottom: 6px; }
.corp-empty p { color: var(--muted); line-height: 1.6; margin: 0; }
.corp-empty a { color: var(--brand); }
.corp-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 90px; }
.corp-card:focus { outline: none; }
.corp-card[hidden] { display: none; }
.corp-card-head { padding: 22px 26px; background: var(--navy); color: #fff; border-top: 6px solid var(--ok); }
.corp-card-head.soon { border-top-color: var(--warn); }
.corp-card-head.late { border-top-color: var(--late); }
.corp-card-head h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; margin: 10px 0 4px; color: #fff; overflow-wrap: anywhere; }
.corp-card-head p { color: #b9c8e4; font-size: 14px; margin: 0; }
.corp-badge { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; background: var(--ok-soft); color: var(--ok); }
.corp-card-head.soon .corp-badge { background: var(--warn-soft); color: var(--warn); }
.corp-card-head.late .corp-badge { background: var(--late-soft); color: var(--late); }
.corp-card-body { padding-top: 18px; }
.corp-verdict { margin: 0 26px 6px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.corp-verdict b { color: var(--ink); }
.corp-card .result-actions { padding-bottom: 16px; }
@media (max-width: 640px) {
  .corp-search { padding: 20px; }
  .corp-search-row { flex-direction: column; }
  .corp-search-row .btn { width: 100%; }
  .corp-card-head { padding-left: 18px; padding-right: 18px; }
  .corp-verdict { margin-left: 18px; margin-right: 18px; }
  .corp-list button { grid-template-columns: 1fr; }
  .corp-list .pill { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
}

/* BC PST dates, T2 penalty comparison, tools index, plans comparison */
.pst-dates { list-style: none; margin: 0; padding: 8px 26px; }
.pst-dates li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pst-dates li:last-child { border-bottom: 0; }
.pst-period { color: var(--muted); font-size: 14px; }
.pst-due { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pst-due small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.t2-tool { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.t2-result { padding: 0; overflow: hidden; }
.t2-dates { margin: 0; padding: 20px 24px 6px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.t2-table-wrap { overflow-x: auto; padding: 8px 24px 16px; }
.t2-table td small { display: block; color: var(--muted); font-size: 12.5px; }
.t2-table th:not(:first-child), .t2-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.t2-table tbody tr:first-child td { background: none; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tool-card { display: grid; gap: 10px; align-content: start; }
.tool-card h2 { font-size: 21px; letter-spacing: -.02em; margin: 0; }
.tool-card h2 a { color: var(--ink); }
.tool-card p { color: var(--muted); line-height: 1.6; margin: 0; }
.tool-card-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; font-size: 14px; }
.tool-card-links a:not(.btn) { color: var(--brand); }
.featured-tool { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.plans-compare { max-width: 980px; }
.plans-table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.plans-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.plans-table th, .plans-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.plans-table thead th { background: var(--surface-2); }
.plans-table th[scope=row] { text-align: left; font-weight: 600; width: 52%; }
.plans-table th[scope=row] small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }
.plans-table .plan-name { display: block; font-size: 14px; font-weight: 700; }
.plans-table .plan-price { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.plans-table .plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plans-table .featured-col { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.plans-table .yes { color: var(--ok); font-weight: 800; font-size: 18px; }
.plans-table .no { color: var(--faint); }
.plans-table tfoot td { border-bottom: 0; }
.plans-note { margin-top: 14px; }
@media (max-width: 1000px) { .t2-tool { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pst-dates, .t2-table-wrap, .t2-dates { padding-left: 18px; padding-right: 18px; }
  .plans-table th, .plans-table td { padding: 12px 10px; }
}
.eht-row { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 18px; align-items: start; }
.eht-row .seg { flex-wrap: nowrap; }
@media (max-width: 640px) { .eht-row { grid-template-columns: 1fr; } }
.t2-table td:first-child { white-space: nowrap; }
.t2-table td:first-child b { display: block; }
.t2-table th, .t2-table td { padding: 10px 10px; font-size: 14px; }
.t2-tool { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
@media (max-width: 1000px) { .t2-tool { grid-template-columns: 1fr; } }

.tool-explainer .prose h3 { font-size: 19px; margin-top: 28px; }
.penalty-table th[scope=row] { font-weight: 600; text-align: left; }
.penalty-table td { text-align: right; }
.penalty-table thead th:not(:first-child) { text-align: right; }
.penalty-table tbody tr:first-child td, .penalty-table tbody tr:first-child th { background: var(--brand-soft); }
.table-note { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.more-tools { padding: 40px 0; border-top: 1px solid var(--line); }
.more-tools h2 { font-size: 20px; margin-bottom: 14px; }
.more-tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more-tools a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-decoration: none; font-size: 14px; color: var(--ink-2); }
.more-tools a:hover { border-color: var(--brand); color: var(--brand); }
