/* Free tools (every /tools/<x> page except the LinkedIn preview, which has css/tool-linkedin.css).
   The site shell (home.css + pages.css) on top; the tool itself as a cream glass form beside a dark
   pine results tile with bronze accents, the same split as the LinkedIn preview. The tool markup and
   ids are unchanged from the v3 pages, so js/tools/*.js keeps working. Scope: .tp */

/* ---- hero: breadcrumb, kicker + headline left, lede right ---- */
.t-crumb{display:flex;flex-wrap:wrap;gap:10px;font-size:.9rem;color:var(--ink-soft)}
.t-crumb a{color:var(--bronze-d)}
.t-crumb a:hover{text-decoration:underline;text-underline-offset:3px}
.tp .t1-hero{padding-bottom:clamp(28px,4vh,44px)}
.tp .t1-hero__row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(28px,5vw,90px);align-items:end;margin-top:22px}
.tp .t1-hero .kicker{margin-bottom:18px}
.tp .t1-hero .display{max-width:13em}
.tp .t1-hero .display em{font-style:normal;background:linear-gradient(100deg,#9A6426,#C99048 60%,#B77F3C);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme=dark] .tp .t1-hero .display em{background:linear-gradient(100deg,#E9BE7E,#F7D79A 60%,#DDAE6B);-webkit-background-clip:text;background-clip:text}
.tp .t1-hero__side .lede{font-size:clamp(1.05rem,1.3vw,1.2rem)}

/* ---- workspace: form tile + results tile ---- */
.tp .tool-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:16px;align-items:start;padding-bottom:clamp(40px,6vh,72px)}
.tp .tool-workspace:has(>.tool-results[hidden]){grid-template-columns:minmax(0,880px)}
.tp .tool-panel,.tp .tool-results{border-radius:30px;padding:clamp(24px,2.4vw,36px)}
.tp .tool-panel h2{font-size:1.3rem;font-weight:500;letter-spacing:-.03em;line-height:1.2}
.tp .tool-panel__intro{margin:8px 0 24px;color:var(--ink-soft);font-size:.95rem;line-height:1.55}
.tp .tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
.tp .tool-field{display:flex;min-width:0;flex-direction:column;gap:8px}
.tp .tool-field--full{grid-column:1/-1}
.tp .tool-field>label,.tp .tool-field__label{font-size:.88rem;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
.tp .tool-field small,.tp .tool-help{color:var(--ink-soft);font-size:.8rem;line-height:1.45}
.tp .tool-help{font-weight:400}

/* inputs: the LinkedIn preview's fields */
.tp .tool-field input,.tp .tool-field select,.tp .tool-field textarea{width:100%;min-height:52px;padding:0 16px;font:inherit;font-size:1rem;letter-spacing:-.01em;color:var(--ink);
  border-radius:14px;border:1px solid rgba(16,36,26,.14);background:rgba(255,255,255,.75);box-shadow:inset 0 1px 2px rgba(16,36,26,.05);outline:none;
  transition:border-color .3s,box-shadow .3s,background .3s}
.tp .tool-field textarea{min-height:140px;padding:14px 16px;line-height:1.55;resize:vertical}
.tp .tool-field select{appearance:none;-webkit-appearance:none;padding-right:42px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310241A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' opacity='.6'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px}
.tp .tool-field select option{color:#10241A;background:#fff}
.tp .tool-field input:hover,.tp .tool-field select:hover,.tp .tool-field textarea:hover{border-color:rgba(183,127,60,.42)}
.tp .tool-field input:focus,.tp .tool-field select:focus,.tp .tool-field textarea:focus{border-color:rgba(183,127,60,.6);box-shadow:0 0 0 4px rgba(243,193,120,.18)}
.tp .tool-field input::placeholder,.tp .tool-field textarea::placeholder{color:color-mix(in srgb,var(--ink) 40%,transparent)}
.tp .tool-field input[type=file]{padding:7px 8px;font-size:.92rem;line-height:36px;color:var(--ink-soft);cursor:pointer}
.tp .tool-field input[type=file]::file-selector-button{height:36px;margin-right:14px;padding:0 18px;border:0;border-radius:999px;background:var(--pine-700);color:var(--cream-100);font:inherit;font-weight:500;cursor:pointer;transition:background .2s}
.tp .tool-field input[type=file]:hover::file-selector-button{background:var(--pine-600)}
html[data-theme=dark] .tp .tool-field input[type=file]::file-selector-button{background:#E3B26D;color:#10241A}
.tp .tool-field input[type=checkbox],.tp .tool-field input[type=radio]{width:18px;height:18px;min-height:0;padding:0;accent-color:var(--bronze)}
html[data-theme=dark] .tp .tool-field input,html[data-theme=dark] .tp .tool-field select,html[data-theme=dark] .tp .tool-field textarea{background-color:rgba(242,239,230,.05);border-color:rgba(242,239,230,.14);box-shadow:none}
html[data-theme=dark] .tp .tool-field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2EFE6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' opacity='.7'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")}

.tp .tool-divider{grid-column:1/-1;margin-top:6px;padding-top:20px;border-top:1px solid rgba(16,36,26,.1)}
.tp .tool-divider h3{font-size:1rem;font-weight:500;letter-spacing:-.02em}
.tp .tool-divider p{margin-top:4px;color:var(--ink-soft);font-size:.85rem;line-height:1.5}
html[data-theme=dark] .tp .tool-divider{border-color:rgba(242,239,230,.12)}
.tp .tool-warning{grid-column:1/-1;display:flex;gap:12px;padding:14px 16px;border-radius:16px;border:1px solid rgba(183,127,60,.3);background:rgba(243,193,120,.12);color:var(--ink-soft);font-size:.88rem;line-height:1.55}
.tp .tool-warning strong{color:var(--ink);font-weight:600}
.tp .tool-warning__mark{display:grid;flex:none;width:22px;height:22px;place-items:center;border-radius:50%;background:var(--bronze);color:#fff;font-size:.8rem;font-weight:700}
.tp .tool-error{grid-column:1/-1;padding:10px 14px;border-radius:12px;background:rgba(176,58,38,.09);color:#9A2F1E;font-size:.9rem;font-weight:500}
.tp .tool-error:empty{display:none}
html[data-theme=dark] .tp .tool-error{background:rgba(255,140,120,.12);color:#FFB4A6}

/* multiple-choice questions (bottleneck diagnostic, hiring scorecard, ...) */
.tp .diagnostic-fields{display:grid;gap:22px}
.tp .diagnostic-question{min-width:0;margin:0;padding:0 0 22px;border:0;border-bottom:1px solid rgba(16,36,26,.1)}
.tp .diagnostic-question:last-of-type{border-bottom:0;padding-bottom:0}
html[data-theme=dark] .tp .diagnostic-question{border-color:rgba(242,239,230,.12)}
.tp .diagnostic-question legend{width:100%;margin-bottom:12px;padding:0;font-size:1rem;font-weight:500;letter-spacing:-.015em;line-height:1.4;color:var(--ink)}
.tp .diagnostic-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tp .diagnostic-option{position:relative;display:flex;min-height:50px;align-items:center;gap:12px;padding:10px 14px;border-radius:14px;border:1px solid rgba(16,36,26,.12);
  background:rgba(255,255,255,.6);color:var(--ink-soft);cursor:pointer;font-size:.92rem;line-height:1.35;transition:border-color .25s,background .25s,color .25s}
.tp .diagnostic-option:hover{border-color:rgba(183,127,60,.45);color:var(--ink)}
.tp .diagnostic-option:focus-within{outline:2px solid var(--sun-2);outline-offset:2px}
.tp .diagnostic-option:has(input:checked){border-color:var(--pine-700);background:var(--pine-700);color:var(--cream-100)}
.tp .diagnostic-option input{width:18px;height:18px;flex:none;margin:0;accent-color:var(--bronze)}
html[data-theme=dark] .tp .diagnostic-option{background:rgba(242,239,230,.05);border-color:rgba(242,239,230,.13)}
html[data-theme=dark] .tp .diagnostic-option:has(input:checked){background:#22503A;border-color:#2C5C47;color:#FBFAF5}

/* scenario ranges (funnel planner) */
.tp .scenario-rates{grid-column:1/-1;display:grid;gap:14px;min-width:0;margin:0;padding:0;border:0}
.tp .scenario-rates legend{margin-bottom:6px;padding:0;font-size:1rem;font-weight:500;letter-spacing:-.015em}
.tp .scenario-range{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}

/* buttons: bronze primary, quiet secondary */
.tp .tool-submit,.tp .tool-button{display:inline-flex;min-height:52px;align-items:center;justify-content:center;gap:10px;padding:0 26px 0 24px;border:0;border-radius:999px;cursor:pointer;
  font:inherit;font-size:1rem;font-weight:500;letter-spacing:-.015em;color:#1a1208;background:linear-gradient(180deg,#E8BC7B 0%,#D6A45E 48%,#C38B45 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(120,70,20,.3),0 12px 28px -14px rgba(183,127,60,.8),0 0 0 1px rgba(183,127,60,.5);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease),background .25s,color .25s}
.tp .tool-submit svg,.tp .tool-button svg{flex:none;transition:transform .5s var(--ease)}
.tp .tool-submit:hover,.tp .tool-button:hover{transform:translateY(-1px)}
.tp .tool-submit:hover svg,.tp .tool-button:hover svg{transform:translateX(3px)}
.tp .tool-submit:disabled{cursor:progress;opacity:.7;transform:none}
.tp .tool-submit{grid-column:1/-1;justify-self:start;margin-top:4px}
.tp .tool-button--ghost{color:var(--ink);background:transparent;box-shadow:inset 0 0 0 1px rgba(16,36,26,.2)}
.tp .tool-button--ghost:hover{background:rgba(16,36,26,.05)}
.tp .tool-submit:focus-visible,.tp .tool-button:focus-visible{outline:2px solid var(--sun-2);outline-offset:3px}

/* ---- results: a dark pine tile, bronze status + numbers ---- */
.tp .tool-results{isolation:isolate;position:sticky;top:96px;color:rgba(242,239,230,.8)}
.tp .tool-results--long{position:relative;top:auto}
.tp .tool-results[hidden]{display:none}
.tp .tool-results:focus{outline:none}
.tp .tool-results:focus-visible{outline:2px solid var(--sun-2);outline-offset:3px}
.tp .tool-results__glow{position:absolute;z-index:-1;right:-30%;top:-40%;width:90%;aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(247,215,154,.26),rgba(243,193,120,.08) 45%,transparent 72%)}
.tp .tool-results__status{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 13px;border-radius:999px;border:1px solid rgba(232,188,123,.4);
  background:rgba(232,188,123,.1);color:#E9BE7E;font-size:.74rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.tp .tool-results__status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.tp .tool-results h2{margin-top:18px;font-size:clamp(1.45rem,2vw,1.9rem);font-weight:500;letter-spacing:-.035em;line-height:1.15;color:var(--cream-100);overflow-wrap:anywhere}
.tp .tool-results h3{font-size:1rem;font-weight:500;letter-spacing:-.015em;color:var(--cream-100)}
.tp .tool-results__intro,.tp .tool-summary{margin-top:12px;line-height:1.6;color:rgba(242,239,230,.75)}
.tp .tool-summary{white-space:pre-line}
.tp .tool-results strong{color:var(--cream-100);font-weight:600}
.tp .tool-results a:not(.tool-button){color:#E9BE7E;text-decoration:underline;text-underline-offset:3px}
.tp .tool-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}
.tp .tool-metric,.tp .contract-grid section,.tp .scenario-card,.tp .play-facts div,.tp .play-data-note{min-width:0;padding:16px;border-radius:16px;border:1px solid rgba(242,239,230,.12);background:rgba(242,239,230,.05)}
.tp .tool-metric span{display:block;font-size:.82rem;color:rgba(242,239,230,.62)}
.tp .tool-results .tool-metric strong{display:block;margin-top:6px;font-size:clamp(1.5rem,2.6vw,2.1rem);font-weight:500;letter-spacing:-.04em;line-height:1.05;color:#E9BE7E;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.tp .tool-metric small{display:block;margin-top:6px;font-size:.78rem;line-height:1.4;color:rgba(242,239,230,.55)}
.tp .tool-result-section{margin-top:22px;padding-top:20px;border-top:1px solid rgba(242,239,230,.12)}
.tp .tool-result-section h3{margin-bottom:10px}
.tp .tool-results ul,.tp .tool-results ol{padding-left:1.2rem;line-height:1.55}
.tp .tool-results ul{list-style:disc}
.tp .tool-results ol{list-style:decimal}
.tp .tool-results li::marker{color:#D6A45E}
.tp .tool-results li+li{margin-top:8px}
.tp .tool-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.tp .tool-results .tool-button--ghost{color:var(--cream-100);box-shadow:inset 0 0 0 1px rgba(242,239,230,.28)}
.tp .tool-results .tool-button--ghost:hover{background:rgba(242,239,230,.08)}
.tp .tool-disclaimer{margin-top:20px;font-size:.8rem;line-height:1.5;color:rgba(242,239,230,.55)}

.tp .contract-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:22px}
.tp .contract-grid h3{margin-bottom:10px;color:#E9BE7E}
.tp .contract-grid ul,.tp .contract-grid ol{font-size:.9rem}
.tp .field-contract{display:grid;gap:12px;margin:0}
.tp .field-contract div{padding-bottom:12px;border-bottom:1px solid rgba(242,239,230,.12)}
.tp .field-contract div:last-child{padding-bottom:0;border-bottom:0}
.tp .field-contract dt{font-size:.8rem;color:rgba(242,239,230,.6)}
.tp .field-contract dd{margin:4px 0 0;font-size:.92rem;color:var(--cream-100);overflow-wrap:anywhere}

.tp .scenario-sends{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:22px;padding:16px 18px;border-radius:16px;border:1px solid rgba(232,188,123,.34);background:rgba(232,188,123,.09)}
.tp .scenario-sends span{font-size:.9rem;color:rgba(242,239,230,.7)}
.tp .tool-results .scenario-sends strong{font-size:1.7rem;font-weight:500;letter-spacing:-.04em;color:#E9BE7E;font-variant-numeric:tabular-nums}
.tp .scenario-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}
.tp .scenario-card h3{margin-bottom:10px;color:#E9BE7E}
.tp .scenario-card dl{display:grid;gap:10px;margin:0}
.tp .scenario-card dl div{padding-top:10px;border-top:1px solid rgba(242,239,230,.12)}
.tp .scenario-card dt{font-size:.78rem;color:rgba(242,239,230,.6)}
.tp .scenario-card dd{margin:3px 0 0;font-size:1.15rem;font-weight:500;color:var(--cream-100);font-variant-numeric:tabular-nums}

.tp .play-brief{display:grid;gap:20px;margin-top:22px}
.tp .play-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0}
.tp .play-facts div{padding:12px}
.tp .play-facts dt{font-size:.68rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(242,239,230,.58)}
.tp .play-facts dd{margin:6px 0 0;font-size:.86rem;line-height:1.45;color:var(--cream-100)}
.tp .play-block{padding-top:20px;border-top:1px solid rgba(242,239,230,.12)}
.tp .play-block:first-child{padding-top:0;border-top:0}
.tp .play-block h3{margin-bottom:8px}
.tp .play-block p{line-height:1.6}
.tp .play-data-note{margin-top:18px;font-size:.9rem;line-height:1.55}
.tp .play-data-note:empty{display:none}
.tp .tool-results[data-status="data-gap"] .play-data-note{border-color:rgba(232,188,123,.44);background:rgba(232,188,123,.1)}

/* ---- how it works: a calm reading column ---- */
.tp .tool-more{padding-bottom:clamp(48px,8vh,96px)}
.tp .tool-method{max-width:760px;font-size:1.06rem;line-height:1.7;color:var(--ink-soft)}
.tp .tool-method>*+*{margin-top:1em}
.tp .tool-method h2{margin-top:2.1em;font-size:clamp(1.5rem,2.3vw,2rem);font-weight:500;letter-spacing:-.035em;line-height:1.15;color:var(--ink)}
.tp .tool-method h2:first-child{margin-top:0;padding-top:28px;border-top:1px solid rgba(16,36,26,.14)}
html[data-theme=dark] .tp .tool-method h2:first-child{border-color:rgba(242,239,230,.14)}
.tp .tool-method h3{margin-top:1.6em;font-size:1.15rem;font-weight:500;letter-spacing:-.02em;color:var(--ink)}
.tp .tool-method a{color:var(--bronze-d);text-decoration:underline;text-decoration-color:rgba(183,127,60,.45);text-underline-offset:3px}
.tp .tool-method a:hover{text-decoration-color:currentColor}
.tp .tool-method ul,.tp .tool-method ol{padding-left:1.25rem}
.tp .tool-method ul{list-style:disc}
.tp .tool-method ol{list-style:decimal}
.tp .tool-method li+li{margin-top:.4em}
.tp .tool-method li::marker{color:var(--bronze)}
.tp .tool-method strong{color:var(--ink);font-weight:600}
.tp code{padding:.1em .4em;border-radius:6px;background:rgba(16,36,26,.07);font-size:.88em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp .tool-results code,html[data-theme=dark] .tp code{background:rgba(242,239,230,.1)}
.tp .tool-note{margin-block:1.6em;padding:22px 24px;border-radius:22px;border:1px solid rgba(16,36,26,.09);border-left:3px solid var(--bronze);
  background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(251,250,245,.6));box-shadow:0 18px 40px -30px rgba(16,36,26,.35)}
html[data-theme=dark] .tp .tool-note{border-color:rgba(242,239,230,.1);border-left-color:var(--bronze);background:linear-gradient(180deg,rgba(242,239,230,.07),rgba(242,239,230,.035))}
.tp .tool-note .kicker{margin-bottom:8px;font-size:.74rem}
.tp .tool-note p+p{margin-top:.6em}

/* ---- narrower screens ---- */
@media (max-width:1060px){
  .tp .t1-hero__row{grid-template-columns:1fr;align-items:start;gap:18px}
  .tp .tool-workspace,.tp .tool-workspace:has(>.tool-results[hidden]){grid-template-columns:minmax(0,1fr)}
  .tp .tool-results{position:relative;top:auto}
}
@media (max-width:680px){
  .tp .tool-fields,.tp .diagnostic-options,.tp .contract-grid,.tp .scenario-cards,.tp .play-facts{grid-template-columns:1fr}
  .tp .scenario-range{gap:8px}
  .tp .tool-submit,.tp .tool-button{width:100%}
  .tp .tool-actions{flex-direction:column}
  .tp .tool-method{font-size:1rem}
}
@media (max-width:560px){
  .tp .tool-panel,.tp .tool-results{border-radius:24px;padding:20px 18px}
  .tp .tool-metrics{grid-template-columns:1fr 1fr;gap:8px}
  .tp .tool-metric{padding:12px}
  .tp .scenario-range input{padding:0 12px}
  .tp .tool-note{padding:18px}
}
@media (prefers-reduced-motion:reduce){
  .tp .tool-submit,.tp .tool-button,.tp .tool-submit svg,.tp .tool-button svg{transition:none}
}
