/* Queen's Beauty Awards case study. Wireframes follow the Queen funnel (FIG 06c): white pages, #d4d4d8 outline,
   grey skeleton bars, white in both themes. Screens use .phone-screen / .desktop-screen from styles.css. */

/* FIG 00 · Voting route: each award is a short vertical route of three stops, one per retail channel.
   Each stop is the real vote button; the line between stops is neutral. Desktop: four columns; mobile: 2 × 2. */
.qba-route { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; row-gap: 32px; }
.qba-route__award { margin: 0 0 14px; color: var(--color-content); font: 500 18px/1.2 var(--font-serif); }
.qba-route ol { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.qba-route ol::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 20px; border-left: 1px solid var(--color-border-muted); }
.qba-route li { position: relative; display: flex; align-items: center; gap: 10px; }
.qba-route__vote { display: grid; place-items: center; width: 40px; height: 20px; border-radius: 99px; background: #29334a; color: #fff; font: 500 10px/1 Inter, system-ui, sans-serif; }
.qba-route__channel { color: var(--color-content-muted); font: 400 12px/1.3 Inter, sans-serif; white-space: nowrap; }
.qba-route__total { margin-top: 36px; text-align: center; }
.qba-route__total .qa-funnel__num { margin-top: 0; }
@media (max-width: 640px) {
  .qba-route { grid-template-columns: repeat(2, max-content); justify-content: space-around; }
  .qba-route__award { font-size: 16px; }
}

/* FIG 01 · Proposed one-page flow vs the shipped tabs, inside the Queen before / after layout (.ba__phones).
   Sized in --u: one unit = 1pt of the 375pt mobile design. */
.qba-wire { container-type: inline-size; display: block; width: 100%; aspect-ratio: 393 / 852; box-sizing: border-box; overflow: hidden; border: 1.5px solid #d4d4d8; border-radius: 20px; background: #fff; text-align: left; }
.qba-wire__inner { --u: calc(100cqw / 375); display: flex; flex-direction: column; }
.qba-wire__bar { display: block; height: calc(96 * var(--u)); background: #e6e6e9; }
.qba-wire__awards { display: grid; grid-template-columns: repeat(4, 1fr); }
.qba-wire__awards span, .qba-wire__channels span { display: grid; place-items: center; height: calc(48 * var(--u)); color: #8f8f94; font: 500 calc(15 * var(--u))/1 "Noto Sans TC", system-ui, sans-serif; }
.qba-wire__awards span { background: #d4d4d8; color: #fff; }
.qba-wire__awards span.is-on { background: #fff; color: #18181b; }
.qba-wire__channels { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #e6e6e9; }
.qba-wire__channels span { height: calc(40 * var(--u)); font-size: calc(13 * var(--u)); }
.qba-wire__channels span.is-on { box-shadow: inset 0 calc(-3 * var(--u)) 0 #18181b; color: #18181b; }
.qba-wire__heading { margin: calc(14 * var(--u)) calc(16 * var(--u)) calc(12 * var(--u)); color: #18181b; font: 600 calc(16 * var(--u))/1 "Noto Sans TC", system-ui, sans-serif; }
.qba-wire__heading + .qba-wire__cards { margin-top: 0; }
.qba-wire__cards { display: grid; grid-template-columns: 1fr 1fr; gap: calc(14 * var(--u)); margin: calc(20 * var(--u)) calc(16 * var(--u)) 0; }
.qba-wire__cards i { display: block; height: calc(150 * var(--u)); border-radius: calc(16 * var(--u)); background: #f0f0f2; }
/* Submit CTA keeps the shipped colour (#29334a) so the one real element reads against the grey wireframe */
.qba-wire__btn { display: grid; place-items: center; align-self: center; width: calc(165 * var(--u)); height: calc(48 * var(--u)); margin-top: calc(28 * var(--u)); border-radius: 99px; background: #29334a; color: #fff; font: 500 calc(15 * var(--u))/1 "Noto Sans TC", system-ui, sans-serif; font-style: normal; }
.qba-ba .qa-funnel__cap { max-width: 220px; margin: 14px auto 0; text-align: center; text-wrap: balance; }
/* desktop: one line each, borrowing the gap between the phones */
@media (min-width: 641px) { .qba-ba .qa-funnel__cap { max-width: none; margin-inline: -58px; white-space: nowrap; } }


/* Outcome · two big numbers, same type as the Queen funnel figures */
.qba-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; text-align: center; }
.qba-stats { margin-bottom: 40px; }
.qba-stats .qa-funnel__num { margin-top: 0; }
.qba-stats .qa-funnel__cap { max-width: 250px; margin-inline: auto; text-wrap: balance; }
@media (max-width: 640px) { .qba-stats { grid-template-columns: 1fr; gap: 28px; } }

/* FIG 01 · Proposed vs shipped, drawn like the Queen funnel phones (FIG 06c): 200px wide, white bar, thin skeleton
   lines, outline product silhouettes. Only the vote button keeps a real colour (#29334a). Units in --u (1/375 width). */
.qba-ba { grid-template-columns: minmax(0, 200px) minmax(0, 116px) minmax(0, 200px); }
.qbw { container-type: inline-size; display: block; width: 100%; aspect-ratio: 393 / 852; box-sizing: border-box; overflow: hidden; border: 1.5px solid #d4d4d8; border-radius: 20px; background: #fff; text-align: left; }
.qbw__inner { --u: calc(100cqw / 375); display: flex; flex-direction: column; height: 100%; }
/* both vote buttons sit the same distance from the bottom, so they line up across the pair */
.qbw .qbw-btn { margin-top: auto; margin-bottom: calc(26 * var(--u)); }
.qbw-bar { display: block; height: calc(28 * var(--u)); }
/* award tabs as in the shipped page: one joined full-width bar, dark unselected, light selected */
.qbw-awards, .qbw-channels { display: grid; grid-template-columns: repeat(4, 1fr); }
.qbw-awards span, .qbw-channels span { display: grid; place-items: center; height: calc(40 * var(--u)); background: #f4f4f5; color: #71717a; font: 500 calc(14 * var(--u))/1 Inter, system-ui, sans-serif; white-space: nowrap; }
.qbw-awards span + span { box-shadow: inset 1px 0 0 #fff; }
/* only the current award is dark; everything else stays light, so the one dark block reads as "you are here" */
.qbw-awards span.is-on { background: #3f3f46; color: #fff; font-weight: 600; box-shadow: none; }
.qbw-channels { grid-template-columns: repeat(3, 1fr); background: #fff; border-bottom: 1px solid #e4e4e7; }
.qbw-channels span { height: calc(34 * var(--u)); background: none; color: #71717a; font-weight: 400; font-size: calc(13 * var(--u)); }
.qbw-channels span.is-on { box-shadow: inset 0 calc(-3 * var(--u)) 0 #18181b; color: #18181b; font-weight: 600; }
.qbw-heading { margin: calc(12 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u)); color: #18181b; font: 600 calc(16 * var(--u))/1 Inter, system-ui, sans-serif; }
.qbw-channels + .qbw-cards { margin-top: calc(16 * var(--u)); }
.qbw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--u)); padding: 0 calc(16 * var(--u)); }
.qbw-card { display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u)); border-radius: calc(14 * var(--u)); background: #f4f4f5; }
.qbw-card__img { width: calc(32 * var(--u)); height: calc(44 * var(--u)); margin-bottom: calc(4 * var(--u)); fill: none; stroke: #9f9fa5; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.qbw-line { display: block; width: 80%; height: calc(9 * var(--u)); border-radius: 99px; background: #dcdce0; }
.qbw-line--short { width: 50%; }
.qbw-pick { display: block; width: 100%; height: calc(24 * var(--u)); margin-top: calc(4 * var(--u)); border-radius: 99px; background: #fff; }
.qbw-btn { display: grid; place-items: center; align-self: center; width: calc(150 * var(--u)); height: calc(44 * var(--u)); margin-top: calc(18 * var(--u)); border-radius: 99px; background: #29334a; color: #fff; font: 500 calc(15 * var(--u))/1 Inter, system-ui, sans-serif; font-style: normal; }
/* vertical "more products" hint after each channel's cards: every channel is a long list */
.qbw-more { display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--u)); padding: calc(8 * var(--u)) 0 0; }
.qbw-more i { width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; background: #c4c4c8; }


/* FIG 03 · Screen-only motion: ICHAM's 24px / 16px corner radii, clipped on the figure.
   Stay inside the text column; no backdrop, border, or shadow. */
.qba-visual-video { border-radius: 24px; overflow: hidden; }
@media (max-width: 640px) { .qba-visual-video { border-radius: 16px; } }
