/* comfi.skin/skin-type-test/: the parts the kit (landing/public/kit/kit.css) has no name for.
   Sizes, radii and colours are the kit's. The card follows the app's (SkinIdCard.kt) and the /id page's
   Skin ID wash (backend/web/assets/site.css, .skin-card). */

/* ── The top: the kit's classic hero, tighter on a phone so the whole first question shows ── */
@media (max-width: 859px) {
  .st-page .hero { padding: 2px 0 16px; }
  .st-page .hero .crumbs { margin-bottom: 10px; }
  .st-page .hero__ask { margin-bottom: 8px; font-size: 17px; }
  .st-page .hero__title { font-size: clamp(38px, 10.5vw, 56px); }
  .st-page .hero__lede { margin-top: 10px; }
  /* Comfi asks the questions in the card below, so the drawing above the title stays for wide screens. */
  .st-page .hero__art { display: none; }
}
/* A short phone keeps the question and four choices on screen: the title alone above the card. */
@media (max-width: 859px) and (max-height: 700px) {
  .st-page .hero__ask, .st-page .hero__lede { display: none; }
  .st-page .hero__title { font-size: 34px; }
  .st-page .st-says { margin-top: 8px; }
}
@media (min-width: 860px) {
  .st-page .hero { padding-top: clamp(24px, 3vw, 40px); padding-bottom: 36px; min-height: 0; }
}
/* On the result the Skin ID card carries Comfi. */
.st-done .hero__art { display: none; }
/* Wide screens, before the result: the title on the left and the question card on the right, as the classic
   home page sets its headline beside the phone. Comfi asks from inside the card, so the drawing rests. */
@media (min-width: 1040px) {
  body:not(.st-done) .st-page { display: grid; grid-template-columns: minmax(0, 1fr) 540px; column-gap: clamp(40px, 5vw, 72px); align-items: center; }
  body:not(.st-done) .st-page > .hero { grid-column: 1; grid-row: 1; padding: 24px 0; min-height: 0; }
  body:not(.st-done) .st-page > .hero .hero__art { display: none; }
  body:not(.st-done) .st-page > .st { grid-column: 2; grid-row: 1; padding-top: 24px; }
  body:not(.st-done) .st-page > .section { grid-column: 1 / -1; }
  body:not(.st-done) .st-choices--one { grid-template-columns: minmax(0, 1fr); }
}

/* ── The test: one question at a time, in one card ── */
.st { scroll-margin-top: 96px; }
.st-quiz { max-width: 720px; animation: st-in 0.14s ease-out; }
@media (max-width: 699px) {
  .st-quiz.stage { padding: 16px 14px 18px; }
  .st-says { margin-top: 12px; }
  .st-choices { margin-top: 12px; }
  .st-choices .choice { min-height: 56px; padding: 8px 12px 8px 16px; }
  .st-choices--several .choice { gap: 8px; padding: 8px 10px 8px 14px; }
  .st-choices--several .choice .st-choice { font-size: 16px; }
}
.st-top { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.st-bar { flex: 1 1 auto; }
.st-bar > span { width: 20%; }
.st-count { flex-shrink: 0; min-width: 3.2em; text-align: right; font-size: 14px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-back { flex-shrink: 0; margin-left: -8px; padding: 0 10px 0 4px; min-height: 32px; border: 0; border-radius: var(--capsule); background: none; color: var(--muted); font-size: 14px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.st-back:hover { color: var(--ink); background: var(--fill); }
.st-back svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-note { margin-top: 14px; border-radius: 16px; background: var(--fill); padding: 12px 16px; font-size: 15px; line-height: 21px; color: var(--ink-soft); }
/* Comfi and the question in its bubble (kit .says--small, a little larger here: it carries the page's question). */
.st-says { margin-top: 18px; max-width: none; }
.st-says .says__comfi { width: clamp(52px, 7vw, 68px); }
.st-says .says__bubble { padding: 12px 18px 13px; }
.st-q { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.st-q:focus, .st-answer:focus { outline: 0; }
.st-says .says__bubble p.st-line { margin-top: 2px; font-size: 15px; line-height: 21px; color: var(--muted); }

.st-choices { margin-top: 16px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.st-choices--several { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-choices .choice { min-height: 60px; padding: 10px 14px 10px 18px; border-radius: 18px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); }
.st-choices--several .choice { min-height: 56px; padding-left: 16px; }
.st-choices .choice .st-choice { min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 17px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.st-choices .choice .st-detail { font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.st-pick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--outline); background: var(--paper); display: flex; align-items: center; justify-content: center; transition: background 0.12s ease, border-color 0.12s ease; }
.st-pick svg { fill: none; stroke: transparent; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.st-choices .choice[aria-pressed='true'] .st-pick { background: var(--accent); border-color: var(--accent); }
.st-choices .choice[aria-pressed='true'] .st-pick svg { stroke: var(--surface); }
.st-choices .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Pick one: a tap is the answer, so only an answer given earlier shows its mark. */
.st-choices--one .choice[aria-pressed='false'] .st-pick { display: none; }
@media (min-width: 700px) { .st-choices--one { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.st-actions { margin-top: 18px; }
.st-quiz .st-actions .button { min-width: 160px; }
@media (max-width: 699px) { .st-quiz .st-actions .button { flex: 1 1 auto; } }
.st-label { display: block; margin-top: 18px; font-size: 14px; font-weight: 650; color: var(--muted); }
.st-add { margin-top: 6px; display: flex; gap: 8px; }
.st-add .field { flex: 1 1 auto; min-width: 0; min-height: 52px; }
.st-add .button { flex: 0 0 auto; padding: 0 20px; }
.st-small { margin-top: 12px; font-size: 13.5px; line-height: 19px; font-weight: 600; color: var(--muted); }
.st-group .chips { margin-top: 6px; }
.st-group .chip { min-height: 40px; padding: 6px 14px; border-radius: 20px; font-size: 15px; line-height: 20px; font-weight: 600; text-align: left; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.st-chip svg, .st-cross { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.st-offscreen { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
@keyframes st-in { from { opacity: 0; } to { opacity: 1; } }

/* ── The result: the card first, what it means beside it ── */
.st-result { max-width: none; }
.st-result__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.st-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.st-answer { font-size: clamp(26px, 3vw, 40px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; text-wrap: balance; }
.st-answer em { font-style: normal; color: var(--accent); }
.st-meaning { max-width: 36em; font-size: 17px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.st-side { width: 100%; max-width: 420px; display: flex; flex-direction: column; }
.st-side .st-actions { margin-top: 16px; flex-wrap: nowrap; }
.st-side .st-actions .button { flex: 1 1 0; min-width: 0; padding: 0 14px; }
/* On the grey ground a quiet button is white, as a tile is. */
.st-side .button--quiet { background: var(--paper); box-shadow: var(--cast-low); }
.st-side .button--quiet:hover { background: var(--paper); box-shadow: var(--cast); }
.st-status { min-height: 20px; margin-top: 10px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--positive-ink); text-align: center; }
.st-status:empty { display: none; }
.st-link { margin-top: 6px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); }
.st-side .st-small { text-align: center; }
.st-text { align-self: center; margin-top: 6px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--outline); text-underline-offset: 4px; cursor: pointer; }
.st-text:hover { color: var(--ink); text-decoration-color: currentColor; }
.st-words { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-list { padding: clamp(20px, 2.6vw, 28px) clamp(20px, 2.6vw, 30px) clamp(10px, 1.6vw, 16px); }
.st-rows { margin-top: 6px; }
.paper .st-row { align-items: flex-start; min-height: 0; padding: 14px 0; gap: 14px; }
.st-row .row__words { gap: 2px; }
.st-row .row__name { font-size: 16.5px; }
.st-row .row__under { font-size: 14.5px; line-height: 1.4; }
.st-row .row__name a, .st-row .row__under a { color: inherit; text-decoration-color: var(--outline); text-underline-offset: 3px; }
.st-row .row__name a:hover, .st-row .row__under a:hover { color: var(--accent); text-decoration-color: currentColor; }
.st-mark { width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.st-mark.is-good { background: var(--tone-mint); color: var(--positive); }
.st-mark.is-flag { background: var(--tone-coral); color: var(--tone-coral-ink); }
.st-mark svg.tick { stroke: currentColor; }
.st-row-chips { margin-top: 6px; gap: 6px; }
.st-row-chips .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.st-go { background: var(--accent-wash); color: var(--accent); gap: 4px; }
a.st-go:hover { background: var(--accent-soft); }
.st-go svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st-types { grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr)); }
.st-types .tile { min-height: 0; }
.st-result__get .get-card { margin-top: clamp(40px, 6vw, 72px); }

@media (min-width: 900px) {
  .st-result__body { grid-template-columns: 360px minmax(0, 1fr); column-gap: 24px; row-gap: 28px; }
  .st-head { grid-column: 1 / -1; }
  .st-side { grid-column: 1; align-self: start; position: sticky; top: 96px; max-width: none; }
  .st-words { grid-column: 2; }
}

/* ── The Skin ID card ── */
.sid { width: 100%; border-radius: var(--radius); background: var(--surface); box-shadow: var(--cast); overflow: hidden; }
.sid__band { position: relative; height: 150px; background: linear-gradient(160deg, var(--skin-top) 0%, var(--skin-bottom) 70%); overflow: hidden; }
.sid__brand { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 13px; font-weight: 700; }
.sid__name { display: inline-flex; align-items: center; gap: 6px; }
.sid__comfi { position: absolute; left: 50%; bottom: -4px; width: 100px; height: 106px; transform: translateX(-50%); object-position: bottom; }
.sid__body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.sid__label { font-size: 13px; font-weight: 650; color: var(--muted); }
.sid__type { margin-top: 2px; font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.sid__detail { margin-top: 2px; font-size: 16px; line-height: 22px; color: var(--muted); }
.sid__part { display: flex; flex-direction: column; gap: 8px; }
.sid .chip { max-width: 100%; display: inline-block; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Questions ── */
.st-kinds li + li { margin-top: 8px; }
.faq__body a { color: var(--ink); text-underline-offset: 3px; }
/* A phone gives the bubble the width: a smaller Comfi beside it. */
@media (max-width: 480px) { .st-result__get .says__comfi { width: 48px; } .st-result__get .says { gap: 8px; } }
