/* Treatment pages: the "signature" section. Every treatment page has one, and each type exists on
   that page only (stains, toolkit, gauge, scale, stages, quadrants, decay, versus). Generated by
   gen_signature.py; loaded after treatment.css. */

.page .panel.tsig { background: linear-gradient(180deg, #f6f3fc 0%, #fbfafd 100%); }
.tsig__head { display: grid; gap: 14px; justify-items: start; max-width: 720px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.tsig__intro { font: 400 1.06rem/1.7 "Raleway", var(--f-body); color: var(--ink-2); }
.tsig__src, .tsig__fine { margin-top: 18px; font: 400 .84rem/1.6 var(--f-body); color: var(--muted); }
.tsig__src a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.tsig h3 { font-size: 1.15rem; letter-spacing: -.015em; }

/* shared card surface */
.tsig__col, .tsig__tool, .tsig__gauge, .tsig__table, .tsig__stage, .tsig__mouth, .tsig__costs, .tsig__signs, .tsig__track, .tsig__vs {
  border-radius: 24px; background: #fff; border: 1px solid #e9e4f5; box-shadow: 0 24px 48px -40px rgb(40 30 80 / .45); }

/* ------------------------------------------------ toolkit (Oral hygiene instruction) */
.tsig__routine { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.tsig__routine li { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; }
.tsig__routine strong { font: 600 1.25rem/1 var(--f-head); letter-spacing: -.02em; color: #c4b3f0; }
.tsig__routine span { font-size: .9rem; color: #e6e3ee; }
.tsig__tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tsig__tool { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.tsig__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); }
.tsig__ico .i { width: 22px; height: 22px; }
.tsig__tool p { font: 400 .93rem/1.6 "Raleway", var(--f-body); color: var(--ink-2); }

/* ------------------------------------------------ gauge (Periodontal maintenance) */
.tsig__gauge { display: grid; gap: 0; margin: 0; padding: 10px 26px; list-style: none; }
.tsig__band { display: grid; grid-template-columns: 92px minmax(120px, 1fr) minmax(0, 1.2fr); align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tsig__band:last-child { border-bottom: 0; }
.tsig__mm { display: flex; align-items: baseline; gap: 4px; font-size: .9rem; color: var(--muted); }
.tsig__mm strong { font: 600 2rem/1 var(--f-head); letter-spacing: -.03em; color: var(--ink); }
.tsig__depth { position: relative; height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tsig__depth i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.tsig__band--ok .tsig__depth i { width: 38%; background: #2f9e83; }
.tsig__band--watch .tsig__depth i { width: 58%; background: #d9a21b; }
.tsig__band--act .tsig__depth i { width: 86%; background: #c4566d; }
.tsig__bt { display: grid; gap: 3px; }
.tsig__bt strong { font: 600 1.02rem/1.3 var(--f-head); color: var(--ink); }
.tsig__bt small { font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.tsig__target { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 18px 22px; border-radius: 18px; background: var(--ink); color: #fff; font: 500 1rem/1.5 var(--f-head); }
.tsig__target .i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #c4b3f0; }

/* ------------------------------------------------ scale (Fluoride) */
.tsig__table { overflow-x: auto; }
.tsig__table:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tsig table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tsig thead th { padding: 16px 22px; text-align: left; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.tsig tbody th, .tsig tbody td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; color: var(--ink-2); }
.tsig tbody tr:last-child th, .tsig tbody tr:last-child td { border-bottom: 0; }
.tsig tbody th { font: 600 .98rem/1.35 var(--f-head); color: var(--ink); width: 34%; }
.tsig tbody td:nth-child(2) { width: 36%; min-width: 220px; }
.tsig__bar { display: block; width: var(--w); height: 10px; margin-bottom: 8px; border-radius: 999px; background: linear-gradient(90deg, #c4b3f0, var(--accent)); }
.tsig tbody tr:last-child .tsig__bar { background: linear-gradient(90deg, var(--accent), var(--ink)); }
.tsig__ppm { font: 600 1rem/1 var(--f-head); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ stages (Gum disease) */
.tsig__stages { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tsig__stage { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; overflow: hidden; }
.tsig__stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; }
.tsig__stage--ok::before { background: #2f9e83; }
.tsig__stage--watch::before { background: #d9a21b; }
.tsig__stage--act::before { background: #c4566d; }
.tsig__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font: 700 .8rem/1 var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.tsig__stage p { font: 400 .94rem/1.6 "Raleway", var(--f-body); color: var(--ink-2); }
.tsig__stage .tsig__out { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font: 600 .9rem/1.5 var(--f-body); color: var(--ink); }
.tsig__urgent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 18px 22px; border-radius: 18px; background: #fbeef1; border: 1px solid #f1d3da; color: #6e2235; font-size: .94rem; line-height: 1.55; }
.tsig__urgent .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #c4566d; }

/* ------------------------------------------------ quadrants (Deep cleaning) */
.tsig__quad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.tsig__mouth { display: grid; gap: 10px; place-items: center; margin: 0; padding: 26px; }
.tsig__mouth svg { width: 100%; max-width: 380px; height: auto; }
.tsig__mouth .q { fill: var(--accent-soft); stroke: #fff; stroke-width: 3; transition: fill .25s; }
.tsig__mouth .q:hover { fill: color-mix(in srgb, var(--accent) 30%, #ffffff); }
.tsig__mouth text { font: 600 13px/1 var(--f-body); fill: var(--ink); text-anchor: middle; }
.tsig__mouth figcaption { font-size: .84rem; color: var(--muted); text-align: center; }
.tsig__costs { display: grid; gap: 16px; align-content: start; padding: 26px; }
.tsig__costs dl { display: grid; gap: 0; margin: 0; }
.tsig__costs dl > div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tsig__costs dl > div:last-child { border-bottom: 0; }
.tsig__costs dt { font-size: .95rem; color: var(--ink-2); }
.tsig__costs dd { margin: 0; font: 600 1.25rem/1 var(--f-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.tsig__costs p { padding-top: 14px; border-top: 1px solid var(--line-2); font-size: .9rem; line-height: 1.6; color: var(--ink-2); }

/* ------------------------------------------------ decay (Fillings) */
.tsig__decay { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.tsig__signs, .tsig__track { display: grid; gap: 16px; padding: 26px; }
.tsig__signs h3 { display: flex; align-items: center; gap: 10px; }
.tsig__signs h3 .i { width: 18px; height: 18px; color: var(--accent); }
.tsig__signs .tsig__fine { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.tsig__path { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tsig__path li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; }
.tsig__path li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: -12px; width: 2px; background: var(--line-2); }
.tsig__path .tsig__n { grid-row: 1 / 3; }
.tsig__path li:nth-child(1) .tsig__n { background: #e3f3ee; border-color: #e3f3ee; color: #17695b; }
.tsig__path li:nth-child(2) .tsig__n { background: #fdf3dc; border-color: #fdf3dc; color: #7a5300; }
.tsig__path li:nth-child(3) .tsig__n { background: #fbe7d7; border-color: #fbe7d7; color: #93410f; }
.tsig__path li:nth-child(4) .tsig__n { background: #f6e1e6; border-color: #f6e1e6; color: #9b3a4f; }
.tsig__path strong { font: 600 1rem/1.3 var(--f-head); color: var(--ink); }
.tsig__path span:last-child { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }

/* ------------------------------------------------ versus (Scale & polish: plaque vs tartar) */
.tsig__versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.tsig__vs { display: grid; gap: 12px; padding: 28px; height: 100%; }
.tsig__vs--hard { background: var(--ink); border-color: var(--ink); color: #e6e3ee; --ink-2: #d1ced9; --accent-soft: #352f48; --accent: #c4b3f0; }
.tsig__vs--hard h3 { color: #fff; }
.tsig__vs-k { font: 700 .72rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tsig__vs--hard .tsig__vs-k { color: #a6a3b0; }
.tsig__vs h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.tsig__arrow { display: grid; justify-items: center; gap: 8px; max-width: 110px; text-align: center; }
.tsig__arrow .i { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: #fff; border: 1px solid #e9e4f5; color: var(--accent); }
.tsig__arrow small { font-size: .78rem; line-height: 1.35; color: var(--muted); }

/* ------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .tsig__tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .tsig__split, .tsig__quad, .tsig__decay { grid-template-columns: minmax(0, 1fr); }
  .tsig__stages { grid-template-columns: minmax(0, 1fr); }
  .tsig__versus { grid-template-columns: minmax(0, 1fr); }
  .tsig__arrow { max-width: none; grid-auto-flow: column; align-items: center; justify-content: center; }
  .tsig__arrow .i { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .tsig__swatches, .tsig__tools { grid-template-columns: minmax(0, 1fr); }
  .tsig__gauge { padding: 6px 18px; }
  .tsig__band { grid-template-columns: 70px minmax(0, 1fr); row-gap: 10px; }
  .tsig__band .tsig__bt { grid-column: 1 / -1; }
  .tsig__col, .tsig__tool, .tsig__stage, .tsig__mouth, .tsig__costs, .tsig__signs, .tsig__track, .tsig__vs { padding: 22px 20px; }
  .tsig thead th, .tsig tbody th, .tsig tbody td { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .tsig__mouth .q { transition: none; } }
