/* HOMES by Jo — shared styles for the three calculator pages (Mortgage, Stamp Duty, Affordability). */
.tl-wrap{max-width:1180px;margin:0 auto;padding:22px 48px 0}
.tl-crumb{display:flex;flex-wrap:wrap;gap:6px;font-size:var(--fs-3,14px);color:var(--hbj-muted);margin-bottom:18px}
.tl-crumb a{color:var(--hbj-accent)}
.tl-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.tl-tab{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:var(--hbj-radius-pill);background:#fff;box-shadow:var(--hbj-shadow-card);font-size:var(--fs-4,15px);font-weight:600;color:var(--hbj-muted-strong) !important}
.tl-tab:hover{color:var(--hbj-accent) !important}
.tl-tab--on{background:var(--hbj-accent);color:#fff !important}
.tl-tab--on:hover{color:#fff !important}
.tl-h1{font-family:var(--hbj-font-display);font-size:var(--fs-18,36px);font-weight:700;color:var(--hbj-heading);margin:0 0 10px;line-height:1.15;text-wrap:balance}
.tl-lede{font-size:var(--fs-5,16px);line-height:1.7;color:var(--hbj-muted-strong);margin:0 0 8px;max-width:72ch;text-wrap:pretty}
.tl-asat{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:var(--fs-3,14px);color:var(--hbj-muted);margin:0 0 24px}
.tl-asat b{color:var(--hbj-label)}
.tl-linkbtn{background:none;border:none;padding:0;font:inherit;color:var(--hbj-accent);font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.tl-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:28px;align-items:start}
.tl-card{background:#fff;border-radius:var(--hbj-radius-panel);box-shadow:var(--hbj-shadow-raised);padding:26px}
.tl-result{position:sticky;top:92px}
.tl-stack{display:flex;flex-direction:column;gap:20px}
.tl-field{display:flex;flex-direction:column;gap:8px}
.tl-label{font-size:var(--fs-4,15px);font-weight:700;color:var(--hbj-label)}
.tl-labelrow{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.tl-help{font-size:var(--fs-2,13px);line-height:1.55;color:var(--hbj-muted)}
.tl-input{box-sizing:border-box;width:100%;min-height:48px;padding:0 14px;border:1px solid var(--hbj-hairline-strong);border-radius:var(--hbj-radius-input);background:#fff;font:inherit;font-size:var(--fs-6,17px);font-weight:600;color:var(--hbj-heading)}
.tl-input:focus{outline:2px solid var(--hbj-accent);outline-offset:1px;border-color:transparent}
.tl-input[disabled]{background:var(--hbj-surface-tint);color:var(--hbj-muted-strong)}
.tl-inline{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:12px;align-items:center}
.tl-inline--wide{grid-template-columns:minmax(0,1fr) 170px}
.tl-range{width:100%;accent-color:oklch(0.36 0.11 35);height:28px;margin:0}
.tl-seg{display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:var(--hbj-surface-sunken);border-radius:12px}
.tl-seg button{flex:1 1 auto;min-height:44px;padding:0 14px;border:none;border-radius:9px;background:transparent;font:inherit;font-size:var(--fs-4,15px);font-weight:600;color:var(--hbj-muted-strong);cursor:pointer}
.tl-seg button.tl-on{background:#fff;color:var(--hbj-accent);box-shadow:0 1px 4px rgba(90,50,20,.12)}
.tl-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;font-size:var(--fs-4,15px);color:var(--hbj-label);cursor:pointer;line-height:1.45;padding-top:10px;box-sizing:border-box}
.tl-check input{width:20px;height:20px;margin:0;accent-color:oklch(0.36 0.11 35);flex:0 0 auto}
.tl-adv{border-top:1px solid var(--hbj-hairline-strong);padding-top:6px}
.tl-adv>summary,.tl-disc-sum{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-size:var(--fs-4,15px);font-weight:700;color:var(--hbj-accent)}
.tl-adv>summary::-webkit-details-marker,.tl-disc-sum::-webkit-details-marker{display:none}
.tl-adv>summary::before,.tl-disc-sum::before{content:"+";display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:50%;background:var(--hbj-surface-sunken);font-size:var(--fs-4,15px)}
.tl-adv[open]>summary::before,details[open]>.tl-disc-sum::before{content:"–"}
.tl-adv-body{display:flex;flex-direction:column;gap:18px;padding:10px 0 4px}
.tl-kicker{font-size:var(--fs-2,13px);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--hbj-muted)}
.tl-big{font-family:var(--hbj-font-display);font-size:var(--fs-22,47px);font-weight:700;color:var(--hbj-heading);line-height:1.08;margin:6px 0 4px;font-variant-numeric:tabular-nums}
.tl-big small{font-family:var(--hbj-font-body);font-size:var(--fs-6,17px);font-weight:600;color:var(--hbj-muted-strong)}
.tl-sub{font-size:var(--fs-4,15px);line-height:1.6;color:var(--hbj-muted-strong)}
.tl-sub b{color:var(--hbj-heading)}
.tl-rows{display:flex;flex-direction:column;margin-top:18px;border-top:1px solid var(--hbj-hairline-strong)}
.tl-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--hbj-hairline);font-size:var(--fs-4,15px);color:var(--hbj-muted-strong)}
.tl-row b{color:var(--hbj-heading);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.tl-row--sub{padding-left:14px;font-size:var(--fs-3,14px)}
.tl-row--total{font-weight:700;color:var(--hbj-heading);border-bottom:none;font-size:var(--fs-5,16px)}
.tl-strike{text-decoration:line-through;color:var(--hbj-muted);font-weight:600;margin-right:8px}
.tl-note{background:var(--hbj-surface-tint);border-radius:12px;padding:12px 14px;font-size:var(--fs-3,14px);line-height:1.6;color:var(--hbj-label)}
.tl-note--warn{background:oklch(0.95 0.04 80)}
.tl-note--good{background:oklch(0.95 0.035 145)}
.tl-notes{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.tl-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.tl-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 22px;border-radius:var(--hbj-radius-pill);background:var(--hbj-accent);color:#fff !important;font-weight:700;font-size:var(--fs-4,15px);flex:1 1 auto}
.tl-cta:hover{background:var(--hbj-accent-hover)}
.tl-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:var(--hbj-radius-pill);background:#fff;border:1px solid var(--hbj-hairline-strong);font:inherit;font-weight:700;font-size:var(--fs-4,15px);color:var(--hbj-label);cursor:pointer}
.tl-next{display:flex;flex-direction:column;gap:2px;margin-top:18px;padding-top:14px;border-top:1px solid var(--hbj-hairline-strong)}
.tl-next a{display:flex;align-items:center;min-height:44px;font-weight:700;font-size:var(--fs-4,15px)}
.tl-chart{position:relative;height:170px;margin-top:10px}
.tl-bars{position:absolute;inset:0;display:flex;align-items:stretch;gap:2px}
.tl-bar{flex:1 1 0;display:flex;flex-direction:column;justify-content:flex-end;min-width:0}
.tl-bar i{display:block}
.tl-bar .tl-bi{background:oklch(0.86 0.05 45)}
.tl-bar .tl-bp{background:oklch(0.40 0.09 38)}
.tl-line{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.tl-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:var(--fs-2,13px);color:var(--hbj-muted-strong);margin-top:10px}
.tl-legend span{display:inline-flex;align-items:center;gap:6px}
.tl-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.tl-axis{display:flex;justify-content:space-between;font-size:var(--fs-1,12px);color:var(--hbj-muted);margin-top:6px}
.tl-table{width:100%;border-collapse:collapse;font-size:var(--fs-3,14px);font-variant-numeric:tabular-nums}
.tl-table th{text-align:right;font-size:var(--fs-1,12px);text-transform:uppercase;letter-spacing:.06em;color:var(--hbj-muted);padding:8px 6px;border-bottom:1px solid var(--hbj-hairline-strong)}
.tl-table td{text-align:right;padding:8px 6px;border-bottom:1px solid var(--hbj-hairline);color:var(--hbj-label)}
.tl-table th:first-child,.tl-table td:first-child{text-align:left}
.tl-scroll{max-height:340px;overflow:auto;margin-top:8px}
.tl-gauge{display:flex;flex-direction:column;gap:6px}
.tl-gauge__track{position:relative;height:12px;border-radius:6px;background:var(--hbj-surface-sunken);overflow:hidden}
.tl-gauge__fill{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:oklch(0.55 0.12 145)}
.tl-gauge__fill--over{background:oklch(0.52 0.17 30)}
.tl-gauge__cap{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--hbj-heading)}
.tl-stackbar{display:flex;height:16px;border-radius:8px;overflow:hidden;margin:12px 0 6px;background:var(--hbj-surface-sunken)}
.tl-stackbar i{display:block;height:100%}
.tl-buyer{border:1px solid var(--hbj-hairline-strong);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:14px}
.tl-buyer__head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tl-buyer__title{font-weight:700;font-size:var(--fs-5,16px);color:var(--hbj-heading)}
.tl-select{box-sizing:border-box;width:100%;min-height:48px;padding:0 12px;border:1px solid var(--hbj-hairline-strong);border-radius:var(--hbj-radius-input);background:#fff;font:inherit;font-size:var(--fs-5,16px);color:var(--hbj-heading)}
.tl-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.tl-limit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;margin-top:16px;padding:14px;border-radius:12px;background:var(--hbj-surface-tint);font-size:var(--fs-4,15px)}
.tl-limit b{text-align:right;font-variant-numeric:tabular-nums;color:var(--hbj-heading)}
.tl-limit .tl-bind{color:var(--hbj-accent);font-weight:700}
.tl-section{margin-top:22px}
.tl-h3{font-family:var(--hbj-font-display);font-size:var(--fs-8,19px);font-weight:700;color:var(--hbj-heading);margin:0 0 6px}
.tl-explain{max-width:820px;margin:64px auto 0;font-size:var(--fs-5,16px);line-height:1.8;color:var(--hbj-muted-strong)}
.tl-explain h2{font-family:var(--hbj-font-display);font-size:var(--fs-13,25px);font-weight:700;color:var(--hbj-heading);margin:0 0 14px}
.tl-explain ul{padding-left:22px;margin:0 0 16px}
.tl-explain p{margin:0 0 16px;text-wrap:pretty}
.tl-faq{border-bottom:1px solid var(--hbj-hairline-strong)}
.tl-faq>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:56px;font-weight:700;font-size:var(--fs-5,16px);color:var(--hbj-heading)}
.tl-faq>summary::-webkit-details-marker{display:none}
.tl-faq>summary::after{content:"+";font-size:var(--fs-9,20px);color:var(--hbj-accent)}
.tl-faq[open]>summary::after{content:"–"}
.tl-faq p{margin:0 0 16px}
.tl-how{margin-top:18px}
.tl-how ul{margin:8px 0 0;padding-left:20px;font-size:var(--fs-3,14px);line-height:1.7;color:var(--hbj-muted-strong)}
.tl-disc{max-width:820px;margin:40px auto 90px;font-size:var(--fs-2,13px);line-height:1.7;color:var(--hbj-muted)}
.tl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tl-sticky{display:none}
@media (max-width:980px){
  .tl-grid{grid-template-columns:minmax(0,1fr)}
  .tl-result{position:static}
}
@media (max-width:767px){
  .tl-wrap{padding:16px 16px 0}
  .tl-card{padding:18px}
  .tl-h1{font-size:var(--fs-14,27px)}
  .tl-big{font-size:var(--fs-18,36px)}
  .tl-inline,.tl-inline--wide{grid-template-columns:minmax(0,1fr) 110px}
  .tl-two{grid-template-columns:minmax(0,1fr)}
  .tl-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;align-items:center;justify-content:space-between;gap:12px;padding:12px 88px 12px 16px;background:#fff;box-shadow:0 -6px 20px rgba(90,50,20,.14);font-size:var(--fs-3,14px);color:var(--hbj-muted-strong)}
  .tl-sticky b{font-family:var(--hbj-font-display);font-size:var(--fs-11,22px);color:var(--hbj-heading)}
  .tl-disc{margin-bottom:120px;padding:0 16px}
  .tl-explain{padding:0 16px}
}
@media (prefers-reduced-motion:reduce){.tl-gauge__fill,.tl-bar i{transition:none !important}}
.tl-gauge__fill,.tl-bar i{transition:width .3s cubic-bezier(.23,1,.32,1),height .3s cubic-bezier(.23,1,.32,1)}
