/* Answers hub (design/_qa/answers-v2.md), loaded on /answers/ only. Fewer lines: space and tint blocks, no rules. */
:root {
  --blk: color-mix(in srgb, var(--ink) 5%, var(--bg));
  --blk2: color-mix(in srgb, var(--ink) 9%, var(--bg));
}
.av [hidden] {
  display: none !important;
}
.av .mono {
  font: 500 12px/1.4 var(--f2);
  letter-spacing: 0.08em;
}
.av-w {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* views: html.av-js and html.av--res are set before first paint (AnswersHubView) */
html.av--res #av-home,
html:not(.av--res) #av-res,
html.av-js #av-all {
  display: none;
}
html:not(.av-js) :is(.av-s, .av-try, .av-x) {
  display: none;
}
#av-n:focus {
  outline: none;
}
#av-n {
  scroll-margin-top: calc(var(--hh, 64px) + 16px);
}

/* no-JS list */
.av-group {
  margin: 0 0 clamp(32px, 4vw, 56px);
  scroll-margin-top: calc(var(--hh, 64px) + 16px);
}
.av-group h3 {
  font: 700 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--f1);
  margin: 0 0 12px;
}
.av-group .av-row {
  grid-template-columns: 104px minmax(0, 1fr);
}
.av-group .av-rb h4 {
  font: 700 clamp(1.08rem, 1.4vw, 1.22rem)/1.3 var(--f1);
  margin: 0;
  text-wrap: pretty;
}
.av-group .av-rb h4 a {
  color: var(--ink);
  text-decoration: none;
}
.av-places {
  display: contents;
}

/* ---------- search header ---------- */
.av-hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 72px);
}
.av-hw {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}
.av-ht {
  flex: 1;
  max-width: 56rem;
}
.av-no {
  color: var(--mute);
  margin: 0 0 18px;
}
.av-no b {
  color: var(--red);
  font-weight: 500;
}
.av-hero h1 {
  font: 700 clamp(2.4rem, 6.2vw, 5.4rem)/1.02 var(--f1);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.av-sum {
  font: 400 clamp(1.05rem, 1.6vw, 1.3rem)/1.55 var(--f1);
  color: var(--ink2);
  margin: 18px 0 32px;
  max-width: 40rem;
  text-wrap: pretty;
}
.av-s {
  position: relative;
}
.av-box {
  display: flex;
  align-items: center;
  background: var(--white);
  min-height: 64px;
  padding: 0 8px 0 20px;
  gap: 12px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent);
}
.av-s--big .av-box {
  min-height: clamp(64px, 7vw, 84px);
}
.av-box:focus-within {
  box-shadow: 0 0 0 2px var(--ink);
}
.av-ic {
  flex: none;
  color: var(--mute);
}
.av-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: 400 clamp(1.1rem, 2vw, 1.55rem)/1.2 var(--f1);
  color: var(--ink);
  padding: 14px 0;
  outline: none;
}
.av-box input::placeholder {
  color: var(--mute-2);
}
.av-box input::-webkit-search-cancel-button {
  display: none;
}
.av-go {
  flex: none;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font: 500 13px var(--f2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.av-go:hover {
  background: var(--red);
}
.av-sug {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 100%;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent),
    0 18px 40px -18px var(--rule-dot);
}
.av-sug li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  cursor: pointer;
  font: 400 16px/1.4 var(--f1);
}
.av-sug li[aria-selected="true"],
.av-sug li:hover {
  background: var(--blk);
}
.av-sug li.all {
  display: block;
  color: var(--red);
  font: 500 12px var(--f2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.av-sug mark,
.av-list mark {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: inherit;
  padding: 0 1px;
}
.av-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
}
.av-try > .mono {
  color: var(--mute);
}
.av-try ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.av-try a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font: 400 15px var(--f1);
}
.av-try a:hover {
  background: var(--ink);
  color: var(--bg);
}
.av-ht {
  display: flow-root;
}
html.av--res .av-hero {
  padding: 28px 0 24px;
}
html.av--res .av-hero h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
html.av--res .av-sum,
html.av--res .av-try {
  display: none;
}
html.av--res .av-no {
  margin-bottom: 10px;
}
html.av--res .av-s {
  margin-top: 18px;
}

/* Home view top (design/_qa/answers-top.md): same layout as Home Ask anything, so topics reach the first screen. */
html:not(.av--res) .av-hero {
  padding: clamp(28px, 3vw, 44px) 0 clamp(20px, 2vw, 28px);
}
html:not(.av--res) .av-ht {
  max-width: none;
}
.av-rt .ak-k {
  margin-top: 14px;
}
.av-rt .ak-k li:first-child {
  flex-basis: 100%;
}
.av-box input:placeholder-shown {
  text-overflow: ellipsis;
}
html.av--res .ak-k {
  display: none;
}
@media (min-width: 1100px) {
  html:not(.av--res) .av-ht {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }
  html:not(.av--res) .av-no {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 10px;
  }
  html:not(.av--res) .av-hero h1 {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 10px;
    font-size: clamp(2.4rem, 3.4vw, 3.6rem);
    line-height: 1.04;
  }
  html:not(.av--res) .av-sum {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
  }
  html:not(.av--res) .av-rt {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
  }
  html:not(.av--res) .av-hero form {
    margin: 0;
  }
  html:not(.av--res) .av-s--big .av-box {
    min-height: 0;
  }
  html:not(.av--res) .av-s--big input {
    font-size: 18px;
  }
}
@media (max-width: 599px) {
  html:not(.av--res) .av-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.3rem);
  }
}
#av-home .ar-sec:first-child {
  padding-top: 20px;
}

/* ---------- home: browse, lanes, verdict key ---------- */
.av-hd {
  margin: 0 0 28px;
}
.av-hd .mono {
  color: var(--mute);
  margin: 0 0 8px;
}
.av-hd h2 {
  font: 700 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--f1);
  margin: 0;
  text-wrap: balance;
}
.av-band {
  padding: clamp(48px, 7vw, 104px) 0;
}
.av-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.av-topics a {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 168px;
  padding: 20px 22px;
  background: color-mix(in srgb, var(--c) 22%, var(--bg));
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: background var(--t-fast);
}
.av-topics a:hover,
.av-topics a:focus-visible {
  background: color-mix(in srgb, var(--c) 42%, var(--bg));
}
.av-topics .k {
  position: absolute;
  right: 14px;
  bottom: -14px;
  font: 900 104px/1 var(--fj);
  color: color-mix(in srgb, var(--c) 55%, var(--bg));
  pointer-events: none;
}
.av-topics .mono {
  color: var(--ink2);
}
.av-topics b {
  font: 700 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--f1);
  align-self: end;
  position: relative;
}
.av-topics .av-ct {
  font: 400 15px var(--f1);
  color: var(--ink2);
  margin-top: 4px;
  position: relative;
}
/* Search home: the swipe strip is the default; the folding screen needs a mouse (as Home's .ixc). */
.ar-sec {
  padding-block: 40px;
}
.ar-h {
  margin: 0 0 18px;
  color: var(--ink);
  font: 700 clamp(1.7rem, 2.6vw, 2.3rem) / 1.1 var(--f1);
}
.ar-f {
  display: flex;
  gap: 6px;
  margin: 0 calc(var(--pad) * -1) 0 0;
  padding: 0 var(--pad) 0 0;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ar-f::-webkit-scrollbar {
  display: none;
}
.ar-f li {
  flex: 0 0 clamp(150px, 22vw, 190px);
  min-width: 0;
  scroll-snap-align: start;
}
.ar-f a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 220px auto;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}
.ar-f a:focus-visible {
  outline-offset: -2px;
}
.ar-f .v {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  height: 220px;
  padding-top: 12px;
  overflow: hidden;
  background: linear-gradient(var(--wash-tea), var(--wash-grey));
  font: 900 26px/1.02 var(--fj);
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
}
.ar-f img {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.ar-f .c {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 74px;
  padding-top: 10px;
}
.ar-f b {
  font: 700 18px/1.15 var(--f1);
}
.ar-f small {
  color: var(--mute);
  font: 500 11px/1.3 var(--f2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 1100px) and (hover: hover) {
  .ar-f {
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .ar-f li {
    flex: 1 1 0;
    transition: flex-grow 0.35s ease;
  }
  .ar-f li.on {
    flex-grow: 2.8;
  }
  .ar-f img {
    filter: grayscale(1) contrast(1.05);
  }
  .ar-f li.on img {
    filter: none;
  }
  .ar-f b {
    font-size: clamp(14px, 1.25vw, 16px);
  }
  .ar-f li.on b {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ar-f li {
    transition: none;
  }
}
.ar-c {
  --ac-cols: 2;
  --ac-q: 20px;
  --ac-a: 15px;
}
.ar-c .ac-a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
/* Positioned: else the hero's wash, which runs on below it, paints over the first section and pales it. */
#av-home {
  position: relative;
}
#av-home .av-key {
  margin-top: 24px;
}
@media (max-width: 599px) {
  .ar-sec {
    padding-block: 28px;
  }
  .ar-f li {
    flex-basis: 36vw;
  }
  .ar-f a {
    grid-template-rows: 170px auto;
  }
  .ar-f .v,
  .ar-f img {
    height: 170px;
  }
}
.av-key {
  background: var(--blk);
  padding: 40px 0;
}
.av-key h2 {
  color: var(--mute);
  margin: 0 0 18px;
}
.av-key ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.av-key li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 400 15px/1.45 var(--f1);
  color: var(--ink2);
}

/* ---------- answer rows (one component: lanes, results, related) ---------- */
.av-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.av-row {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 44px;
  gap: 4px 18px;
  align-items: start;
  padding: 18px 16px 18px 18px;
  background: var(--bg);
  transition: background var(--t-fast);
}
.av-row:hover {
  background: color-mix(in srgb, var(--c) 10%, var(--bg));
}
.av-row.open {
  background: color-mix(in srgb, var(--c) 16%, var(--bg));
}
.av-row > .vl {
  padding-top: 6px;
}
.av-rb h3 {
  font: 700 clamp(1.08rem, 1.4vw, 1.22rem)/1.3 var(--f1);
  margin: 0;
  text-wrap: pretty;
}
.av-rb h3 a {
  color: var(--ink);
  text-decoration: none;
}
.av-rb :is(h3, h4) a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}
.av-s1 {
  margin: 6px 0 0;
  font: 400 15.5px/1.5 var(--f1);
  color: var(--ink2);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.av-row.open .av-s1 {
  display: none;
}
.av-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 0;
  font: 500 11px var(--f2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.av .tg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink2);
}
.av .tg i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}
.av-meta .fr {
  color: var(--v-yes);
}
.av-x {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.av-x:hover {
  background: color-mix(in srgb, var(--c) 30%, var(--bg));
}
.av-x[aria-expanded="true"] .pm .v {
  display: none;
}
.av-full {
  grid-column: 2/4;
  margin-top: 4px;
}
.av-full p {
  margin: 0 0 10px;
  font: 400 17px/1.65 var(--f1);
  max-width: var(--measure);
  text-wrap: pretty;
}
.av-full a {
  font: 500 12px var(--f2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- results: rail + list ---------- */
.av-r {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding-top: 36px;
  padding-bottom: 80px;
  align-items: start;
}
.av-rail {
  position: sticky;
  top: calc(var(--hh, 64px) + 20px);
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  max-height: calc(100vh - var(--hh, 64px) - 40px);
  overflow: hidden auto;
  width: auto;
  max-width: none;
}
.av-fhd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.av-fhd h2 {
  margin: 0;
  color: var(--mute);
  flex: 1;
}
.av-clear {
  border: 0;
  background: none;
  padding: 8px 0;
  font: 500 12px var(--f2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  cursor: pointer;
}
.av-close,
.av-ffoot,
.av-fb {
  display: none;
}
.av-g {
  border: 0;
  margin: 18px 0 0;
  padding: 0 0 6px;
  min-width: 0;
}
.av-g legend {
  font: 700 16px var(--f1);
  padding: 0;
  margin: 0 0 8px;
}
.av-g ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.av-g label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 8px;
  margin: 0 -8px;
  cursor: pointer;
  font: 400 15px var(--f1);
}
.av-g label:hover {
  background: var(--blk);
}
.av-g input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.av-g label > i {
  width: 16px;
  height: 16px;
  flex: none;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  display: grid;
  place-items: center;
}
.av-g [data-k="topic"] label > i,
.av-g label[style] > i {
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 45%, var(--bg));
  box-shadow: none;
}
.av-g label[class^="vk-"] > i {
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
  width: 11px;
  height: 11px;
  margin: 0 2.5px;
}
.av-g label[class^="vk-"] > span {
  color: var(--ink);
}
.av-g input:checked + i {
  background: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.av-g input:checked + i::after {
  content: "";
  width: 8px;
  height: 5px;
  border: solid var(--bg);
  border-width: 0 0 2px 2px;
  transform: translate(0, -1px) rotate(-45deg);
}
.av-g label[style] input:checked + i {
  background: var(--c);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.av-g label[style] input:checked + i::after {
  border-color: var(--ink);
}
.av-g label[class^="vk-"] input:checked + i {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 4.5px currentColor;
  background: currentColor;
}
.av-g label[class^="vk-"] input:checked + i::after {
  display: none;
}
.av-g input:checked ~ span {
  font-weight: 700;
}
.av-g input:focus-visible + i,
.av-g input:focus-visible ~ span {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.av-g b {
  margin-left: auto;
  font: 500 12px var(--f2);
  color: var(--mute);
}
.av-g li.z label {
  color: var(--mute-3);
}
.av-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.av-seg label {
  margin: 0;
  padding: 0 12px;
  min-height: 36px;
  background: var(--blk);
}
.av-seg input:checked ~ span {
  font-weight: 400;
}
.av-seg label:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
}
.av-seg label:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.av-sw {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  font: 400 15px var(--f1);
}
.av-sw input {
  appearance: none;
  width: 40px;
  height: 22px;
  flex: none;
  background: var(--blk2);
  border-radius: var(--radius-none);
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast);
}
.av-sw input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--t-fast);
}
.av-sw input:checked {
  background: var(--v-yes);
}
.av-sw input:checked::after {
  transform: translateX(18px);
}
.av-sw input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.av-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.av-n {
  flex: 1;
  margin: 0;
  font: 400 18px var(--f1);
}
.av-n b {
  font-weight: 700;
}
.av-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.av-sort .mono {
  color: var(--mute);
}
.av-sort select {
  min-height: 44px;
  padding: 0 36px 0 14px;
  border: 0;
  background: var(--blk)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315161b' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none;
  font: 400 15px var(--f1);
  color: var(--ink);
  cursor: pointer;
}
.av-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.av-chips:empty {
  display: none;
}
.av-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font: 400 14px var(--f1);
  cursor: pointer;
}
.av-chips button i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.av-chips button span {
  font-size: 17px;
  line-height: 1;
  opacity: 0.75;
}
.av-chips .av-clear {
  background: none;
  color: var(--red);
  padding: 0 6px;
}
.av-dym {
  margin: 0 0 16px;
  font: 400 17px var(--f1);
}
.av-dym a {
  color: var(--red);
  font-style: italic;
}
.av-pg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
}
.av-pg a,
.av-pg span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--blk);
  color: var(--ink);
  text-decoration: none;
  font: 500 13px var(--f2);
}
.av-pg a:hover {
  background: var(--blk2);
}
.av-pg [aria-current] {
  background: var(--ink);
  color: var(--bg);
}

/* empty state */
.av-empty {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--blk);
  padding: clamp(24px, 4vw, 48px);
}
.av-ill {
  width: 100%;
  height: auto;
  display: block;
}
.av-empty h2 {
  font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--f1);
  margin: 0 0 12px;
  text-wrap: balance;
}
.av-empty p {
  font: 400 16.5px/1.6 var(--f1);
  color: var(--ink2);
  margin: 0 0 12px;
  max-width: 34rem;
}
.av-empty p a {
  color: var(--red);
  font-style: italic;
}
.av-ask {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  margin: 6px 0 28px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font: 500 13px var(--f2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.av-ask:hover {
  background: var(--ink);
}
.av-empty h3 {
  color: var(--mute);
  margin: 0 0 12px;
}
.av-topics--s {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.av-topics--s a {
  min-height: 112px;
  padding: 14px 16px;
}
.av-topics--s .k {
  font-size: 72px;
  bottom: -10px;
}
.av-topics--s b {
  font-size: 1.15rem;
}
/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .av-topics {
    grid-template-columns: repeat(3, 1fr);
  }
  .av-key ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .av-r {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .av-fb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    background: var(--ink);
    color: var(--bg);
    font: 500 13px var(--f2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .av-fb span:not(:empty) {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
  }
  .av-rail {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    max-height: 88svh;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--bg);
    overflow: auto;
    z-index: var(--z-sheet);
  }
  .av-fhd .av-clear {
    min-height: 44px;
  }
  .av-rail form {
    padding: 0 var(--pad);
  }
  .av-rail[open] {
    display: block;
  }
  .av-rail::backdrop {
    background: var(--scrim);
  }
  .av-fhd {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg);
    padding: 14px 0 10px;
    margin: 0;
  }
  .av-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--blk);
    font: 400 24px/1 var(--f2);
    cursor: pointer;
  }
  .av-ffoot {
    display: block;
    position: sticky;
    bottom: 0;
    background: var(--bg);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  }
  .av-apply {
    width: 100%;
    min-height: 52px;
    border: 0;
    background: var(--ink);
    color: var(--bg);
    font: 500 13px var(--f2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .av-sort .mono {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* ---------- phone ---------- */
@media (max-width: 599px) {
  .av-hw {
    display: block;
  }
  .av-hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }
  .av-box {
    padding-left: 14px;
  }
  .av-box input {
    font-size: 17px;
  }
  .av-go {
    padding: 0 14px;
  }
  .av-go {
    font-size: 0;
    width: 48px;
    padding: 0;
    background: var(--ink)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14'%3E%3Cpath d='M1 7h15M10 1l6 6-6 6' fill='none' stroke='%23f3f3f0' stroke-width='1.8'/%3E%3C/svg%3E")
      no-repeat center;
  }
  .av-ic {
    display: none;
  }
  .av-sug li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .av-topics {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .av-topics a {
    min-height: 0;
    grid-template-rows: none;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 14px;
    padding: 14px 16px;
  }
  .av-topics .mono {
    display: none;
  }
  .av-topics .k {
    position: static;
    grid-row: 1/3;
    font-size: 40px;
    color: var(--ink);
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c) 55%, var(--bg));
  }
  .av-topics b {
    font-size: 1.15rem;
  }
  .av-topics .av-ct {
    margin: 0;
    font-size: 14px;
  }
  .av-key ul {
    grid-template-columns: 1fr 1fr;
  }
  .av-group .av-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .av-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    padding: 14px 8px 14px 14px;
    gap: 6px 8px;
  }
  .av-row > .vl {
    grid-column: 1;
    padding: 0;
  }
  .av-rb {
    grid-column: 1;
  }
  .av-x {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
  }
  .av-full {
    grid-column: 1/3;
  }
  .av-s1 {
    -webkit-line-clamp: 2;
  }
  .av-meta {
    margin-top: 8px;
  }
  .av-bar {
    gap: 10px;
  }
  .av-n {
    flex-basis: 100%;
    font-size: 16px;
  }
  .av-sort {
    margin-left: auto;
  }
  .av-g label {
    min-height: 44px;
  }
  .av-empty {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .av-ill {
    max-width: 280px;
  }
  .av-topics--s {
    grid-template-columns: 1fr;
  }
  .av-topics--s a {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .av-row,
  .av-topics a,
  .av-sw input,
  .av-sw input::after {
    transition: none;
  }
}
