/* IPRevealed - /tools/ product directory (Tools-Hub V2.1 finish). Loaded only
   on the Tools page via is_page('tools') in functions.php. Depends on the frozen
   global style.css token block. Scoped vanilla JS lives in page-tools.php.
   Keyline directory system: bordered featured panels + hairline-divided rows,
   not a rounded rectangle around every element. */

.th-page{background:var(--white);color:var(--ink)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.th-wrap{width:min(1180px,calc(100% - 48px));margin:0 auto}
.th-eyebrow{font:700 10.5px/1 var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 16px}
.th-num{font:700 11px/1 var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}

/* --------------------------------------------------------------- hero */
.th-hero{background:var(--navy);color:#fff;padding:104px 0 34px}
.th-crumb{font-size:12.5px;color:#8598B8;margin-bottom:22px}
.th-crumb a{color:#8598B8;text-decoration:none}
.th-crumb a:hover{color:#fff}
.th-crumb span[aria-hidden]{margin:0 8px}
.th-hero-eyebrow{font:700 10.5px/1 var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:#6FDBCC;margin:0 0 13px}
.th-hero h1{font-size:clamp(25px,3.2vw,36px);line-height:1.16;letter-spacing:-.015em;margin:0 0 14px;max-width:20ch;text-wrap:balance}
.th-hero-lead{font-size:clamp(14px,1.35vw,16px);line-height:1.58;color:#BCC9DE;max-width:58ch;margin:0 0 22px}
.th-hero-stat{list-style:none;margin:0;padding:18px 0 0;border-top:1px solid rgba(255,255,255,.13);display:flex;flex-wrap:wrap;gap:9px 20px}
.th-hero-stat li{font:600 11px/1 var(--font-mono);letter-spacing:.03em;text-transform:uppercase;color:#A9B7CC;position:relative;padding-left:15px}
.th-hero-stat li::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:5px;height:5px;border-radius:50%;background:#6FDBCC}

/* ------------------------------------------------------------- launch */
.th-launch{background:var(--bg);border-bottom:1px solid var(--border)}
.th-launch-inner{padding:16px 0 18px;display:grid;grid-template-columns:minmax(0,360px) 1fr;gap:10px 24px;align-items:center}
.th-launch-label{grid-column:1/-1;font:700 10px/1 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0}
.th-search{position:relative;display:flex;align-items:center}
.th-search input{width:100%;height:44px;padding:0 40px 0 14px;border:1px solid var(--border);border-radius:9px;background:var(--white);font:400 14px var(--font-mono);color:var(--ink)}
.th-search input::placeholder{color:#8A97A8}
.th-search input:focus-visible{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.th-search-kbd{position:absolute;right:11px;top:50%;transform:translateY(-50%);font:600 11px var(--font-mono);color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:1px 6px;pointer-events:none}
.th-filters{display:flex;flex-wrap:wrap;gap:7px;justify-self:end}
.th-filter{font:600 12px var(--font-mono);color:var(--muted);background:transparent;border:1px solid var(--border);border-radius:999px;padding:7px 13px;cursor:pointer;line-height:1}
.th-filter:hover{border-color:#BFD1F0;color:var(--ink)}
.th-filter.is-active{background:var(--navy);border-color:var(--navy);color:#fff}
.th-filter:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ------------------------------------------------------ section shell */
.th-featured{padding:40px 0 36px}
.th-sec{padding:40px 0;border-top:1px solid var(--border)}
.th-sec-alt{background:var(--bg)}
.th-sec h2{font-size:clamp(22px,2.5vw,30px);line-height:1.2;letter-spacing:-.01em;color:var(--navy);margin:0 0 10px;scroll-margin-top:96px}
.th-sec-intro{font-size:15px;line-height:1.6;color:var(--muted);max-width:70ch;margin:0 0 22px}

/* ----------------------------------------------------------- featured */
.th-featured-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.th-feat{min-width:0}
.th-feat>a{display:flex;flex-direction:column;height:100%;padding:18px 18px 14px;background:var(--white);border:1px solid var(--border);border-radius:12px;text-decoration:none;position:relative;transition:border-color .14s ease,transform .14s ease}
.th-feat>a::before{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:2px;background:var(--teal);border-radius:12px 12px 0 0;opacity:0;transition:opacity .14s ease}
.th-feat>a:hover{border-color:#BCD1F5;transform:translateY(-2px)}
.th-feat>a:hover::before{opacity:1}
.th-feat>a:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.th-feat-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:14px}
.th-feat-tag{font:700 9.5px/1.3 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}
.th-feat-n{font:700 11px/1 var(--font-mono);color:#B4BEC9;flex:none}
.th-feat-name{display:block;font-size:21px;line-height:1.2;color:var(--navy);margin:0 0 7px}
.th-feat-desc{display:block;font-size:13px;line-height:1.55;color:var(--muted);margin:0 0 13px}
.th-feat-markers{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}
.th-feat-foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;font:700 12.5px var(--font-mono);color:var(--blue)}
.th-feat-arr{transition:transform .14s ease}
.th-feat>a:hover .th-feat-arr{transform:translateX(3px)}

/* markers, shared */
.th-feat-markers span,.th-row-markers span{font:600 9.5px/1 var(--font-mono);letter-spacing:.02em;text-transform:uppercase;color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:3px 6px;white-space:nowrap}

/* -------------------------------------------------- keyline directory */
.th-dir{list-style:none;margin:0;padding:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--white)}
.th-row{border-top:1px solid var(--border)}
.th-row:first-child{border-top:0}
.th-row>a{display:grid;grid-template-columns:minmax(150px,190px) 1fr minmax(112px,auto);column-gap:22px;align-items:center;padding:13px 18px;text-decoration:none;transition:background .12s ease}
.th-row>a:hover{background:#F7F9FC}
.th-row>a:hover .th-row-arr{transform:translateX(3px);color:var(--blue)}
.th-row>a:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.th-row-id{min-width:0}
.th-row-tag{display:block;font:700 9.5px/1.3 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
.th-row-tag-note{color:var(--teal)}
.th-row-name{display:block;font-size:16px;font-weight:700;line-height:1.25;color:var(--navy);overflow-wrap:anywhere}
.th-row-desc{font-size:13px;line-height:1.5;color:var(--muted)}
.th-row-act{display:flex;align-items:center;gap:12px;justify-content:flex-end}
.th-row-markers{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.th-row-arr{font-size:15px;color:#AEB8C4;flex:none;transition:transform .14s ease,color .14s ease}

/* planning: 2-column keyline grid, stacked cells */
.th-dir-2col{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border);border:1px solid var(--border)}
.th-dir-2col .th-row{border-top:0;background:var(--white)}
.th-dir-2col .th-row>a{grid-template-columns:1fr;row-gap:7px;align-items:start;padding:15px 17px 13px}
.th-dir-2col .th-row-tag{margin-bottom:0}
.th-dir-2col .th-row-name{font-size:16.5px}
.th-dir-2col .th-row-act{justify-content:space-between;margin-top:2px}
.th-dir-2col .th-row-markers{justify-content:flex-start}
.th-row-wide{grid-column:1/-1;position:relative}
.th-row-wide>a{border-left:2px solid var(--teal)}

.th-nomatch-sec{padding:36px 0;border-top:1px solid var(--border)}
.th-nomatch{font:600 14px var(--font-mono);color:var(--muted);text-align:center;margin:0}

/* --------------------------------------------------------- trust strip */
.th-trust{background:#F1F4F8;border-top:1px solid var(--border);padding:40px 0}
.th-trust-inner{display:grid;grid-template-columns:minmax(240px,0.9fr) minmax(0,1.3fr);gap:26px 52px;align-items:start}
.th-trust-say{font-size:15px;line-height:1.6;color:var(--ink);margin:0 0 18px;max-width:42ch}
.th-trust-link{display:inline-flex;align-items:center;gap:9px;font:700 13px var(--font-mono);color:var(--blue);text-decoration:none}
.th-trust-link:hover{color:#1d4fd0}
.th-trust-link:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.th-trust-arr{transition:transform .14s ease}
.th-trust-link:hover .th-trust-arr{transform:translateX(3px)}
.th-trust-steps{list-style:none;margin:0;padding:0;border-top:1px solid var(--border)}
.th-trust-steps li{display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:baseline;padding:13px 0;border-bottom:1px solid var(--border)}
.th-trust-k{font:700 11px/1 var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--navy)}
.th-trust-d{font-size:13.5px;line-height:1.5;color:var(--muted)}

/* -------------------------------------------------------- responsive */
@media (max-width:1000px){
	.th-featured-grid{grid-template-columns:1fr 1fr}
	.th-featured-grid .th-feat:last-child{grid-column:1/-1}
	.th-dir-2col{grid-template-columns:1fr}
	.th-row-wide{grid-column:auto}
	.th-trust-inner{grid-template-columns:1fr;gap:20px}
}
@media (max-width:760px){
	.th-hero{padding:96px 0 30px}
	.th-launch-inner{grid-template-columns:1fr;gap:10px}
	.th-filters{justify-self:start}
	.th-featured-grid{grid-template-columns:1fr}
	.th-featured-grid .th-feat:last-child{grid-column:auto}
	.th-featured,.th-sec,.th-trust{padding:32px 0}
	.th-row>a,.th-dir-2col .th-row>a{grid-template-columns:1fr;row-gap:6px;padding:14px 15px}
	.th-row-desc{order:3}
	.th-row-act{order:4;justify-content:flex-start}
	.th-row-arr{display:none}
	.th-trust-steps li{grid-template-columns:1fr;gap:2px}
}
@media (prefers-reduced-motion:reduce){
	.th-feat>a,.th-row>a,.th-row-arr,.th-feat-arr,.th-trust-arr,.th-feat>a::before{transition:none}
	.th-feat>a:hover{transform:none}
}
