/* WebIndexly — production additions on top of style.css (mockup design system) */

.logo .logo-accent { color: var(--accent); font-weight: 700; }
.logo-mark svg { width: 20px; height: 20px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--muted); }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent); }

/* real favicons */
.fav.fav-img { background: #fff; padding: calc(var(--s) * .12); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.2); }
[data-theme="dark"] .fav.fav-img { background: #f4f5f8; }
.fav.fav-img img { width: 100%; height: 100%; object-fit: contain; border-radius: calc(var(--s) * .14); }
.fav-24.fav-img { padding: 3px; }

/* header extras */
.saved-btn { position: relative; }
.saved-count { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; background: var(--accent); color: #fff; }
.ad-top { margin-top: 12px; }
.ad-slot.ad-live { display: block; min-height: 0; text-align: center; }
.ad-slot.ad-live > b { display: block; margin-bottom: 6px; }

/* footer newsletter */
.foot-news { display: flex; gap: 8px; margin-top: 16px; max-width: 380px; flex-wrap: wrap; }
.foot-news input[type=email] { flex: 1; min-width: 160px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-size: 13.5px; }

/* chips used as checkbox labels */
.chip-check { position: relative; cursor: pointer; user-select: none; }
.chip-check:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check:has(input:checked) { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 45%, transparent); color: var(--text); }
.dd-menu input[type=radio] { accent-color: var(--accent); }

/* notices */
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--surface); font-size: 14px; }
.notice .ic { margin-top: 2px; flex: none; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice p { margin: 4px 0 0; }
.notice-warn { border-color: color-mix(in oklab, var(--amber) 40%, transparent); background: var(--amber-soft); }
.notice-warn .ic { color: var(--amber); }
.notice-ok { border-color: color-mix(in oklab, var(--green) 40%, transparent); background: var(--green-soft); }
.notice-ok .ic { color: var(--green); }
.notice.big { padding: 22px; font-size: 15px; }

/* ---------- site page ---------- */
.site-hero .ph-row { align-items: center; }
.sh-title h1 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -.035em; }
.sh-title .ph-sub { flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sh-title .ph-sub .domain { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.sh-title .ph-sub .domain:hover { color: var(--accent); }
.sh-title .ph-sub a:hover { color: var(--accent); }
.sh-lede { max-width: 760px; margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.sh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.sh-actions .btn.is-saved, .sh-actions .btn.is-voted { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 45%, transparent); color: var(--text); }
.site-main { min-width: 0; }
.shot { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.win-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-placeholder { position: relative; padding-bottom: 26px; background: radial-gradient(120% 120% at 0% 0%, color-mix(in oklab, var(--c) 18%, transparent), transparent 60%), var(--surface); }
.shot-placeholder .ph-body { display: flex; align-items: center; gap: 16px; padding: 34px 28px 18px; }
.shot-placeholder .ph-body b { display: block; font-size: 20px; letter-spacing: -.02em; }
.shot-placeholder .ph-body small { color: var(--muted); }
.shot-placeholder .lines { display: grid; gap: 10px; padding: 6px 28px 0; }
.shot-placeholder .lines i { display: block; height: 10px; border-radius: 6px; background: var(--surface-3); }
.site-prose { max-width: none; }
.site-prose h2 { margin-top: 8px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.pc-grid > div { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.pc-grid b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pc-grid .pro b { color: var(--green); }
.pc-grid .con b { color: var(--amber); }
.pc-grid ul { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--text-2); }
@media (max-width: 640px) { .pc-grid { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts dd a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.facts dd a:hover { color: var(--accent); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } .facts > div:nth-child(odd) { border-right: 0; } }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--faint); }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-dot.bad { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.edit-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding: 16px 18px; border: 1px dashed var(--border-2); border-radius: var(--radius); }
.edit-box p { margin: 2px 0 0; }
.report-form { flex-basis: 100%; display: grid; gap: 10px; margin-top: 6px; }
.report-form label, .form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 550; color: var(--text-2); }
.report-form textarea, .report-form input[type=email], .form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form textarea, .form select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 400;
}
.form textarea, .report-form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus, .report-form textarea:focus { outline: 2px solid color-mix(in oklab, var(--accent) 55%, transparent); outline-offset: 1px; }
.byline-fine { margin-top: 18px; }
.about-mini .about-head { display: flex; align-items: center; gap: 12px; }
.about-mini .about-head b { display: block; }
.about-mini .domain { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mini-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.mini-facts li { display: flex; justify-content: space-between; gap: 10px; }
.mini-facts span { color: var(--muted); }
.mini-facts b { font-weight: 550; text-align: right; }
.link-list .fav { margin-right: 2px; }

/* ---------- categories A–Z ---------- */
.az-cats { columns: 3 320px; column-gap: 16px; }
.az-cat { break-inside: avoid; margin: 0 0 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.az-cat .cat-top { display: flex; gap: 12px; align-items: center; }
.az-cat h2.cat-name { font-size: 16px; }
.az-topics { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.az-topics li { display: flex; justify-content: space-between; gap: 8px; }
.az-topics a { color: var(--text-2); }
.az-topics a:hover { color: var(--accent); }
.az-topics .n { color: var(--faint); font-size: 12.5px; }

/* ---------- compare ---------- */
.cmp-hero { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 10px 0 18px; }
.cmp-side { display: grid; justify-items: center; gap: 8px; font-size: 15px; }
.vs-big { font-family: var(--serif); font-style: italic; font-size: 38px; color: var(--muted); }
.cmp-2 th[scope=row] { width: 160px; color: var(--muted); font-weight: 500; text-align: left; }
.cmp-2 td { vertical-align: top; }
.cmp-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- search ---------- */
.search-h1 { margin-top: 22px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.dym { margin: 8px 0 0; color: var(--text-2); }
.intent-card { display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); background: var(--accent-soft); }
.intent-card small { display: block; color: var(--muted); font-size: 12px; }
.intent-card > .ic:last-child { margin-left: auto; }
.ac-item mark { background: none; color: var(--accent); font-weight: 650; }

/* ---------- forms / submit ---------- */
.submit-wrap { max-width: 820px; margin: 24px auto 0; }
.form { display: grid; gap: 18px; margin-top: 18px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form { padding: 16px; } }
.form small { font-weight: 400; color: var(--faint); font-size: 12.5px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: 13.5px; font-weight: 550; color: var(--text-2); margin-bottom: 8px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-check { display: flex !important; align-items: center; grid-template-columns: none !important; gap: 8px !important; }
.inline-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.file-drop { padding: 14px; border: 1px dashed var(--border-2); border-radius: 12px; background: var(--surface-2); }
.file-drop input[type=file] { font-size: 13px; color: var(--muted); }

/* ---------- authors / bylines ---------- */
.avatar { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; flex: none; }
.avatar-mono { display: inline-grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(145deg, #8c7cff, #5a45f2); }
.avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
.avatar-xl { width: 88px; height: 88px; border-radius: 24px; font-size: 36px; }
.author-hero { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.author-hero h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; }
.byline .who a:hover { color: var(--accent); }
.author-box { display: flex; gap: 16px; align-items: flex-start; }
.author-box small { display: block; color: var(--muted); }
.list-layout { max-width: 860px; margin: 28px auto 0; }
.static-prose { max-width: 760px; margin: 28px auto 0; }
.toc a.is-active { color: var(--accent); }

/* ---------- misc ---------- */
.col-cover .count { position: absolute; top: 12px; right: 12px; }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag .n { margin-left: 6px; color: var(--faint); font-size: 11px; }
.empty-state[style*="block"] { padding: 40px 20px; text-align: center; border: 1px dashed var(--border-2); border-radius: var(--radius); color: var(--muted); }
.sib-chips .lbl { align-self: center; margin-right: 4px; }
.pager .info { color: var(--muted); }
.card-grid > *, .listing > *, .rail > *, .split > * { min-width: 0; }
html { overflow-x: clip; }
@media (min-width: 861px) { .foot-top { grid-template-columns: 1.6fr repeat(4, 1fr); } }
@media (max-width: 860px) {
  .toolbar .filter-chips { display: flex; flex-wrap: wrap; width: 100%; }
  .toolbar .dd-menu { max-width: calc(100vw - 32px); }
  .toolbar .dd:last-child .dd-menu { left: auto; right: 0; }
}

/* v1.1 — compact search button on phones (no overlap with header icons) */
@media (max-width: 560px) {
  .header-search { flex: 0 0 auto; margin-left: auto; }
  .header-search-btn { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 10px; }
  .header-search-btn .label-short, .header-search-btn .label-long, .header-search-btn .kbds { display: none !important; }
  .header-actions { gap: 2px; }
}
/* v1.1 — screenshot placeholder is a slim strip, not a big empty box */
.shot.shot-strip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 24px; }
.shot.shot-strip .win-dots { display: flex; gap: 5px; }
.shot.shot-strip .win-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.shot.shot-strip .strip-url { font-family: var(--mono); font-size: 13px; color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot.shot-strip .btn { flex: none; }
.related-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.related-topics .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }

/* Turnstile */
.ts-slot:empty { display: none; }
.ts-slot { display: flex; justify-content: center; width: 300px; max-width: 100%; min-height: 0; margin-inline: auto; }
.foot-news .ts-slot, .newsletter .ts-slot { flex-basis: 100%; margin-top: 4px; }

/* submit page layout */
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; max-width: 1180px; margin: 0 auto; }
.submit-layout .submit-wrap { max-width: none; margin: 24px 0 0; }
.submit-aside { display: grid; gap: 14px; margin-top: 42px; position: sticky; top: calc(var(--header-h) + 16px); }
.submit-aside h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.submit-aside .ic { color: var(--accent); }
.ticks, .steps { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 13.5px; color: var(--text-2); }
.faq-mini details { border-top: 1px solid var(--border); padding: 8px 0; font-size: 13.5px; }
.faq-mini summary { cursor: pointer; font-weight: 550; }
.faq-mini p { margin: 6px 0 0; color: var(--text-2); }
@media (max-width: 1000px) { .submit-layout { grid-template-columns: 1fr; } .submit-aside { position: static; margin-top: 0; } }

/* ---------- v1.2 — mobile header, touch targets, menu, filters ---------- */
@media (max-width: 560px) {
  .site-header .hide-sm { display: none !important; }            /* theme + saved move into the menu */
  .header-inner { gap: 6px; }
}
@media (pointer: coarse), (max-width: 900px) {
  .site-header .icon-btn, .header-search-btn, .drawer .icon-btn { min-width: 44px; min-height: 44px; }
  .site-header .header-search-btn { height: 44px; }
  .drawer-panel a.dl { min-height: 44px; }
  .toolbar .chip, .toolbar .select { min-height: 40px; }
  .dd-menu label { min-height: 44px; }
  .af, .af-clear { min-height: 34px; }
  .pager a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
}
.drawer-tools { display: inline-flex; gap: 4px; align-items: center; }
.drawer-panel:focus { outline: none; }
.drawer-panel a.dl .saved-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.drawer-panel a.dl:focus-visible, .mega a:focus-visible, .dd-menu label:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.dd-menu { max-height: min(60vh, 420px); overflow-y: auto; }
.dd-menu .dd-note { margin: 6px 4px 2px; padding: 8px 10px 4px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.45; color: var(--muted); max-width: 280px; }
.dd-menu label.is-empty { opacity: .45; cursor: default; }
.dd-menu label.is-empty:hover { background: none; }
.dd-menu label span:not(.n) { flex: 1; }
.active-filters { align-items: center; }
.af-label { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.af-clear { display: inline-flex; align-items: center; gap: 4px; font-weight: 550; }
.af:focus-visible, .af-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.result-count { margin: 10px 0 0; min-height: 1px; font-size: 13.5px; color: var(--muted); }
.result-count:empty { margin: 0; }
.result-count b { color: var(--text); }
.empty-results h3 { margin: 10px 0 6px; font-size: 17px; color: var(--text); }
.empty-results p { margin: 0 auto 8px; max-width: 520px; }
.empty-results .ic { width: 28px; height: 28px; opacity: .6; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
[data-filter-form] .toolbar-row, [data-filter-form] .toolbar-right { flex-wrap: wrap; min-width: 0; }
[data-filter-form] .filter-chips { flex-wrap: wrap; min-width: 0; }
[data-filter-form] .select { max-width: 100%; }
[data-filter-form] .filter-apply { min-width: 64px; min-height: 44px; border-color: var(--muted); }
[data-filter-form] .filter-apply:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
[data-filter-form] .filter-help { margin: 8px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
[data-filter-form] .filter-group-label { display: block; padding: 8px 10px 0; color: var(--text); font-size: 14px; font-weight: 600; }
[data-filter-form] .dd-opt > input, [data-filter-form] .dd-opt > .n { flex: none; }
[data-filter-form] .dd-opt > span:not(.n) { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .searchbar-field .scope-pill { max-width: 25%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 860px) {
  .toolbar .filter-chips { flex-wrap: wrap; }
  .toolbar .dd { position: static; }
  .toolbar .dd-menu { left: 16px; right: 16px; top: auto; margin-top: 6px; min-width: 0; max-width: none; position: absolute; }
  .toolbar .dd:last-child .dd-menu { left: 16px; right: 16px; }
  .toolbar { position: relative; top: auto; }                      /* not sticky on phones: it would cover half the screen */
  [data-filter-form] .toolbar-right { width: 100%; margin-left: 0; }
  [data-filter-form] .select { flex: 1 1 140px; min-width: 0; }
  [data-filter-form] .view-toggle { flex: none; margin-left: auto; }
}
/* 1.4 — branded fallback when a listing has no screenshot (not used for og:image, structured data or the image sitemap) */
.shot.shot-fallback a { position: relative; display: block; }
.shot-fallback .fb-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: #171A29; }
.shot-fallback .fb-over b { font-size: clamp(20px, 3.2vw, 34px); letter-spacing: -.02em; line-height: 1.15; max-width: 90%; overflow-wrap: anywhere; }
.shot-fallback .fb-over small { font-family: var(--mono); font-size: 13px; color: #4b4f66; }
.shot-fallback .fb-over .fav { margin-bottom: 4px; box-shadow: 0 6px 18px rgba(23, 26, 41, .12); }
.shot-fallback .fb-over .btn { margin-top: 8px; }
@media (max-width: 520px) { .shot-fallback .fb-over { gap: 4px; } .shot-fallback .fb-over .fav { display: none; } .shot-fallback .fb-over b { font-size: 18px; } }

/* Keep the answer ahead of the comparison cover and mobile discovery compact. */
.page-hero .cmp-verdict { max-width: 820px; margin: 22px auto; text-align: left; }
.home-submit { grid-template-columns: 1fr; }
.home-audiences > summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 600; }
.home-audiences[open] > summary { margin-bottom: 12px; }
@media (max-width: 700px) {
  [data-page="home"] .hero { padding: 28px 0 24px; }
  [data-page="home"] .hero h1 { font-size: clamp(30px, 8vw, 42px); margin: 16px 0 12px; }
  [data-page="home"] .hero .lede { font-size: 16px; }
  [data-page="home"] .hero .searchbar { margin-top: 20px; }
  [data-page="home"] .hero-chips > a:nth-of-type(n+4) { display: none; }
  [data-page="home"] .hero-stats { margin-top: 16px; gap: 6px 14px; }
  [data-page="home"] .hero-stats > span:nth-child(n+3) { display: none; }
  [data-page="home"] .section { padding-block: 24px; }
  .home-discovery > :nth-child(n+4), .home-alternatives > :nth-child(n+7),
  .home-lists > :nth-child(n+3), .home-comparisons > :nth-child(n+3),
  .home-guides > :nth-child(n+3) { display: none; }
  .page-hero .cmp-verdict { margin: 16px auto; }
  [data-page="compare"] .cmp-hero { gap: 18px; margin: 4px 0 12px; }
}
