/* Gerber viewer & checker landing page (tools/check-pcb-gerber-files only) */
.tp-gv-hero h1{max-width:560px}
.tp-gv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.tp-gv-actions .button{min-height:48px}
.tp-gv-actions .store-secondary{display:inline-flex;align-items:center;min-height:44px;padding-inline:0}
.tp-gv-trust{display:flex;flex-wrap:wrap;gap:8px 20px}
.tp-gv-pagenav{display:flex;flex-wrap:wrap;gap:8px 24px}
.tp-gv-pagenav a{display:inline-flex;align-items:center;min-height:44px}

/* sample board viewer */
.tp-gv-figure{padding:20px}
.tp-gv{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tp-gv-board{order:-1;flex:1 1 100%;display:block;width:100%;height:auto;border-radius:8px;background:#111827}
.tp-gv-cb{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tp-gv label{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid #c9d1e3;border-radius:999px;background:#fff;color:#14203a;font-size:13px;font-weight:700;cursor:pointer;user-select:none}
.tp-gv label:hover{border-color:#284de8}
.tp-gv-cb:focus-visible+label{outline:3px solid #284de8;outline-offset:2px}
.tp-gv-cb:not(:checked)+label{background:#f1f3f8;color:#4a5670;text-decoration:line-through}
.tp-gv-sw{display:inline-block;width:12px;height:12px;border-radius:3px;border:2px solid currentColor}
.tp-gv-sw-out{color:#2563eb;background:#2563eb}
.tp-gv-sw-cu{color:#00875a;background:#00875a}
.tp-gv-sw-mask{color:#b45309;background:#b45309}
.tp-gv-sw-silk{color:#7e22ce;background:#7e22ce}
.tp-gv-sw-drl{color:#c2410c;background:#c2410c}
.tp-gv-cb:not(:checked)+label .tp-gv-sw{background:transparent}

.tp-gv-bg{fill:#111827}
.tp-gv-grid path{fill:none;stroke:#1f2a3d;stroke-width:.6}
.tp-gv-l *{fill:none;vector-effect:non-scaling-stroke}
.tp-gv-l-out rect{stroke:#60a5fa;stroke-width:1.6}
.tp-gv-l-cu circle,.tp-gv-l-cu rect{stroke:#10b981;stroke-width:1.4;fill:#10b98133}
.tp-gv-l-cu .tp-gv-trace{stroke:#10b981;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.tp-gv-l-mask circle,.tp-gv-l-mask rect{stroke:#f59e0b;stroke-width:1.1;stroke-dasharray:2 1.5}
.tp-gv-l-silk rect{stroke:#d8b4fe;stroke-width:1.1}
.tp-gv-l-silk .tp-gv-dot{fill:#d8b4fe;stroke:none}
.tp-gv-l-silk text{fill:#d8b4fe;stroke:none;font:700 9px/1 system-ui,sans-serif;letter-spacing:.04em}
.tp-gv-l-drl circle{stroke:#f87171;stroke-width:1.4;fill:#f8717140}
.tp-gv-marks .tp-gv-ring{fill:none;stroke:#facc15;stroke-width:1.6;stroke-dasharray:4 3}
.tp-gv-marks .tp-gv-pin{fill:#facc15;stroke:#111827;stroke-width:1.5}
.tp-gv-marks .tp-gv-pin-t{fill:#111827;font:800 10px/1 system-ui,sans-serif}

#tp-l-out:not(:checked)~.tp-gv-board .tp-gv-l-out,
#tp-l-cu:not(:checked)~.tp-gv-board .tp-gv-l-cu,
#tp-l-mask:not(:checked)~.tp-gv-board .tp-gv-l-mask,
#tp-l-silk:not(:checked)~.tp-gv-board .tp-gv-l-silk,
#tp-l-drl:not(:checked)~.tp-gv-board .tp-gv-l-drl{display:none}

.tp-gv-find{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.tp-gv-find li{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid #e3e7f0;border-left:4px solid #b42318;border-radius:8px;background:#fff}
.tp-gv-find strong{display:block;font-size:14px;line-height:1.35;color:#14203a}
.tp-gv-find small{display:block;margin-top:2px;font-size:13px;line-height:1.45;color:#4a5670;overflow-wrap:anywhere}
.tp-gv-num{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:#facc15;color:#111827;font-size:13px;font-weight:800;line-height:1;border:2px solid #111827}
.tp-gv-figure figcaption{margin-top:16px}

/* what you get */
.tp-gv-get h2{margin:6px 0 20px}
.tp-gv-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tp-gv-card{border:1px solid #dbe2f3;border-radius:12px;background:#fff;padding:20px}
.tp-gv-card h3{margin:0 0 12px;font-size:17px;color:#14203a}
.tp-gv-card ul{margin:0;padding-left:18px;display:grid;gap:8px;font-size:14px;line-height:1.5;color:#26324d}
.tp-gv-card strong{color:#14203a}
.tp-gv-card-muted{background:#f6f7fb}
.tp-gv-plain{margin:18px 0 0;font-size:14px;line-height:1.6;color:#4a5670}

@media (max-width:980px){.tp-gv-cols{grid-template-columns:1fr}}
@media (max-width:420px){.tp-gv-figure{padding:14px}.tp-gv label{padding:0 10px;font-size:12px}}
@media (prefers-reduced-motion:reduce){.tp-gv label{transition:none}}
