/* Styles scoped to the 2027 tax calendar article. */
#tax-article .emark-article__hero {
  padding: 66px 0 54px;
  background: linear-gradient(135deg, #f5f8fc, #f4f9f7);
}
#tax-article .emark-article__hero h1 {
  max-width: 100%;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
  color: #083e7f;
}
#tax-article .tax-cover { margin: 38px auto 0; max-width: 920px; }
#tax-article .tax-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #e4eaf1;
}
#tax-article .tax-cover figcaption {
  margin: 12px 0 0;
  color: #5f6b7a;
  font-size: 13px;
  line-height: 1.6;
}
#tax-article .emark-article__layout {
  grid-template-columns: 220px minmax(0, 800px);
  gap: 50px;
  padding-top: 54px;
}
#tax-article .emark-article__sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100dvh - 136px);
  overflow-y: auto;
}
#tax-article .tax-toc { border-left: 2px solid #e4eaf1; padding-left: 18px; }
#tax-article .tax-toc summary { color: #083e7f; font-size: 15px; font-weight: 750; cursor: pointer; padding-bottom: 13px; }
#tax-article .tax-toc nav { display: grid; gap: 3px; }
#tax-article .tax-toc a { padding: 6px 0; color: #536071; font-size: 13px; line-height: 1.45; text-decoration: none; }
#tax-article .tax-toc a:hover { color: #083e7f; text-decoration: underline; text-underline-offset: 3px; }
#tax-article .emark-article__content { overflow-wrap: anywhere; }
#tax-article .emark-article__content h2 {
  max-width: none;
  font-size: clamp(25px, 2.35vw, 34px);
  line-height: 1.24;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin: 54px 0 22px;
  scroll-margin-top: 120px;
}
#tax-article .emark-article__content h3 { max-width: none; font-size: 22px; line-height: 1.35; scroll-margin-top: 120px; }
#tax-article .tax-answer {
  padding: 24px 26px;
  border-left: 3px solid #00a86b;
  border-radius: 0 12px 12px 0;
  background: #edf7f3;
  color: #173a3e;
  font-size: 18px;
  line-height: 1.75;
}
#tax-article .tax-note {
  margin-top: 26px;
  padding: 20px 22px;
  background: #f5f8fb;
  border: 1px solid #e4eaf1;
  border-radius: 12px;
  color: #536071;
  font-size: 15px;
  line-height: 1.7;
}
#tax-article .emark-table-wrap { margin: 26px 0; -webkit-overflow-scrolling: touch; }
#tax-article .emark-table { min-width: 540px; }
#tax-article .emark-table thead th:first-child { width: 31%; }
#tax-article .emark-table tbody th {
  padding: 18px 19px;
  background: transparent;
  color: #172238;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
  border-bottom: 1px solid #e5e7eb;
}
#tax-article .emark-table tbody tr:last-child th { border-bottom: 0; }
#tax-article .emark-article__content ol { padding-left: 26px; margin: 22px 0 28px; }
#tax-article .emark-article__content ol li { padding-left: 5px; margin: 14px 0; }
#tax-article .emark-article__content ol li::marker { color: #083e7f; font-weight: 700; }
#tax-article .tax-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
#tax-article .tax-actions a { font-size: 15px; }
#tax-article .tax-actions .tax-primary {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 10px;
  background: #083e7f;
  color: #fff;
  text-decoration: none;
  line-height: 1.5;
}
#tax-article a:focus-visible,
#tax-article summary:focus-visible,
#tax-article [tabindex]:focus-visible { outline: 3px solid #00875b; outline-offset: 4px; }
@media (max-width: 1000px) {
  #tax-article .emark-article__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #tax-article .emark-article__sidebar { display: block; position: static; max-height: none; width: min(100%, 760px); margin: 0 auto; }
  #tax-article .tax-toc { padding: 18px 20px; border: 1px solid #e4eaf1; border-radius: 12px; background: #f8fafc; }
  #tax-article .tax-toc:not([open]) summary { padding-bottom: 0; }
  #tax-article .tax-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  #tax-article .tax-toc a { padding: 8px 0; }
}
@media (max-width: 600px) {
  #tax-article .emark-article__container { width: calc(100% - 32px); }
  #tax-article .emark-article__hero { padding: 38px 0 34px; }
  #tax-article .emark-article__hero h1 { font-size: clamp(30px, 7.5vw, 40px); }
  #tax-article .emark-article__meta { gap: 6px; font-size: 13px; }
  #tax-article .tax-cover { margin-top: 26px; }
  #tax-article .emark-article__layout { padding: 34px 0 64px; }
  #tax-article .tax-toc nav { grid-template-columns: 1fr; gap: 2px; }
  #tax-article .emark-article__content h2 { font-size: 26px; margin-top: 40px; }
  #tax-article .emark-article__content h3 { font-size: 21px; }
  #tax-article .tax-answer { padding: 20px; font-size: 17px; }
  #tax-article .tax-note { padding: 18px; }
  #tax-article .tax-actions { flex-direction: column; align-items: stretch; }
  #tax-article .tax-actions a { text-align: center; }
  #tax-article .emark-faq__answer { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #tax-article * { scroll-behavior: auto; transition: none; animation: none; }
}

#tax-article .emark-article__content h2, #tax-article .emark-article__content h3 { text-wrap: pretty; }
#tax-article .emark-article__content h3 { margin-top: 34px; }
#tax-article .emark-article__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }



#tax-article .tax-resource-panel,#tax-article .tax-tool { padding:26px; margin:36px 0; border:1px solid #dbe6ec; border-radius:16px; background:#f5f9f8; scroll-margin-top:120px; }
#tax-article .tax-tool { background:#f4f8fb; }
#tax-article .tax-resource-panel h2,#tax-article .tax-tool h2 { margin:8px 0 12px; color:#083e7f; font-size:clamp(24px,2.3vw,31px); }
#tax-article .tax-resource-panel .tax-kicker,#tax-article .tax-tool .tax-kicker { font-size:12px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#007b50; margin:0; }
#tax-article .tax-resource-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:22px 0 16px; }
#tax-article .tax-resource-grid>div { display:flex; flex-direction:column; align-items:flex-start; min-width:0; background:#fff; border:1px solid #dce6ed; padding:18px; border-radius:12px; }
#tax-article .tax-resource-grid>div:last-child { grid-column:1/-1; }
#tax-article .tax-resource-grid h3 { margin:0 0 10px; font-size:19px; color:#083e7f; }
#tax-article .tax-resource-grid p { font-size:14px; line-height:1.6; margin:0 0 15px; }
#tax-article .tax-resource-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:9px 14px; border-radius:8px; background:#083e7f; color:#fff; text-decoration:none; font-size:14px; font-weight:700; margin-top:auto; }
#tax-article .tax-secondary-link { font-size:13px; margin-top:10px; }
#tax-article .tax-resource-note { font-size:13px; line-height:1.65; color:#526071; margin:15px 0 0; }
#tax-article .emark-table-wrap { max-width:100%; }
#tax-article .emark-table tbody th { text-align:left; vertical-align:top; }
#tax-article .tax-faq { margin-top:10px; }
#tax-article .tax-faq summary { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:600px){#tax-article .tax-resource-panel,#tax-article .tax-tool{padding:18px}#tax-article .tax-resource-grid{grid-template-columns:minmax(0,1fr)}#tax-article .tax-resource-button{width:100%}}


.tax-calculator-form { margin-top: 22px; }
.tax-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.tax-fields label { display:grid; align-content:start; gap:8px; font-size:14px; font-weight:700; color:#172238; }
.tax-fields input,.tax-fields select { box-sizing:border-box; min-width:0; width:100%; min-height:48px; padding:10px 12px; border:1px solid #aabccc; border-radius:8px; background:#fff; color:#172238; font:inherit; font-size:16px; font-weight:400; }
.tax-controls { display:flex; gap:10px; flex-wrap:wrap; margin:20px 0; }
.tax-controls button { cursor:pointer; border:1px solid #083e7f; border-radius:9px; color:#fff; background:#083e7f; padding:11px 18px; font:inherit; font-size:14px; font-weight:700; min-height:44px; }
.tax-controls button[type=reset] { background:#fff; color:#083e7f; }
.tax-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 16px; }
.tax-results>div { border:1px solid #dce6ed; border-radius:12px; padding:18px; background:#fff; }
.tax-results>div:first-child { background:#083e7f; color:#fff; border-color:#083e7f; }
.tax-results span { display:block; font-size:13px; line-height:1.45; margin-bottom:8px; }
.tax-results strong { display:block; font-size:clamp(19px,2.2vw,25px); line-height:1.3; font-weight:750; }
.tax-error { color:#a32629; padding:12px; border:1px solid #efc9c9; background:#fff3f3; border-radius:8px; }
.tax-calculator-form [hidden] { display:none !important; }
.tax-calculator-form :is(input,select,button):focus-visible { outline:3px solid #00875b; outline-offset:3px; }
@media(max-width:600px){.tax-fields,.tax-results{grid-template-columns:minmax(0,1fr)}.tax-controls button{flex:1 1 auto}}
