/* Calculators in the Signature design: the hub and the five calculator pages */
html[data-look="signature"]{
  /* The first screen: a compact header and the calculator, together on Stone */
  .cl-top{background:var(--stone)}
  .cl-wrap{width:min(80rem,100%);margin-inline:auto}
  .cl-hero{padding-block:clamp(2rem,4vw,3.5rem) 0}
  .cl-hero-in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:1rem 4rem}
  .cl-hero-in>:first-child{flex:1 1 24rem;min-width:0}
  .cl-lede{flex:0 1 26rem;margin:0;font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.5;color:var(--ink)}
  .cl-h1{margin:0;font:300 clamp(2.25rem,4.4vw,4rem)/1.06 var(--serif);letter-spacing:-.022em;text-wrap:balance;max-width:14em}
  .cl-h1-hub{font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.04}
  /* Back to all the calculators: small, uppercase, Forest. The link's tap area is 2.75rem tall without adding space */
  .cl-crumb{margin:0 0 1rem;font:500 0.8125rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase}
  .cl-crumb a{display:inline-block;padding-block:calc((2.75rem - 1.3em) / 2);margin-block:calc((2.75rem - 1.3em) / -2);color:var(--forest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:0.25em}
  .cl-crumb a:hover{text-decoration-color:currentColor}
  .cl-tool{padding-block:clamp(1.5rem,3vw,2.5rem) clamp(3.5rem,6vw,5.5rem)}

  /* The calculator: inputs, then the result, then the small print. On a computer the result sits beside the inputs */
  .cl-calc{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"in" "out" "fine";gap:1.5rem}
  .cl-calc .calc{display:contents;margin:0}
  .cl-calc .calc-in{grid-area:in}
  .cl-calc .calc-out{grid-area:out}
  .cl-calc .fine{grid-area:fine}
  @media (min-width:56.26em){
    .cl-calc{grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"in out" "fine out";grid-template-rows:auto 1fr;column-gap:clamp(1.5rem,3vw,3rem);row-gap:1.5rem}
    /* site.css puts every .calc child across the full width on large text; two columns hold here */
    .cl-calc .calc>.calc-in{grid-column:1!important;grid-row:1}
    .cl-calc .calc>.calc-out{grid-column:2!important;grid-row:1/3}
    .cl-calc>.fine{grid-column:1!important;grid-row:2}
  }

  /* Inputs on a white card */
  .cl-calc .calc-in{gap:1.75rem;align-content:start;padding:clamp(1.5rem,2.6vw,2.25rem);border-radius:var(--r-lg);background:#fff;container-type:inline-size}
  .cl-calc .field>span{flex-wrap:wrap;gap:0.25rem 1rem;font:500 0.875rem/1.3 var(--sans)}
  .cl-calc .two{grid-template-columns:minmax(0,1fr);align-items:end;gap:1.5rem}
  @media (min-width:30em){
    .cl-calc .two{grid-template-columns:repeat(2,minmax(0,1fr))}
    /* one applicant: their income takes the row (the partner's field is hidden) */
    .cl-calc .two:has(>[hidden]){grid-template-columns:minmax(0,1fr)}
  }
  /* the % sign keeps its own room; a long placeholder ends in an ellipsis rather than running under it */
  .cl-calc .pct .input{padding-right:1.5rem;text-overflow:ellipsis}

  /* Sliders: a thicker track filled in Forest to the thumb (site.js sets --p), and a thumb big enough for a finger */
  .cl-calc input[type=range]{height:2.75rem}
  .cl-calc input[type=range]::-webkit-slider-runnable-track{height:0.25rem;border-radius:999px;background:linear-gradient(90deg,var(--forest) var(--p),rgba(33,33,33,.16) var(--p))}
  .cl-calc input[type=range]::-webkit-slider-thumb{box-sizing:border-box;width:1.75rem;height:1.75rem;margin-top:-0.75rem;border:2px solid var(--forest);border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transform:none;transition:background .2s,box-shadow .2s}
  .cl-calc input[type=range]::-moz-range-track{height:0.25rem;border-radius:999px;background:rgba(33,33,33,.16)}
  .cl-calc input[type=range]::-moz-range-progress{height:0.25rem;border-radius:999px;background:var(--forest)}
  .cl-calc input[type=range]::-moz-range-thumb{box-sizing:border-box;width:1.75rem;height:1.75rem;border:2px solid var(--forest);border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:background .2s,box-shadow .2s}
  .cl-calc input[type=range]:hover::-webkit-slider-thumb{transform:none;background:#fff}
  .cl-calc input[type=range]:active::-webkit-slider-thumb{transform:none;background:var(--forest)}
  .cl-calc input[type=range]:active::-moz-range-thumb{background:var(--forest)}
  .cl-calc input[type=range]:focus{outline:none}
  .cl-calc input[type=range]:focus-visible::-webkit-slider-thumb{background:var(--forest);box-shadow:0 0 0 0.25rem rgba(0,61,41,.25)}
  .cl-calc input[type=range]:focus-visible::-moz-range-thumb{background:var(--forest);box-shadow:0 0 0 0.25rem rgba(0,61,41,.25)}

  /* Segmented choices: a Stone track, the choice in Forest */
  .cl-calc .seg{grid-auto-columns:minmax(0,1fr);gap:0.25rem;padding:0.25rem;border:0;border-radius:var(--r);background:var(--stone)}
  .cl-calc .seg label{display:grid;place-items:center;min-width:0;min-height:2.75rem;padding:0.5rem;border:0;border-radius:0.75rem;line-height:1.25;overflow-wrap:normal;hyphens:manual}
  .cl-calc .seg input:checked+label{background:var(--forest);color:#fff}
  .cl-calc .seg input:focus-visible+label{outline:2px solid var(--forest);outline-offset:2px}
  /* Three choices sit in one row, like the two-choice controls, wherever each label's longest word fits its third of the
     card; only narrower than that do they stack, so every word stays whole (coordinator, 22 Nov 2026). Measured at the
     controls' font: "Fortnightly" fits from a 17rem card (a 360px phone), "Queensland" from 18.75rem (390px); at 320px
     both stack. Names are never shortened. */
  @container (max-width:16.99rem){
    .cl-calc .seg:has(label:nth-of-type(3)){grid-auto-flow:row}
  }
  @container (max-width:18.74rem){
    .cl-calc .seg.seg-long:has(label:nth-of-type(3)){grid-auto-flow:row}
  }
  .cl-calc .check{align-items:center;min-height:2.75rem}
  .cl-calc .check input{width:1.25rem;height:1.25rem;margin-top:0}

  /* The result on Forest */
  .cl-calc .calc-out{position:static;padding:clamp(1.5rem,2.6vw,2.25rem);border-radius:var(--r-lg);container-type:inline-size}
  .cl-calc .calc-out .result{margin-top:0.75rem;font-size:min(clamp(2.75rem,4.6vw,4.5rem),13cqi);white-space:nowrap;font-variant-numeric:tabular-nums}
  .cl-calc .calc-out .result small{display:block;margin:0.5rem 0 0;white-space:normal}
  .cl-calc .calc-out [data-out="note"]{max-width:30em}
  .cl-calc .calc-out .rows{margin-top:1.5rem}
  .cl-calc .calc-out .row{gap:1rem;font-size:0.9375rem}
  .cl-calc .calc-out .row span:last-child{flex:0 0 auto;white-space:nowrap;text-align:right}
  .cl-calc .calc-out .acts{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem;margin-top:1.5rem}
  .cl-calc .calc-out .book{background:#fff;color:var(--forest);border-color:#fff}
  .cl-calc .calc-out .book:hover{background:var(--sand);color:var(--forest);border-color:var(--sand)}
  .cl-calc .calc-out .line{color:#fff}
  /* until a rate is entered there is nothing to chart: the empty chart and its key take no room */
  .cl-calc .calc-out:has([data-rate-note]:not([hidden])) :is(.chart,.bar-stack){display:none}
  /* Waiting for a rate (Dieter, 23 Nov): the panel says what to do in place of a column of dashes, and the rate field is marked */
  .cl-calc .calc-out:has([data-rate-note]:not([hidden])) :is(.label,.result,.rows){display:none}
  .cl-calc .calc-out [data-rate-note]:not([hidden]){margin:0;max-width:16em;color:#fff;font:400 clamp(1.625rem,2.4vw,2rem)/1.2 var(--serif);text-wrap:balance}
  .cl-calc .calc:has([data-rate-note]:not([hidden])) .pct .input{border-bottom:2px solid var(--forest)}
  .cl-calc .calc:has([data-rate-note]:not([hidden])) .field:has(.pct)>span{color:var(--forest);font-weight:600}
  /* Motion (Dieter, 23 Nov): what appears rises in, with the site's own rise and ease; nothing moves for a visitor who asked for less */
  @media (prefers-reduced-motion:no-preference){
    .cl-calc [data-couple]:not([hidden]),
    .cl-calc .calc:has([name="rate"]) .calc-out :is(.label,.result,.rows,.chart,.bar-stack,[data-rate-note]:not([hidden])),
    .cl-tabs~[role="tabpanel"]:not([hidden]){animation:s-rise .3s var(--ease) backwards}
  }
  /* It stays in view beside the inputs only when the whole panel fits the window under the masthead */
  @media (min-width:56.26em) and (min-height:41rem){
    .cl-calc .calc-out:not(:has([data-chart])){position:sticky;top:calc(var(--mast) + 1.5rem)}
  }
  @media (min-width:56.26em) and (min-height:55rem){
    .cl-calc .calc-out:has([data-chart]){position:sticky;top:calc(var(--mast) + 1.5rem)}
  }

  /* The small print, directly under the result on a phone and under the inputs on a computer */
  .cl-calc>.fine{margin:0;max-width:none;font-size:0.78125rem;line-height:1.55;color:var(--mid)}

  /* Hub: the three calculators as the site's chips */
  .cl-tabs.ctabs{display:flex;flex-wrap:wrap;gap:0.5rem;margin:0 0 1.5rem;border:0}
  .cl-tabs.ctabs button{height:2.375rem;padding:0 1rem;border:1px solid var(--rule);border-radius:999px;background:#fff;color:var(--ink);font:500 0.875rem/1 var(--sans);transition:background .25s,color .25s,border-color .25s}
  .cl-tabs.ctabs button::after{display:none}
  .cl-tabs.ctabs button:hover{border-color:var(--ink)}
  .cl-tabs.ctabs button[aria-selected=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
  .cl-tabs.ctabs button:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
  /* phones: the three sit on one row (two and one on the narrowest); the chip keeps its height */
  @media (max-width:30em){
    .cl-tabs.ctabs{gap:0.25rem}
    .cl-tabs.ctabs button{padding:0 0.625rem;font-size:0.8125rem}
  }

  /* After the calculator, on white: how we help, then the other calculators */
  .cl-after .s-head{align-items:baseline;gap:1rem 3rem;margin-bottom:1.5rem}
  .cl-after .ar-more-h{text-wrap:balance}
  .cl-block+.cl-block{margin-top:3rem}

  /* How we help: two columns of ruled rows, as on the service hubs */
  .cl-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2rem,5vw,5rem);margin:0;padding:0;list-style:none}
  .cl-list li{border-top:1px solid var(--rule)}
  .cl-list li:last-child,.cl-list li:nth-last-child(2):nth-child(odd){border-bottom:1px solid var(--rule)}
  .cl-list a{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:100%;padding:1.25rem 0;color:var(--ink)}
  .cl-list h3{margin:0;font:400 clamp(1.3125rem,1.8vw,1.5rem)/1.25 var(--serif);letter-spacing:-.01em}
  .cl-list p{margin:0.375rem 0 0;max-width:34em;font-size:1rem;line-height:1.5;color:var(--mid)}
  .cl-list svg{flex:0 0 auto;width:0.875rem;height:0.875rem;color:var(--forest)}
  .cl-list a:hover h3{color:var(--forest)}
  .cl-list a:hover svg{transform:translateX(0.25rem)}

  /* The calculators as Stone cards. The grids always end level: 4 across or 2 by 2; 5 across, or 3 over 2 */
  .cl-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;margin:0;padding:0;list-style:none}
  .cl-cards li{min-width:0}
  .cl-cards a{display:flex;flex-direction:column;gap:0.5rem;height:100%;padding:clamp(1.25rem,2vw,1.75rem);border:0;border-radius:var(--r-lg);background:var(--stone);color:var(--ink)}
  .cl-cards b{font:300 clamp(1.375rem,1.9vw,1.75rem)/1.18 var(--serif);letter-spacing:-.01em;color:var(--ink)}
  .cl-cards span{font-size:0.9375rem;line-height:1.45;color:var(--mid)}
  .cl-cards svg{flex:0 0 auto;width:0.875rem;height:0.875rem;margin-top:auto;padding-top:0.5rem;box-sizing:content-box;color:var(--forest)}
  .cl-cards a::after{content:none}
  .cl-cards a:hover b{color:var(--forest)}
  .cl-cards a:hover svg{transform:translateX(0.25rem)}
  @media (prefers-reduced-motion:no-preference){
    .cl-list svg,.cl-cards svg{transition:transform .3s var(--ease)}
  }
  .cl-cards-4,.cl-cards-5{grid-template-columns:minmax(0,1fr)}
  @media (min-width:35em){
    .cl-cards-4{grid-template-columns:repeat(2,minmax(0,1fr))}
    .cl-cards-5{grid-template-columns:repeat(2,minmax(0,1fr))}
    .cl-cards-5 li:first-child{grid-column:span 2}
  }
  @media (min-width:48em){
    .cl-cards-5{grid-template-columns:repeat(6,minmax(0,1fr))}
    .cl-cards-5 li:first-child,.cl-cards-5 li:nth-child(2){grid-column:span 3}
    .cl-cards-5 li:nth-child(n+3){grid-column:span 2}
  }
  @media (min-width:64em){
    .cl-cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  }
  @media (min-width:80em){
    .cl-cards-5{grid-template-columns:repeat(5,minmax(0,1fr))}
    .cl-cards-5 li:first-child,.cl-cards-5 li:nth-child(2),.cl-cards-5 li:nth-child(n+3){grid-column:auto}
  }

  /* One column of services */
  @media (max-width:48em){
    .cl-list{grid-template-columns:minmax(0,1fr)}
    .cl-list li:nth-last-child(2):nth-child(odd){border-bottom:0}
    .cl-list li:last-child{border-bottom:1px solid var(--rule)}
  }

  /* Very large text on a small phone */
  @media (max-width:17.5em){
    .cl-h1,.cl-h1-hub{font-size:clamp(1.25rem,11.5vw,1.875rem);line-height:1.08;letter-spacing:-.015em}
    .cl-calc .calc-in,.cl-calc .calc-out{padding:0.75rem}
    .cl-calc .input::placeholder{font-size:0.75rem}
    .cl-calc .field output{font-size:min(1.5rem,8vw);white-space:nowrap}
    .cl-calc .calc-out .line{padding-inline:0;text-align:left}
    .cl-calc .calc-out .book,.cl-calc .calc-out .line{hyphens:manual;overflow-wrap:normal}
    .cl-calc .calc-out .book{flex:1 1 100%;justify-content:center;padding-inline:0.5rem}
    .cl-calc .calc-out .book svg{display:none}
    .cl-calc .calc-out .result{font-size:min(2.75rem,13cqi)}
    .cl-calc .seg{grid-auto-flow:row}
    .cl-calc .seg label,.cl-calc .field>span,.cl-calc .calc-out .row span{hyphens:manual;overflow-wrap:break-word}
    .cl-calc .calc-out .row{flex-wrap:wrap;gap:0 1rem}
    .cl-calc .calc-out .row span:last-child{margin-left:auto}
    .cl-tabs.ctabs button{height:auto;min-height:2.375rem;padding:0.5rem 1rem;line-height:1.2}
    .cl-cards b{font-size:min(1.375rem,9vw)}
    .cl-cards span{font-size:0.75rem}
    .cl-cards a{padding:0.75rem}
    .cl-cards span,.cl-cards b{hyphens:manual;overflow-wrap:break-word}
    .cl-list a{gap:0.5rem}
    .cl-list svg{display:none}
    .cl-list h3{font-size:clamp(1rem,9vw,1.125rem)}
    .cl-list h3,.cl-list p{hyphens:manual;overflow-wrap:break-word}
  }
}
