/* public/assets/tool.css — the free calculator pages (load after manuscript.css and site.css).
   The calculator card, the answer and the tool cards are plain paper in a thin frame of the day's colour (manuscript.css
   --frameCard; founder, 25-Sep, style 6 of /lab/calc-cards with the day's colour for the gold). They follow the day like the buttons. */
.toolS .lab{font-family:var(--label);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink2k)}
.toolS .form{display:grid;gap:18px;margin-top:26px;max-width:560px;border:2.5px solid transparent;background:var(--frameCard);border-radius:14px;padding:22px;box-shadow:var(--frameShadow)}
.toolS .f2{display:grid;grid-template-columns:1fr 1fr;gap:14px} @media(max-width:520px){.toolS .f2{grid-template-columns:1fr}}
.toolS .form label{display:grid;gap:6px}
.toolS .form input{font:inherit;font-size:1rem;padding:11px 12px;border:1.5px solid var(--line);border-radius:10px;background:#FFFDF8;color:var(--inkk);min-width:0;width:100%;box-sizing:border-box}
.toolS .form input:focus{border-color:var(--acc);outline:none}
.toolS .form input:disabled{opacity:.5}
.toolS .check{display:flex !important;grid-template-columns:none;align-items:center;gap:10px;font-size:.95rem;color:var(--inkk)}
.toolS .check input{width:auto;margin:0}
.toolS .hintb{font-size:.86rem;color:var(--ink2k);margin:0}
.toolS .err{color:#9B2C1A;font-size:.92rem;min-height:1.2em;margin:0}
.toolS .btnp{justify-self:start;background:var(--btn);color:var(--btnInk);box-shadow:inset 0 0 0 1.5px var(--btnLine);border:0;font-family:var(--brandfont);font-size:1.3rem;letter-spacing:.01em;text-transform:none;line-height:1.1;font-weight:400;font-synthesis:none;padding:10px 24px 8px;border-radius:99px;cursor:pointer}
.toolS .btnp:hover{background:var(--btnHover)} .toolS .btnp[disabled]{opacity:.45;cursor:wait}
/* the calculator's own button is the whole foot of its card, written in the brand's lettering (founder, 25-Sep: the mix of
   styles 4 and 6 on /lab/buttons). It moves to the card's last line; the note and any error sit above it. No overflow:hidden
   on the card (the town list must be free to drop below it), so the band rounds its own bottom corners to the card's. */
.toolS .form > .btnp{order:1;justify-self:stretch;margin:6px -22px -22px;border-radius:0 0 11.5px 11.5px;padding:13px 24px 10px;
  font-family:var(--brandfont);font-size:1.65rem;line-height:1.1;letter-spacing:.01em;text-transform:none}
.toolS .linkb{background:none;border:0;padding:0;color:var(--accDeep);text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:.86rem;cursor:pointer}
.toolS .combo{position:relative}
.toolS .combo ul{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 4px);margin:0;padding:6px;list-style:none;background:var(--card);border:1.5px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(38,32,26,.14);max-height:min(330px,52vh);overflow:auto}
.toolS .combo li{padding:10px 12px;border-radius:8px;cursor:pointer;line-height:1.35;color:var(--inkk);max-width:none}
.toolS .combo li[aria-selected="true"],.toolS .combo li[data-i]:hover{background:var(--accSoft)}
.toolS .combo li span{color:var(--ink2k);font-size:.92rem}
.toolS .combo li.none{cursor:default;color:var(--ink2k)}

/* the answer */
.resultS{margin-top:26px;border:2.5px solid transparent;background:var(--frameCard);border-radius:14px;padding:22px 22px 24px;box-shadow:var(--frameShadow)}
.resultS[hidden]{display:none}
.resultS .big{font-family:var(--display);font-size:clamp(1.6rem,4.4vw,2.2rem);line-height:1.15;margin:.2em 0 .3em;text-wrap:balance}
.resultS .big em{font-style:normal;color:var(--acc)}
.resultS p{margin:.5em 0}
.resultS .facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:14px 0 4px}
.resultS .fact{background:rgba(255,253,248,.85);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.resultS .fact b{display:block;font-family:var(--display);font-weight:400;font-size:1.15rem;line-height:1.2}
.resultS table{width:100%;border-collapse:collapse;margin:12px 0 0;font-size:.95rem;display:block;overflow-x:auto}
@media(max-width:520px){.resultS table{font-size:.86rem}.resultS th,.resultS td{padding:7px 5px}}
.resultS th,.resultS td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.resultS th{font-family:var(--label);font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink2k);font-weight:400}
.resultS tr.now td{background:var(--accSoft)}
.resultS .note{font-size:.88rem;color:var(--ink2k)}
.resultS .next{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}

/* explainer, FAQ, the way to the reading */
.faqS details{border-bottom:1px solid var(--line);padding:12px 0}
.faqS summary{cursor:pointer;font-family:var(--display);font-size:1.12rem;list-style:none}
.faqS summary::-webkit-details-marker{display:none}
.faqS summary::before{content:'+';display:inline-block;width:1.2em;color:var(--acc)}
.faqS details[open] summary::before{content:'\2212'}
.faqS details p{margin:.5em 0 0 1.2em}
.ctaS{margin-top:44px;border:2.5px solid transparent;background:var(--frameCard);border-radius:14px;padding:24px;box-shadow:var(--frameShadow)}
.ctaS h2{margin-top:0 !important}
/* its button is the box's foot, like the calculator card's */
.ctaS p:last-child{margin:0}
.ctaS p:last-child .btnS{display:block;text-align:center;padding:13px 24px 10px;font-size:1.65rem;margin:18px -24px -24px;border-radius:0 0 11.5px 11.5px}
.toolsS{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:22px}
.toolsS a{display:block;border:2px solid transparent;background:var(--frameCard);border-radius:12px;padding:14px 16px;text-decoration:none;color:var(--inkk);box-shadow:var(--frameShadow);transition:transform .2s}
.toolsS a:hover{transform:translateY(-2px)}
@media(prefers-reduced-motion:reduce){.toolsS a{transition:none}.toolsS a:hover{transform:none}}
.toolsS a b{display:block;font-family:var(--display);font-weight:400;font-size:1.1rem}
.toolsS a span{font-size:.88rem;color:var(--ink2k)}

/* the international pages (sky.js) */
.personS{border:1px solid var(--line);border-radius:14px;padding:14px 14px 16px;margin:0;display:grid;gap:12px;min-width:0}
.personS legend{padding:0 6px}
.placebox{display:grid}
.resultS h3{font-family:var(--display);font-weight:400;font-size:1.2rem;margin:1.2em 0 .2em}
.resultS ul{padding-left:1.2em;margin:.4em 0} .resultS li{margin:.35em 0}
