/*
Theme Name: TaxAct Support
Theme URI: https://www.taxact.com/support
Author: Customer Support Platform Team
Description: TaxAct support theme for BetterDocs content.
Version: 0.3.1
Requires at least: 6.0
Tested up to: 6.9
Text Domain: taxact-support
*/

:root {
  --ta-ink: #17123b;
  --ta-ink-soft: #2b2554;
  --ta-text: #1e1a3d;
  --ta-muted: #6a6788;
  --ta-line: #d8d8ea;
  --ta-surface: #ffffff;
  --ta-surface-soft: #f6f5fb;
  --ta-purple-start: #6651E1;
  --ta-purple-end: #6651E1;
  --ta-purple-solid: #5746dd;
  --ta-button: #1a143f;
  --ta-shadow: 0 18px 36px rgba(46, 33, 109, 0.12);
  --ta-radius-xl: 28px;
  --ta-radius-lg: 20px;
  --ta-radius-md: 14px;
  --ta-radius-sm: 10px;
  --ta-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #171138;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  font-family: "Barlow", "Open Sans", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.taxact-site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.taxact-container {
  width: min(calc(100% - 32px), var(--ta-max));
  margin: 0 auto;
}

.taxact-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 216, 234, 0.7);
  backdrop-filter: blur(12px);
}

body.admin-bar .taxact-header {
  top: 32px;
}

.taxact-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.taxact-logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ta-ink);
}

.taxact-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--ta-ink-soft);
  font-size: 0.95rem;
}

.taxact-nav a:hover,
.taxact-nav a:focus-visible {
  color: var(--ta-purple-solid);
}

.taxact-nav__dropdown {
  position: relative;
}

.taxact-nav__toggle {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.taxact-nav__toggle::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.taxact-nav__toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}

.taxact-nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 220px;
  z-index: 100;
}

.taxact-nav__menu-inner {
  background: #fff;
  border: 1px solid var(--ta-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 18, 59, 0.12);
  padding: 8px 0;
}

.taxact-nav__toggle[aria-expanded="true"] + .taxact-nav__menu,
.taxact-nav__dropdown:hover .taxact-nav__menu {
  display: block;
}

.taxact-nav__menu-inner a {
  display: block;
  padding: 8px 16px;
  color: var(--ta-ink);
  font-size: 0.9rem;
}

.taxact-nav__menu-inner a:hover,
.taxact-nav__menu-inner a:focus-visible {
  background: var(--ta-surface-soft);
  color: var(--ta-purple-solid);
}

.taxact-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 65px;
  background: #33187e;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
  transition: background-color 0.2s;
}

.taxact-signin:hover,
.taxact-signin:focus-visible {
  background: #503990;
  text-decoration: underline;
  color: #fff;
}

.taxact-signin__lock {
  width: 12px;
  height: 16px;
}

.taxact-hero {
  position: relative;
  overflow: hidden;
  background: #6651E1;
  color: #fff;
}

.taxact-hero__inner {
  padding: 56px 0 58px;
  text-align: center;
}

.taxact-hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.taxact-search {
  width: min(100%, 700px);
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  box-shadow: 0 20px 40px rgba(29, 18, 81, 0.24);
  overflow: hidden;
}

.taxact-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
}

.taxact-search__field input {
  width: 100%;
  border: 0;
  min-height: 62px;
  font-size: 1rem;
  color: var(--ta-text);
  background: transparent;
}

.taxact-search__field input:focus {
  outline: none;
}

.taxact-search__year {
  border-left: 1px solid var(--ta-line);
  padding: 0 18px;
}

.taxact-search__year select {
  min-height: 62px;
  border: 0;
  background: transparent;
  color: var(--ta-text);
  font-size: 0.98rem;
}

.taxact-search__year select:focus {
  outline: none;
}

.taxact-popular-topics {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.96rem;
}

.taxact-popular-topics__label {
  font-weight: 700;
}

.taxact-popular-topics__item:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  opacity: 0.85;
}

.taxact-main {
  flex: 1;
  padding: 40px 0 72px;
}

.taxact-section + .taxact-section {
  margin-top: 44px;
}

.taxact-section__title {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ta-ink);
}

.taxact-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.taxact-card {
  background: var(--ta-surface);
  border: 1px solid rgba(216, 216, 234, 0.8);
  border-radius: var(--ta-radius-lg);
  box-shadow: var(--ta-shadow);
}

.taxact-quick-link {
  min-height: 142px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.taxact-quick-link__icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(87, 70, 221, 0.12);
  color: var(--ta-purple-solid);
  font-size: 1.15rem;
  font-weight: 800;
}

.taxact-quick-link__title {
  font-weight: 700;
  line-height: 1.3;
}

.taxact-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.taxact-category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border-radius: var(--ta-radius-sm);
  border: 1px solid rgba(40, 33, 84, 0.38);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  color: var(--ta-ink);
}

.taxact-category-button:hover,
.taxact-category-button:focus-visible {
  border-color: var(--ta-purple-solid);
  color: var(--ta-purple-solid);
}

.taxact-arrow {
  font-size: 1.2rem;
  line-height: 1;
}

.taxact-support-cta {
  padding: 34px 24px;
  border-radius: 24px;
  background: #33187E;
  color: #fff;
  text-align: center;
}

.taxact-support-cta__title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.taxact-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-weight: 700;
}

.taxact-disclosure {
  border: 1px solid rgba(216, 216, 234, 0.9);
  border-radius: 0;
  background: #fff;
}

.taxact-disclosure summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  position: relative;
  padding-right: 50px;
}

.taxact-disclosure summary::-webkit-details-marker {
  display: none;
}

.taxact-disclosure summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 13px;
  height: 8px;
  transform: translateY(-50%);
  background-image: url("https://images.ctfassets.net/j9e1b5ly4280/2SdwZLGpSbLJyahPN9eGiq/88a7d866a87fbf7577a9a9b2ba3587d8/icon-dropdown-triangle.svg");
  background-repeat: no-repeat;
  transition: transform 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.taxact-disclosure[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.taxact-disclosure__content {
  padding: 0 20px 18px;
  color: var(--ta-muted);
}

.taxact-breadcrumbs {
  margin: 20px 0 !important;
  padding: 0;
  color: #171138;
  font-family: "Barlow", "Open Sans", Arial, sans-serif;
  font-size: 1rem;
}

.taxact-breadcrumbs a {
  color: #171138;
  text-decoration: none;
}

.taxact-breadcrumbs a:hover {
  text-decoration: underline;
}

.taxact-breadcrumbs a:focus {
  outline: #171138 solid;
  outline-offset: 5px;
}

.taxact-article-shell {
  width: min(calc(100% - 32px), 1304px);
  margin: 0 auto;
}

.taxact-article {
  background: transparent;
}

.taxact-article__title {
  margin: 0 0 24px;
  font-family: "Barlow", "Open Sans", Arial, sans-serif;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 36px !important;
  letter-spacing: 0;
  color: #171138 !important;
}

@media screen and (max-width: 767.98px) {
  .taxact-article__title {
    font-size: 28px;
    line-height: 32px;
  }
}

@media screen and (max-width: 575.98px) {
  .taxact-article__title {
    font-size: 24px;
    line-height: 28px;
  }
}

.taxact-article__excerpt {
  margin: 0 0 24px;
  color: var(--ta-muted);
  font-size: 1.02rem;
}

.taxact-content {
  color: #171138;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 28px;
}

.taxact-content h2,
.taxact-content h3,
.taxact-content h4 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: #171138;
  font-family: "Barlow", "Open Sans", Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.taxact-content p,
.taxact-content ul,
.taxact-content ol {
  margin-top: 0;
  margin-bottom: 1rem !important;
  line-height: 28px;
}

.taxact-content ul,
.taxact-content ol {
  color: #171138;
  padding-left: 24px;
}

.taxact-content li {
  color: #171138;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 28px;
  margin-top: 3px;
  padding-left: 0;
  width: 100%;
}

.taxact-content strong,
.taxact-content b {
  font-weight: 600;
}

.taxact-content a {
  color: #6651e1 !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
  text-decoration: none !important;
}

.taxact-content table {
  width: auto;
  max-width: 100%;
  margin: 1.25rem 0 2rem;
  border-collapse: collapse;
  color: #171138;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.taxact-content th,
.taxact-content td {
  padding: 8px 10px;
  border: 1px solid #171138;
  vertical-align: top;
}

.taxact-content th {
  font-family: "Barlow", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  text-align: left;
}

.taxact-content a:hover {
  text-decoration: underline;
}

.taxact-content a:focus {
  outline: #6651e1 solid;
  outline-offset: 5px;
}

.taxact-panel {
  background: #fff;
  border: 1px solid rgba(216, 216, 234, 0.8);
  border-radius: var(--ta-radius-md);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(30, 18, 74, 0.06);
}

.taxact-term-header {
  margin-bottom: 22px;
}

.taxact-term-header__title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  color: var(--ta-ink);
}

.taxact-term-header__description {
  margin: 0;
  color: var(--ta-muted);
}

.taxact-doc-list {
  display: grid;
  gap: 14px;
}

.taxact-doc-list__item {
  padding: 20px;
  border: 1px solid rgba(216, 216, 234, 0.85);
  border-radius: 16px;
  background: #fff;
}

.taxact-doc-list__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.taxact-doc-list__meta {
  color: var(--ta-muted);
  font-size: 0.92rem;
}

.taxact-search-results__form {
  margin-bottom: 24px;
}

.taxact-empty {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(216, 216, 234, 0.9);
  background: #fff;
  color: var(--ta-muted);
}

.taxact-footer {
  margin-top: auto;
  padding-top: 46px;
  background: linear-gradient(180deg, #17103c 0%, #130d31 100%);
  color: rgba(255, 255, 255, 0.84);
}

.taxact-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.taxact-footer__heading {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: none;
  border: none;
  text-align: left;
  cursor: default;
}

.taxact-footer__heading-arrow {
  display: none;
}

.taxact-footer__links {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.taxact-footer__links a {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.taxact-footer__links a:hover,
.taxact-footer__links a:focus-visible {
  opacity: 1;
}

.taxact-footer__badges {
  margin-top: 36px;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.taxact-footer__badge {
  height: 40px;
  width: auto;
}

.taxact-footer__badge-digicert img {
  height: 26px;
  display: inline-block;
  vertical-align: middle;
}

.taxact-footer__bottom {
  margin-top: 24px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.taxact-footer__bottom .taxact-logo img {
  filter: brightness(0) invert(1);
}

.taxact-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

.taxact-footer__copyright {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .taxact-quick-links,
  .taxact-category-grid,
  .taxact-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.taxact-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  order: -1;
}

.taxact-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ta-ink);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.taxact-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.taxact-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.taxact-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.taxact-mobile-menu {
  display: none;
}

.taxact-mobile-signin {
  display: none;
}

.taxact-mobile-section__items {
  display: none;
}

.taxact-mobile-section__toggle[aria-expanded="true"] + .taxact-mobile-section__items {
  display: block;
}

@media (max-width: 760px) {
  .taxact-nav,
  .taxact-signin {
    display: none;
  }

  .taxact-hamburger {
    display: flex;
  }

  .taxact-mobile-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 65px;
    background: #33187e;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    text-decoration: none;
    margin-left: auto;
  }

  .taxact-header__row {
    min-height: 56px;
    padding: 0;
    flex-wrap: nowrap;
  }

  .taxact-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 56px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--ta-line);
    padding: 0;
    z-index: 49;
  }

  .taxact-mobile-menu.is-open {
    display: block;
  }

  .taxact-mobile-menu > a {
    display: block;
    padding: 14px 24px;
    color: var(--ta-ink);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--ta-line);
  }

  .taxact-mobile-section {
    border-bottom: 1px solid var(--ta-line);
  }

  .taxact-mobile-section__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    background: none;
    border: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ta-ink);
    cursor: pointer;
  }

  .taxact-mobile-section__arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ta-ink);
    border-bottom: 2px solid var(--ta-ink);
    transform: rotate(45deg);
    transition: transform 0.2s;
  }

  .taxact-mobile-section__toggle[aria-expanded="true"] .taxact-mobile-section__arrow {
    transform: rotate(-135deg);
  }

  .taxact-mobile-section__items a {
    display: block;
    padding: 10px 24px 10px 40px;
    color: var(--ta-ink-soft);
    font-size: 0.95rem;
  }

  body.admin-bar .taxact-header {
    top: 46px;
  }

  .taxact-hero__inner {
    padding: 42px 0 44px;
  }

  .taxact-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .taxact-search__year {
    border-left: 0;
    border-top: 1px solid var(--ta-line);
  }

  .taxact-main {
    padding: 36px 0 60px;
  }

  .taxact-quick-links,
  .taxact-category-grid,
  .taxact-footer__grid {
    grid-template-columns: 1fr;
  }

  .taxact-footer__section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .taxact-footer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 14px 0;
    margin: 0;
  }

  .taxact-footer__heading-arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.2s;
  }

  .taxact-footer__heading[aria-expanded="true"] .taxact-footer__heading-arrow {
    transform: rotate(-135deg);
  }

  .taxact-footer__links {
    display: none;
    padding-bottom: 14px;
  }

  .taxact-footer__heading[aria-expanded="true"] + .taxact-footer__links {
    display: grid;
  }

  .taxact-support-cta {
    padding: 28px 20px;
  }

  .taxact-article-shell,
  .taxact-container {
    width: min(calc(100% - 24px), var(--ta-max));
  }

  .taxact-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
