/* HALA — rating interaction, v2.
   Two separate things on a card: the List score is information, the check is
   the only action. Then one dialog that moves between two steps, so the first
   screen asks a single question.
   Palette is cream / espresso / terracotta only. No stars, no sentiment
   colours, no capsule wrapped round a sentence. */

/* ── the card control ─────────────────────────────────────────── */
.hala-lsc {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  white-space: nowrap;
}
.hala-lsc-k {font-size:11px;
  font-weight: 700;
  letter-spacing:.02em;
  color: rgba(31, 26, 20, .42)}
.hala-lsc-n {
  font-family: 'Syne', ui-sans-serif, sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1;
  color: #1F1A14;
  font-variant-numeric: tabular-nums;
}

.hala-been {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 2px 0;
  margin: 0;
  cursor: pointer;
  font-family: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(31, 26, 20, .72);
  -webkit-tap-highlight-color: transparent;
}
.hala-been-mark {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(31, 26, 20, .28);
  display: grid;
  place-items: center;
  color: rgba(31, 26, 20, .5);
  transition: border-color .15s, color .15s, background-color .15s;
}
.hala-been-mark svg { display: block; }
.hala-been:hover .hala-been-mark { border-color: #B25238; color: #B25238; }
.hala-been:hover { color: #B25238; }
.hala-been:focus-visible { outline: none; }
.hala-been:focus-visible .hala-been-mark {
  outline: 2px solid var(--focus-ring, #B25238);
  outline-offset: 3px;
}
.hala-been.is-mine .hala-been-mark {
  background: #B25238;
  border-color: #B25238;
  color: #FDF9F0;
}
.hala-been.is-mine { color: #1F1A14; }
/* tabular figures are for columns; on a prose label they gap the decimal point */
.hala-been.is-mine .hala-been-t { font-variant-numeric: normal; }
@media (prefers-reduced-motion: reduce) {
  .hala-been-mark { transition: none; }
}

/* the score sits at the right of the card's action row, the check after it */
.hala-cardfoot .hala-lsc { margin-left: auto; }
.hala-cardfoot .hala-been { margin-left: 14px; }
/* wishlist.css styles every button in the row as an underlined terracotta
   link (0,1,1 beats a lone class), which put a link underline under "Been".
   This is a control, not a link — take the costume back off. */
.hala-cardfoot .hala-been {
  text-decoration: none;
  font-size: 12.5px;
  color: rgba(31, 26, 20, .72);
  transition: color .15s ease;
}
.hala-cardfoot .hala-been:hover { color: #B25238; text-decoration: none; }
.hala-cardfoot .hala-been.is-mine { color: #1F1A14; }
.hala-cardfoot .hala-been:focus-visible { outline: none; }
.hala-cardfoot .hala-been:focus-visible .hala-been-mark {
  outline: 2px solid var(--focus-ring, #B25238);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .hala-cardfoot .hala-been { transition: none; }
}

/* ── the dialog ───────────────────────────────────────────────── */
.hrd-back {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 20, .34);
  z-index: 1400;
}
.hrd {
  position: fixed;
  z-index: 1401;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;          /* padding must live inside the 400–440 band */
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #FBF5EA;
  border: 1px solid rgba(31, 26, 20, .14);
  border-radius: 3px;
  box-shadow: 0 18px 48px rgba(31, 26, 20, .18);
  padding: 20px 20px 18px;
  font-family: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  animation: hrd-in .16s ease both;
}
@keyframes hrd-in { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) {
  .hrd { animation: none; }
}

.hrd-step {margin: 0 0 10px;
  font-size:11px;
  font-weight: 700;
  letter-spacing:.02em;
  color: rgba(31, 26, 20, .38)}
.hrd-title {
  font-family: 'Syne', ui-sans-serif, sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #1F1A14;
  margin: 0 0 2px;
}
.hrd-q {
  margin: 12px 0 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(31, 26, 20, .62);
}
.hrd-scorerow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.hrd-lab {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(31, 26, 20, .7);
}
.hrd-n {
  font-family: 'Syne', ui-sans-serif, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: #1F1A14;
  font-variant-numeric: tabular-nums;
}
.hrd-range {
  width: 100%;
  margin: 4px 0 2px;
  accent-color: #B25238;
}
.hrd-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(31, 26, 20, .4);
  font-variant-numeric: tabular-nums;
}

.hrd-subs { display: flex; flex-direction: column; gap: 11px; margin: 4px 0 16px; }
.hrd-sub { display: grid; grid-template-columns: 1fr 104px 30px; align-items: center; gap: 10px; }
.hrd-sub label { font-size: 12.5px; color: rgba(31, 26, 20, .7); }
.hrd-sub input { width: 104px; margin: 0; accent-color: #B25238; }
.hrd-sub .sv {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: #1F1A14;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 420px) {
  .hrd-sub { grid-template-columns: 1fr 84px 28px; gap: 8px; }
  .hrd-sub input { width: 84px; }
}

.hrd-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.hrd-field > label { font-size: 12.5px; font-weight: 600; color: rgba(31, 26, 20, .8); }
.hrd-req { font-weight: 400; color: rgba(31, 26, 20, .42); }
.hrd-input, .hrd-note {
  font-family: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  font-size: 13.5px;
  padding: 9px 11px;
  border: 1px solid rgba(31, 26, 20, .18);
  border-radius: 2px;
  background: #FDF9F0;
  color: #1F1A14;
  width: 100%;
  box-sizing: border-box;
}
.hrd-note { resize: vertical; }
.hrd-input:focus, .hrd-note:focus { outline: none; border-color: #B25238; }
.hrd-input[aria-invalid="true"] { border-color: #8E3F2A; }
.hrd-err {
  margin: 0;
  font-size: 12px;
  color: #8E3F2A;
}

.hrd-acts { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.hrd-go {
  font-family: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: #B25238;
  color: #FDF9F0;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  margin-left: auto;
}
.hrd-go:disabled { opacity: .6; cursor: default; }
.hrd-go:focus-visible { outline: 2px solid var(--focus-ring, #B25238); outline-offset: 3px; }
.hrd-quiet {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #B25238;
  text-decoration: underline;
  text-decoration-color: rgba(178, 82, 56, .4);
  text-underline-offset: 4px;
}
.hrd-quiet:hover { color: #8E3F2A; text-decoration-color: #8E3F2A; }
.hrd-quiet:focus-visible { outline: 2px solid var(--focus-ring, #B25238); outline-offset: 3px; }
.hrd-line { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.55; color: #1F1A14; }
.hrd-see { font-size: 12.5px; color: #B25238; text-decoration: none; }
.hrd-see:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── mobile: bottom sheet ─────────────────────────────────────── */
@media (max-width: 560px) {
  .hrd {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 4px 4px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    animation: hrd-up .18s ease both;
  }
  @keyframes hrd-up { from { transform: translateY(14px); opacity: .6 } to { transform: translateY(0); opacity: 1 } }
  @media (prefers-reduced-motion: reduce) { .hrd { animation: none } }
}

/* Been, recorded but not yet scored — the middle state of Saved → Been → Rated */
.hala-been.is-been{border-color:var(--terra,#B25238);color:var(--terra,#B25238)}
.hala-been.is-been svg{opacity:1}

/* rating visibility — public by default */
.hrd-vis{display:flex;align-items:flex-start;gap:.55rem;margin-top:4px;font-size:14px;color:var(--ink,#1F1A14);cursor:pointer;line-height:1.45}
.hrd-vis input{margin:2px 0 0;accent-color:var(--terra,#B25238);width:16px;height:16px;flex:none;cursor:pointer}
.hrd-vis-note{margin:.4rem 0 0 2.15rem;font-size:12.5px;line-height:1.5;color:var(--ink-60,rgba(31,26,20,.6))}
