/* AI4 optional extensions: homepage v2 hero + site search. Copied only for sites that opt in (site.json "hero_title" / "search"). */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hero.hero-v2{padding:5.5rem 0 4.5rem}
.hero-v2 .hero-brand{font-family:Oswald,sans-serif;font-size:clamp(1.3rem,3vw,1.9rem);font-weight:600;letter-spacing:.04em;margin:0 auto 1rem;color:#fff}
.hero-v2 .hero-brand .accent{color:#fff;background:var(--brand);padding:0 .25em;border-radius:.2em}
.hero-v2 h1{font-size:clamp(2.3rem,6.5vw,4.6rem);line-height:1.05;margin:0 0 1.1rem}
.hero-v2 .hero-sub{max-width:44rem}
.site-search{display:flex;gap:.5rem;max-width:40rem;margin:1.8rem auto 0}
.site-search input{flex:1;min-width:0;font:inherit;font-size:1.05rem;padding:.75rem 1.1rem;border-radius:999px;border:1px solid #ccc;background:#fff;color:#1c1c1c}
.site-search input:focus{outline:3px solid color-mix(in srgb,var(--brand) 55%,#fff);outline-offset:1px}
.site-search .btn{border:0;cursor:pointer;font:inherit;font-weight:600}
.hero-ctas{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;margin-top:1.6rem}
.hero-ctas .btn.ghost{background:transparent;border:2px solid rgba(255,255,255,.85)}
.search-page .site-search{margin:1.2rem 0 1.5rem}
.search-status{color:#333;font-weight:500}
.search-results{list-style:none;padding:0;margin:0}
.search-results li{padding:1rem 0;border-bottom:1px solid #e5e5e5}
.search-results li a{display:block;font-size:1.1rem;font-weight:600;margin:.15rem 0}
.search-results li p{margin:.2rem 0 0;color:#444}
.search-browse{margin-top:2rem}
@media(max-width:560px){.site-search{flex-direction:column}.site-search .btn{width:100%}.hero.hero-v2{padding:4rem 0 3.5rem}}
/* Day 3 (opt-in): tool directory filters, tool-profile box, inline affiliate marker */
.tool-filters{display:flex;flex-wrap:wrap;gap:.8rem 1.5rem;align-items:center;background:#fff;border:1px solid var(--line,#e5e5e5);border-radius:1rem;padding:1rem 1.2rem;margin:1.5rem 0 .5rem}
.tool-filters[hidden]{display:none}
.tool-filters .tf-row{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center}
.tool-filters label{font-weight:600;font-size:.95rem}
.tool-filters select{font:inherit;padding:.45rem .6rem;border:1px solid #bbb;border-radius:.5rem;min-height:44px;background:#fff}
.tool-filters .tf-check{font-weight:500;display:inline-flex;gap:.4rem;align-items:center;min-height:44px}
.tool-filters .tf-check input{width:1.15rem;height:1.15rem}
.tool-filters .tf-count{margin:0;font-weight:600}
.tool-filters .tf-note{flex-basis:100%;margin:0;color:var(--muted,#555)}
.tool-card[hidden],.tool-cat[hidden]{display:none!important}
.tool-profile{border:1px solid var(--line,#e5e5e5);border-radius:.75rem;padding:.75rem .9rem;margin:.3rem 0;background:#fafafa}
.tool-profile h4{margin:0 0 .4rem}
.pf-facts{display:grid;grid-template-columns:1fr;gap:.2rem;margin:0;font-size:.9rem}
.pf-facts div{display:flex;gap:.5rem;justify-content:space-between;border-bottom:1px dashed #e2e2e2;padding:.2rem 0}
.pf-facts dt{font-weight:600;color:var(--ink,#111)}.pf-facts dd{margin:0;text-align:right;color:var(--muted,#555)}
.tool-profile .pf-checked{margin:.45rem 0 0}
.aff-tag{font-size:.78em;color:var(--muted,#555);white-space:nowrap}
@media(max-width:560px){.tool-filters{flex-direction:column;align-items:stretch}.pf-facts div{flex-direction:column;gap:0}.pf-facts dd{text-align:left}}
