/* Treatments page. Two surfaces only: a white page and one parchment tint for every card (no borders).
   Wine (#47181c) is for text, buttons and the single "not sure" panel. Muted text stays in the wine family. */
.tx-hero { padding-top: 56px; }
.tx-hero h1 { margin: 10px 0 12px; color: #47181c; font: 600 56px/1.05 'Welm Display', Georgia, serif; letter-spacing: -1px; }
.tx-hero p:not(.eyebrow) { max-width: 600px; color: #6e3438; font-size: 18px; line-height: 1.6; }
/* The two questionnaires, half the page each: the card is the button. */
.tx-choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.tx-choose-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; min-height: 280px; overflow: hidden; padding: 34px 34px 30px; border-radius: 24px; background: linear-gradient(150deg, #f6f1ea 0%, #ede4d9 100%); color: #47181c; text-decoration: none; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.tx-choose-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(71, 24, 28, .08); pointer-events: none; }
.tx-choose-card:hover { box-shadow: 0 18px 40px -24px rgba(71, 24, 28, .45); transform: translateY(-2px); }
.tx-choose-card:focus-visible { outline: 2px solid #47181c; outline-offset: 3px; }
.tx-choose-text { display: flex; flex-direction: column; align-self: stretch; }
.tx-choose-eyebrow { color: #8b5d54; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.tx-choose-title { margin-top: 12px; font: 500 38px/1.05 'Welm Display', Georgia, serif; letter-spacing: -.3px; }
.tx-choose-desc { max-width: 340px; margin-top: 12px; color: #6e3438; font-size: 16px; line-height: 1.55; }
.tx-choose-go { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 24px; color: #6e3438; font-size: 14px; }
.tx-choose-arrow { display: grid; flex: 0 0 52px; place-items: center; order: -1; width: 52px; height: 52px; border-radius: 50%; background: #47181c; color: #fbf6f0; transition: transform .25s ease, background .25s ease; }
.tx-choose-arrow svg { width: 22px; height: 22px; }
.tx-choose-card:hover .tx-choose-arrow { background: #632b31; transform: translateX(4px); }
.tx-choose-art { display: flex; align-items: flex-end; justify-content: center; align-self: end; padding-bottom: 2px; }
.tx-choose-art .tx-vials { --vial-h: 190px; }
.tx-choose-card:hover .tx-vials { transform: translateY(-4px); }

.tx-group { padding-top: 48px; }
.tx-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.tx-group-head h2 { color: #47181c; font: 500 34px/1.1 'Welm Display', Georgia, serif; }
.tx-group-head p { color: #8b5d54; font-size: 15px; }
.tx-group-head p a { color: #47181c; text-decoration: underline; text-underline-offset: 3px; }

.tx-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tx-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #f2ede6; }
.tx-card--wide { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
.tx-art { position: relative; display: block; min-height: 250px; }
.tx-art img { position: absolute; inset: 22px 12px 6px; width: calc(100% - 24px); height: calc(100% - 28px); object-fit: contain; transition: transform .25s ease; }
.tx-art:hover img { transform: translateY(-4px); }
.tx-add-name { margin-left: .3em; } /* a flex button drops the space before it */
/* Protocol cards: the vials side by side at one size (the homepage's method: each source PNG has empty edges, so it is
   placed to show only the vial). Sized for three across the card; Safari 15 and older keep the fixed size. */
.tx-art--vials { display: flex; align-items: flex-end; justify-content: center; padding: 30px 12px 16px; container-type: inline-size; }
.tx-vials { --vial-h: 150px; display: flex; align-items: flex-end; gap: 12px; height: var(--vial-h); transition: transform .25s ease; }
@supports (width: 1cqi) { .tx-vials { --vial-h: min(190px, calc((100cqi - 24px) / 1.29)); } }
.tx-art--vials:hover .tx-vials { transform: translateY(-4px); }
.tx-vial { --src-h: 1474; --src-top: 26; --src-center: 50.1953125%; position: relative; display: block; flex: 0 0 calc(var(--vial-h) * .43); width: calc(var(--vial-h) * .43); height: var(--vial-h); overflow: hidden; }
.tx-vial[data-vial="nad"] { --src-center: 50.146484375%; }
.tx-vial[data-vial="sermorelin"] { --src-h: 1473; }
.tx-vial[data-vial="tirzepatide"] { --src-h: 1472; }
.tx-vials .tx-vial img { position: absolute; display: block; margin: 0; inset: auto; top: calc(-100% * var(--src-top) / var(--src-h)); left: 50%; width: auto; max-width: none; height: calc(100% * 1536 / var(--src-h)); object-fit: fill; transform: translateX(calc(-1 * var(--src-center))); transition: none; }
.tx-art:hover .tx-vial img { transform: translateX(calc(-1 * var(--src-center))); }
.tx-info { display: flex; flex: 1; flex-direction: column; padding: 6px 22px 22px; }
.tx-card--wide .tx-info { padding: 28px 28px 26px 6px; }
.tx-chip { align-self: flex-start; padding: 0 10px; border-radius: 30px; background: #47181c; color: #fbf6f0; font-size: 12px; line-height: 24px; }
.tx-card h3 { margin: 10px 0 6px; font: 500 26px/1.1 'Welm Display', Georgia, serif; }
.tx-card--wide h3 { margin-top: 14px; font-size: 36px; }
.tx-card h3 a { color: #47181c; text-decoration: none; }
.tx-desc { color: #6e3438; font-size: 15px; line-height: 1.5; text-wrap: pretty; }

.tx-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.tx-plan { position: relative; cursor: pointer; }
.tx-plan input { position: absolute; opacity: 0; pointer-events: none; }
.tx-plan span { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid #ddd0c5; border-radius: 12px; background: #fff; transition: border-color .15s; }
.tx-plan strong { color: #47181c; font-size: 14px; font-weight: 500; }
.tx-plan small { color: #8b5d54; font-size: 13px; }
.tx-plan:hover span { border-color: #a98779; }
.tx-plan input:checked + span { border-color: #47181c; box-shadow: inset 0 0 0 1px #47181c; }
.tx-plan input:focus-visible + span { outline: 2px solid #47181c; outline-offset: 2px; }

.tx-price { display: flex; align-items: baseline; gap: 2px; margin-top: auto; padding-top: 18px; color: #47181c; }
.tx-price strong { font-size: 30px; font-weight: 600; line-height: 1.1; }
.tx-price span { color: #6e3438; font-size: 14px; }
.tx-quarter { margin-top: 4px; color: #8b5d54; font-size: 13px; }
.tx-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.tx-add { flex: 1; min-height: 46px; font-size: 14.5px; }
.tx-more { color: #47181c; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.tx-note { max-width: 780px; margin-top: 24px; color: #8b5d54; font-size: 13.5px; line-height: 1.6; }

.tx-help { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding: 40px 44px; border-radius: 24px; background: #47181c; color: #fbf6f0; }
.tx-help-eyebrow { color: #e2b98f; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tx-help h2 { margin: 8px 0; color: #fbf6f0; font: 500 34px/1.1 'Welm Display', Georgia, serif; }
.tx-help p:not(.tx-help-eyebrow) { max-width: 520px; color: #ead8d0; font-size: 15.5px; line-height: 1.55; }
.tx-help-actions { display: flex; flex: none; flex-direction: column; align-items: center; gap: 14px; }
.tx-help .button { min-width: 230px; min-height: 50px; background: #fbf6f0; color: #47181c; }
.tx-help-link { color: #fbf6f0; font-size: 14.5px; text-decoration: underline; text-decoration-color: rgba(251, 246, 240, .5); text-underline-offset: 4px; }

.tx-standard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 56px 0 0; padding: 32px 0 88px; border-top: 1px solid #e8ddd4; list-style: none; }
.tx-standard li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-content: start; gap: 4px 14px; }
.tx-standard svg { grid-row: span 2; width: 26px; height: 26px; color: #47181c; }
.tx-standard strong { color: #47181c; font-size: 15px; font-weight: 500; }
.tx-standard span { color: #8b5d54; font-size: 14px; line-height: 1.5; }

@media (max-width: 1100px) {
  .tx-choose-card { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 28px 26px 26px; }
  .tx-choose-art { order: -1; justify-content: flex-start; }
  .tx-choose-title { font-size: 32px; }
  .tx-choose-art .tx-vials { --vial-h: 130px; gap: 8px; }
  .tx-wide { grid-template-columns: minmax(0, 1fr); }
  .tx-grid, .tx-standard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tx-choose { grid-template-columns: 1fr; }
  .tx-choose-card { grid-template-columns: minmax(0, 1fr) auto; align-items: end; min-height: 0; }
  .tx-choose-art { order: 0; justify-content: center; }
}
@media (max-width: 700px) {
  .tx-choose { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .tx-choose-card { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 0; padding: 24px 20px 22px; border-radius: 18px; }
  .tx-choose-title { margin-top: 8px; font-size: 28px; }
  .tx-choose-desc { margin-top: 8px; font-size: 15px; }
  .tx-choose-go { gap: 12px; padding-top: 16px; font-size: 13px; }
  .tx-choose-arrow { flex-basis: 44px; width: 44px; height: 44px; }
  .tx-choose-art .tx-vials { --vial-h: 88px; gap: 4px; }
  .tx-add-name { display: none; } /* "Choose" fits one line on a phone; the full name stays for screen readers */
  .tx-hero { padding-top: 32px; }
  .tx-hero h1 { font-size: 40px; }
  .tx-hero p:not(.eyebrow) { font-size: 16px; }
  .tx-group { padding-top: 36px; }
  .tx-group-head { display: block; margin-bottom: 14px; }
  .tx-group-head h2 { font-size: 28px; }
  .tx-group-head p { margin-top: 4px; }
  .tx-card { border-radius: 16px; }
  .tx-card--wide { grid-template-columns: minmax(0, 1fr); }
  .tx-card--wide .tx-art { min-height: 230px; }
  .tx-card--wide .tx-info { padding: 0 18px 20px; }
  .tx-card--wide h3 { margin-top: 10px; font-size: 30px; }
  .tx-grid { gap: 12px; }
  .tx-grid .tx-art { min-height: 170px; }
  .tx-grid .tx-info { padding: 0 12px 14px; }
  .tx-grid h3 { font-size: 21px; }
  .tx-grid .tx-desc { font-size: 13.5px; }
  .tx-grid .tx-price strong { font-size: 24px; }
  .tx-grid .tx-quarter { font-size: 12px; }
  .tx-grid .tx-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .tx-grid .tx-more { text-align: center; }
  .tx-help { flex-direction: column; align-items: stretch; margin-top: 40px; padding: 28px 22px; }
  .tx-help h2 { font-size: 28px; }
  .tx-help-actions { align-items: stretch; }
  .tx-standard { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { .tx-choose-card, .tx-choose-arrow { transition: none; } .tx-choose-card:hover, .tx-choose-card:hover .tx-choose-arrow, .tx-choose-card:hover .tx-vials { transform: none; } .tx-art img, .tx-plan span, .tx-vials { transition: none; } .tx-art:hover img { transform: none; } .tx-art--vials:hover .tx-vials { transform: none; } }
