/* Perfume DNA — "How It Wears" quick ratings (assets/js/ratings.js), 17.11.2026 */
.hiw[hidden] { display: none; }
.hiw { padding-top: 0; }
.hiw-head { margin: 0 0 var(--space-4, 16px); }
.hiw-head h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; }
.hiw-status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-muted, #6D645D); }
.hiw-wait { margin: 0 0 8px; font-size: 14px; line-height: 1.5; font-style: italic; color: var(--color-muted, #6D645D); }
.hiw-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 56px; }
@media (min-width: 900px) { .hiw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hiw-row { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 16px; border-top: 1px solid var(--line-hair, rgba(32,26,24,.12)); }
.hiw-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hiw-row-head h3 { margin: 0; font: 500 11px var(--font-body, Inter, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: #7D6139; }
.hiw-top { font-family: var(--font-heading, Fraunces, Georgia, serif); font-size: 17px; line-height: 1.3; color: var(--color-text, #201A18); text-align: right; }
.hiw-hint { font-size: 13px; color: var(--color-muted, #6D645D); }
.hiw-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(32,26,24,.07); }
.hiw-bar span { display: block; height: 100%; transition: width .4s cubic-bezier(.4,0,.2,1); }
.hiw-opts { display: grid; gap: 4px; }
.hiw-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hiw button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hiw-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 6px 0; background: none; border: 0; color: var(--color-text, #201A18); font-size: 14px; line-height: 1.3; text-align: left; }
.hiw-opt-label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
@media (max-width: 420px) { .hiw-opt { font-size: 13px; } .hiw-opt-label { gap: 6px; } .hiw-opt .hiw-pct { padding-left: 16px; } }
.hiw-opt-label i, .hiw-chip i { display: block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.hiw-opt .hiw-pct { padding-left: 17px; }
.hiw-pct { font-size: 13px; color: var(--color-muted, #6D645D); min-height: 17px; }
.hiw-opt.is-on, .hiw-season.is-on .hiw-season-label { color: var(--color-primary, #3B1F2E); font-weight: 600; }
.hiw-opt.is-on .hiw-opt-label i, .hiw-season.is-on .hiw-circle { box-shadow: 0 0 0 2px var(--color-bg, #FAF7F2), 0 0 0 3.5px var(--color-primary, #3B1F2E); }
.hiw-opt:hover .hiw-opt-label { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(32,26,24,.3); }
.hiw-seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.hiw-season { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 6px 0; background: none; border: 0; color: var(--color-text, #201A18); }
.hiw-circle { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; transition: transform .2s; }
.hiw-season:hover .hiw-circle { transform: scale(1.04); }
.hiw-season-label { font-size: 13px; line-height: 1.2; }
.hiw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hiw-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(32,26,24,.14); background: #fff; color: var(--color-text, #201A18); font-size: 14px; transition: background-color .2s, border-color .2s; }
.hiw-chip i { width: 8px; height: 8px; }
.hiw-chip:hover { border-color: rgba(32,26,24,.32); }
.hiw-count { font-size: 13px; color: var(--color-muted, #6D645D); }
.hiw-chip.is-on { background: var(--color-primary, #3B1F2E); border-color: var(--color-primary, #3B1F2E); color: var(--color-bg, #FAF7F2); }
.hiw-chip.is-on .hiw-count { color: rgba(250,247,242,.8); }
.hiw-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 16px; border-top: 1px solid var(--line-hair, rgba(32,26,24,.12)); }
.hiw-foot p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--color-muted, #6D645D); max-width: 60ch; }
.hiw-foot a { color: var(--color-primary, #3B1F2E); }
.hiw-clear { min-height: 44px; padding: 0; background: none; border: 0; color: var(--color-primary, #3B1F2E); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hiw-bar span, .hiw-circle { transition: none; } }

/* Note pyramid: tighter vertical spacing above, between and below the tiers (22.11.2026) */
.section-head:has(+ .note-pyramid-wide) { margin-bottom: var(--space-5, 24px); }
.note-pyramid-wide .npw-tier { padding-top: var(--space-5, 24px); padding-bottom: var(--space-5, 24px); }
.note-pyramid-wide .npw-tier:first-child { padding-top: var(--space-3, 12px); }
.note-pyramid-wide .npw-tier:last-child { padding-bottom: 0; }
.section:has(> .note-pyramid-wide) { padding-bottom: clamp(40px, 4vw, 56px); }
@media (max-width: 640px) {
  .note-pyramid-wide .npw-tier { padding-top: var(--space-4, 16px); padding-bottom: var(--space-4, 16px); }
  .note-pyramid-wide .npw-tier:first-child { padding-top: var(--space-2, 8px); }
  .note-pyramid-wide .npw-tier:last-child { padding-bottom: 0; }
}

/* Perfume photos (25.11.2026): on phones the portrait card loses its own shadow,
   so it does not fight the shadow under the bottle */
@media (max-width: 760px) { html .scent-portrait { box-shadow: none; } }

/* "Rate" button under the poll (27.11.2026) */
.hiw-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 20px 0 4px; border-top: 1px solid var(--line-hair, rgba(32,26,24,.12)); }
.hiw-done { min-height: 48px; padding: 0 36px; }
.hiw-done[disabled] { opacity: .35; cursor: default; }
.hiw-done.is-done { display: inline-flex; align-items: center; gap: 8px; cursor: default; }
.hiw-done.is-done svg { width: 16px; height: 16px; }
.hiw-progress { font-size: 13px; line-height: 1.5; color: var(--color-muted, #6D645D); outline: none; }
.hiw-thanks-line { color: var(--color-primary, #3B1F2E); font-size: 14px; max-width: 52ch; }
@media (max-width: 600px) { .hiw-done { width: 100%; justify-content: center; } .hiw-progress { width: 100%; text-align: center; } }
