/* tb-place-review.css: a place's Reviews block on the home (js/tb-place-review.js, Wave D d2, 2026-10-28).
   One sheet for both surfaces: the desktop panel's #reviews-section and the phone sheet's Reviews section.
   Tokens only (tb-baekja.css is the source); no gold here: the panel's one gold is its header CTA and the
   phone sheet carries none, so Send is celadon. Errors are ink on gold soft, never red. */

body.tb-page .tb-review-block { display: flex; flex-direction: column; gap: 8px; letter-spacing: normal; }
body.tb-page .tb-review-block:empty { display: none; }

/* the door: a celadon text button (the sheet's Read more grammar) on a 44px touch target */
body.tb-page .tb-review-write {
  display: inline-flex; align-items: center; justify-content: flex-start; width: fit-content;
  min-width: 44px; min-height: 44px; margin: 0; padding: 0;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; line-height: 1.2;
  color: var(--color-celadon-deep); -webkit-tap-highlight-color: transparent;
}
body.tb-page .tb-review-write:hover { text-decoration: underline; text-underline-offset: 3px; }
body.tb-page .tb-review-write:focus-visible,
body.tb-page .tb-review-cancel:focus-visible,
body.tb-page .tb-review-submit:focus-visible,
body.tb-page .tb-review-star:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; box-shadow: none;
}

/* the form: a porcelain card with a quiet inline input */
body.tb-page .tb-review-form {
  margin: 0; padding: 14px 16px;
  background: var(--color-base-2); border: 1px solid rgba(28, 27, 24, 0.08); border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
body.tb-page .tb-review-form__lead {
  margin: 0; font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--color-ink);
}
body.tb-page .tb-review-stars { display: flex; gap: 2px; margin: 0 0 2px -4px; }
body.tb-page .tb-review-star {
  width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 24px; line-height: 1;
  color: var(--color-ink-faint); -webkit-tap-highlight-color: transparent;
}
body.tb-page .tb-review-star.is-on { color: var(--color-celadon-deep); }
body.tb-page .tb-review-form__label {
  margin: 4px 0 0; font-family: var(--font-sans); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--color-ink-muted);
}
body.tb-page .tb-review-form__text {
  display: block; box-sizing: border-box; width: 100%; min-height: 96px; margin: 0; padding: 10px 12px;
  background: var(--color-base-2); color: var(--color-ink);
  border: 1px solid rgba(28, 27, 24, 0.14); border-radius: var(--radius-sm, 8px);
  font-family: var(--font-sans); font-size: 14px; line-height: 1.5; resize: vertical;
}
body.tb-page .tb-review-form__text:focus { outline: none; border-color: var(--color-celadon); box-shadow: 0 0 0 3px rgba(123, 158, 137, 0.25); }
body.tb-page .tb-review-form__count {
  margin: -2px 0 0; text-align: right; font-family: var(--font-sans); font-size: 12px; color: var(--color-ink-faint);
  font-variant-numeric: tabular-nums;
}
body.tb-page .tb-review-note {
  margin: 0; padding: 8px 10px;
  background: var(--color-gold-soft); color: var(--status-attention-ink, #7A5412);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-sans); font-size: 13px; line-height: 1.45;
}
body.tb-page .tb-review-note[hidden] { display: none; }
body.tb-page .tb-review-form__actions { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
body.tb-page .tb-review-submit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 20px; margin: 0;
  background: var(--color-celadon-deep); color: var(--color-base-2);
  border: 1px solid var(--color-celadon-deep); border-radius: 999px; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; line-height: 1;
}
body.tb-page .tb-review-submit:hover { filter: brightness(0.92); }
body.tb-page .tb-review-submit[disabled] { opacity: 0.6; cursor: default; }
body.tb-page .tb-review-cancel {
  min-height: 40px; padding: 0; margin: 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--color-ink-muted);
}

/* the member's own review: a hairline card */
body.tb-page .tb-review-mine {
  margin: 0; padding: 12px 14px;
  border: 1px solid rgba(28, 27, 24, 0.08); border-radius: 12px; background: var(--color-base-2);
  display: flex; flex-direction: column; gap: 6px;
}
body.tb-page .tb-review-mine p { margin: 0; }
body.tb-page .tb-review-mine__head { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-sans); }
body.tb-page .tb-review-mine__stars { color: var(--color-celadon); letter-spacing: 1px; font-size: 13px; }
body.tb-page .tb-review-mine__label { font-size: 12.5px; font-weight: 600; color: var(--color-ink-muted); }
body.tb-page .tb-review-mine__text {
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--color-ink);
  white-space: pre-line; overflow-wrap: break-word;
}
body.tb-page .tb-review-mine__state {
  align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1.4;
}
body.tb-page .tb-review-mine__state--waiting { background: var(--color-gold-soft); color: var(--status-attention-ink, #7A5412); }
body.tb-page .tb-review-mine__state--published { background: var(--color-celadon-soft); color: var(--color-celadon-deep); }
body.tb-page .tb-review-mine__state--hidden { background: transparent; color: var(--color-ink-faint); padding-left: 0; }
/* a team account's line in place of the door: quiet text (its review would never be public) */
body.tb-page .tb-review-team {
  margin: 0; font-family: var(--font-sans); font-size: 13px; line-height: 1.45; color: var(--color-ink-muted);
}

/* Korean breaks between words; Japanese has no spaces, so keep-all would leave it nowhere to break */
body.tb-page .tb-review-mine__text:lang(ko),
body.tb-page .tb-review-form__text:lang(ko),
html[lang|="ko"] body.tb-page .tb-review-form__lead,
html[lang|="ko"] body.tb-page .tb-review-form__label,
html[lang|="ko"] body.tb-page .tb-review-note,
html[lang|="ko"] body.tb-page .tb-review-team { word-break: keep-all; overflow-wrap: break-word; }

/* the phone sheet: the block sits in its own section (tb-mobile-shell.js renderKitPlace) */
body.tb-page #mobile-place-detail .tbm-reviews .tb-curated-link { margin: 0; }
body.tb-page #mobile-place-detail .tbm-reviews .tb-review-block { padding-bottom: 6px; }
