/* Free tools: calculators and checkers. Uses only the site's own CSS variables, so the same file
   works on every site that shares this layout. */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.2rem; padding-block: 2.5rem 4rem; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; } }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.1rem, 2.6vw, 1.8rem); box-shadow: 0 22px 50px -34px rgba(0, 0, 0, .45); }
.tool h2 { font-size: 1.35rem; margin: 0 0 1rem; }
.tool h3 { font-size: 1.12rem; margin: 1.4rem 0 .6rem; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem 1.2rem; }
.tool-grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; margin: 0; border: 0; padding: 0; }
.field > span, .field > legend { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; color: var(--ink-soft); padding: 0; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--ivory); border: 1px solid #CFC8B8; border-radius: 10px; padding: .62rem .8rem; width: 100%; min-width: 0; }
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.45; font-size: .95rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ruby-tint); border-color: var(--ruby); background: #fff; }
.field small { color: var(--ink-soft); font-size: .84rem; line-height: 1.35; }
.affix { display: flex; align-items: stretch; }
.affix b { display: flex; align-items: center; padding: 0 .7rem; background: var(--ivory-2); border: 1px solid #CFC8B8; border-right: 0; border-radius: 10px 0 0 10px; color: var(--ink-soft); font-weight: 600; }
.affix b.after { border: 1px solid #CFC8B8; border-left: 0; border-radius: 0 10px 10px 0; }
.affix input { border-radius: 0 10px 10px 0; }
.affix input:first-child { border-radius: 10px 0 0 10px; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .97rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--ruby); flex: none; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.tool [hidden] { display: none !important; }

/* results */
.result { margin-top: 1.6rem; border-top: 2px dashed var(--line); padding-top: 1.4rem; }
.result:empty { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { background: var(--ruby-tint); border-radius: var(--radius-m); padding: .95rem 1.1rem; min-width: 0; }
.kpi b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 2rem); color: var(--ruby-deep); line-height: 1.1; overflow-wrap: anywhere; }
.kpi span { display: block; font-size: .84rem; color: var(--ink-soft); font-weight: 600; margin-top: .25rem; }
.kpi.hi { background: var(--ruby); }
.kpi.hi b { color: #fff; }
.kpi.hi span { color: rgba(255, 255, 255, .82); }
.sheet { width: 100%; border-collapse: collapse; font-size: .98rem; margin: .4rem 0 1rem; }
.sheet th, .sheet td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet td.r, .sheet th.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet tr.total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.sheet tr.sub td { color: var(--ink-soft); font-size: .92rem; }
.sheet caption { text-align: left; font-weight: 700; padding-bottom: .3rem; }
.table-scroll { overflow-x: auto; }
.split { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--ivory-2); margin: .3rem 0 .6rem; }
.split i { display: block; height: 100%; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .88rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: .35rem; }
.legend i { width: .8rem; height: .8rem; border-radius: 3px; display: inline-block; }
.c1 { background: var(--ruby); } .c2 { background: var(--emerald); } .c3 { background: var(--gold); } .c4 { background: #6B7A90; } .c5 { background: #2E7D5B; } .c6 { background: #9C6ADE; }
.fine-print { font-size: .88rem; color: var(--ink-soft); margin: .6rem 0 0; }
.warn { background: var(--gold-pale); border-left: 4px solid var(--gold); padding: .7rem 1rem; border-radius: 0 10px 10px 0; font-size: .95rem; margin: .8rem 0; }

/* verdicts (risk / match) — fixed colours so "high risk" reads red on every palette */
.verdict { border-radius: var(--radius-m); padding: 1.1rem 1.3rem; margin-bottom: 1rem; border: 1px solid transparent; }
.verdict b.v { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.15; margin-bottom: .3rem; }
.verdict p { margin: .3rem 0 0; }
.verdict.low { background: #E9F5EE; border-color: #BFE0CC; color: #14482F; }
.verdict.mid { background: #FFF6DA; border-color: #EBD48A; color: #5E4708; }
.verdict.high { background: #FDECEC; border-color: #F2B8B8; color: #7F1414; }
.verdict.info { background: var(--ruby-tint); border-color: var(--line); color: var(--ruby-deep); }

/* scam questions */
.qs { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.qs li { counter-increment: q; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.qs li > span:first-child::before { content: counter(q) ". "; font-weight: 700; color: var(--ruby); }
.yn { justify-self: start; display: inline-flex; border: 1px solid #CFC8B8; border-radius: 999px; overflow: hidden; }
.yn label { position: relative; cursor: pointer; }
.yn input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.yn label span { display: block; padding: .38rem .95rem; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.yn label + label span { border-left: 1px solid #CFC8B8; }
.yn input:checked + span { background: var(--ruby); color: #fff; }
.yn input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (max-width: 560px) { .qs li { grid-template-columns: 1fr; } }
.report-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .55rem; }
.report-list li { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.report-list a { font-weight: 700; }

/* skills */
.chipset { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .4rem 0 1rem; padding: 0; }
.chipset li { padding: .28rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 600; border: 1px solid var(--line); background: var(--ivory); }
.chipset.ok li { background: #E9F5EE; border-color: #BFE0CC; color: #14482F; }
.chipset.miss li { background: #FDECEC; border-color: #F2B8B8; color: #7F1414; }
.meter { height: 12px; border-radius: 999px; background: var(--ivory-2); overflow: hidden; margin: .4rem 0 .2rem; }
.meter i { display: block; height: 100%; background: var(--ruby); border-radius: inherit; }

/* pay range */
.range { position: relative; height: 54px; margin: 1.4rem .4rem 2.2rem; }
.range .track { position: absolute; left: 0; right: 0; top: 22px; height: 10px; border-radius: 999px; background: var(--ivory-2); }
.range .band { position: absolute; top: 22px; height: 10px; background: var(--ruby); opacity: .35; border-radius: 999px; }
.range .med { position: absolute; top: 14px; width: 3px; height: 26px; background: var(--ruby-deep); transform: translateX(-50%); }
.range .you { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: .78rem; font-weight: 700; color: var(--emerald); white-space: nowrap; }
.range .you::after { content: ''; width: 0; height: 0; border: 7px solid transparent; border-top-color: var(--emerald); margin-top: 1px; }
.range .lab { position: absolute; top: 38px; font-size: .78rem; color: var(--ink-soft); white-space: nowrap; transform: translateX(-50%); }
.range .lab.l { transform: none; } .range .lab.rr { transform: translateX(-100%); }

/* employer search */
.co-results { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; max-height: 26rem; overflow: auto; }
.co-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: var(--ivory); }
.co-results b { font-size: 1.02rem; }
.co-results small { color: var(--ink-soft); grid-column: 1; overflow-wrap: anywhere; }
.co-results .n { font-weight: 700; color: var(--ruby); grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: .92rem; }
.co-results button { font: inherit; font-size: .85rem; border: 0; background: none; color: var(--ruby); text-decoration: underline; cursor: pointer; padding: 0; justify-self: start; }

/* privacy line + prose under the tool */
.tool-private { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 0; font-size: .93rem; color: var(--ink-soft); }
.tool-private svg { width: 20px; height: 20px; flex: none; color: var(--ruby); margin-top: .1rem; }
.tool-prose { padding-block: 1.6rem 0; max-width: 72ch; }
.tool-prose h2 { font-size: 1.55rem; }
.tool-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: .6rem 0 1.2rem; }
.tool-prose th, .tool-prose td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--line); }
.tool-prose td.r, .tool-prose th.r { text-align: right; font-variant-numeric: tabular-nums; }
.sources { font-size: .95rem; }
.sources li { margin-bottom: .35rem; }
.checked { display: inline-block; font-size: .88rem; font-weight: 600; color: var(--gold-ink); background: var(--gold-pale); border-radius: 999px; padding: .2rem .8rem; margin: .4rem 0 0; }
.page-head .checked { background: rgba(255, 255, 255, .12); color: var(--gold-light); }

/* hub */
.tool-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem; }
.tool-cards a { display: flex; flex-direction: column; gap: .5rem; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.3rem 1.4rem; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tool-cards a:hover { border-color: var(--ruby); transform: translateY(-2px); box-shadow: 0 16px 34px -26px rgba(0, 0, 0, .5); }
.tool-cards svg { width: 34px; height: 34px; color: var(--emerald); }
.tool-cards b { font-family: var(--display); font-size: 1.3rem; color: var(--ruby-deep); line-height: 1.15; }
.tool-cards span { color: var(--ink-soft); font-size: .97rem; }
.tool-cards em { margin-top: auto; font-style: normal; font-weight: 700; color: var(--ruby); font-size: .95rem; }
@media print { .site-head, .site-foot, .star-strip, aside, .tool-actions { display: none !important; } .tool { box-shadow: none; } }
