/* Treatments pages (/treatments, /treatments/:permalink). Uses the redesign tokens from redesign.css. */

.tx-intro { padding: 64px 0 28px; }
.tx-intro-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 40px; align-items: end; }
.tx-intro h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; margin: 10px 0 14px; }
.tx-lead { font-size: 17.5px; color: var(--muted); max-width: 64ch; margin: 0; }

.tx-search label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.tx-search-box { position: relative; }
.tx-search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--t); }
.tx-search-box input { width: 100%; height: 52px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px 0 44px; font-size: 16px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.tx-search-box input:focus { outline: none; border-color: var(--t); box-shadow: 0 0 0 4px rgba(1, 141, 150, .12); }
.tx-count { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.tx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--mist); color: var(--t-x); font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.tx-chip b { font-weight: 700; font-size: 12px; background: #fff; border-radius: 999px; padding: 1px 8px; color: var(--t); }
.tx-chip:hover, .tx-chip:focus-visible { background: #fff; border-color: var(--t); color: var(--t-x); text-decoration: none; }

.tx-groups { padding: 8px 0 72px; }
.tx-group { padding-top: 36px; scroll-margin-top: 120px; }
.tx-group[hidden] { display: none; }
.tx-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px; }
.tx-group-head h2 { font-size: 24px; margin: 0; }
.tx-link { font-weight: 600; font-size: 15px; color: var(--t); text-decoration: none; white-space: nowrap; }
.tx-link i { font-size: 12px; margin-left: 4px; transition: transform .2s; }
.tx-link:hover { color: var(--t-x); text-decoration: none; }
.tx-link:hover i { transform: translateX(3px); }

.tx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tx-card[hidden] { display: none; }
.tx-card-link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.tx-card-link:hover, .tx-card-link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; color: inherit; }
.tx-card figure { margin: 0; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.tx-card figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx-card-b { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tx-card-b h3 { font-size: 18px; line-height: 1.35; margin: 0 0 8px; }
.tx-card-b p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; flex: 1; }
.tx-card-b .hx-more { color: var(--t); font-weight: 600; font-size: 14px; }
.tx-empty { padding: 24px; background: var(--mist); border-radius: var(--r); }

.tx-cta { background: var(--t-x); color: #fff; padding: 48px 0; }
.tx-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.tx-cta h2 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.tx-cta p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 60ch; }
.tx-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tx-cta .hx-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.tx-cta .hx-btn-ghost:hover { background: #fff; color: var(--t-x); }

/* ---------- Detail ---------- */
.tx-detail { padding: 56px 0 80px; }
.tx-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.tx-dept { display: inline-block; text-decoration: none; }
.tx-main .tx-lead { font-size: 19px; color: var(--ink); margin: 12px 0 24px; max-width: none; }
.tx-hero { margin: 0 0 24px; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); aspect-ratio: 16 / 9; }
.tx-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tx-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tx-toc a { font-size: 14px; font-weight: 600; color: var(--t-x); background: var(--mist); padding: 6px 12px; border-radius: 999px; text-decoration: none; margin-bottom: 8px; }
.tx-toc a:hover { background: var(--t); color: #fff; }

.tx-sec { padding-top: 32px; scroll-margin-top: 120px; }
.tx-sec h2 { font-size: 24px; margin: 0 0 14px; }
.tx-prose { font-size: 16.5px; line-height: 1.75; }
.tx-prose p { margin: 0 0 14px; }
.tx-prose h3 { font-size: 18px; margin: 20px 0 8px; color: var(--ink); }
.tx-prose ul, .tx-prose ol { padding-left: 0; margin: 0 0 16px; list-style: none; }
.tx-prose li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.tx-prose ul li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--g); }
.tx-prose ol { counter-reset: tx; }
.tx-prose ol li { counter-increment: tx; }
.tx-prose ol li::before { content: counter(tx); position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--mist); color: var(--t-x); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tx-faq .hx-faq-q span { text-align: left; }
.tx-note { margin-top: 32px; padding: 14px 16px; background: var(--mist); border-radius: 12px; font-size: 14.5px; color: var(--muted); }
.tx-note i { color: var(--t); margin-right: 6px; }

.tx-side { position: sticky; top: 110px; display: grid; gap: 20px; }
.tx-book { background: linear-gradient(160deg, var(--t) 0%, var(--t-x) 100%); color: #fff; border-radius: var(--r); padding: 24px; display: grid; gap: 12px; }
.tx-book h2 { color: #fff; font-size: 21px; margin: 0; }
.tx-book p { margin: 0 0 4px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.tx-book .hx-btn { justify-content: center; width: 100%; }
.tx-book .hx-btn-solid { background: #fff; color: var(--t-x); }
.tx-book .hx-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.tx-wa { color: #fff; font-weight: 600; font-size: 14.5px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.tx-wa:hover { color: #fff; }
.tx-box { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; background: #fff; }
.tx-box h2 { font-size: 18px; margin: 0 0 14px; }
.tx-docs, .tx-related { list-style: none; padding: 0; margin: 0 0 14px; }
.tx-docs li + li { border-top: 1px solid var(--line); }
.tx-docs a { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.tx-docs img, .tx-doc-ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: var(--mist); }
.tx-doc-ph { display: grid; place-items: center; color: var(--t); }
.tx-docs b { display: block; font-size: 15px; line-height: 1.3; }
.tx-docs small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.tx-docs a:hover b { color: var(--t); }
.tx-related li { margin-bottom: 8px; }
.tx-related a { color: var(--t-x); font-weight: 500; text-decoration: none; }
.tx-related a:hover { color: var(--t); text-decoration: underline; }

/* Department page: treatments block */
.tx-dept-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 14px 0 0; }
.tx-dept-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 600; text-decoration: none; background: #fff; transition: border-color .2s, color .2s; }
.tx-dept-list a:hover { border-color: var(--t); color: var(--t); text-decoration: none; }
.tx-dept-list i { color: var(--t); font-size: 12px; }

@media (max-width: 991px) {
    .tx-intro-grid, .tx-detail-grid { grid-template-columns: 1fr; gap: 28px; }
    .tx-side { position: static; }
}
@media (max-width: 575px) {
    .tx-intro { padding: 40px 0 16px; }
    .tx-group-head h2 { font-size: 21px; }
    .tx-grid { grid-template-columns: 1fr; }
    .tx-main .tx-lead { font-size: 17px; }
    .tx-sec h2 { font-size: 21px; }
    .tx-cta { padding: 36px 0; }
}
.tx-book .hx-btn.hx-btn-solid { background: #fff; color: var(--t-x); border-color: #fff; }
.tx-book .hx-btn.hx-btn-solid:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.tx-book .hx-btn.hx-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.tx-para { font-size: 16.5px; line-height: 1.75; margin: 0 0 14px; }
