.tax27-panel { margin-block: 1rem 1.75rem; padding: clamp(1rem, 3vw, 1.75rem); border-radius: .85rem; }
.tax27-panel { border: 1px solid currentColor; }
.tax27-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin-block: 1rem; }
.tax27-controls label { display: block; font-weight: 600; }
.tax27-controls select, .tax27-controls input, .tax27-controls button {
  max-width: 100%;
  padding: .55rem .65rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  color: CanvasText;
  background: Canvas;
}
.tax27-controls button { cursor: pointer; }
.tax27-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; }
.tax27-tile { border: 1px solid color-mix(in srgb, currentColor 24%, transparent); border-radius: .55rem; padding: .8rem; }
.tax27-tile dl { margin: .6rem 0; }
.tax27-tile dl div { display: flex; justify-content: space-between; gap: .7rem; }
.tax27-tile dd { margin: 0; text-align: right; font-weight: 700; }
.tax27-status { font-weight: 650; }
.tax27-forms { list-style: none; padding: 0; }
.tax27-panel :is(a, button, input, select):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.tax27-panel [hidden] { display: none !important; }
.tax27-jump { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-block: .75rem 1rem; }
.tax27-jump a { text-decoration: underline; }
#november-2026-update, #province, #official-documents, #quick-calculators, #filing-planner { scroll-margin-top: 6rem; }

.tax27-planner, .tax27-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: end;
  gap: 1rem;
  margin-block: 1rem;
}
.tax27-planner label, .tax27-results dt { display: block; font-weight: 600; }
.tax27-planner input:not([type=checkbox]), .tax27-planner select, .tax27-controls input, .tax27-panel button {
  box-sizing: border-box;
  max-width: 100%;
  padding: .5rem .65rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  color: CanvasText;
  background: Canvas;
}
.tax27-panel button { cursor: pointer; }
.tax27-results div { padding: .65rem; border: 1px solid currentColor; border-radius: .35rem; }
.tax27-results dd { margin: 0; font-size: 1.2em; }
.tax27-panel [hidden] { display: none; }

.tax27-feature, .tax27-quick {
  --tax-ink: #102b2b;
  --tax-quiet: #375854;
  --tax-action: #12574b;
  --tax-mint: #baf2d5;
  color: var(--tax-ink);
  overflow-wrap: anywhere;
}
.tax27-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin-block: 1.2rem 2rem;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border: 1px solid #9bd5b9;
  border-radius: 1.15rem;
  background: #d9f9e9;
  box-shadow: 0 10px 25px #123e3420;
}
.tax27-feature h2, .tax27-quick h2 {
  margin: .25rem 0 .5rem;
  color: inherit;
  font-size: clamp(1.75rem, 4.3vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.tax27-feature p, .tax27-quick p { color: var(--tax-quiet); margin: 0; }
.tax27-feature .tax27-kicker, .tax27-quick .tax27-kicker {
  color: #215c4d;
  font-size: .78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .075em;
}
.tax27-feature-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.tax27-feature .tax27-primary, .tax27-feature .tax27-secondary, .tax27-quick .tax27-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1rem;
  min-height: 44px;
  border-radius: .6rem;
  border: 1px solid #12574b;
  font-weight: 720;
  text-decoration: none;
  line-height: 1.25;
  transition: transform .15s ease, background-color .15s ease;
}
.tax27-feature .tax27-primary, .tax27-quick .tax27-primary { background: #12574b; color: #fff; }
.tax27-feature .tax27-secondary { background: #effff7; color: #12473f; }
.tax27-feature :is(.tax27-primary, .tax27-secondary):hover, .tax27-quick .tax27-primary:hover { transform: translateY(-2px); }
.tax27-feature .tax27-primary:hover, .tax27-quick .tax27-primary:hover { background: #0c433a; color: #fff; }
.tax27-feature-date {
  display: grid;
  align-content: center;
  gap: .35rem;
  border: 1px solid #e4bf70;
  border-radius: .85rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  background: #fff2cc;
  color: #472f12;
}
.tax27-feature-date strong { font-size: clamp(1.85rem, 4.2vw, 2.6rem); line-height: 1; color: #37280e; }
.tax27-feature-date a { color: #4f350f; font-weight: 720; margin-top: .25rem; }
.tax27-jump { gap: .5rem; }
.tax27-jump a {
  padding: .35rem .65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .87rem;
  text-decoration: none;
}
.tax27-jump a:hover { text-decoration: underline; }
.tax27-quick {
  margin-block: 1.25rem 2rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid #a6d8c3;
  border-radius: 1.15rem;
  background: #f5fffa;
}
.tax27-quick-intro { margin-bottom: 1.25rem; }
.tax27-quick-intro h2 { color: var(--tax-ink); font-size: clamp(1.6rem, 4vw, 2.55rem); }
.tax27-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  min-width: 0;
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}
.tax27-choice-grid legend { margin-bottom: .4rem; font-weight: 650; }
.tax27-choice {
  display: flex;
  gap: .48rem;
  padding: .72rem;
  align-items: flex-start;
  border: 1px solid #baced0;
  border-radius: .68rem;
  background: #fff;
  cursor: pointer;
}
.tax27-choice:hover { border-color: #12574b; }
.tax27-choice:has(:checked) { background: #d6f7e5; border-color: #398972; }
.tax27-choice input { flex: none; accent-color: var(--tax-action); margin: .18rem 0 0; }
.tax27-choice strong, .tax27-choice span span { display: block; }
.tax27-quick .tax27-choice strong { color: var(--tax-ink); line-height: 1.35; }
.tax27-choice span span { color: var(--tax-quiet); margin-top: .25rem; font-size: .84rem; line-height: 1.35; }
.tax27-quick-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 1rem; }
.tax27-quick-inputs { display: grid; gap: .65rem; }
.tax27-quick-inputs label { display: block; font-weight: 650; }
.tax27-quick-inputs :is(input,select) {
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid #9bb5ad;
  border-radius: .5rem;
  background: white;
  color: #102b2b;
}
.tax27-quick .tax27-quick-output {
  --quick-result-ink: #152e2a;
  --quick-result-muted: #3a5750;
  min-width: 0;
  padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid #a9cbbf;
  border-radius: .75rem;
  background: #edf6f2;
  color: var(--quick-result-ink);
}
.tax27-quick .tax27-quick-output p {
  margin: 0;
  color: var(--quick-result-muted);
  font-size: .9rem;
  line-height: 1.45;
}
.tax27-quick .tax27-quick-output .tax27-quick-headline {
  margin-top: .4rem;
  color: var(--quick-result-ink);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tax27-quick .tax27-quick-result dl { margin: .85rem 0 0; }
.tax27-quick .tax27-quick-result dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem .65rem;
  padding-block: .55rem;
  align-items: baseline;
  border-top: 1px solid #b5d1c8;
  line-height: 1.4;
}
.tax27-quick .tax27-quick-result dt { margin: 0; color: var(--quick-result-muted); font-size: .87rem; }
.tax27-quick .tax27-quick-result dd {
  margin: 0;
  color: var(--quick-result-ink);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 380px) {
  .tax27-quick .tax27-quick-result dl div { grid-template-columns: minmax(0, 1fr); }
}
.tax27-quick-result:not([hidden]) + p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tax27-quick-foot { display: grid; gap: .4rem; margin-top: 1rem; font-size: .88rem; }
.tax27-quick .tax27-quick-foot a { justify-self: start; color: #15584c; font-weight: 675; }
:is(.tax27-quick,.tax27-feature) :is(a,button,input,select):focus-visible { outline: 2px solid #1a64ac; outline-offset: 3px; }
.tax27-quick [hidden] { display: none !important; }
@media (max-width: 700px) {
  .tax27-feature, .tax27-quick-layout, .tax27-choice-grid { grid-template-columns: minmax(0, 1fr); }
  .tax27-feature-date { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem .55rem; padding: .7rem; }
  .tax27-feature-date strong { font-size: 1.45rem; }
  .tax27-feature-date a { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tax27-feature a, .tax27-quick button { transition: none; }
  .tax27-feature a:hover, .tax27-quick button:hover { transform: none; }
}
body[data-scheme="dark"] .tax27-quick {
  --tax-ink: #f0faf6;
  --tax-quiet: #bfd5ce;
  background: #172c2a;
  border-color: #41645b;
  color: var(--tax-ink);
}
body[data-scheme="dark"] .tax27-quick .tax27-kicker { color: #a7d7c7; }
body[data-scheme="dark"] .tax27-quick .tax27-choice { background: #203831; border-color: #597870; }
body[data-scheme="dark"] .tax27-quick .tax27-choice:has(:checked) { background: #294b40; border-color: #86bbab; }
body[data-scheme="dark"] .tax27-quick .tax27-quick-output {
  --quick-result-ink: #f0faf6;
  --quick-result-muted: #bfd5ce;
  background: #10221e;
  border-color: #597870;
}
body[data-scheme="dark"] .tax27-quick .tax27-quick-result dl div { border-color: #41645b; }
body[data-scheme="dark"] .tax27-quick .tax27-quick-foot a { color: #b6e9d9; }

/* The seasonal hub uses one rhythm for the overview, tools and reference. */
.tax27-hub {
  --hub-surface: #fff;
  --hub-subtle: #f5f7fa;
  --hub-border: #d3dce5;
  --hub-ink: #182b41;
  --hub-muted: #46586a;
  --hub-link: #174e82;
  --hub-gap: clamp(1rem, 2.7vw, 1.65rem);
  display: grid;
  gap: var(--hub-gap);
  color: var(--hub-ink);
}
body[data-scheme="dark"] .tax27-hub {
  --hub-surface: #17253a;
  --hub-subtle: #101e31;
  --hub-border: #40546d;
  --hub-ink: #edf4fc;
  --hub-muted: #c4d2e3;
  --hub-link: #a8d1ff;
}
.tax27-hub > *,
.tax27-hub :is(.tax27-panel,.tax27-quick) { min-width: 0; }
html body .cs-site .cs-main-content .entry-content .tax27-hub :is(.tax27-panel,.tax27-quick) {
  margin: 0;
  padding: clamp(.9rem, 2.5vw, 1.65rem);
  border-radius: .85rem;
}
.tax27-hub .tax27-panel { border: 1px solid var(--hub-border); background: var(--hub-surface); }
html body .cs-site .cs-main-content .entry-content .tax27-hub h2 {
  margin: 0 0 .45rem;
  padding: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.2;
  text-wrap: balance;
}
html body .cs-site .cs-main-content .entry-content .tax27-hub h2::after { display: none; }
html body .cs-site .cs-main-content .entry-content .tax27-hub :is(.tax27-panel,.tax27-paths) h2 { color: var(--hub-ink); }
html body .cs-site .cs-main-content .entry-content .tax27-hub .tax27-panel h3 {
  margin: 0 0 .35rem;
  color: var(--hub-ink);
  font-size: 1.04rem;
  line-height: 1.35;
}
.tax27-hub :is(.tax27-panel,.tax27-paths) p {
  margin: 0 0 .65rem;
  color: var(--hub-muted);
  line-height: 1.55;
}
.tax27-hub .tax27-panel > :last-child:not(button) { margin-bottom: 0; }
.tax27-hub :is(.tax27-panel,.tax27-paths) a { color: var(--hub-link); text-underline-offset: .18em; }
.tax27-hub .tax27-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-top: .9rem;
}
.tax27-hub .tax27-paths > div {
  padding: .9rem 1rem;
  border: 1px solid var(--hub-border);
  border-top: 3px solid var(--hub-link);
  border-radius: .7rem;
  background: var(--hub-subtle);
}
html body .cs-site .cs-main-content .entry-content .tax27-hub .tax27-paths h2 { font-size: 1.13rem; }
.tax27-paths ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tax27-paths li { margin: 0; padding: 0; }
.tax27-paths li a {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: .35rem;
  font-weight: 650;
}
.tax27-hub .tax27-updates ul,
.tax27-hub .tax27-tile ul { margin-block: .5rem; }
.tax27-hub .tax27-updates li + li,
.tax27-hub .tax27-tile li + li { margin-top: .3rem; }
.tax27-hub .tax27-update-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  padding: .65rem 0 0;
  border-top: 1px solid var(--hub-border);
  list-style: none;
}
.tax27-hub .tax27-update-links li { margin: 0; padding: 0; }
.tax27-hub .tax27-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .65rem;
  margin-block: .65rem;
  overflow-wrap: anywhere;
}
.tax27-hub .tax27-tile {
  background: var(--hub-subtle);
  border-color: var(--hub-border);
  margin: 0;
}
.tax27-hub .tax27-tile > :last-child { margin-bottom: 0; }
.tax27-hub .tax27-forms { padding: 0; list-style: none; }
.tax27-hub :is(.tax27-controls,.tax27-planner) { margin-block: .7rem; gap: .65rem; }
.tax27-hub [data-tax27-form-controls] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
.tax27-hub :is(.tax27-controls,.tax27-planner) > div { min-width: 0; }
.tax27-hub :is(.tax27-controls,.tax27-planner) label { font-size: .91rem; }
.tax27-hub :is(.tax27-controls,.tax27-planner) :is(select,input:not([type=checkbox])) {
  width: 100%;
  min-height: 44px;
  border-color: var(--hub-border);
  background: var(--hub-subtle);
  color: var(--hub-ink);
}
.tax27-hub .tax27-panel button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  border-color: var(--hub-border);
  background: var(--hub-subtle);
  color: var(--hub-link);
  font-weight: 650;
}
.tax27-hub .tax27-panel button:hover { border-color: var(--hub-link); }
.tax27-hub .tax27-panel button[type="submit"] { background: #1c507f; border-color: #1c507f; color: #fff; }
.tax27-hub .tax27-reference h3:not(:first-of-type) { padding-top: .65rem; border-top: 1px solid var(--hub-border); }
.tax27-hub .tax27-reference h3 { scroll-margin-top: 6rem; }
.tax27-hub .tax27-reference :is(p,ul) { max-width: 75ch; }
@media (max-width: 570px) {
  .tax27-hub .tax27-paths { grid-template-columns: minmax(0, 1fr); }
}

/* This hub has its own navigation immediately below the article header. */
body.page-id-12122 .entry-content > .ts-toc2 { display: none; }
body.page-id-12122 .cs-site .cs-entry__header-standard {
  padding-block: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: .85rem;
}
body.page-id-12122 .entry-content > .ts-updated { margin-block: .65rem; }
html body .cs-site .cs-main-content .entry-content .tax27-hub .tax27-overview > .ts-lead {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  color: var(--hub-muted);
}
