/* tools-hub.css — shared cream/forest theme for the 7 job-search tool pages
   (/tools/*). Matches the Free Tools (/score) and Pro Tools (/pro-tools) hubs:
   cream #FAF7F0 ground, forest #1F5C3D accents, white rounded cards. */
:root{
  --cream:#FAF7F0; --ink:#191512; --muted:#57514A; --faint:#8A8378;
  --forest:#1F5C3D; --forest-2:#2E7D53; --line:#E7DFD1; --card:#ffffff;
  --soft:#F1F7F2; --danger:#B7412E;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'Inter',system-ui,sans-serif;background:var(--cream);color:var(--ink);line-height:1.6;min-height:100vh;-webkit-font-smoothing:antialiased;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{letter-spacing:-0.02em;font-weight:800;}

/* NAV */
.th-nav{position:sticky;top:0;z-index:100;background:rgba(250,247,240,0.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--line);}
.th-nav-inner{max-width:1000px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:62px;padding:0 24px;}
.th-logo{font-size:18px;font-weight:900;color:var(--ink);}
.th-logo .b{background:var(--forest);color:#fff;font-size:11px;font-weight:800;padding:2px 7px;border-radius:5px;margin-left:4px;vertical-align:middle;}
.th-nav-links{display:flex;gap:24px;align-items:center;}
.th-nav-links a{font-size:14px;font-weight:600;color:var(--muted);}
.th-nav-links a:hover{color:var(--forest);}
.th-lang{background:#fff;color:var(--muted);border:1px solid var(--line);border-radius:7px;padding:6px 13px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;}
.th-lang:hover{border-color:var(--forest);color:var(--forest);}
@media(max-width:720px){.th-nav-links{display:none;}}

/* LAYOUT */
.th-wrap{max-width:820px;margin:0 auto;padding:28px 24px 64px;}
.th-back{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--muted);margin-bottom:20px;}
.th-back:hover{color:var(--forest);}
.th-eyebrow{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:2px;color:var(--forest);margin-bottom:10px;}
.th-title{font-size:clamp(26px,5vw,40px);font-weight:900;line-height:1.1;margin-bottom:12px;}
.th-sub{font-size:17px;color:var(--muted);max-width:620px;margin-bottom:12px;}
.th-badge{display:inline-flex;align-items:center;gap:6px;background:var(--soft);border:1px solid rgba(31,92,61,0.25);border-radius:100px;padding:5px 14px;font-size:13px;font-weight:700;color:var(--forest);margin-bottom:8px;}
.th-badge--pro{background:var(--forest);color:#fff;border-color:var(--forest);}

/* FORM */
.th-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:26px;margin-top:24px;}
.th-card:focus-within{border-color:rgba(31,92,61,0.45);}
.th-label{display:block;font-size:14px;font-weight:700;color:var(--ink);margin:14px 0 8px;}
.th-label:first-child{margin-top:0;}
.th-input,.th-textarea,select.th-input{width:100%;background:#fff;border:1px solid var(--line);border-radius:11px;padding:13px 14px;font-family:inherit;font-size:14px;color:var(--ink);outline:none;transition:border-color .15s;}
.th-textarea{min-height:180px;line-height:1.65;resize:vertical;}
.th-input:focus,.th-textarea:focus{border-color:var(--forest);}
.th-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
@media(max-width:560px){.th-row{grid-template-columns:1fr;}}
.th-check{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);cursor:pointer;}
.th-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--forest);color:#fff;font-family:inherit;font-size:15px;font-weight:800;border:none;border-radius:11px;padding:14px 24px;cursor:pointer;transition:opacity .15s,transform .05s;}
.th-btn:hover{opacity:.92;}
.th-btn:active{transform:translateY(1px);}
.th-btn:disabled{opacity:.5;cursor:not-allowed;}
.th-btn--full{width:100%;margin-top:18px;}
.th-btn--ghost{background:#fff;color:var(--forest);border:1px solid var(--line);}
.th-btn--sm{padding:9px 15px;font-size:13px;border-radius:9px;}

/* RESULTS */
.th-result{margin-top:24px;display:none;}
.th-result.show{display:block;animation:thFade .3s ease;}
@keyframes thFade{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
.th-result-card{background:#fff;border:1px solid rgba(31,92,61,0.3);border-radius:16px;padding:24px;}
.th-result-card + .th-result-card{margin-top:16px;}
.th-chip{display:inline-flex;align-items:center;gap:6px;background:var(--soft);border:1px solid rgba(31,92,61,0.25);border-radius:100px;padding:6px 14px;font-size:13px;font-weight:600;color:var(--forest);margin:0 6px 8px 0;}
.th-chip--warn{background:#FBEDE9;border-color:rgba(183,65,46,0.3);color:var(--danger);}
.th-flaglist{list-style:none;display:flex;flex-direction:column;gap:8px;}
.th-flaglist li{padding-left:26px;position:relative;font-size:14px;color:var(--ink);}
.th-flaglist li::before{position:absolute;left:0;top:-1px;}
.th-flaglist.good li::before{content:'✓';color:var(--forest);font-weight:800;}
.th-flaglist.bad li::before{content:'⚑';color:var(--danger);}
.th-flaglist.hidden li::before{content:'○';color:var(--faint);}
.th-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.7;background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:18px;color:var(--ink);}
.th-stat{text-align:center;background:var(--soft);border-radius:12px;padding:16px;}
.th-stat .n{font-size:26px;font-weight:900;color:var(--forest);}
.th-stat .l{font-size:12px;color:var(--muted);}
.th-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.th-spinner{width:34px;height:34px;border:3px solid rgba(31,92,61,0.18);border-top-color:var(--forest);border-radius:50%;animation:thspin .7s linear infinite;margin:0 auto;}
@keyframes thspin{to{transform:rotate(360deg);}}
.th-loading{display:none;text-align:center;padding:28px 0;}
.th-loading.show{display:block;}
.th-loading p{margin-top:12px;color:var(--forest);font-weight:600;font-size:14px;}
.th-error{display:none;background:#FBEDE9;border:1px solid rgba(183,65,46,0.25);border-radius:11px;padding:13px 16px;color:var(--danger);font-size:14px;margin-top:16px;}
.th-error.show{display:block;}
.th-usage{font-size:13px;color:var(--faint);margin-top:12px;}

/* PRO PROMO FOOTER */
.th-promo{background:linear-gradient(135deg,rgba(31,92,61,0.08),rgba(46,125,83,0.05));border:1px solid rgba(31,92,61,0.2);border-radius:18px;padding:32px;text-align:center;margin-top:44px;}
.th-promo h3{font-size:22px;font-weight:900;margin-bottom:8px;}
.th-promo p{font-size:15px;color:var(--muted);max-width:480px;margin:0 auto 20px;}

/* UPGRADE MODAL */
.th-modal{display:none;position:fixed;inset:0;z-index:1000;background:rgba(25,21,18,0.55);align-items:center;justify-content:center;padding:20px;}
.th-modal.show{display:flex;}
.th-modal-box{background:#fff;border-radius:20px;padding:34px;max-width:420px;width:100%;text-align:center;}
.th-modal-box .badge{font-size:34px;}
.th-modal-box h3{font-size:22px;font-weight:900;margin:12px 0 8px;}
.th-modal-box p{font-size:15px;color:var(--muted);margin-bottom:22px;}
.th-modal-x{background:none;border:none;font-size:14px;color:var(--faint);cursor:pointer;margin-top:14px;font-family:inherit;}

/* FOOTER */
.th-foot{border-top:1px solid var(--line);text-align:center;padding:28px 24px;color:var(--faint);font-size:13px;}
.th-foot a{color:var(--muted);font-weight:600;margin:0 8px;}
