/* Ask Lana (🧵 AT 63, his picks Nov 19): a bento pop-up, not a chat. A sheet from the bottom on a phone, a centered card from 834 px; the
   three big picture tiles on top, the rest as raised chips with a grid or list switch; an answer opens in place. Every color is a theme
   role (assets/themes.css), so it wears whichever theme is on. Motion: the sheet lifts in, the tiles drop in one after another, an answer
   grows into place; with less motion, everything only fades. */
.top-end { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; justify-content: flex-end; }
.ask-open { min-height: 44px; padding: 0 var(--s-4); }
.ask-open .i { color: var(--accent-text); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

dialog.ask { width: 100%; max-width: 100%; max-height: 100%; margin: auto 0 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
dialog.ask::backdrop { background: rgba(0, 0, 0, .5); }
.ask-sheet { display: grid; gap: var(--s-4); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) max(var(--s-4), env(safe-area-inset-right, 0px)) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)) max(var(--s-4), env(safe-area-inset-left, 0px));
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 40px rgba(0, 0, 0, .25); }
@media (min-width: 834px) {
  dialog.ask { max-width: 880px; margin: auto; padding: var(--s-5); }
  .ask-sheet { border-radius: 22px; max-height: calc(100dvh - 48px); padding: var(--s-5); }
}

.ask-head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center; }
.ask-head h2 { margin: 0; font: 600 var(--fs-25)/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .01em; }
.ask-head p { margin: 2px 0 0; color: var(--ink-2); font-size: var(--fs-16); }
.ask-face { width: 48px; height: 48px; border-radius: 50%; background: var(--band); border: 2px solid var(--accent); position: relative; overflow: hidden; }
.ask-face::before { content: ""; position: absolute; left: 50%; top: 9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--band-ink); box-shadow: 0 22px 0 8px var(--band-ink); opacity: .85; }
.ask-x { width: 48px; min-width: 48px; padding: 0; border-radius: 50%; }

.ask-search { display: flex; align-items: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-4); border-radius: var(--r-ctl); background: var(--tile); border: 1px solid var(--line); }
.ask-search .i { flex: none; color: var(--ink-2); }
.ask-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 16px/1.3 var(--font); outline: none; min-height: 44px; }
.ask-search:focus-within { outline: 3px solid var(--ring); outline-offset: 2px; }

.ask-board { display: grid; gap: var(--s-3); }
.ask-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ask-bento { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 834px) { .ask-bento { grid-template-columns: 1.35fr 1fr; } .ask-bento .ask-t-size { grid-row: span 2; } }

.ask-tile, .ask-chip { --i: 0; position: relative; display: grid; gap: var(--s-2); align-content: start; text-align: left; border: 0; cursor: pointer; color: var(--ink); font: inherit; min-width: 0;
  background: linear-gradient(180deg, var(--tile-hi, var(--tile)), var(--tile-lo, var(--tile))); box-shadow: inset 0 1px 0 var(--quiet-hi), inset 0 -1px 0 var(--quiet-shade), 0 2px 6px var(--quiet-contact);
  transition: transform var(--t-ui) var(--ease-out); }
.ask-tile:active, .ask-chip:active { transform: translateY(1px); }
.ask-tile { padding: var(--s-4); border-radius: var(--r); min-height: 120px; }
.ask-tt { font: 600 var(--fs-body)/1.15 var(--font-head); text-transform: uppercase; letter-spacing: .01em; padding-right: 40px; }
.ask-rank { position: absolute; top: var(--s-3); right: var(--s-3); padding: 2px 9px; border-radius: 999px; background: var(--band); color: var(--band-ink); font-size: 13px; font-weight: 700; }
.ask-tile:nth-child(2) { --i: 1; } .ask-tile:nth-child(3) { --i: 2; }

.ask-art { display: grid; gap: var(--s-2); }
.ask-size { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.ask-tag { display: block; width: 100%; height: auto; }
/* his size chart (Nov 20): a plain table, the label above it on a phone, beside it from 520 px */
@media (max-width: 519px) { .ask-size { grid-template-columns: 1fr; } .ask-tag { max-width: 280px; } }
.ask-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ask-table caption { text-align: left; caption-side: top; padding-bottom: var(--s-2); }
.ask-table th, .ask-table td { padding: var(--s-1) var(--s-2); text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ask-table thead th { font-size: 13px; color: var(--ink-2); font-weight: 650; }
.ask-table tbody th { font-weight: 700; }
.ask-table .ask-gauge { display: block; min-width: 24px; }
.ask-label.ph, .ask-size .ask-label { display: grid; place-items: center; aspect-ratio: 1; text-align: center; font-size: 13px; text-transform: none; letter-spacing: 0; }
.ask-chart { display: grid; gap: var(--s-2); min-width: 0; }
.ask-chart dl { margin: 0; display: grid; gap: 4px; }
.ask-chart dl div { display: grid; grid-template-columns: 2.6em 1fr; gap: var(--s-2); align-items: center; }
.ask-chart dt { font-weight: 700; font-size: 14px; }
.ask-chart dd { margin: 0; min-width: 0; }
.ask-gauge { display: block; height: 14px; border-radius: 4px; border: 1.5px dashed var(--ph-edge); background: var(--ph-bg); }
.ask-chart .ph { font-size: 13px; text-transform: none; letter-spacing: 0; }
.ask-route { width: 100%; height: auto; max-height: 90px; }
.ask-route .road { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 6 7; stroke-linecap: round; }
.ask-route .from { fill: var(--ink); } .ask-route .to { fill: var(--accent); }
.ask-chips { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ask-care { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ask-care svg { width: 100%; max-height: 56px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ask-care .fill { fill: currentColor; stroke: none; }

.ask-rest-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
.ask-views { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--r-ctl); background: var(--tile-2); }
.ask-views .btn { min-height: 44px; min-width: 44px; padding: 0; box-shadow: none; background: transparent; }
.ask-views .btn[aria-pressed="true"] { background: var(--tile); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ask-rest { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 834px) { .ask-rest { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ask-chip { grid-template-columns: auto 1fr; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-3); border-radius: var(--r-ctl); font-size: var(--fs-16); font-weight: 600; line-height: 1.25; }
.ask-chip .i { width: 22px; height: 22px; color: var(--accent-text); }
.ask-rest.is-list { grid-template-columns: 1fr; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--tile); }
.ask-rest.is-list .ask-chip { border-radius: 0; box-shadow: none; background: var(--tile); border-top: 1px solid var(--line); }
.ask-rest.is-list .ask-chip:first-child { border-top: 0; }

.ask-miss { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r); background: var(--tile); }
.ask-miss p { margin: 0; font-size: var(--fs-16); }

.ask-answer { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r); background: var(--tile); }
.ask-answer h3 { margin: 0; font: 600 var(--fs-25)/1.15 var(--font-head); text-transform: uppercase; text-wrap: balance; }
.ask-answer-top { display: flex; }
.ask-back { min-height: 44px; padding: 0 var(--s-4); }
.ask-lana, .ask-adam { margin: 0; display: grid; gap: 2px; font-size: var(--fs-16); line-height: 1.5; }
.ask-who { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.ask-adam { color: var(--ink-2); font-style: italic; }
.ask-adam .ask-who { font-style: normal; color: var(--ink-2); }
.ask-was { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ask-was p { margin: 0 auto 0 0; color: var(--ink-2); font-size: var(--fs-16); }
.ask-was div { display: flex; gap: var(--s-2); }
.ask-was .btn { min-height: 44px; padding: 0 var(--s-4); }
.ask-was .btn[aria-pressed="true"] { background: var(--band); color: var(--band-ink); }
.ask-said { margin: 0; min-height: 1.4em; color: var(--ink-2); font-size: var(--fs-16); }
.ask-fine { margin: 0; color: var(--ink-2); font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  dialog.ask[open] .ask-sheet { animation: ask-lift 420ms var(--ease-out) both; }
  dialog.ask[open] .ask-tile { animation: ask-drop 450ms var(--ease-out) both; animation-delay: calc(var(--i) * 60ms + 120ms); }
  dialog.ask[open] .ask-chip { animation: ask-drop 380ms var(--ease-out) both; animation-delay: 280ms; }
  .ask-answer:not([hidden]) { animation: ask-grow 320ms var(--ease-out) both; transform-origin: top center; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.ask[open] .ask-sheet, .ask-answer:not([hidden]) { animation: ask-fade 200ms linear both; }
}
@keyframes ask-lift { from { transform: translateY(32px); opacity: 0; } }
@keyframes ask-drop { from { transform: translateY(-10px); opacity: 0; } }
@keyframes ask-grow { from { transform: scale(.97); opacity: 0; } }
@keyframes ask-fade { from { opacity: 0; } }
