/* Shopping Answers explorer. Quiet: one search box, one row of filters, dense rows.
   Green marks a product carousel (the result we track); grey for everything else. */
.explorer-page { max-width: 58rem !important; margin: 0 auto; }
.explorer-page > h1 { margin-top: 4rem !important; }
.ex-intro { text-align: center; max-width: 36rem; margin: 1.4rem auto 0 !important; color: var(--ink-2, #333); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ex { margin-top: 2.4rem; }
.ex-tools { position: sticky; top: 0; z-index: 5; background: var(--paper, #f7f7f3); padding: .8rem 0 .7rem; border-bottom: 1px solid var(--rule, #e6e6e6); }
.ex-search { position: relative; display: block; }
.ex-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.05rem; padding: .8rem 2.8rem .8rem 1rem; border: 1px solid #d6d6d0; border-radius: 8px; background: #fff; color: var(--ink, #1a1a1a); outline: none; transition: border-color .15s, box-shadow .15s; }
.ex-search input:focus { border-color: var(--ink, #1a1a1a); box-shadow: 0 0 0 3px rgba(26,26,26,.06); }
.ex-search .ex-key { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font: inherit; font-size: .72rem; color: var(--muted, #6b6b6b); border: 1px solid #d6d6d0; border-radius: 4px; padding: 0 .35rem; }
.ex-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-top: .7rem; }
.ex-seg { display: flex; flex-wrap: wrap; gap: .35rem; }
.ex-seg button { font: inherit; font-size: .8rem; padding: .38rem .7rem; border: 1px solid #d6d6d0; border-radius: 999px; background: #fff; color: var(--ink-2, #333); cursor: pointer; }
.ex-seg button .n { color: var(--muted, #6b6b6b); font-variant-numeric: tabular-nums; }
.ex-seg button[aria-pressed="true"] { background: var(--ink, #1a1a1a); border-color: var(--ink, #1a1a1a); color: #fff; }
.ex-seg button[aria-pressed="true"] .n { color: #cfcfcf; }
.ex-cat select { font: inherit; font-size: .8rem; padding: .38rem .6rem; border: 1px solid #d6d6d0; border-radius: 6px; background: #fff; color: var(--ink-2, #333); max-width: 16rem; }
.ex-count { margin: .9rem 0 .4rem !important; font-size: .8rem; color: var(--muted, #6b6b6b); }
.ex-empty { color: var(--muted, #6b6b6b); }

.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-row { border-bottom: 1px solid var(--rule, #e6e6e6); }
.ex-head { display: grid; grid-template-columns: 1fr 19rem; grid-template-areas: "meta strip" "prompt strip"; gap: .25rem 1.4rem; width: 100%; padding: .85rem .4rem; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; border-radius: 6px; }
.ex-head:hover { background: #fff; }
.ex-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .74rem; color: var(--muted, #6b6b6b); }
.ex-cat-name { color: var(--ink-2, #333); font-weight: 600; }
.ex-kind::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #c4c4c4; margin-right: .3rem; vertical-align: .05rem; }
.ex-kind.s0::before { background: var(--good, #5fb883); }
.ex-prompt { grid-area: prompt; font-size: .93rem; line-height: 1.42; color: var(--ink, #1a1a1a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-row.open .ex-prompt { -webkit-line-clamp: unset; }
.ex-strip { grid-area: strip; display: flex; gap: .4rem; align-items: flex-start; align-self: center; }
.ex-item { display: flex; flex-direction: column; gap: .2rem; width: 5.6rem; min-width: 0; }
.ex-item img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid #ececea; border-radius: 6px; }
.ex-item-t { display: flex; flex-direction: column; font-size: .66rem; line-height: 1.25; }
.ex-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2, #333); }
.ex-item-price { color: var(--muted, #6b6b6b); font-variant-numeric: tabular-nums; }
.ex-more-n { font-size: .68rem; color: var(--muted, #6b6b6b); align-self: center; white-space: nowrap; }

.ex-detail { padding: .2rem .4rem 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; font-size: .86rem; }
.ex-row:not(.open) .ex-detail { display: none; }
.ex-detail h3 { margin: 0 0 .4rem; font-family: inherit !important; font-size: .78rem; font-weight: 600; color: var(--ink, #1a1a1a); }
.ex-q-full { grid-column: 1 / -1; margin: 0; color: var(--ink-2, #333); }
.ex-answer { grid-column: 1 / -1; }
.ex-answer p { white-space: pre-line; margin: 0; max-width: 46rem; line-height: 1.55; color: var(--ink-2, #333); }
.ex-more, .ex-share { font: inherit; font-size: .8rem; margin-top: .5rem; padding: 0; border: 0; background: none; color: var(--ink, #1a1a1a); text-decoration: underline; text-decoration-color: #c4c4c4; cursor: pointer; }
.ex-share { grid-column: 1 / -1; justify-self: start; }
.ex-products ul, .ex-links ul { list-style: none; margin: 0; padding: 0; }
.ex-products li { display: grid; grid-template-columns: 1fr auto; gap: 0 .8rem; padding: .3rem 0; border-top: 1px solid #ececea; }
.ex-p-price { font-variant-numeric: tabular-nums; }
.ex-p-meta { grid-column: 1 / -1; font-size: .74rem; color: var(--muted, #6b6b6b); }
.ex-links li { display: flex; justify-content: space-between; gap: .8rem; padding: .3rem 0; border-top: 1px solid #ececea; }
.ex-l-role { color: var(--muted, #6b6b6b); font-size: .74rem; }
.ex-loading { grid-column: 1 / -1; color: var(--muted, #6b6b6b); }
.ex-about { max-width: 34rem; margin: 3.5rem auto 0; }

@media (max-width: 720px) {
  .ex-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "prompt" "strip"; }
  .ex-strip { margin-top: .4rem; }
  .ex-detail { grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
  .ex-search .ex-key { display: none; }
}
