/* =====================================================================
   Free Tools: the six 4-step decision tools (template-parts/calcs/dt.php,
   assets/js/tools-dt.js). Loaded only on their pages (inc/calcs.php), on
   top of tools.css. The Copy's dt2.css layout in the x3 look: a paper card
   on the navy hero, navy result panels, gold for the winner, mono labels.
   Prefix: .tl-dt-
   ===================================================================== */

.tl-hero.is-dt{padding-bottom:clamp(40px,5vw,72px)}
.tl-hero.is-dt .tl-back{margin-bottom:6px}
.tl-hero.is-dt .tl-disc{max-width:80ch; margin-top:22px}
.tl-dt{--dt-a:#A9B8CF; --dt-b:#E3A93C}

/* ---------- progress ---------- */
.tl-dt-prog{display:flex; align-items:center; gap:14px; margin:4px 0 16px}
.tl-dt-dots{display:flex; gap:6px}
.tl-dt-dots i{width:28px; height:6px; border-radius:3px; background:rgba(251,246,235,.2); transition:width .3s var(--ease),background .3s ease}
.tl-dt-dots i.is-done{background:var(--g3)}
.tl-dt-dots i.is-now{width:44px; background:var(--g)}
.tl-dt-stepn{font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted-d)}

/* ---------- the card ---------- */
.tl-dt-card{position:relative; background:var(--paper); color:var(--ink); border-radius:28px; padding:clamp(22px,3.4vw,44px); box-shadow:0 60px 120px -70px rgba(0,0,0,.65)}
@media (max-width:560px){ .tl-dt-card{padding:22px 14px 18px; border-radius:22px} }
.tl-dt-card .v3-eyebrow{color:var(--g-ink)}
.tl-dt-card .v3-lead{color:var(--muted-l)}
.v3-js .tl-dt-step:not(.is-on){display:none}
html:not(.v3-js) .tl-dt-s3,html:not(.v3-js) .tl-dt-s4,html:not(.v3-js) .tl-dt-nav,html:not(.v3-js) .tl-dt-go .v3-btn,html:not(.v3-js) .tl-dt-q{display:none}
html:not(.v3-js) .tl-dt-s2{margin-top:40px; padding-top:32px; border-top:1px solid var(--line-l)}
.tl-dt-step [tabindex="-1"]:focus{outline:none}
.tl-dt-step [tabindex="-1"]:focus-visible{outline:2px solid var(--g-ink); outline-offset:4px; border-radius:6px}
.tl-dt .v3-i.is-back{transform:scaleX(-1)}
.tl-dt-ic{flex:none; display:inline-grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--n1); color:var(--g)}
.tl-dt-ic .v3-i{width:16px; height:16px; stroke-width:2}
.tl-dt-ic.is-g{background:var(--g); color:var(--n0)}

/* ---------- 1: the question ---------- */
.tl-dt-s1{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(24px,4vw,56px); align-items:center}
@media (max-width:820px){ .tl-dt-s1{grid-template-columns:1fr} .tl-dt-art{order:-1} }
.tl-dt-h1.v3-h1{max-width:none; margin-top:14px; color:var(--ink); font-size:clamp(34px,4.2vw,56px)}
.tl-dt-h1 .y{color:var(--g-lg)}
.tl-dt-intro.v3-lead{max-width:44ch; margin-top:16px}
.tl-dt-out{display:flex; gap:12px; align-items:flex-start; margin:22px 0 28px; padding:14px 16px; border-radius:16px; background:var(--c1); font-size:16px; line-height:1.55; color:var(--ink2)}
.tl-dt-out b{color:var(--ink)}
.tl-dt-go{display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.tl-dt-go small{font-family:var(--mono); font-size:14px; color:var(--muted-l)}
.tl-dt-art{min-width:0}
.tl-dt-ill{display:block; width:100%; height:auto; border-radius:24px}
@media (max-width:820px){ .tl-dt-ill{max-height:260px; margin:0 auto} }
.tl-dt-ill .m{font-family:var(--mono)}
.tl-dt-ill .s{font-family:var(--font)}

/* ---------- shared: step headings and navigation ---------- */
.tl-dt-h2{font-size:clamp(26px,3vw,36px); letter-spacing:-.03em}
.tl-dt-nav{display:flex; justify-content:space-between; align-items:center; gap:12px 16px; flex-wrap:wrap; margin-top:28px; padding-top:22px; border-top:1px solid var(--line-l)}
.tl-dt-lnk{display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 2px; border:0; background:none; font-size:15.5px; font-weight:600; color:var(--ink2)}
.tl-dt-lnk .v3-i{width:18px; height:18px; transition:transform .3s var(--ease)}
.tl-dt-lnk:hover{color:var(--ink)}
.tl-dt-lnk:hover .v3-i{transform:scaleX(-1) translateX(3px)}
@media (max-width:480px){ .tl-dt-nav>.v3-btn{flex:1 1 100%} }

/* ---------- 2: your numbers ---------- */
.tl-dt-h2row{display:flex; justify-content:space-between; align-items:center; gap:12px 16px; flex-wrap:wrap; margin-bottom:22px}
.tl-dt-sample{display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; background:rgba(227,169,60,.17); color:var(--g-ink); font-size:14px; font-weight:600; line-height:1.4}
.tl-dt-sample .v3-i,.tl-dt-note .v3-i{width:17px; height:17px; flex:none}
.tl-dt-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 28px}
@media (max-width:640px){ .tl-dt-grid{grid-template-columns:1fr} }
.tl-dt-f{display:grid; gap:8px; align-content:start; min-width:0}
.tl-dt-l{display:flex; align-items:center; gap:10px; min-height:44px}
.tl-dt-l label{font-size:15px; font-weight:600; line-height:1.35; color:var(--ink)}
.tl-dt-q{flex:none; display:grid; place-items:center; width:44px; height:44px; margin:-6px -10px -6px -8px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--muted-l)}
.tl-dt-q span{display:grid; place-items:center; width:24px; height:24px; border-radius:50%; border:1.5px solid rgba(19,26,37,.5); font-size:12.5px; font-weight:800; transition:background .2s ease,color .2s ease,border-color .2s ease}
.tl-dt-q:hover span,.tl-dt-q[aria-expanded="true"] span{background:var(--n1); border-color:var(--n1); color:var(--g)}
.tl-dt-help{padding:10px 14px; border-radius:12px; background:var(--n1); color:var(--c0); font-size:14px; line-height:1.5}
.tl-dt-in{display:flex; align-items:center; gap:6px; min-height:52px; padding:0 16px; border:1px solid rgba(19,26,37,.5); border-radius:14px; background:#fff; transition:border-color .2s ease,box-shadow .2s ease}
.tl-dt-in:focus-within{border-color:var(--g-ink); box-shadow:0 0 0 3px rgba(227,169,60,.25)}
.tl-dt-in i{font-style:normal; font-family:var(--mono); font-size:14px; color:var(--muted-l)}
.tl-dt-in input{flex:1; min-width:0; padding:12px 0; border:0; background:transparent; font-size:17px; font-weight:700; color:var(--ink); outline:none; font-variant-numeric:tabular-nums}
.tl-dt-sel{width:100%; max-width:100%; min-height:52px; padding:0 14px; border:1px solid rgba(19,26,37,.5); border-radius:14px; background:#fff; font-size:16px; font-weight:600; color:var(--ink)}
.tl-dt-sel:focus{outline:none; border-color:var(--g-ink); box-shadow:0 0 0 3px rgba(227,169,60,.25)}
.tl-dt-note{display:flex; gap:10px; align-items:flex-start; margin-top:18px; padding:12px 16px; border-radius:14px; background:#E9F6EE; border:1px solid #B8E2C8; color:#0B3D24; font-size:14.5px; line-height:1.5}
.tl-dt-err{margin-top:14px; font-size:15px; font-weight:700; color:var(--bad)}
.tl-dt-err:empty{display:none}

/* ---------- 3: sliders, the two paths, the chart ---------- */
.tl-dt-play{display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.4fr); grid-template-areas:"sl cards" "sl charts"; column-gap:28px; align-items:start}
.tl-dt-sl{grid-area:sl; display:grid; gap:14px; min-width:0}
.tl-dt-sl .tl-dt-h2{margin-bottom:6px; font-size:clamp(24px,2.4vw,30px)}
.tl-dt-srow{display:flex; justify-content:space-between; align-items:baseline; gap:12px}
.tl-dt-srow label{font-size:14.5px; font-weight:600; line-height:1.35; color:var(--ink2)}
.tl-dt-srow b{flex:none; font-size:18px; font-weight:700; color:var(--ink)}
.tl-dt-s .tl-range{margin:0 0 -6px}
.tl-dt-tip{margin-top:4px; padding:14px 16px; border-radius:16px; background:var(--c1); font-size:14.5px; line-height:1.55; color:var(--ink2)}
.tl-dt-tip b{color:var(--ink)}
.tl-dt-tip p{margin-bottom:10px}
.tl-dt-at{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px}
.tl-dt-at>span{display:grid; gap:1px; padding:7px 4px; border-radius:10px; text-align:center; font-size:14px; font-weight:700; line-height:1.3}
.tl-dt-at em{font-style:normal; font-family:var(--mono); font-size:12px; font-weight:500; opacity:.85}
.tl-dt-at .is-a{background:rgba(11,23,40,.08); color:var(--n1)}
.tl-dt-at .is-b{background:rgba(227,169,60,.22); color:var(--g-ink)}
.tl-dt-at .is-c{background:var(--paper); color:var(--ink2); box-shadow:inset 0 0 0 1px rgba(19,26,37,.18)}

.tl-dt-cards{grid-area:cards; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:26px 22px 10px; border-radius:22px 22px 0 0; min-width:0}
.tl-dt-charts{grid-area:charts; padding:10px 22px 22px; border-radius:0 0 22px 22px; min-width:0}
.tl-dt-pc{position:relative; display:grid; gap:4px; align-content:start; min-width:0; padding:20px 18px 16px; border-radius:18px; border:1px solid var(--line-d); background:rgba(251,246,235,.04); transition:border-color .25s ease,background .25s ease}
.tl-dt-pc.is-win{border-color:var(--g); background:rgba(227,169,60,.1)}
.tl-dt-pc.is-win.is-cc{border-color:rgba(243,205,128,.7); background:rgba(243,205,128,.06)}
.tl-dt-badge{position:absolute; top:-13px; left:16px; display:inline-flex; align-items:center; gap:6px; max-width:calc(100% - 24px); padding:4px 12px; border-radius:999px; background:var(--g); color:var(--n0); font-size:13px; font-weight:700; line-height:1.35; white-space:nowrap}
.tl-dt-badge .v3-i{width:14px; height:14px; stroke-width:2.2}
.tl-dt-pc.is-cc .tl-dt-badge{background:var(--c0)}
.tl-dt-pt{display:flex; align-items:center; gap:10px}
.tl-dt-pi{flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--n3); color:var(--g)}
.tl-dt-pc.is-b .tl-dt-pi{background:var(--g); color:var(--n0)}
.tl-dt-pi .v3-i{width:17px; height:17px; stroke-width:2}
.tl-dt-pt h3{font-size:17px; line-height:1.25; letter-spacing:-.01em; color:var(--c0)}
.tl-dt-pc small{margin-top:10px; font-size:13.5px; line-height:1.4; color:var(--muted-d)}
.tl-dt-big{font-size:clamp(28px,3.2vw,40px); font-weight:700; line-height:1.08; letter-spacing:-.03em; color:var(--c0); overflow-wrap:anywhere}
.tl-dt-pc.is-win .tl-dt-big{color:var(--g2)}
.tl-dt-pc.is-win.is-cc .tl-dt-big{color:var(--c0)}
.tl-dt-pm{display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:6px; font-size:14px; line-height:1.45; color:var(--muted-d)}
.tl-dt-pm b{color:var(--c0)}
.tl-dt-pm .is-late,.tl-dt-pm .is-late b{color:#FDBA74}
@media (max-width:860px){
  .tl-dt-play{grid-template-columns:1fr; grid-template-areas:"cards" "sl" "charts"; row-gap:20px}
  .tl-dt-cards{border-radius:20px; padding:14px 12px 12px; gap:10px}
  .tl-dt-charts{border-radius:20px; padding:16px 14px 16px}
  .tl-dt-pc{padding:14px 12px 12px}
  .tl-dt-pt h3{font-size:15px}
  .tl-dt-pt .tl-dt-pi{width:28px; height:28px}
  .tl-dt-pc small{margin-top:6px; font-size:13px}
  .tl-dt-big{font-size:26px}
  .tl-dt-pm{flex-direction:column; font-size:13.5px}
  .tl-dt-badge{position:static; justify-self:start; max-width:100%; margin:-6px 0 6px; padding:4px 10px; font-size:12.5px; white-space:normal}
}
@media (max-width:360px){ .tl-dt-cards{grid-template-columns:1fr; row-gap:20px} }

.tl-dt-tabs{margin-bottom:10px}
.tl-dt-tabs .v3-chip{min-height:44px; padding:8px 14px; font-size:14px}
@media (max-width:480px){
  .tl-dt-tabs{flex-wrap:wrap; overflow:visible}
  .tl-dt-tabs .v3-chip{padding:8px 12px}
}
.tl-dt-mc{margin:0; min-width:0; padding:14px 16px 12px; border-radius:16px; border:1px solid var(--line-d); background:rgba(251,246,235,.03)}
.tl-dt-mc figcaption{display:grid; gap:2px; margin-bottom:6px}
.tl-dt-mc figcaption b{font-size:16px; color:var(--c0)}
.tl-dt-mc figcaption span{font-size:13.5px; line-height:1.45; color:var(--muted-d)}
.tl-dt-svg{display:block; width:100%; height:215px; overflow:visible}
.tl-dt-gr line{stroke:var(--line-d); stroke-width:1}
.tl-dt-gr line.is-zero{stroke:rgba(251,246,235,.34)}
.tl-dt-gr text,.tl-dt-xt text{font-family:var(--mono); font-size:11px; fill:rgba(251,246,235,.66)}
.tl-dt-mark line{stroke:var(--g2); stroke-width:1.5; stroke-dasharray:4 4}
.tl-dt-mark text{font-family:var(--font); font-size:11.5px; font-weight:700; fill:var(--g2)}
.tl-dt-mc .is-a{--c:var(--dt-a)}
.tl-dt-mc .is-b{--c:var(--dt-b)}
.tl-dt-area{fill:var(--c); stroke:none; opacity:.09}
.tl-dt-line{fill:none; stroke:var(--c); stroke-width:3.5; stroke-linejoin:round; stroke-linecap:round}
.tl-dt-line.is-dash{stroke-width:2.5; stroke-dasharray:7 6}
.tl-dt-dot{fill:var(--c); stroke:var(--n1); stroke-width:2}
.tl-dt-lg{display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:8px; font-size:13.5px; line-height:1.4; color:rgba(251,246,235,.82)}
.tl-dt-lg>span{display:inline-flex; align-items:center; gap:8px}
.tl-dt-lg i{flex:none; width:18px; height:4px; border-radius:2px; background:var(--c)}
.tl-dt-lg i.is-dash{background:repeating-linear-gradient(90deg,var(--c) 0 5px,transparent 5px 8px)}
.tl-dt-lg b{color:var(--c0)}

/* ---------- 4: the verdict ---------- */
.tl-dt-res{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; align-items:start}
@media (max-width:880px){ .tl-dt-res{grid-template-columns:1fr} }
.tl-dt-rl,.tl-dt-rr{display:grid; gap:18px; min-width:0}
.tl-dt-verdict{position:relative; overflow:hidden; padding:24px 26px; border-radius:22px; background:radial-gradient(120% 90% at 100% 0%,#13294A 0%,var(--n1) 60%,var(--n0) 100%)}
.tl-dt-tag{display:inline-block; padding:6px 14px; border-radius:999px; background:var(--g); color:var(--n0); font-size:13px; font-weight:700; line-height:1.35}
.tl-dt-tag.is-cc{background:transparent; color:var(--g2); box-shadow:inset 0 0 0 1px var(--g2)}
.tl-dt-vt{margin:14px 0 8px; padding-right:72px; font-size:clamp(28px,3.2vw,38px); line-height:1.1; letter-spacing:-.03em; color:var(--g2)}
.tl-dt-vs{font-size:16px; line-height:1.55; color:var(--muted-d)}
.tl-dt-vs strong{color:var(--c0)}
.tl-dt-tr{position:absolute; right:20px; top:50%; width:84px; height:84px; transform:translateY(-50%); color:var(--g); opacity:.16; pointer-events:none}
.tl-dt-tr .v3-i{width:100%; height:100%; stroke-width:1.5}
@media (max-width:480px){ .tl-dt-verdict{padding:22px 18px} .tl-dt-vt{padding-right:40px} .tl-dt-tr{width:60px; height:60px; right:12px} }
.tl-dt-why{list-style:none; display:grid; gap:10px}
.tl-dt-why li{position:relative; padding-left:26px; font-size:16px; line-height:1.55; color:var(--ink2)}
.tl-dt-why li::before{content:''; position:absolute; left:4px; top:.6em; width:9px; height:9px; border-radius:50%; background:var(--g)}
.tl-dt-why b{color:var(--ink)}
.tl-dt-bars{display:grid; gap:12px; padding:18px 20px; border-radius:18px; border:1px solid var(--line-l); background:#fff}
.tl-dt-bt{font-family:var(--mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-l)}
.tl-dt-bar{display:grid; grid-template-columns:92px minmax(0,1fr) auto; gap:12px; align-items:center; font-size:14.5px; font-weight:600; color:var(--ink2)}
.tl-dt-track{display:block; height:12px; border-radius:6px; background:var(--c1); overflow:hidden}
.tl-dt-track i{display:block; height:100%; width:0; border-radius:6px; background:var(--n1); transition:width .4s var(--ease)}
.tl-dt-bar.is-b .tl-dt-track i{background:var(--g)}
.tl-dt-bar.is-m .tl-dt-track i{background:var(--sage)}
.tl-dt-bar b{min-width:84px; font-size:17px; font-weight:700; text-align:right; color:var(--ink)}
.tl-dt-bar.is-w b{color:var(--g-ink)}
.tl-dt-bar.is-w.is-a b{color:var(--n1)}
@media (max-width:420px){ .tl-dt-bar{grid-template-columns:76px minmax(0,1fr) auto; gap:10px} .tl-dt-bar b{min-width:0; font-size:15.5px} }
@media (prefers-reduced-motion:reduce){ .tl-dt-track i,.tl-dt-dots i{transition:none} }

.tl-dt-tbl{width:100%; border-collapse:collapse; font-size:15px}
.tl-dt-tbl th,.tl-dt-tbl td{padding:10px 8px; border-bottom:1px solid var(--line-l); vertical-align:middle}
.tl-dt-tbl thead th{width:84px; font-size:14px; font-weight:700; text-align:center; color:var(--ink)}
.tl-dt-tbl thead td{border-bottom-color:var(--line-l)}
.tl-dt-tbl thead th.is-w{background:var(--n1); color:var(--g2); border-radius:12px 12px 0 0}
.tl-dt-tbl tbody th{text-align:left; font-weight:600; line-height:1.35; color:var(--ink)}
.tl-dt-tbl tbody th>span{vertical-align:middle}
.tl-dt-tbl tbody th .tl-dt-ic{width:28px; height:28px; margin-right:10px; background:var(--c1); color:var(--ink)}
.tl-dt-tbl td{text-align:center}
.tl-dt-tbl td.is-w{background:rgba(227,169,60,.1)}
.tl-dt-ck{display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%}
.tl-dt-ck .v3-i{width:14px; height:14px; stroke-width:3}
.tl-dt-tbl td.is-y .tl-dt-ck{background:#DDF1E5; color:#1A6B43}
.tl-dt-tbl td.is-n .tl-dt-ck{background:#F6E3DF; color:var(--bad)}
.tl-dt-tbl td.is-y .tl-dt-ck .v3-i:last-child,.tl-dt-tbl td.is-n .tl-dt-ck .v3-i:first-child{display:none}
@media (max-width:520px){ .tl-dt-tbl thead th{width:62px} .tl-dt-tbl th,.tl-dt-tbl td{padding:9px 5px} .tl-dt-tbl tbody th .tl-dt-ic{display:none} .tl-dt-tbl{font-size:14px} }

.tl-dt-call{gap:12px; padding:20px; border-radius:20px; background:var(--c1)}
.tl-dt-call h3{display:flex; align-items:center; gap:10px; font-size:19px; letter-spacing:-.015em}
.tl-dt-call h3 .tl-dt-ic{width:28px; height:28px}
.tl-dt-cf{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
.tl-dt-cf .tl-dt-cn,.tl-dt-cf .v3-btn{grid-column:1 / -1}
.tl-dt-cf .v3-field{gap:0}
.tl-dt-cf .v3-btn{width:100%}
@media (max-width:420px){ .tl-dt-cf{grid-template-columns:1fr} }
.tl-dt-call textarea{position:absolute; left:0; top:0; width:1px; height:1px; resize:none}
.tl-dt-disc{max-width:56ch; font-size:13px; line-height:1.5; color:var(--muted-l)}
