/* Tool pages (/subsidy-income-checker, /private-ppo-fit-check and Spanish twins). Uses site.css tokens. */
.tool { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r-sm); padding: clamp(20px, 4vw, 36px); }
.tool fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tool-fields { display: grid; gap: 18px; }
.tool label, .tool legend { display: block; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.tool .hint { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.tool select, .tool input[type=text] { width: 100%; min-height: 54px; padding: 0 14px; font: 500 18px/1 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid rgba(15, 43, 37, .3); border-radius: var(--r-sm); }
.tool select:focus, .tool input[type=text]:focus { outline: 2px solid var(--accent-deep); outline-offset: 1px; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); pointer-events: none; }
.money input[type=text] { padding-left: 30px; }

.q { padding: 18px 0; border-top: 1px solid var(--line); }
.q:first-child { border-top: 0; padding-top: 0; }
.q legend { font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.3; margin-bottom: 12px; }
.yn { display: flex; flex-wrap: wrap; gap: 10px; }
.yn label { margin: 0; flex: 1 1 96px; }
.yn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yn span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border: 1px solid rgba(15, 43, 37, .3); border-radius: var(--r-sm); background: var(--paper); font-weight: 600; cursor: pointer; }
.yn input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.yn input:focus-visible + span { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.tool-result { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.tool-result .big { font-family: var(--serif); font-size: clamp(44px, 8vw, 64px); line-height: 1; color: var(--ink); }
.tool-result h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 14px 0 10px; }
.tool-result p { font-size: 16.5px; max-width: 60ch; }
.tool-result p + p { margin-top: 10px; }
.tool-result .btn { margin-top: 18px; }
.tool-result a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent-deep); text-underline-offset: 3px; }
.tool-result .near, .tool-result [data-note] { border-left: 3px solid var(--accent); padding-left: 14px; }
.tool-private { margin-top: 18px; font-size: 14px; color: var(--muted); }
.tool-private b { color: var(--ink); }
.tool-private-top { margin: 0 0 20px; }

/* breathing room between questions */
.tool .q { padding: 22px 0; border-top: 1px solid rgba(15,43,37,.12); }
.tool .q:first-of-type { border-top: 0; padding-top: 6px; }
