.site-header .nav-toggle,
.site-search-toggle {
  border: 1px solid #4A342E; border-radius: 12px; color: #4A342E;
  -webkit-text-fill-color: #4A342E; background: #F8F5EF; font: 600 14px var(--font-body, sans-serif);
  min-height: 44px; padding: 10px 14px; cursor: pointer; align-self: center;
  align-items: center; justify-content: center; gap: 7px; flex-shrink: 0;
  -webkit-appearance: none; appearance: none;
}
.site-search-toggle { display: inline-flex; margin-left: auto; }
.site-header .nav-toggle { margin-left: 0; }
.site-search-toggle:hover, .site-header .nav-toggle:hover { background: #efe8dc; }
.site-search-toggle:focus-visible, .site-header .nav-toggle:focus-visible,
.site-search :focus-visible, .site-return a:focus-visible { outline: 3px solid #4A342E; outline-offset: 4px; }
.site-search { box-sizing: border-box; width: min(700px, calc(100% - 24px)); max-height: 85dvh; padding: 28px; border: 1px solid #d7cec3; border-radius: 20px; background: #F8F5EF; color: #4A342E; box-shadow: 0 24px 80px #302b2740; }
.site-search::backdrop { background: #302b2780; }
body:has(.site-search[open]) { overflow: hidden; }
.site-search__top { display: flex; align-items: start; gap: 16px; justify-content: space-between; }
.site-search h2 { margin: 0 0 22px; font-size: clamp(22px, 4vw, 30px); color: #4A342E; }
.site-search label { display: block; margin-bottom: 8px; }
.site-search__field { display: flex; gap: 8px; }
.site-search input { box-sizing: border-box; flex: 1; min-width: 0; width: 100%; border: 1px solid #9a877d; border-radius: 12px; padding: 13px; background: white; color: #4A342E; font: inherit; font-size: 16px; }
.site-search button { border: 1px solid #4A342E; border-radius: 12px; padding: 10px 14px; background: #4A342E; color: #fff; -webkit-text-fill-color: #fff; font: inherit; min-height: 44px; cursor: pointer; }
.site-search .site-search__close { background: transparent; color: #4A342E; -webkit-text-fill-color: #4A342E; }
.site-search__status { font-size: 14px; margin-block: 16px; }
.site-search__results { margin: 0; padding: 0; list-style: none; }
.site-search__results li { padding: 16px 0; border-top: 1px solid #d7cec3; }
.site-search__results a { color: #4A342E; font-weight: 600; text-underline-offset: 4px; }
.site-search__results p { font-size: 14px; margin: 6px 0 0; }
.site-return { padding-block: 12px; }
.site-return a { color: #4A342E; font-size: 14px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.tax-related { padding-block: 32px; }
.tax-related__links { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 16px; }
.tax-related__links a { border: 1px solid #d7cec3; border-radius: 16px; padding: 20px; background: #F8F5EF; color: #4A342E; text-decoration: none; }
.tax-related__links strong { display: block; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 8px; }
/* Compact tax reference: one year and filing status at a time. */
.tax-estimate__reference { scroll-margin-top: calc(var(--site-chrome-top, 128px) + 12px); }
.site-content:has(#tax-savings-estimate), .tax-estimate > * { min-width: 0; }
.tax-estimate__reference .tax-estimate__table-wrap { max-width: 100%; }
.tax-estimate__reference-content { display: block; padding: 16px; }
.tax-estimate__reference > summary { padding: 13px 16px; font-size: 14px; }
.tax-estimate__reference h3 { font-size: 17px; margin-bottom: 6px; }
.tax-estimate__reference p { font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
.tax-guide-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.tax-guide-controls[hidden] { display: none; }
.tax-guide-controls label { display: grid; gap: 4px; flex: 1 1 150px; color: #4A342E; font-size: 13px; font-weight: 600; }
.tax-guide-controls select { box-sizing: border-box; width: 100%; min-height: 44px; border: 1px solid #9a877d; border-radius: 10px; background: #fffdfa; color: #4A342E; font: inherit; font-size: 16px; padding: 7px 10px; }
.tax-estimate__reference .tax-estimate__table-wrap { margin-block: 10px; }
.tax-estimate__reference table { min-width: 0; font-size: 13px; }
.tax-estimate__reference caption { text-align: left; padding: 7px 10px; font-size: 13px; font-weight: 600; color: #4A342E; background: #efe8dc; }
.tax-estimate__reference th, .tax-estimate__reference td { padding: 6px 10px; line-height: 1.4; }
.tax-estimate__reference thead th { font-size: 12px; }
.tax-estimate__reference .tax-guide-footnote, .tax-estimate__reference .tax-guide-sources { font-size: 12px; }
.tax-guide-state { border-top: 1px solid #d7cec3; margin-top: 12px; }
.tax-estimate__reference .tax-guide-state > summary { padding: 12px 0; font-size: 13px; }
.tax-guide-state > div { padding-top: 12px; }
@media (max-width: 600px) {
  .site-search-toggle span { display: none; }
  .site-search-toggle { padding: 10px; width: 44px; }
  .site-header .site-header__inner { gap: 8px; }
  .site-header .site-header__brand { min-width: 0; flex: 1 1 auto; gap: 8px; }
  .site-header .site-header__ld { width: clamp(72px,20vw,120px); height: auto; }
  .site-header .site-header__wordmark { font-size: clamp(15px,4.3vw,24px); }
  .site-header .nav-toggle { padding-inline: 10px; }
  .site-search { padding: 20px; }
  .site-search__field { flex-wrap: wrap; }
  .site-search__field input { flex-basis: 100%; }
  .tax-guide-controls { gap: 8px; }
  .tax-guide-controls label { flex-basis: 120px; }
}
