/* Treatments hub — tokens from styles.css. Distinct from conditions.css. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tx-page .tx-breadcrumb {
  padding: 10px 0 0;
}

.tx-page .tx-section {
  padding: 48px 0;
}

.tx-page .tx-section .section-title {
  letter-spacing: -0.03em;
  font-size: clamp(26px, 2.8vw, 36px);
  margin-bottom: 10px;
}

.tx-page .tx-lede {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Hero: editorial split with gold rail */
.tx-hub-hero {
  padding: 28px 0 36px;
  background:
    radial-gradient(800px 280px at 12% 0%, rgba(92, 77, 177, 0.08), transparent 60%),
    var(--white);
}

.tx-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.tx-hub-hero-copy .tx-hero-lead {
  max-width: 46ch;
}

.tx-hub-photo {
  position: relative;
  margin: 0;
}

.tx-hub-photo::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 18px;
  bottom: 18px;
  width: 6px;
  border-radius: 8px;
  background: var(--gold);
}

.tx-hub-photo img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(26, 43, 86, 0.14);
}

/* Search */
.tx-find {
  background: #f5f7fb;
}

.tx-find-box {
  position: relative;
  max-width: 820px;
  margin-top: 18px;
}

.tx-find-box input {
  width: 100%;
  min-height: 62px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 118px 16px 20px;
  font: 500 16px/1.4 var(--font);
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.tx-find-box input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-color: var(--purple);
}

.tx-find-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: #f4f6fb;
}

.tx-find-clear:hover {
  background: #e8ecf5;
}

.tx-find-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Featured: numbered rows, not a card dump */
.tx-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.tx-feat {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease;
}

.tx-feat:hover {
  background: linear-gradient(90deg, rgba(92, 77, 177, 0.04), transparent 70%);
}

.tx-feat-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.tx-feat h3 {
  font-size: 16px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.tx-feat p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.tx-feat-go {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  white-space: nowrap;
}

/* Categories: 3-col editorial, no photo collage */
.tx-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.tx-cat {
  text-align: left;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tx-cat:hover,
.tx-cat.is-active {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.tx-cat strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.tx-cat small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* A–Z compact rows */
.tx-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 10px;
}

.tx-letter {
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.tx-letter:hover,
.tx-letter.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.tx-letter:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: var(--text-muted);
}

.tx-az-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-top: 8px;
}

.tx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.tx-row:hover h3 {
  color: var(--purple);
}

.tx-row h3 {
  font-size: 15px;
  margin: 0 0 2px;
}

.tx-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.tx-row-go {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple);
  white-space: nowrap;
}

.tx-empty {
  display: none;
  margin-top: 24px;
  padding: 28px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--text-muted);
}

.tx-empty.is-visible {
  display: block;
}

/* Mid consult CTA — contained, not a clone of homepage banner */
.tx-choose {
  background: #f5f7fb;
}

.tx-choose-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 36px rgba(26, 43, 86, 0.16);
}

.tx-choose-panel .section-eyebrow {
  color: var(--gold);
}

.tx-choose-panel h2 {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.tx-choose-panel p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  line-height: 1.65;
}

.tx-choose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tx-choose-actions .tx-btn--primary {
  background: var(--gold);
  color: #fff;
  border: 1.5px solid var(--gold);
}

.tx-choose-actions .tx-btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.tx-choose-actions .tx-btn--ghost {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* Why: four numbered editorial items */
.tx-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin-top: 28px;
}

.tx-why-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
}

.tx-why-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef0f8;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.tx-why-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.tx-why-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.tx-page #popular,
.tx-page #az,
.tx-page #faq {
  background: var(--white);
}

.tx-page #categories,
.tx-page #why {
  background: #f5f7fb;
}

.tx-page #help.final-cta {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.tx-page #help .section-eyebrow {
  color: var(--gold);
  margin-bottom: 4px;
}

.tx-page #help .final-cta-layout {
  min-height: 280px;
  justify-content: center;
}

.tx-page #help .final-cta-title {
  max-width: 16ch;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
}

.tx-page #help .final-cta-family {
  object-position: 42% 18%;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .tx-hub-hero-grid,
  .tx-featured,
  .tx-az-list,
  .tx-why,
  .tx-choose-panel {
    grid-template-columns: 1fr;
  }

  .tx-cats {
    grid-template-columns: 1fr 1fr;
  }

  .tx-hub-photo::before {
    display: none;
  }

  .tx-choose-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .tx-page .tx-section {
    padding: 32px 0;
  }

  .tx-cats,
  .tx-featured,
  .tx-az-list,
  .tx-why {
    grid-template-columns: 1fr;
  }

  .tx-find-box input {
    padding-right: 96px;
    min-height: 56px;
  }

  .tx-choose-panel {
    padding: 22px 20px;
  }

  .tx-page #help .final-cta-layout {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tx-feat,
  .tx-cat {
    transition: none;
  }
}
