:root {
  --tba-ink: #101826;
  --tba-muted: #65717d;
  --tba-soft: #f4f1ea;
  --tba-paper: #fffdf8;
  --tba-card: rgba(255, 255, 255, .86);
  --tba-line: rgba(16, 24, 38, .12);
  --tba-teal: #008a7a;
  --tba-teal-2: #e0f5ef;
  --tba-berry: #9a3f77;
  --tba-coral: #df6e61;
  --tba-gold: #d6a64b;
  --tba-indigo: #2f3d73;
  --tba-plum: #4f315f;
  --tba-shadow: 0 34px 110px rgba(16, 24, 38, .15);
  --tba-radius: 8px;
  --tba-max: 1180px;
  --tba-heading: "Fraunces", Georgia, serif;
  --tba-ui: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.tba-wrap),
body:has(.tba-book) {
  background: var(--tba-soft);
}

.wp-block-navigation {
  display: none !important;
}

body:has(.tba-wrap) .wp-site-blocks > header,
body:has(.tba-book) .wp-site-blocks > header,
body:has(.tba-wrap) .wp-site-blocks > footer,
body:has(.tba-book) .wp-site-blocks > footer,
body:has(.tba-wrap) .wp-block-post-title,
body:has(.tba-book) .wp-block-post-title {
  display: none !important;
}

body:has(.tba-wrap) .entry-content,
body:has(.tba-book) .entry-content,
body:has(.tba-wrap) .has-global-padding,
body:has(.tba-book) .has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body:has(.tba-wrap) .alignfull,
body:has(.tba-book) .alignfull,
body:has(.tba-wrap) .wp-block-group,
body:has(.tba-book) .wp-block-group,
body:has(.tba-wrap) .wp-block-post-content,
body:has(.tba-book) .wp-block-post-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html:has(.tba-wrap),
html:has(.tba-book),
body:has(.tba-wrap),
body:has(.tba-book),
body:has(.tba-wrap) .wp-site-blocks,
body:has(.tba-book) .wp-site-blocks {
  overflow-x: hidden;
}

body:has(.tba-wrap) .wp-block-post-content,
body:has(.tba-book) .wp-block-post-content {
  margin-block-start: 0 !important;
}

body:has(.tba-wrap) main.wp-block-group,
body:has(.tba-book) main.wp-block-group,
body:has(.tba-wrap) .wp-block-group > *,
body:has(.tba-book) .wp-block-group > *,
body:has(.tba-wrap) main.wp-block-group > *,
body:has(.tba-book) main.wp-block-group > *,
body:has(.tba-wrap) .wp-site-blocks > *,
body:has(.tba-book) .wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

.tba-wrap,
.tba-book {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -70px;
  color: var(--tba-ink);
  background:
    linear-gradient(120deg, rgba(0, 138, 122, .11) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(245deg, rgba(154, 63, 119, .1) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #fffaf2 0%, #f5f1ea 44%, #eef8f4 100%);
  font-family: var(--tba-ui);
  overflow: hidden;
}

.tba-wrap *,
.tba-book * {
  box-sizing: border-box;
}

.tba-shell {
  width: min(var(--tba-max), calc(100vw - 40px));
  margin: 0 auto;
}

.tba-topnav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(280px, 360px) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin: 14px 0 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
  box-shadow: 0 18px 55px rgba(18, 32, 34, .1);
  backdrop-filter: blur(18px);
}

.tba-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--tba-ink) !important;
  text-decoration: none !important;
  font-weight: 900;
  letter-spacing: 0;
}

.tba-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)),
    conic-gradient(from 220deg, var(--tba-teal), var(--tba-indigo), var(--tba-berry), var(--tba-gold), var(--tba-teal));
  border-radius: var(--tba-radius);
  box-shadow: 0 18px 42px rgba(0, 138, 122, .24);
  font-size: 11px;
  letter-spacing: .12em;
  isolation: isolate;
}

.tba-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 6px;
  z-index: -1;
}

.tba-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  right: 7px;
  bottom: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.tba-navlinks {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  width: max-content;
  padding: 6px;
  border: 1px solid rgba(18, 32, 34, .08);
  background: rgba(247, 244, 241, .72);
  border-radius: 999px;
}

.tba-navlinks a,
.tba-chip,
.tba-mode button {
  color: var(--tba-muted) !important;
  text-decoration: none !important;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.tba-navlinks a:hover,
.tba-chip.is-active,
.tba-mode button.is-active {
  color: var(--tba-ink) !important;
  background: #fff;
}

.tba-wrap .tba-global-search,
.tba-book .tba-global-search {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tba-topnav .tba-global-search {
  justify-self: stretch;
}

.tba-global-search-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(18, 32, 34, .12);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--tba-ink);
  font: 800 14px/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: inset 0 1px 0 rgba(18, 32, 34, .03);
}

.tba-global-search-input::placeholder {
  color: #7b898b;
  font-weight: 750;
}

.tba-search-submit {
  width: auto;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: #fff;
  background: #122022;
  font: 900 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.tba-search-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(520px, calc(100vw - 28px));
  max-height: 460px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(18, 32, 34, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 80px rgba(18, 32, 34, .18);
}

.tba-popover-head,
.tba-catalog-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px 10px;
  color: var(--tba-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tba-result-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  color: var(--tba-ink) !important;
  text-decoration: none !important;
}

.tba-result-item:hover {
  background: #f2faf7;
}

.tba-result-title {
  font-weight: 950;
  line-height: 1.2;
}

.tba-result-meta,
.tba-result-status,
.tba-empty-result {
  color: var(--tba-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tba-result-status {
  color: var(--tba-teal);
  font-weight: 850;
}

.tba-hero,
.tba-book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: min(720px, calc(100vh - 42px));
  padding: clamp(34px, 5vw, 76px) 0 clamp(28px, 5vw, 62px);
}

.tba-eyebrow {
  margin: 0 0 14px;
  color: var(--tba-berry);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tba-hero h1,
.tba-book h1 {
  max-width: 920px;
  margin: 0 0 20px;
  font-family: var(--tba-heading);
  font-size: clamp(44px, 6vw, 82px);
  line-height: .94;
  letter-spacing: 0;
  font-weight: 700;
}

.tba-book h1 {
  font-size: clamp(38px, 5.5vw, 78px);
}

.tba-lede,
.tba-book-lede {
  max-width: 760px;
  color: var(--tba-muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.62;
}

.tba-hero-search {
  max-width: 780px;
  margin: 26px 0 0;
}

.tba-global-search--hero {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
  border: 1px solid rgba(18, 32, 34, .11);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 70px rgba(18, 32, 34, .12);
}

.tba-global-search--hero .tba-global-search-input,
.tba-global-search--hero .tba-search-submit {
  min-height: 54px;
}

.tba-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 18px;
}

.tba-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: var(--tba-radius);
  font-weight: 900;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.tba-button:hover {
  transform: translateY(-1px);
}

.tba-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--tba-teal), #0aa392);
  box-shadow: 0 20px 48px rgba(0, 138, 122, .27);
}

.tba-ghost {
  color: var(--tba-ink) !important;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--tba-line);
}

.tba-disclaimer {
  max-width: 780px;
  padding: 13px 14px;
  color: #683934 !important;
  background: #fff0ed;
  border: 1px solid rgba(217, 107, 95, .26);
  border-radius: var(--tba-radius);
  font-size: 13px;
  line-height: 1.45;
}

.tba-product-card,
.tba-study-card,
.tba-search-shell,
.tba-subject,
.tba-exam-app,
.tba-faq,
.tba-stat-card {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: var(--tba-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78)),
    var(--tba-card);
  box-shadow: var(--tba-shadow);
}

.tba-product-card {
  padding: clamp(18px, 2.3vw, 28px);
}

.tba-command-card {
  position: relative;
  overflow: hidden;
}

.tba-command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 124, 120, .12), transparent 34%),
    linear-gradient(315deg, rgba(152, 65, 100, .12), transparent 40%);
  pointer-events: none;
}

.tba-command-card > * {
  position: relative;
}

.tba-card-head,
.tba-exam-top,
.tba-book-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tba-card-head span,
.tba-tag,
.tba-stat-card span {
  color: var(--tba-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tba-metrics,
.tba-book-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.tba-metrics div,
.tba-book-stats div {
  min-height: 98px;
  padding: 15px;
  border: 1px solid var(--tba-line);
  border-radius: var(--tba-radius);
  background: rgba(255, 255, 255, .76);
}

.tba-metrics b,
.tba-book-stats b {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.tba-metrics span,
.tba-book-stats span {
  display: block;
  margin-top: 9px;
  color: var(--tba-muted);
  font-size: 12px;
  line-height: 1.25;
}

.tba-study-card {
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(18, 32, 34, .94), rgba(60, 70, 111, .94)),
    #172426;
  box-shadow: none;
}

.tba-study-card h2 {
  margin: 12px 0;
  font-size: clamp(22px, 2.7vw, 34px);
  line-height: 1.08;
}

.tba-study-card ul {
  margin: 0;
  padding-left: 20px;
}

.tba-study-card li {
  color: #d6e7e4;
  line-height: 1.72;
}

.tba-command-screen {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(18, 32, 34, .1);
  border-radius: 8px;
  background: #122022;
}

.tba-command-screen div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.tba-command-screen span {
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tba-command-screen strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.tba-section {
  padding: clamp(54px, 7vw, 96px) 0;
}

.tba-section h2 {
  max-width: 900px;
  margin: 8px 0 14px;
  font-family: var(--tba-heading);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
}

.tba-section > p,
.tba-section .tba-section-copy {
  max-width: 810px;
  color: var(--tba-muted);
  line-height: 1.62;
  font-size: 17px;
}

.tba-search-shell {
  padding: 18px;
  margin: 26px 0;
}

.tba-catalog-search {
  padding: clamp(16px, 2.5vw, 26px);
}

.tba-search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.tba-search-row input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--tba-line);
  border-radius: var(--tba-radius);
  padding: 0 16px;
  background: #fff;
  color: var(--tba-ink);
  font: inherit;
}

.tba-result-count {
  color: var(--tba-muted);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.tba-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tba-catalog-results {
  margin-top: 18px;
  border-top: 1px solid rgba(18, 32, 34, .08);
  padding-top: 14px;
}

.tba-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tba-result-grid .tba-result-item {
  border: 1px solid rgba(18, 32, 34, .08);
  background: #fff;
}

.tba-browse-index {
  margin-top: 20px;
  border: 1px dashed rgba(18, 32, 34, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
}

.tba-browse-index > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--tba-ink);
  font-weight: 950;
  cursor: pointer;
}

.tba-browse-index > summary span {
  color: var(--tba-muted);
  font-size: 13px;
}

.tba-subject-stack {
  padding: 0 14px 14px;
}

.tba-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, .72fr));
  gap: 14px;
  align-items: stretch;
}

.tba-editorial-block,
.tba-feature-panel {
  border-radius: 8px;
}

.tba-editorial-block {
  padding: clamp(24px, 3vw, 34px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 38, .98), rgba(47, 61, 115, .96) 62%, rgba(154, 63, 119, .92)),
    #101826;
  box-shadow: var(--tba-shadow);
}

.tba-editorial-block h2 {
  color: #fff;
}

.tba-editorial-block .tba-section-copy {
  color: rgba(255, 255, 255, .74);
}

.tba-feature-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(16, 24, 38, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78)),
    #fff;
  box-shadow: 0 22px 70px rgba(16, 24, 38, .09);
}

.tba-feature-panel span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--tba-teal), var(--tba-berry));
  font-weight: 950;
}

.tba-feature-panel h3 {
  margin: 0;
  font-family: var(--tba-heading);
  font-size: 26px;
  line-height: 1.05;
}

.tba-feature-panel p {
  margin: 0;
  color: var(--tba-muted);
  line-height: 1.55;
}

.tba-subject {
  margin: 12px 0;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(18, 32, 34, .06);
}

.tba-subject[hidden],
.tba-book-row[hidden] {
  display: none !important;
}

.tba-subject summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 950;
}

.tba-subject summary span {
  color: var(--tba-teal);
  font-size: 13px;
}

.tba-subject ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  list-style: none;
  margin: 0;
  padding: 0 20px 18px;
}

.tba-book-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  border-top: 1px solid rgba(18, 32, 34, .08);
}

.tba-book-row a {
  color: var(--tba-ink) !important;
  text-decoration: none !important;
  font-weight: 850;
  line-height: 1.25;
}

.tba-book-row span {
  color: var(--tba-muted);
  font-size: 12px;
  text-align: right;
}

.tba-exam-band {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 38, .99), rgba(47, 61, 115, .96) 58%, rgba(79, 49, 95, .98)),
    #101826;
}

.tba-exam-band .tba-section-copy,
.tba-exam-band p {
  color: rgba(255, 255, 255, .72);
}

.tba-demo-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.tba-demo-panel,
.tba-demo-question {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--tba-radius);
  background: rgba(255, 255, 255, .075);
  padding: clamp(20px, 2.4vw, 28px);
}

.tba-demo-question {
  background: #fff;
  color: var(--tba-ink);
}

.tba-answer-list {
  display: grid;
  gap: 9px;
}

.tba-answer-list div {
  padding: 13px;
  border: 1px solid var(--tba-line);
  border-radius: var(--tba-radius);
  background: #fbfcfb;
}

.tba-answer-list .selected {
  border-color: rgba(8, 124, 120, .35);
  background: var(--tba-teal-2);
}

.tba-learning {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid var(--tba-teal);
  border-radius: 6px;
  background: #f0f8f5;
}

.tba-learning h4 {
  margin: 0 0 6px;
  color: var(--tba-teal);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tba-learning p,
.tba-learning li {
  color: #43595b;
  line-height: 1.5;
}

.tba-book {
  padding-bottom: 72px;
}

.tba-book-hero {
  min-height: auto;
  padding-top: clamp(30px, 5vw, 70px);
}

.tba-book-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--tba-berry);
  background: #fff0ed;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tba-book-meta {
  margin-top: 22px;
  flex-wrap: wrap;
}

.tba-book-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--tba-line);
  border-radius: 999px;
  color: var(--tba-muted);
  background: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 850;
}

.tba-toc-note {
  max-width: 780px;
  margin: 18px 0 0;
  padding: 12px 13px;
  border: 1px solid rgba(8, 124, 120, .18);
  border-radius: 8px;
  color: #37595a;
  background: #edf8f4;
  font-size: 13px;
  line-height: 1.45;
}

.tba-stat-card {
  padding: 20px;
}

.tba-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}

.tba-exam-app {
  width: min(var(--tba-max), calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(14px, 2vw, 22px);
  box-shadow: var(--tba-shadow);
}

.tba-exam-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 10px 10px 22px;
}

.tba-exam-header h2 {
  margin: 5px 0 6px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.tba-exam-header p {
  max-width: 780px;
  margin: 0;
  color: var(--tba-muted);
  line-height: 1.55;
}

.tba-exam-count {
  min-width: 148px;
  padding: 14px;
  border-radius: var(--tba-radius);
  color: #fff;
  background: var(--tba-teal);
  text-align: center;
  font-weight: 950;
}

.tba-exam-count b {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.tba-exam-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
}

.tba-chapter-rail {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.tba-chapter-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--tba-line);
  border-radius: var(--tba-radius);
  color: var(--tba-ink);
  background: rgba(255, 255, 255, .78);
  text-align: left;
  cursor: pointer;
}

.tba-chapter-tab.is-active {
  border-color: rgba(8, 124, 120, .35);
  background: var(--tba-teal-2);
}

.tba-chapter-tab strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.tba-chapter-tab span {
  color: var(--tba-muted);
  font-size: 11px;
  font-weight: 850;
}

.tba-exam-stage {
  min-width: 0;
  border: 1px solid var(--tba-line);
  border-radius: var(--tba-radius);
  background: #fff;
  overflow: hidden;
}

.tba-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--tba-line);
}

.tba-stage-top h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 31px);
  line-height: 1.12;
}

.tba-mode {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--tba-line);
  border-radius: 999px;
  background: #f7faf8;
}

.tba-progress {
  height: 10px;
  background: #edf2ef;
}

.tba-progress span {
  display: block;
  width: 1%;
  height: 100%;
  background: linear-gradient(90deg, var(--tba-teal), var(--tba-berry));
  transition: width .18s ease;
}

.tba-question-card {
  padding: clamp(18px, 2.6vw, 30px);
}

.tba-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tba-question-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--tba-muted);
  background: #f3f6f5;
  font-size: 12px;
  font-weight: 850;
}

.tba-question-card h4 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.18;
}

.tba-options {
  display: grid;
  gap: 10px;
}

.tba-option {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--tba-line);
  border-radius: var(--tba-radius);
  background: #fbfcfb;
  color: var(--tba-ink);
  text-align: left;
  line-height: 1.38;
  cursor: pointer;
}

.tba-option:hover,
.tba-option:focus-visible {
  border-color: rgba(8, 124, 120, .36);
  outline: 0;
}

.tba-option.is-correct {
  border-color: rgba(8, 124, 120, .55);
  background: #dff4ed;
}

.tba-option.is-wrong {
  border-color: rgba(217, 107, 95, .55);
  background: #fff0ed;
}

.tba-rationale {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(8, 124, 120, .18);
  border-left: 4px solid var(--tba-teal);
  border-radius: var(--tba-radius);
  background: #f2faf7;
}

.tba-rationale.is-visible {
  display: block;
}

.tba-rationale h5 {
  margin: 12px 0 6px;
  color: var(--tba-teal);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tba-rationale h5:first-child {
  margin-top: 0;
}

.tba-rationale p,
.tba-rationale li {
  color: #43595b;
  line-height: 1.55;
}

.tba-exam-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.tba-exam-actions button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--tba-line);
  border-radius: var(--tba-radius);
  background: #fff;
  color: var(--tba-ink);
  font-weight: 850;
  cursor: pointer;
}

.tba-exam-actions .tba-next {
  color: #fff;
  background: var(--tba-teal);
  border-color: var(--tba-teal);
}

.tba-question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 7px;
  padding: 18px;
  border-top: 1px solid var(--tba-line);
  background: #fbfaf8;
}

.tba-question-grid button {
  min-height: 36px;
  border: 1px solid var(--tba-line);
  border-radius: 6px;
  background: #fff;
  color: var(--tba-muted);
  font-weight: 850;
  cursor: pointer;
}

.tba-question-grid button.is-active,
.tba-question-grid button.is-answered {
  color: #fff;
  background: var(--tba-teal);
}

.tba-faq {
  width: min(var(--tba-max), calc(100vw - 40px));
  margin: 28px auto 0;
  padding: clamp(20px, 3vw, 32px);
}

.tba-faq h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.5vw, 42px);
}

.tba-faq details {
  border-top: 1px solid var(--tba-line);
  padding: 15px 0;
}

.tba-faq summary {
  cursor: pointer;
  font-weight: 900;
}

.tba-faq p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--tba-muted);
  line-height: 1.58;
}

.tba-footer {
  margin-top: clamp(54px, 7vw, 96px);
  padding: clamp(34px, 5vw, 64px) 0;
  color: rgba(255, 255, 255, .78);
  background:
    linear-gradient(135deg, rgba(18, 32, 34, .98), rgba(35, 48, 61, .98)),
    #122022;
}

.tba-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .55fr) minmax(240px, .8fr);
  gap: clamp(22px, 4vw, 54px);
}

.tba-footer .tba-brand {
  color: #fff !important;
}

.tba-footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, .66);
  line-height: 1.58;
}

.tba-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tba-footer a:not(.tba-brand) {
  display: block;
  margin: 10px 0;
  color: rgba(255, 255, 255, .76) !important;
  text-decoration: none !important;
  font-weight: 800;
}

@media (max-width: 980px) {
  .tba-topnav {
    position: relative;
    top: auto;
    grid-template-columns: 1fr auto;
  }

  .tba-navlinks {
    display: none;
  }

  .tba-topnav .tba-global-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .tba-nav-cta {
    order: 2;
  }

  .tba-hero,
  .tba-book-hero,
  .tba-demo-grid,
  .tba-exam-layout,
  .tba-footer-grid,
  .tba-premium-grid {
    grid-template-columns: 1fr;
  }

  .tba-hero,
  .tba-book-hero {
    min-height: auto;
  }

  .tba-chapter-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .tba-stage-top,
  .tba-exam-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tba-shell,
  .tba-exam-app,
  .tba-faq {
    width: min(100% - 20px, var(--tba-max));
  }

  .tba-wrap,
  .tba-book {
    margin-top: -30px;
  }

  .tba-metrics,
  .tba-book-stats,
  .tba-subject ul,
  .tba-search-row,
  .tba-chapter-rail,
  .tba-result-grid {
    grid-template-columns: 1fr;
  }

  .tba-topnav {
    margin-top: 8px;
    padding: 8px;
  }

  .tba-brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tba-topnav .tba-button {
    min-height: 42px;
    padding: 0 13px;
    font-size: 13px;
  }

  .tba-global-search,
  .tba-global-search--hero {
    grid-template-columns: 1fr;
  }

  .tba-search-submit {
    width: 100%;
  }

  .tba-product-card,
  .tba-exam-app {
    padding: 12px;
  }

  .tba-book-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 11px 0;
  }

  .tba-book-row span {
    text-align: left;
  }

  .tba-mode {
    width: 100%;
  }

  .tba-mode button {
    flex: 1;
  }

  .tba-question-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .tba-hero h1,
  .tba-book h1 {
    font-size: clamp(38px, 12vw, 48px);
    line-height: .98;
  }

  .tba-topnav .tba-brand span:last-child {
    font-size: 0;
    max-width: none;
  }

  .tba-topnav .tba-brand span:last-child::after {
    content: "Study Hub";
    font-size: 16px;
    font-weight: 950;
  }
}
