/* 50Life free tool pages (/tools/<name>/): one stylesheet for every tool, in the site's own look
   (Plus Jakarta Sans headings, Figtree text, 50Life purple, warm stone panels, round corners). */
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/figtree-latin.woff2) format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2')}

:root{--ink:#1c1a22;--soft:#4f4b56;--muted:#6a6570;--purple:#5b32b0;--purple-dark:#4a2696;--lilac:#c4b2f2;--mist:#f1eef5;--stone:#f6f5f2;--line:#e8e4dc;--edge:#dcd7e2}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Figtree',system-ui,sans-serif;font-size:18px;line-height:1.6;color:var(--ink);background:#fff}
img{max-width:100%;height:auto;display:block}
a{color:var(--purple);text-underline-offset:3px}
a:hover{color:var(--purple-dark)}
h1,h2,h3{font-family:'Plus Jakarta Sans',sans-serif;color:var(--ink);letter-spacing:-0.03em;line-height:1.1;margin:0}
.ft-wrap{max-width:1200px;margin:0 auto;padding:0 clamp(16px,3vw,40px)}
[hidden]{display:none!important}
.ft-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Top bar: the logo only */
.ft-top{border-bottom:1px solid var(--line);background:#fff}
.ft-top-in{display:flex;align-items:center;height:68px}
.ft-logo{display:flex;align-items:baseline;gap:7px;font-family:'Plus Jakarta Sans',sans-serif;font-size:23px;letter-spacing:-0.04em;line-height:1;white-space:nowrap;text-decoration:none}
.ft-logo b{font-weight:800;color:var(--ink)}
.ft-logo b span{color:var(--purple)}
.ft-logo i{font-style:normal;font-weight:400;color:var(--muted)}

/* Intro */
.ft-intro{padding:clamp(32px,5vw,72px) 0 clamp(28px,3.5vw,44px)}
.ft-eyebrow{display:inline-block;margin:0 0 18px;padding:6px 14px;border-radius:999px;background:var(--mist);color:var(--purple);font-weight:700;font-size:15px}
.ft-intro h1{font-size:clamp(38px,5.6vw,72px);font-weight:800;letter-spacing:-0.04em;max-width:16em}
.ft-lead{font-size:clamp(19px,1.6vw,23px);line-height:1.55;color:var(--soft);margin:22px 0 0;max-width:46em}
.ft-private{margin:18px 0 0;font-size:16px;color:var(--muted);display:flex;gap:10px;align-items:flex-start}
.ft-private::before{content:"";flex:0 0 10px;height:10px;margin-top:8px;border-radius:50%;background:var(--lilac)}

/* The tool */
.ft-tool{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'a r' 'b r';grid-template-rows:auto 1fr;align-items:start;gap:clamp(16px,2vw,28px);background:var(--stone);border-radius:clamp(20px,2.4vw,32px);padding:clamp(20px,3vw,40px);margin:0 0 clamp(40px,6vw,88px)}
.ft-tool h2{font-size:clamp(26px,2.6vw,34px);margin:0 0 6px}
.ft-form{display:flex;flex-direction:column;gap:20px}
.ft-a{grid-area:a;min-width:0}
.ft-b{grid-area:b;min-width:0}
.ft-r{grid-area:r;position:sticky;top:16px}
.ft-source{margin:14px 0 0;font-size:15px;color:var(--muted)}
.ft-line{font-size:18px;color:var(--ink)}
.ft-field{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0;min-width:0}
.ft-field>label,.ft-field>legend{font-weight:700;font-size:17px;padding:0;color:var(--ink)}
.ft-hint{margin:0;font-size:15px;line-height:1.5;color:var(--muted)}
.ft-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;align-items:end}
.ft-even{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.ft-tool select,.ft-tool input[type=text]{width:100%;height:52px;padding:0 14px;border:1.5px solid var(--edge);border-radius:14px;background:#fff;font:inherit;font-size:18px;color:var(--ink)}
.ft-tool select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 22px) 23px,calc(100% - 16px) 23px;background-size:6px 6px;background-repeat:no-repeat;padding-right:40px}
.ft-tool select:focus,.ft-tool input:focus{outline:3px solid var(--lilac);outline-offset:1px;border-color:var(--purple)}
.ft-money{position:relative}
.ft-money::before{content:"£";position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:18px}
.ft-money input[type=text]{padding-left:30px}
.ft-check{display:flex;gap:12px;align-items:flex-start;font-size:17px;cursor:pointer}
.ft-check input{width:22px;height:22px;margin:3px 0 0;accent-color:var(--purple);flex:0 0 22px}
.ft-choices{display:flex;flex-wrap:wrap;gap:10px}
.ft-choice{position:relative}
.ft-choice input{position:absolute;opacity:0;width:1px;height:1px}
.ft-choice span{display:flex;align-items:center;min-height:48px;padding:10px 18px;border:1.5px solid var(--edge);border-radius:999px;background:#fff;font-weight:600;font-size:16px;cursor:pointer}
.ft-choice input:checked+span{border-color:var(--purple);background:var(--mist);color:var(--purple)}
.ft-choice input:focus-visible+span{outline:3px solid var(--lilac);outline-offset:2px}
.ft-actions{display:flex;flex-wrap:wrap;gap:10px}
.ft-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:999px;border:1.5px solid var(--purple);background:#fff;color:var(--purple);font:inherit;font-weight:700;font-size:16px;cursor:pointer}
.ft-btn:hover{background:var(--mist)}
.ft-btn-main{background:var(--purple);color:#fff}
.ft-btn-main:hover{background:var(--purple-dark);color:#fff}
.ft-warn{margin:0;padding:12px 16px;border-radius:12px;background:#fff3ee;color:#7a2e12;font-size:16px}
.ft-err{margin:0;font-size:15px;color:#a3321a;font-weight:600}
.ft-sub{margin:4px 0 0;font-family:'Plus Jakarta Sans',sans-serif;font-weight:700;font-size:18px;letter-spacing:-0.02em}

/* Tap grids (months, decades, years, nations): equal buttons in rows, the label centred */
.ft-grid{display:grid;gap:8px}
.ft-grid .ft-choice span{justify-content:center;text-align:center;padding:10px 8px;border-radius:14px;min-height:48px}
.ft-grid-months{grid-template-columns:repeat(4,minmax(0,1fr))}
.ft-grid-decades,.ft-grid-years{grid-template-columns:repeat(5,minmax(0,1fr))}
.ft-grid-nations{grid-template-columns:repeat(2,minmax(0,1fr))}
.ft-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ft-grid-years{margin-top:4px}

/* "What we've assumed": one line each, tap to change */
.ft-assume{background:#fff;border:1.5px solid var(--edge);border-radius:16px}
.ft-assume>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:10px 16px;font-size:16px;line-height:1.4}
.ft-assume>summary::-webkit-details-marker{display:none}
.ft-assume>summary:focus-visible{outline:3px solid var(--lilac);outline-offset:2px;border-radius:14px}
.ft-change{flex:0 0 auto;font-weight:700;color:var(--purple);font-size:15px}
.ft-assume[open]>summary .ft-change{visibility:hidden}
.ft-assume-body{display:flex;flex-direction:column;gap:12px;padding:2px 16px 16px}
.ft-sub-label{font-weight:700;font-size:16px}
.ft-step{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:8px;align-items:center}
.ft-step .ft-btn{min-height:52px;padding:0;font-size:24px;line-height:1;border-radius:14px}

/* Results */
.ft-out{background:#fff;border-radius:clamp(18px,2vw,26px);padding:clamp(20px,2.6vw,32px);display:flex;flex-direction:column;gap:18px;min-width:0}
.ft-out-body{display:flex;flex-direction:column;gap:18px}
.ft-example{margin:0;padding:10px 14px;border-radius:12px;background:var(--mist);color:var(--purple-dark);font-size:15px;font-weight:600;line-height:1.45}
.ft-field-err{margin:0;font-size:15px;color:#a3321a;font-weight:600}
.ft-tool [aria-invalid=true]{border-color:#a3321a}
.ft-empty{margin:0;color:var(--muted)}
.ft-big{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:clamp(34px,4vw,48px);letter-spacing:-0.04em;line-height:1.05;color:var(--purple);margin:0}
.ft-label{margin:0;font-weight:700;font-size:15px;color:var(--muted)}
.ft-out p{margin:0}
.ft-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.ft-stat{background:var(--stone);border-radius:16px;padding:16px 18px;min-width:0}
.ft-stat dt{font-size:15px;color:var(--muted);font-weight:600}
.ft-stat dd{margin:4px 0 0;font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:clamp(22px,2.2vw,28px);letter-spacing:-0.03em;line-height:1.15;overflow-wrap:anywhere}
.ft-lines{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.ft-lines li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:17px}
.ft-lines li span:last-child{font-weight:700;white-space:nowrap}
.ft-lines li.ft-total{font-weight:800;font-size:19px}
.ft-note{font-size:15px;line-height:1.55;color:var(--soft)}
.ft-help{background:var(--mist);border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:8px}
.ft-help h3{font-size:19px}
.ft-next{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line);padding-top:18px}
.ft-next h3{font-size:19px}
.ft-next ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:10px;font-size:16px;line-height:1.55;color:var(--soft)}
.ft-next li::marker{font-weight:800;color:var(--purple)}
.ft-cmp{display:flex;flex-direction:column;gap:8px}
.ft-cmp h3{font-size:19px}
.ft-cmp .ft-lines li span:last-child{text-align:right}
.ft-cmp .ft-lines small{display:block;font-size:14px;font-weight:600;color:var(--muted)}
.ft-cmp .ft-lines li.ft-yours{font-weight:700}

/* Reading sections */
.ft-section{margin:0 0 clamp(40px,5vw,64px);padding-top:clamp(32px,4vw,48px);border-top:1px solid var(--line)}
.ft-section p,.ft-section ul,.ft-section ol{max-width:52em}
.ft-section .ft-table-wrap{max-width:none}
.ft-section h2{font-size:clamp(26px,3vw,38px);margin:0 0 18px}
.ft-section h3{font-size:21px;margin:26px 0 10px}
.ft-section p{margin:0 0 16px;color:var(--soft)}
.ft-section ul,.ft-section ol{margin:0 0 16px;padding-left:22px;color:var(--soft)}
.ft-section li{margin:0 0 10px}
.ft-table-wrap{overflow-x:auto;margin:0 0 16px;border:1px solid var(--line);border-radius:16px}
.ft-table{width:100%;border-collapse:collapse;font-size:16px}
.ft-table caption{text-align:left;padding:14px 16px 4px;font-weight:700;color:var(--ink)}
.ft-table th,.ft-table td{text-align:left;padding:11px 16px;border-top:1px solid var(--line);vertical-align:top}
.ft-table thead th{background:var(--stone);font-weight:700}
.ft-callout{background:var(--stone);border-radius:20px;padding:22px 24px;margin:24px 0 0;max-width:52em}
.ft-callout p:last-child{margin-bottom:0}
.ft-sources li{overflow-wrap:anywhere}
.ft-checked{font-weight:700;color:var(--ink)!important}
.ft-method>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px}
.ft-method>summary::-webkit-details-marker{display:none}
.ft-method>summary::after{content:'+';font:700 28px/1 'Plus Jakarta Sans',sans-serif;color:var(--purple)}
.ft-method[open]>summary::after{content:'\2212'}
.ft-method>summary h2{margin:0}
.ft-method[open]>summary{margin-bottom:18px}
.ft-cred{margin-top:20px;padding:16px 18px;border-radius:14px;background:var(--stone);font-size:15px}
.ft-cred p{margin:0 0 6px!important}
.ft-cred p:last-child{margin:0!important}
.ft-more{margin:0 0 16px}

/* The short result line under the questions (Paul, 12 Nov 2026, in place of a sticky result bar): the figure in a few
   words, updating live, and a small link to the full breakdown. */
[data-result-box]{scroll-margin-top:16px}
[data-result-heading]:focus:not(:focus-visible){outline:0}
.ft-mini{display:flex;flex-wrap:wrap;align-items:center;column-gap:14px;row-gap:0;margin:0;padding:10px 16px;border-radius:16px;background:#fff;border:1.5px solid var(--edge);font-size:16px;line-height:1.45;color:var(--ink)}
.ft-mini b{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:20px;letter-spacing:-0.02em;color:var(--purple)}
.ft-mini-go{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:700}
@media (min-width:901px){.ft-mini{padding:8px 16px}}

/* Footer: the site's own identity lines and legal links */
.ft-foot{max-width:1440px;margin:0 auto;padding:0 clamp(16px,3vw,40px) 12px}
.ft-foot-in{background:#1c1a22;border-radius:clamp(20px,2.4vw,32px);padding:clamp(36px,4.5vw,64px) clamp(24px,4.5vw,64px) clamp(28px,3vw,40px);display:flex;flex-direction:column;gap:20px}
.ft-foot .ft-logo b{color:#fff}
.ft-foot .ft-logo b span{color:#b9a2ee}
.ft-foot .ft-logo i{color:#a8a2b1}
.ft-foot p{margin:0;font-size:14px;line-height:1.6;color:#b3adbb;max-width:960px}
.ft-foot nav{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:14px}
.ft-foot nav a{color:#dcd7e2;text-decoration:underline;text-decoration-color:#57515f}
.ft-foot nav a:hover{color:#fff}
.ft-copy{font-size:14px;color:#a8a2b1}

@media (max-width:900px){
  .ft-tool{grid-template-columns:1fr;grid-template-areas:'a' 'r' 'b';grid-template-rows:auto}
  .ft-r{position:static}
}
@media (max-width:700px){
  .ft-table-wrap[data-rows]:not(.ft-open) tbody tr:nth-child(n+7){display:none}
  /* Wide tables on phones (.ft-stack): each row becomes a short list, each value labelled with its column heading
     (data-label, the same words as the th). The column headings stay for screen readers, and the table roles in the
     markup keep it a table for them. */
  .ft-stack,.ft-stack tbody,.ft-stack tr,.ft-stack td{display:block}
  .ft-stack thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .ft-stack tr{padding:12px 16px;border-top:1px solid var(--line)}
  .ft-stack tbody tr:first-child{border-top:0}
  .ft-stack td{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:3px 0;border:0;text-align:right;font-weight:700}
  .ft-stack td::before{content:attr(data-label);content:attr(data-label) / "";flex:0 1 auto;text-align:left;font-weight:400;color:var(--soft)}
  .ft-stack td:first-child{font-size:17px;color:var(--ink)}
}
@media (min-width:701px){.ft-more{display:none}}
@media (max-width:480px){
  body{font-size:17px}
  .ft-grid-months{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ft-row{grid-template-columns:1fr}
  .ft-stats{grid-template-columns:1fr}
  .ft-btn{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.ft-related{margin:0 0 clamp(40px,5vw,64px);font-size:17px;color:var(--soft)}
