/* Tool illustration tiles (directory, tool pages, homepage). Loaded only where used. The artwork sits on a light tile in both themes on purpose: the illustrations are drawn for a light background. */
.ti { display: block; border-radius: .8rem; background: linear-gradient(160deg, #fff, #f6efe6); border: 1px solid var(--ssp-line); overflow: hidden; }
.ti img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ti-card { display: grid; grid-template-rows: auto 1fr; }
.ti-card .ti { aspect-ratio: 3 / 2; border-radius: .8rem .8rem 0 0; border-width: 0 0 1px; padding: .5rem; }
.ti-sm { width: 3rem; height: 3rem; flex: none; padding: .2rem; border-radius: .5rem; }
.ti-hero { width: min(100%, 15rem); aspect-ratio: 3 / 2; padding: .6rem; justify-self: end; box-shadow: 0 14px 30px -18px rgb(0 0 0 / .35); }
.ti-row { display: flex; gap: .35rem; margin-top: .75rem; }
.ti-row .ti-sm { width: 2.6rem; height: 2.6rem; }
.pop-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.4rem; }
@media (min-width: 48rem) { .pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .pop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pop-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ssp-line); border-radius: .9rem; background: var(--ssp-surface); color: var(--ssp-ink); text-decoration: none; overflow: hidden; transition: transform .15s, border-color .15s; }
.pop-card:hover { transform: translateY(-3px); border-color: var(--ssp-accent); }
.pop-card .ti { aspect-ratio: 3 / 2; border: 0; border-radius: 0; padding: .6rem; }
.pop-card div.pt { padding: .8rem .95rem 1rem; }
.pop-card b { display: block; font: 700 1rem/1.25 var(--font-display); }
.pop-card small { display: block; margin-top: .3rem; color: var(--ssp-muted); font-size: .85rem; line-height: 1.4; }
.hsearch { display: flex; gap: .5rem; margin-top: 1.1rem; max-width: 36rem; }
.hsearch input { flex: 1; min-width: 0; min-height: 2.9rem; padding: .5rem .9rem; border: 1.5px solid var(--ssp-line); border-radius: .6rem; background: var(--ssp-surface); color: var(--ssp-ink); font: inherit; }
.tool-hero { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .tool-hero { grid-template-columns: minmax(0, 1fr) auto; } }
.rel-li { display: flex; align-items: center; gap: .7rem; }
.txt-card { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--ssp-line); border-radius: .9rem; background: var(--ssp-surface); color: var(--ssp-ink); text-decoration: none; transition: transform .15s, border-color .15s; height: 100%; }
.txt-card:hover { transform: translateY(-3px); border-color: var(--ssp-accent); }
.txt-card b { display: block; font: 700 1.05rem/1.25 var(--font-display); }
.txt-card small { display: block; margin-top: .4rem; color: var(--ssp-muted); font-size: .88rem; line-height: 1.5; }
.txt-card .meta { display: block; margin-top: .6rem; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ssp-accent); }
.txt-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.4rem; }
@media (min-width: 40rem) { .txt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .txt-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .txt-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { min-height: 2.5rem; padding: .35rem .85rem; border: 1.5px solid var(--ssp-line); border-radius: 99px; background: var(--ssp-surface); color: var(--ssp-ink); font: 600 .9rem var(--font-sans); cursor: pointer; }
.filter small { margin-left: .35rem; color: var(--ssp-muted); font-weight: 600; }
.filter[aria-pressed="true"] { background: var(--ssp-accent); border-color: var(--ssp-accent); color: var(--ssp-accent-ink); }
.filter[aria-pressed="true"] small { color: inherit; }
