/* Taste type ("Geschmackstyp") section + detail page. Tokens per DESIGN.md, dark surface
   follows the existing .story-section convention (navy ground, warm white type). */

.taste-section { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); }
.taste-section h1, .taste-section h2, .taste-section h3 { color: var(--bg); }
.taste-section p { color: #C7CBD6; }
.taste-section .eyebrow { color: var(--reward); }
.taste-section .lede { color: #C7CBD6; }
.taste-section :focus-visible { outline-color: var(--reward); }

.taste-head h2 { font-size: clamp(1.625rem, 4.4vw, 3.25rem); }
.taste-sub { margin-top: var(--space-2); font-size: 1.0625rem; }
.taste-section .taste-sub a { color: var(--bg); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--reward); display: inline-block; padding: 10px 0; }
.taste-section .taste-sub a:hover { text-decoration-color: var(--bg); }
.taste-dir { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--reward); }

/* Index (type names) + stage (figure, copy, radar) */
.taste-stage { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; margin-top: var(--space-5); }
.taste-index { list-style: none; margin: 0; padding: 0; }
.taste-index button {
  all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: var(--space-2); width: 100%;
  min-height: 44px; padding: 10px 0; cursor: pointer;
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.15;
  color: rgba(250, 248, 245, 0.62); border-bottom: 1px solid rgba(250, 248, 245, 0.12);
  transition: color var(--motion-fast);
}
.taste-index button:hover { color: rgba(250, 248, 245, 0.85); }
.taste-index button[aria-pressed="true"] { color: var(--bg); }
.taste-index button:focus-visible { outline: 3px solid var(--reward); outline-offset: 3px; }
.taste-index-dir { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(250, 248, 245, 0.62); margin-left: auto; }
.taste-index button[aria-pressed="true"] .taste-index-dir { color: var(--reward); }
.taste-stage-figure img { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.taste-stage-copy h3 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.taste-stage-copy p { margin-top: var(--space-2); font-size: 1.0625rem; line-height: 1.55; max-width: 34ch; }
.taste-radar { display: block; width: 100%; max-width: 300px; height: auto; margin-top: var(--space-3); }
.taste-radar-grid { fill: none; stroke: rgba(250, 248, 245, 0.18); stroke-width: 1; }
.taste-radar-shape { fill: rgba(231, 206, 137, 0.22); stroke: var(--reward); stroke-width: 2; stroke-linejoin: round; }
.taste-radar-label { font-family: var(--font-body); font-size: 11px; font-weight: 600; fill: #C7CBD6; }
.taste-section p.taste-radar-note { margin-top: 4px; font-size: 0.8125rem; color: #9BA1B0; }
.taste-stage .btn-row { margin-top: var(--space-4); }
@media (max-width: 900px) {
  .taste-stage { grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-4); }
  .taste-index { display: flex; gap: var(--space-3); overflow-x: auto; margin-right: calc(var(--space-3) * -1); padding-right: var(--space-3); scrollbar-width: none; }
  .taste-index::-webkit-scrollbar { display: none; }
  .taste-index button { white-space: nowrap; border-bottom: none; font-size: 1.25rem; }
  .taste-index-dir { display: none; }
  .taste-stage-figure img { max-width: 260px; }
}

/* ---------- Detail page ---------- */
.taste-hero { padding-top: var(--space-8); }
.taste-hero h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
.taste-hero .lede { margin-top: var(--space-3); max-width: 52ch; }
.taste-hero .btn-row { margin-top: var(--space-4); }
.taste-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-5); align-items: center; }
.taste-hero-radar { margin: 0; text-align: center; }
.taste-radar-hero { max-width: 440px; margin: 0 auto; }
.taste-radar-dot { fill: var(--reward); }
.taste-radar-label-lg { font-size: 14px; }
.taste-section .taste-hero-radar .taste-radar-note { color: #9BA1B0; font-size: 0.8125rem; }
@media (max-width: 900px) {
  .taste-hero { padding-top: var(--space-6); }
  .taste-hero-grid { grid-template-columns: 1fr; }
  .taste-radar-hero { max-width: 320px; }
}

.taste-steps { list-style: none; margin: 0; padding: 0; counter-reset: taste-step; max-width: 860px; }
.taste-steps li { counter-increment: taste-step; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.taste-steps li::before { content: counter(taste-step, decimal-leading-zero); font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--accent); }
.taste-steps h3 { font-size: 1.5rem; }
.taste-steps p { margin-top: var(--space-1); color: var(--ink-muted); font-size: 1.0625rem; line-height: 1.55; max-width: 58ch; }
@media (max-width: 640px) { .taste-steps li { grid-template-columns: 1fr; gap: var(--space-1); } }

.taste-types { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }
.taste-types li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid rgba(250, 248, 245, 0.14); }
.taste-types img { width: 100%; height: auto; display: block; }
.taste-types h3 { font-size: 1.625rem; margin-top: 2px; }
.taste-types p { margin-top: var(--space-1); line-height: 1.55; }
@media (max-width: 900px) { .taste-types { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .taste-types li { grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-2); } }

.taste-science { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-6); max-width: 980px; }
.taste-science > div { padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.taste-science dt { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.taste-science dd { margin: var(--space-1) 0 0; color: var(--ink-muted); font-size: 1.0625rem; line-height: 1.55; max-width: 44ch; }
.taste-tastes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
.taste-tastes img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--radius); margin-bottom: var(--space-2); }
.taste-tastes h3 { font-size: 1.375rem; }
.taste-tastes p { margin-top: var(--space-1); color: var(--ink-muted); font-size: 1rem; line-height: 1.55; }
@media (max-width: 1100px) { .taste-tastes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .taste-tastes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .taste-tastes { grid-template-columns: 1fr; } }
.taste-science-note { margin-top: var(--space-4); color: var(--ink-muted); font-size: 0.9375rem; }
@media (max-width: 760px) { .taste-science { grid-template-columns: 1fr; } }

.taste-closing { text-align: center; }
.taste-closing h2 { max-width: 20ch; margin: 0 auto; }
.taste-closing .btn-row { margin-top: var(--space-4); }
.taste-closing .lede { margin: var(--space-2) auto 0; }
#science .section-head .lede, #influences .section-head .lede { margin-top: var(--space-2); }

/* Faded photo behind a light section, same treatment as .city-section-bg */
.taste-bg-section { position: relative; overflow: hidden; }
.taste-bg { position: absolute; inset: 0; z-index: 0; }
.taste-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.taste-bg-section .container { position: relative; z-index: 1; }
.taste-bg-section .taste-science dd, .taste-bg-section .lede, .taste-bg-section .taste-science-note { color: #4A5262; }

/* Spicy sits apart from the five tastes: it is a pain signal, not a taste */
.taste-spicy { margin-top: var(--space-6); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; background: var(--ink); border-radius: var(--radius); padding: var(--space-4); }
.taste-spicy img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 12px; }
.taste-spicy h3 { color: var(--bg); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 4px; }
.taste-spicy p { color: #C7CBD6; margin-top: var(--space-2); font-size: 1.0625rem; line-height: 1.6; max-width: 54ch; }
@media (max-width: 760px) { .taste-spicy { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-3); } }

/* Influences: translucent panels keep the copy readable over the faded photo */
.taste-bg-section .taste-science { gap: var(--space-3); max-width: none; }
.taste-bg-section .taste-science > div { border-top: none; padding: var(--space-3); border-radius: var(--radius); background: rgba(255, 255, 255, 0.8); }
.taste-bg-section .taste-science dd { max-width: none; }

/* Home teaser: tighter than the default section rhythm so head and stage read as one block */
.taste-teaser { padding: var(--space-6) 0; }
/* Faint food photo behind the teaser, fading into plain navy on the left so the type list stays on a calm ground. */
.taste-teaser .taste-bg img { opacity: 0.2; }
.taste-teaser .taste-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, transparent 100%); }
.taste-teaser .container { position: relative; z-index: 1; }
.taste-teaser .eyebrow { margin-bottom: var(--space-1); }
.taste-teaser .taste-sub { margin-top: var(--space-1); }
.taste-teaser .taste-stage { margin-top: var(--space-2); gap: var(--space-4); align-items: start; }
.taste-teaser .taste-stage-figure { align-self: center; }
.taste-teaser .taste-index button { padding: 6px 0; }
.taste-teaser .taste-stage-figure img { max-width: 360px; }
.taste-teaser .taste-radar { max-width: 340px; margin-top: var(--space-2); }
/* Desktop: the CTA sits under the type list, figure and copy span both rows */
@media (min-width: 901px) {
  .taste-teaser .taste-index { grid-column: 1; grid-row: 1; }
  .taste-teaser .btn-row { grid-column: 1; grid-row: 2; margin-top: 0; align-self: start; }
  .taste-teaser .taste-stage-figure { grid-column: 2; grid-row: 1 / span 2; }
  .taste-teaser .taste-stage { row-gap: var(--space-2); grid-template-rows: auto 1fr; }
  .taste-teaser .taste-stage-copy { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
}
@media (max-width: 900px) {
  .taste-teaser { padding: var(--space-5) 0; }
  .taste-teaser .taste-stage { gap: var(--space-3); }
  .taste-teaser .taste-stage-figure img { max-width: 240px; }
}

/* Recommendations: steps left, app screenshot right, over the faded photo */
.taste-reco { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-6); align-items: center; }
.taste-reco .phone-bezel { width: 100%; box-sizing: border-box; }
.taste-reco .phone-bezel img { display: block; width: 100%; height: auto; border-radius: 18px; }
#recommendations .taste-bg img { opacity: 0.12; }
#recommendations .taste-steps p { color: #4A5262; }
@media (max-width: 900px) {
  .taste-reco { grid-template-columns: 1fr; gap: var(--space-4); }
  .taste-reco .phone-bezel { max-width: 260px; }
}

/* Hero radar cycles through the example profiles, the type name swaps with it */
.taste-hero-radar .taste-radar-note strong { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; color: var(--reward); transition: opacity 300ms ease; }
.taste-hero-radar .taste-radar-note strong.is-swapping { opacity: 0; }
