/* Parts the kit lacks, for /can-i-use-together/ (look rules: tools/web-tools/DESIGN.md). Kit variables only. */

.page--hub { max-width: calc(920px + 2 * var(--gutter)); }
.page--pair { max-width: calc(760px + 2 * var(--gutter)); }
.page--pair .hero__title { max-width: 16ch; font-size: clamp(36px, 5.6vw, 64px); }
@media (min-width: 860px) { .page--pair:not(.page--mix) .hero { padding-right: 0; min-height: 0; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── The picker: two fields with a plus between ───────────────────── */
.picker { position: relative; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 14px; }
.pair__and { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background: var(--fill); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 500; line-height: 1; color: var(--muted); }
.combo { position: relative; }
.combo__label { display: block; margin: 0 0 8px 20px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.combo__list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 8px); max-height: min(320px, 46vh); overflow-y: auto; overscroll-behavior: contain; border-radius: 22px; background: var(--surface); box-shadow: var(--cast), 0 0 0 1px var(--hairline); padding: 6px; }
.combo__option { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: 16px; font-size: 16px; font-weight: 600; cursor: pointer; }
.combo__option small { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.combo__option.is-active, .combo__option:hover { background: var(--fill); }
.combo__option[aria-selected='true'] { color: var(--accent); }
.combo__none { padding: 12px 14px; font-size: 15px; line-height: 21px; color: var(--muted); }
.tries { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tries__label { margin-right: 4px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
#together-answer > .stamp { margin-top: 18px; padding-left: 20px; }
#together-answer > .note { margin-top: 18px; }
@media (max-width: 600px) {
  .pair { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pair__and { justify-self: center; width: 34px; height: 34px; margin: 4px 0 -4px; font-size: 20px; }
}

/* ── The answer, inside the same card ─────────────────────────────── */
.answer { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hairline); animation: answer-in 0.12s ease-out; }
@keyframes answer-in { from { opacity: 0; } to { opacity: 1; } }
.verdict__dot svg { width: 20px; height: 20px; }
.verdict.is-plain .verdict__dot { background: var(--muted); }
.facts { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.facts > div { border-radius: var(--radius-tile); background: var(--fill); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.facts dd { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.facts dd b { display: block; margin-bottom: 2px; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.facts dd b.is-whole { margin-bottom: 0; font-size: 15.5px; line-height: 1.4; font-weight: 650; letter-spacing: 0; }
.kinds { margin-top: 16px; font-size: 14px; line-height: 30px; color: var(--muted); }
.kinds select { min-height: 30px; margin: 0 2px; padding: 0 8px; border: 0; border-radius: var(--capsule); background: var(--fill); font-size: 14px; font-weight: 650; color: var(--ink); cursor: pointer; }
.answer__more { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.answer__more a { font-size: 15px; font-weight: 650; text-decoration: none; }
.answer__more a::after { content: ' →'; }
.answer__more a:hover { text-decoration: underline; }
.link-button { margin-left: auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--capsule); background: var(--fill); font-size: 14px; font-weight: 650; color: var(--ink-soft); cursor: pointer; }
.link-button:hover { background: var(--outline); }
.picker + #together-card .get-card, .pair-answer + .get-card, .mix-cards + .get-card { margin-top: clamp(28px, 4vw, 40px); }

/* ── A card's head: a coloured mark, a title, a grey line ─────────── */
.list-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.list-head__dot { width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--positive); color: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-head__dot svg, .verdict__dot svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.list-head.is-flag .list-head__dot { background: var(--tone-coral-ink); }
.list-head__title { font-size: 19px; line-height: 1.5; font-weight: 700; letter-spacing: -0.02em; }
.list-head__note { margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ── The hub's lists ──────────────────────────────────────────────── */
.pair-lists { display: grid; gap: 16px; }
.pair-lists .paper + .paper { margin-top: 0; }
.mix-rows .bubble { background: var(--fill); }
@media (min-width: 760px) {
  .mix-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; padding: 4px 28px; }
  .mix-rows .row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* ── A pair page: the two ingredients and the verdict ─────────────── */
.pair-answer { overflow: hidden; }
.duo { height: clamp(176px, 22vw, 220px); display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 40px); }
.duo--apart { background: linear-gradient(180deg, var(--tone-coral) 0%, #FFF5F1 100%); }
.duo--together { background: linear-gradient(180deg, var(--tone-mint) 0%, #F3FBF6 100%); }
.duo__one { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.duo__one img { width: clamp(72px, 10vw, 104px); height: clamp(72px, 10vw, 104px); filter: drop-shadow(0 10px 14px rgba(20, 40, 100, 0.12)); }
.duo--same .duo__one:last-child img { transform: scaleX(-1) rotate(-8deg); }
.duo__one figcaption { min-height: 28px; padding: 3px 12px; border-radius: var(--capsule); background: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 650; color: var(--ink-soft); text-align: center; }
.duo__plus { width: 40px; height: 40px; margin-bottom: 38px; border-radius: 50%; background: var(--paper); box-shadow: var(--cast-low); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--muted); }
.pair-answer__body { padding: clamp(22px, 3.4vw, 36px); }
.pair-tiles { margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.pair-tiles .tile { min-height: 0; padding: 16px 18px 18px; }
.pair-tiles dd { margin: 0; }
.pair-tiles .tile__value { margin-top: 2px; }
.pair-tiles .tile__detail { font-size: 14.5px; line-height: 1.4; }

/* ── "What not to mix" ────────────────────────────────────────────── */
.mix-cards .paper .rows { margin-top: -4px; }
.mix-cards .row { align-items: flex-start; }
.mix-cards .bubble { width: 48px; height: 48px; }
.chips--row { margin-top: 10px; }
.chips--row .chip { min-height: 28px; font-size: 13px; }
a.chip:hover { color: var(--accent); }
.row__go { flex-shrink: 0; align-self: center; min-height: 36px; padding: 0 14px; border-radius: var(--capsule); background: var(--fill); display: inline-flex; align-items: center; font-size: 14px; font-weight: 650; color: var(--ink-soft); text-decoration: none; }
.row__go:hover { background: var(--outline); color: var(--ink); }

/* ── More pairs ───────────────────────────────────────────────────── */
.more { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* ── Sources, inside the questions ────────────────────────────────── */
main sup { font-size: 11.5px; line-height: 0; font-weight: 600; }
main sup a { color: var(--muted); text-decoration: none; padding: 0 1px; }
main sup a:hover { color: var(--accent); }
.faq .sources { max-width: 68ch; }
.faq .sources li { overflow-wrap: anywhere; scroll-margin-top: 120px; }
.faq .sources a { text-decoration: none; }
.faq .sources a:hover { text-decoration: underline; }
.next { margin-top: 20px; }
