/* /lab-testing-menu — IHD Ink & Wash test menu. Static (no sticky), transform/opacity motion only. */
.tm-hero{padding-bottom:150px}
.tm-hero h1{font-size:clamp(38px,4.6vw,64px)}
.tm-stats{list-style:none;margin:0 0 30px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:560px}
.tm-stats li{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:16px;background:#ffffff0d;border:1px solid #ffffff22;backdrop-filter:blur(8px)}
.tm-stats b{font-size:clamp(24px,2.4vw,32px);line-height:1;font-weight:600;letter-spacing:-.03em;color:#fff;font-variant-numeric:tabular-nums}
.tm-stats span{font-size:12.5px;line-height:1.35;color:#C3BDF5}
.js-motion .tm-stats .sp-count:not(.is-in){opacity:0}

/* tool panel overlaps the hero, like the trust strip on service pages */
.tm-tool{position:relative;z-index:3;margin-top:-96px;padding-bottom:clamp(56px,6vw,88px)}
.tm-panel{background:#fff;border:1px solid var(--line-2);border-radius:26px;padding:22px;box-shadow:0 30px 70px #2a227726}
.tm-searchrow{display:flex;align-items:center;gap:18px}
.tm-search{flex:1;display:flex;align-items:center;gap:12px;min-width:0;height:60px;padding:0 14px 0 20px;border-radius:18px;border:1.5px solid var(--line-2);background:var(--lav);transition:border-color .2s,box-shadow .2s,background .2s;cursor:text}
.tm-search:hover{border-color:#EF599D}
.tm-search:focus-within{border-color:#EF599D;background:#fff;box-shadow:0 0 0 4px #ef599d22}
.tm-search svg{width:22px;height:22px;flex:none;color:var(--violet)}
.tm-search input{flex:1;min-width:0;width:auto;height:auto;border:0!important;border-radius:0;box-shadow:none!important;-webkit-appearance:none;appearance:none;background:transparent;font:500 16px/1.2 Poppins,system-ui,sans-serif;color:var(--navy);outline:none;padding:0}
.tm-search input:focus,.tm-search input:focus-visible{outline:none!important;border-radius:0}
.tm-search input::placeholder{color:var(--muted-2)}
.tm-search input::-webkit-search-cancel-button{cursor:pointer}
.tm-search kbd{flex:none;font:600 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);padding:6px 9px;border-radius:8px;border:1px solid var(--line-2);background:#fff}
.tm-count{flex:none;margin:0;font-size:14px;color:var(--muted);white-space:nowrap}
.tm-count b{font-size:22px;color:var(--navy);font-weight:600;font-variant-numeric:tabular-nums;margin-right:2px}
.tm-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tm-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:30px;border:1.5px solid var(--line-2);background:#fff;color:var(--navy);font:500 13px/1.2 Poppins,system-ui,sans-serif;cursor:pointer;transition:border-color .2s,background .2s,color .2s,transform .25s var(--ease)}
.tm-chip i{font-style:normal;font-size:11.5px;font-weight:600;color:var(--muted-2);font-variant-numeric:tabular-nums}
.tm-chip:hover{border-color:#EF599D;transform:translateY(-1px)}
.tm-chip:focus-visible{outline:3px solid #EF599D;outline-offset:2px}
.tm-chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.tm-chip[aria-pressed="true"] i{color:var(--pink-lt)}
.tm-chips:not(.open) .tm-chip.x{display:none}
.tm-more{padding:8px 14px;border-radius:30px;border:1.5px dashed #bbb7d4;background:transparent;color:var(--violet);font:600 13px/1.2 Poppins,system-ui,sans-serif;cursor:pointer;transition:border-color .2s,color .2s}
.tm-more:hover{border-color:#EF599D;color:var(--pink)}
.tm-more:focus-visible{outline:3px solid #EF599D;outline-offset:2px}

/* table (desktop) */
.tm-tablewrap{margin-top:28px;overflow-x:auto;-webkit-overflow-scrolling:touch;background:#fff;border:1px solid var(--line);border-radius:18px}
.tm-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.5;table-layout:fixed}
.tm-table thead th{text-align:left;font:600 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--table-head-fg);padding:14px 16px;border-bottom:1.5px solid transparent;background:var(--table-head)}
.tm-table thead th:first-child{border-radius:14px 0 0 0}.tm-table thead th:last-child{border-radius:0 14px 0 0}
.tm-table thead th:nth-child(1){width:24%}.tm-table thead th:nth-child(2){width:8%}.tm-table thead th:nth-child(3){width:18%}.tm-table thead th:nth-child(4){width:9%}.tm-table thead th:nth-child(5){width:11%}
.tm-table tbody th,.tm-table tbody td{padding:16px;vertical-align:top;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere;transition:background .2s}
.tm-name{font-weight:600}
.tm-name .tm-t{display:block;font-size:15px;color:var(--navy);letter-spacing:-.01em}
.tm-name small{display:inline-block;margin-top:6px;font-size:11.5px;font-weight:500;line-height:1.3;color:var(--muted);padding:3px 9px;border-radius:20px;background:var(--lav-2)}
.tm-code{font:600 13.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--pink)}
.tm-tat{white-space:nowrap}
.tm-det{white-space:pre-line;color:var(--muted);font-size:13px}
.tm-table mark{background:#ef599d2e;color:inherit;border-radius:4px;padding:0 2px}
/* pink hover outline, like the menu (desktop table only) */
@media (min-width:861px){
.tm-table tbody tr:hover>*{box-shadow:inset 0 1.5px #EF599D,inset 0 -1.5px #EF599D}
.tm-table tbody tr:hover>:first-child{box-shadow:inset 1.5px 0 #EF599D,inset 0 1.5px #EF599D,inset 0 -1.5px #EF599D;border-radius:12px 0 0 12px}
.tm-table tbody tr:hover>:last-child{box-shadow:inset -1.5px 0 #EF599D,inset 0 1.5px #EF599D,inset 0 -1.5px #EF599D;border-radius:0 12px 12px 0}
}
.tm-table tbody tr{scroll-margin-top:24px}
.tm-table tbody tr.tm-hit>*{animation:tmhit 2.4s var(--ease)}
@keyframes tmhit{0%,40%{background:#ef599d24}100%{background:transparent}}
.tm-table.is-empty thead{display:none}
.tm-empty{text-align:center;padding:48px 20px;border:1.5px dashed var(--line-2);border-radius:22px;background:var(--lav)}
.tm-empty h2{font-size:22px;margin-bottom:10px}
.tm-empty p{color:var(--muted);max-width:520px;margin:0 auto 18px}
.tm-empty a,.tm-note a{color:var(--navy);font-weight:600;text-decoration:underline;text-decoration-color:#ef599d88;text-underline-offset:3px}
.tm-note{margin:22px 0 0;font-size:13px;line-height:1.7;color:var(--muted-2);max-width:900px}

/* ways to order: three equal-height cards, whole card is the link */
.tm-ways{padding-top:clamp(40px,5vw,72px);padding-bottom:0}
.tm-wgrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.tm-w{display:flex;flex-direction:column;gap:12px;padding:28px;border-radius:22px;border:1px solid var(--line-2);background:#fff;cursor:pointer;height:100%}
.tm-w:hover,.tm-w:has(a:focus-visible){border-color:#EF599D}
.tm-wi{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--pink-soft);color:var(--pink)}
.tm-wi svg{width:24px;height:24px}
.tm-w h3 a{color:var(--navy);transition:color .2s}
.tm-w h3 a:after{content:"";position:absolute;inset:0;z-index:4}
.tm-w h3 a:focus-visible{outline:none}
.tm-w:has(a:focus-visible){outline:3px solid var(--pink);outline-offset:3px}
.tm-w:hover h3 a{color:var(--pink)}
.tm-w p{margin:0;color:var(--muted);font-size:15px;line-height:1.65}
.tm-ctas{margin-bottom:22px}

@media (max-width:1100px){
 .tm-table thead th:nth-child(1){width:26%}
 .tm-table{font-size:13.5px}
}
/* cards (mobile / small tablet) */
@media (max-width:860px){
 .tm-hero{padding-bottom:120px}
 .tm-tool{margin-top:-80px}
 .tm-panel{padding:16px;border-radius:22px}
 .tm-searchrow{flex-direction:column;align-items:stretch;gap:10px}
 .tm-search{height:54px}
 .tm-search kbd{display:none}
 .tm-count{font-size:13px}
 .tm-chips{flex-wrap:nowrap;overflow-x:auto;margin:14px -16px 0;padding:2px 16px 6px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 24px),transparent)}
 .tm-chips::-webkit-scrollbar{display:none}
 .tm-chip{flex:none;white-space:nowrap}
 .tm-chips:not(.open) .tm-chip.x{display:inline-flex}
 .tm-more{display:none}
 .tm-table,.tm-table tbody{display:block}
 .tm-table thead{display:none}
 .tm-table tbody tr{display:grid;grid-template-columns:1fr auto;gap:0 12px;padding:18px;margin-bottom:12px;border:1px solid var(--line-2);border-radius:18px;background-color:var(--table-row);transition:border-color .2s,background-color .2s}
 .tm-table tbody tr[hidden]{display:none}
 .tm-table tbody tr:hover{border-color:#EF599D}
 .tm-table tbody tr:hover>*{background:transparent;box-shadow:none}
 .tm-table tbody th,.tm-table tbody td{padding:0;border:0;display:block}
 .tm-name{grid-column:1;grid-row:1}
 .tm-code{grid-column:2;grid-row:1;text-align:right}
 .tm-table tbody td:not(.tm-code){grid-column:1/-1;display:grid;grid-template-columns:96px 1fr;gap:10px;padding-top:10px;margin-top:10px;border-top:1px solid var(--line)}
 .tm-table tbody td:not(.tm-code):before{content:attr(data-h);font:600 10.5px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--violet)}
 .tm-tat{white-space:normal}
 .tm-wgrid{grid-template-columns:1fr}
 .tm-stats{gap:8px}
 .tm-stats li{padding:12px}
}
@media (max-width:420px){
 .tm-stats span{font-size:11.5px}
 .tm-table tbody td:not(.tm-code){grid-template-columns:84px 1fr}
}
@media (prefers-reduced-motion:reduce){
 .tm-chip:hover{transform:none}
 .tm-table tbody tr.tm-hit>*{animation:none;background:#ef599d1a}
}
