/* ĐẹpThật — professional trust UI
   Direction: Trust & Authority + Accessible (ui-ux-pro-max)
   Palette: slate navy + teal CTA · IBM Plex Sans
   Avoid: pink/purple beauty SaaS, emoji icons, soft hobby gradients */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg: #f4f6f8;
  --bg-elev: #ffffff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #0e7490;
  --primary-deep: #155e75;
  --primary-soft: #ecfeff;
  --accent: #15803d;
  --accent-soft: #f0fdf4;
  --defense: #1e3a5f;
  --defense-soft: #eff6ff;
  --proof: #a16207;
  --proof-soft: #fffbeb;
  --star: #b45309;
  --star-empty: #cbd5e1;
  --danger: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.1);
  --font: "IBM Plex Sans", "Be Vietnam Pro", system-ui, sans-serif;
  --max: 1120px;
  --max-wide: 1360px;
  --side-w: 232px;
  --narrow: 680px;
  --ease: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --focus: 0 0 0 3px rgba(14, 116, 144, 0.35);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --touch: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

#app.beauty-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

#app.beauty-app > .main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.icon {
  display: inline-block;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-3);
  outline: none;
  box-shadow: var(--focus);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0a0a0a;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--touch);
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.925rem;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-deep);
}

.btn.primary:hover {
  background: var(--primary-deep);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn.ghost:hover,
.btn.ghost.is-active {
  background: var(--bg-elev);
  border-color: var(--primary);
  color: var(--primary-deep);
}

.btn.block {
  width: 100%;
}

.main {
  /* #app is a flex column: without a width, auto margins shrink .main to its content. */
  width: 100%;
  box-sizing: border-box;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-6) 1.5rem var(--space-7);
}

.main.narrow {
  max-width: var(--narrow);
}

/* Left panel shell (home + member pages). The page shell owns the side padding. */
#app.beauty-app > .page-shell {
  flex: 1;
}

body.has-side-nav .header-inner {
  max-width: var(--max-wide);
}

.page-shell {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-shell > .main {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  min-width: 0;
}

.page-shell > .main.narrow {
  max-width: var(--narrow);
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-3) var(--space-3);
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: var(--touch);
  padding: 0 0.85rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-size: 0.975rem;
  font-weight: 600;
  text-align: left;
  transition: background var(--ease), color var(--ease);
}

.side-link .icon {
  color: var(--ink-muted);
  transition: color var(--ease);
}

.side-link:hover {
  background: var(--bg-elev);
}

.side-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.side-link[aria-current] {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.side-link[aria-current] .icon {
  color: var(--primary);
}

.side-link .menu-badge {
  margin-left: auto;
}

#hot-section,
#feed-section {
  scroll-margin-top: 88px;
}

@media (min-width: 1024px) {
  .page-shell {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
  }

  .side-nav {
    position: sticky;
    top: 64px;
    padding: var(--space-6) 0 var(--space-5);
  }
}

/* < 1024px: the panel becomes a wrapping pill row above the content (never scrolls sideways). */
@media (max-width: 1023px) {
  .side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-4);
  }

  .side-nav ul {
    display: contents;
  }

  .side-nav hr {
    display: none;
  }

  .side-link {
    width: auto;
    min-height: 40px;
    gap: 0.5rem;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elev);
    font-size: 0.875rem;
  }

  .side-link .icon {
    width: 16px;
    height: 16px;
  }

  .page-shell > .main {
    padding-top: var(--space-5);
  }
}

/* Hero */
.hero {
  padding: var(--space-4) 0 var(--space-6);
  animation: rise 400ms ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 var(--space-3);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(14, 116, 144, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.hero-title {
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  max-width: 22ch;
  color: var(--ink);
  text-wrap: balance;
}

.hero-tag {
  margin: 0 0 var(--space-5);
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.trust-strip {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.4;
}

.trust-item .icon {
  color: var(--accent);
}

.search-bar {
  display: flex;
  gap: var(--space-2);
  max-width: 44rem;
  align-items: stretch;
}

.search-bar .btn {
  min-width: 96px;
}

.search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem 0 1.1rem;
  box-shadow: var(--shadow);
  min-height: var(--touch);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.search-field:focus-within {
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.search-field .icon {
  color: var(--ink-muted);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.7rem 0;
  outline: none;
}

/* Filters */
.filters {
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 550;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.chip:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.chip:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip.soft.is-on {
  background: var(--primary-soft);
  border-color: #a5f3fc;
  color: var(--primary-deep);
}

.feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.feed-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feed-count {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

/* Home highlights ("Đang được quan tâm") */
.hot {
  margin: 0 0 var(--space-6);
}

.hot-head {
  margin-bottom: var(--space-4);
}

.hot-head h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hot-head h2 .icon {
  color: #c2410c;
}

.hot-sub {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hot-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.hot-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), border-color var(--ease);
  animation: rise 420ms ease both;
}

.hot-card:nth-child(2) {
  animation-delay: 60ms;
}

.hot-card:nth-child(3) {
  animation-delay: 120ms;
}

.hot-card.is-top {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed 0, var(--bg-elev) 96px);
}

.hot-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.hot-card.is-top:hover {
  border-color: #fb923c;
}

.hot-card-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4);
  border-radius: var(--radius);
}

.hot-card-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.hot-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.hot-rank {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hot-card.is-top .hot-rank {
  background: #c2410c;
}

.hot-card h3 {
  margin: var(--space-1) 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hot-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.hot-stats {
  list-style: none;
  margin: auto 0 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.hot-stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hot-active {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .hot-grid {
    grid-template-columns: 1fr;
  }

  .hot-desc {
    -webkit-line-clamp: 1;
  }
}

/* Home directory table ("Bài đánh giá") */
.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* Fits its column: cells wrap and low-priority columns collapse (container queries below). */
  overflow: hidden;
  container-type: inline-size;
  animation: rise 420ms ease both;
}

.feed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.feed-table thead th {
  background: #f8fafc;
  text-align: left;
  vertical-align: bottom;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.feed-table td,
.feed-table tbody th {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
  font-weight: 400;
}

.feed-table tbody tr:last-child > * {
  border-bottom: 0;
}

.feed-table tbody tr {
  cursor: pointer;
  transition: background var(--ease);
}

.feed-table tbody tr:hover,
.feed-table tbody tr:focus-within {
  background: var(--primary-soft);
}

.feed-table .col-num {
  width: 3rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.feed-table .col-name {
  min-width: 10rem;
}

.feed-table .col-name a {
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feed-table .col-name a:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}

.feed-table .col-name a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.row-desc {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category · area under the name; shown only when those columns collapse. */
.row-meta {
  display: none;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.feed-table .col-rating,
.feed-table .col-date {
  white-space: nowrap;
}

@media (min-width: 769px) {
  @container (max-width: 880px) {
    .feed-table .col-num {
      display: none;
    }

    .feed-table .col-rating .stars .icon:not(:first-child) {
      display: none;
    }
  }

  @container (max-width: 700px) {
    .feed-table .col-cat,
    .feed-table .col-city {
      display: none;
    }

    .row-meta {
      display: block;
    }
  }
}

.feed-table .col-rating .stars .icon {
  width: 13px;
  height: 13px;
}

.feed-table .col-count {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.feed-table .col-badges {
  white-space: nowrap;
}

.feed-table .col-badges .badge + .badge {
  margin-left: 0.3rem;
}

.feed-table .col-date {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 32px;
  color: var(--primary-deep);
  text-transform: inherit;
  letter-spacing: inherit;
  border-radius: 4px;
}

.sort-btn:hover {
  text-decoration: underline;
}

.sort-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.sort-btn.is-on {
  color: var(--ink);
}

.feed-table .col-comments {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.comment-count {
  font-weight: 600;
}

.comment-last {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.sort-picker {
  margin-left: auto;
  gap: var(--space-2);
}

.sort-picker-label {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .feed-table thead {
    display: none;
  }

  .sort-picker {
    width: 100%;
    margin-left: 0;
  }

  .sort-picker .select-wrap {
    flex: 1;
  }

  .sort-picker select {
    width: 100%;
    min-height: var(--touch);
  }

  .feed-table tbody,
  .feed-table tbody tr {
    display: block;
  }

  .feed-table tbody tr {
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .feed-table tbody tr > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 0.35rem 0;
    border: 0;
    text-align: right;
  }

  .feed-table tbody td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    text-align: left;
    margin-right: auto;
  }

  .feed-table tbody td.col-num {
    display: none;
  }

  .feed-table tbody th.col-name {
    display: block;
    min-width: 0;
    text-align: left;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-1);
    border-bottom: 1px solid var(--line);
  }

  .row-desc {
    max-width: none;
    white-space: normal;
  }
}

.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  animation: rise 420ms ease both;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem 1.25rem 1.25rem;
  min-height: 100%;
}

.post-card-link:focus-visible {
  outline: none;
  box-shadow: inset var(--focus);
  border-radius: var(--radius);
}

.post-card h2,
.page-title,
.post-detail h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}

.post-card h2 {
  font-size: 1.15rem;
  margin: 0.65rem 0 0.45rem;
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 var(--space-4);
}

.post-detail h1 {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  margin: 0.55rem 0 0.5rem;
}

.post-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-pill,
.city-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.cat-pill {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.city-pill {
  background: #f1f5f9;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.post-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.925rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-detail .post-desc {
  -webkit-line-clamp: unset;
  margin-bottom: var(--space-4);
  max-width: 65ch;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.rating-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.meta-num {
  color: var(--ink-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
}

.badge.proof {
  background: var(--proof-soft);
  color: var(--proof);
}

.badge.defense {
  background: var(--defense-soft);
  color: var(--defense);
}

.badge.claim {
  background: #ecfeff;
  color: var(--primary-deep);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star-empty);
}

.stars .star-svg.on {
  color: var(--star);
  fill: currentColor;
}

.star-picker {
  display: flex;
  gap: 0.15rem;
}

.star-pick {
  cursor: pointer;
  min-width: var(--touch);
  min-height: var(--touch);
  display: grid;
  place-items: center;
}

.star-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-pick .star-svg {
  width: 28px;
  height: 28px;
  color: var(--star-empty);
  transition: color var(--ease), transform var(--ease);
}

.star-picker:has(label:nth-child(1) input:checked) label:nth-child(1) .star-svg,
.star-picker:has(label:nth-child(2) input:checked) label:nth-child(-n + 2) .star-svg,
.star-picker:has(label:nth-child(3) input:checked) label:nth-child(-n + 3) .star-svg,
.star-picker:has(label:nth-child(4) input:checked) label:nth-child(-n + 4) .star-svg,
.star-picker:has(label:nth-child(5) input:checked) label:nth-child(-n + 5) .star-svg {
  color: var(--star);
  fill: currentColor;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: var(--touch);
  margin-bottom: var(--space-2);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.925rem;
}

.back-link:hover {
  color: var(--primary-deep);
}

.back-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

.post-detail {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
  box-shadow: var(--shadow);
  margin-bottom: var(--space-5);
  animation: rise 380ms ease both;
}

.post-meta.large {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.muted {
  color: var(--ink-muted);
}

.for-post {
  margin-top: -0.5rem;
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 var(--space-3);
}

/* Reviews header: title left, sort + proof filter right (wraps under on narrow widths) */
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}

.reviews-head .section-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.review-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.review-toolbar select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 40px 0 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--ease);
}

.review-toolbar select:hover {
  border-color: var(--primary);
}

.select-caret {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: var(--ink-muted);
}

.review-toolbar select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 40px;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.review-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  animation: rise 400ms ease both;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.review-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
}

.review-mod-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-1);
}

.report-btn {
  white-space: nowrap;
  font-size: 0.75rem;
  padding: var(--space-1) var(--space-2);
  min-height: 0;
}

.review-head time {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.review-body {
  margin: 0 0 var(--space-3);
  white-space: pre-wrap;
  max-width: 65ch;
}

.review-facts {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 0.9rem;
}

.review-facts li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: var(--space-2);
}

.review-facts span {
  color: var(--ink-muted);
  font-weight: 500;
}

.proof-box {
  background: var(--proof-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}

.proof-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--proof);
  margin-bottom: var(--space-1);
}

.proof-box p {
  margin: 0;
  font-size: 0.92rem;
}

.proof-img {
  margin-top: var(--space-2);
  border-radius: var(--radius-sm);
  max-height: 240px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  border: 1px solid #fde68a;
  background: #fff;
}

.defense-box {
  background: var(--defense-soft);
  border-left: 3px solid var(--defense);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-3) var(--space-4);
}

.defense-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--defense);
  margin-bottom: var(--space-1);
}

.defense-box p {
  margin: 0 0 var(--space-1);
}

.defense-box time {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.defense-form-wrap {
  border-top: 1px dashed var(--line);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
}

.defense-locked {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line);
}

.claim-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.claim-banner.is-mine {
  background: var(--accent-soft);
  color: var(--accent);
}

.claim-form-wrap {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.claim-form-wrap > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.claim-form-wrap[open] > summary {
  margin-bottom: 0.75rem;
}

.defense-form-wrap summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--defense);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0.4rem 0 0.85rem;
  max-width: 65ch;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.review-compose {
  margin-top: var(--space-5);
  scroll-margin-top: var(--space-4);
}

.review-compose .section-title {
  margin-bottom: var(--space-3);
}

.review-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.stack-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.combo {
  position: relative;
}

.combo-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.combo-opt,
.combo-empty {
  padding: 0.55rem 0.7rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 0.92rem;
}

.combo-opt {
  cursor: pointer;
}

.combo-opt.is-active,
.combo-opt:hover {
  background: var(--primary-soft);
}

.combo-opt.is-new {
  font-weight: 600;
  color: var(--primary-deep);
}

.combo-empty {
  color: var(--ink-muted);
}

.entity-hint {
  margin: 0;
}

.stack-form .field > span,
.stack-form .field > label,
.stack-form legend {
  font-weight: 600;
  font-size: 0.9rem;
}

.stack-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  margin: 0;
}

.stack-form input[type="text"],
.stack-form input[type="search"],
.stack-form input[type="number"],
.stack-form input:not([type]),
.stack-form select,
.stack-form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  background: #fafbfc;
  font-weight: 400;
  min-height: var(--touch);
}

.stack-form textarea {
  min-height: 120px;
  resize: vertical;
}

.stack-form input:focus-visible,
.stack-form select:focus-visible,
.stack-form textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus);
  background: #fff;
}

.proof-fieldset {
  background: var(--proof-soft);
  border-color: #fde68a !important;
}

.stars-field {
  border: none !important;
  padding: 0 !important;
}

.empty {
  grid-column: 1 / -1;
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: var(--ink-muted);
  background: var(--bg-elev);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.empty p {
  margin: 0;
  max-width: 28rem;
}

.site-footer-beauty {
  max-width: var(--max);
  width: 100%;
  margin: auto 0 0;
  padding: var(--space-5) 1.5rem var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  background: transparent;
}

.site-footer-beauty p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

.linkish {
  background: none;
  border: none;
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  font-size: inherit;
  min-height: auto;
}

.linkish:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.boot-center {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--ink-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.beauty-login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}

.beauty-login-wrap .login-screen {
  color: var(--ink);
}

.beauty-login-wrap .login-subtitle,
.beauty-login-wrap .login-brand-name {
  color: var(--ink-muted);
}

.beauty-login-wrap .login-screen h1 {
  color: var(--ink);
}

/* Shared login.css targets dark UIs — force readable buttons on light beauty bg. */
.beauty-login-wrap .btn-google,
.beauty-login-wrap .btn-apple,
.beauty-login-wrap .btn-guest {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.beauty-login-wrap .btn-google:hover,
.beauty-login-wrap .btn-apple:hover,
.beauty-login-wrap .btn-guest:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-deep);
}

.beauty-login-wrap .btn-google:focus-visible,
.beauty-login-wrap .btn-apple:focus-visible,
.beauty-login-wrap .btn-guest:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.beauty-login-wrap .login-top-bar .locale-btn,
.beauty-login-wrap .login-top-bar .login-home-link {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg-elev);
}

.beauty-login-wrap .login-loading {
  color: var(--ink-muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .trust-strip {
    flex-direction: column;
  }

  .review-facts li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (max-width: 640px) {
  .post-meta.large {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar {
    flex-direction: column;
  }

  .main,
  .page-shell {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

/* ── Social: like / dislike, comments, replies, notifications ── */
.social {
  margin-top: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}
.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
  min-height: 40px;
}
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.react-btn:hover {
  background: var(--bg);
  color: var(--ink);
}
.react-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.react-btn.like.is-on {
  color: var(--primary);
  background: var(--primary-soft);
}
.react-btn.dislike.is-on {
  color: var(--danger);
  background: #fef2f2;
}
.react-btn.is-on .icon {
  fill: currentColor;
  fill-opacity: 0.15;
}
.react-count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.react-btn.compact {
  min-height: 28px;
  padding: 2px 8px;
  font-size: 0.8125rem;
}
.react-btn.compact span:empty {
  display: none;
}

.comments {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
}
.comment {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  border-radius: var(--radius-sm);
  transition: background 600ms ease;
}
.comment.is-highlight {
  background: var(--primary-soft);
}
.avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--defense-soft);
  color: var(--defense);
  font-weight: 600;
  font-size: 0.875rem;
}
.comment.is-reply .avatar {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}
.comment-main {
  min-width: 0;
  flex: 1;
}
.comment-bubble {
  display: inline-block;
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: 16px;
  background: var(--bg);
}
.comment-author {
  display: block;
  font-size: 0.8125rem;
}
.comment-body {
  margin: 2px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mention {
  color: var(--primary-deep);
  font-weight: 600;
}
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--space-2);
  padding: 2px var(--space-3) 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.comment-actions time {
  margin-right: 4px;
}
.comment-link {
  min-height: 28px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.comment-link.danger {
  color: var(--danger);
}
.replies {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-2) 0 0 40px;
  padding-left: var(--space-3);
  border-left: 2px solid var(--line);
}

.comment-form {
  margin-top: var(--space-2);
}
.comment-input-row {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}
.comment-input-row textarea {
  flex: 1;
  min-height: 40px;
  max-height: 160px;
  resize: vertical;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--bg-elev);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
}
.comment-input-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus);
}
.comment-send {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}
.reply-chip {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.notif-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.notif-item {
  width: 100%;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: box-shadow var(--ease);
}
.notif-item:hover {
  box-shadow: var(--shadow-hover);
}
.notif-item:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.notif-item.is-unread {
  background: var(--primary-soft);
  border-color: #a5f3fc;
}
.notif-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notif-snippet {
  color: var(--ink-muted);
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-text time {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.unread-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 640px) {
  .react-btn:not(.compact) span:not(.react-count) {
    display: none;
  }
  .social-bar .react-btn:last-child span {
    display: inline;
  }
  .replies {
    margin-left: 16px;
  }
}

/* ── Title-bar back button ── */
.header-start {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.header-back {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: var(--touch);
  margin-left: -8px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color var(--ease);
}
.header-back:hover {
  color: var(--primary-deep);
}
.header-back:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* ── Post detail: 1 column on phone, venue | reviews+comments on desktop ── */
.main.post-page {
  max-width: var(--narrow);
}
/* Review pagination (10 per page) */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-3) 0 var(--space-2);
  border-top: 1px solid var(--line);
}
.page-summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.page-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
a.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}
a.page-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.page-btn.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.page-btn.is-disabled {
  color: var(--line-strong);
  cursor: default;
}
.page-gap {
  min-width: 24px;
  text-align: center;
  color: var(--ink-muted);
}

/* Post page shell (all widths): header (title) and footer (bottom bar) are fixed; the body between
   them fills the remaining 100dvh and is the only scroll area. Narrow = the whole single-column body
   scrolls; ≥1024px = two columns and only the reviews/comments column scrolls. */
body.is-post-page {
  overflow: hidden;
}
body.is-post-page #app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
body.is-post-page .site-header {
  position: static;
  flex: none;
}
body.is-post-page .site-footer-beauty {
  flex: none;
  margin: 0 auto;
  padding: var(--space-3) 1.5rem calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}
body.is-post-page #app > .main.post-page {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: var(--space-5);
}

@media (min-width: 1024px) {
  body.is-post-page #app > .main.post-page {
    max-width: var(--max);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: var(--space-5);
    padding-bottom: 0;
  }
  /* minmax(0, 1fr) row: an auto row would grow to the reviews' content and kill the inner scroll. */
  .post-cols {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: var(--space-6);
  }
  .post-col-venue,
  .post-col-reviews {
    height: 100%;
  }
  /* Scroll areas clip overflow, so keep a 4px inset for borders, 3px focus rings and card shadows. */
  .post-col-venue {
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-1) var(--space-1) var(--space-5);
  }
  .post-col-reviews {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    padding: 0 var(--space-2) var(--space-6) var(--space-1);
  }
  .post-col-reviews .reviews-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 var(--space-3);
    padding: var(--space-2) 0 var(--space-3);
    background: var(--bg);
  }
  .post-col-venue .post-detail {
    margin-bottom: 0;
  }
  .post-col-venue .post-meta.large {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .header-back ~ .brand .brand-text {
    display: none;
  }
}

.react-btn.is-open {
  color: var(--primary-deep);
  background: var(--primary-soft);
}

/* ── Profile menu (avatar + name → dropdown) ── */
.profile-menu {
  position: relative;
}
.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--ease);
}
.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  background: var(--bg-elev);
}
.profile-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.profile-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--defense-soft);
  color: var(--defense);
  font-weight: 700;
  flex-shrink: 0;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg);
}
.profile-dot[hidden] {
  display: none;
}
.profile-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-caret {
  color: var(--ink-muted);
  transition: transform var(--ease);
}
.profile-trigger[aria-expanded="true"] .profile-caret {
  transform: rotate(180deg);
}
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 240px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.profile-dropdown[hidden] {
  display: none;
}
.profile-dropdown [role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: var(--touch);
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.925rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.profile-dropdown [role="menuitem"]:hover,
.profile-dropdown [role="menuitem"]:focus-visible {
  outline: none;
  background: var(--bg);
}
.profile-dropdown [role="menuitem"] .icon {
  color: var(--ink-muted);
}
.profile-dropdown [role="menuitem"].danger,
.profile-dropdown [role="menuitem"].danger .icon {
  color: var(--danger);
}
.profile-dropdown [role="menuitem"]:last-child {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.menu-badge,
.menu-value {
  margin-left: auto;
}
.menu-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  line-height: 20px;
  text-align: center;
}
.menu-badge[hidden] {
  display: none;
}
.menu-value {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* ── Your reviews list ── */
.my-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.blocked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.blocked-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.blocked-item strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-review {
  display: block;
  padding: var(--space-4);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: box-shadow var(--ease);
}
.my-review:hover {
  box-shadow: var(--shadow-hover);
}
.my-review-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
}
.my-review time {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .profile-name,
  .profile-caret {
    display: none;
  }
  .profile-trigger {
    padding: 4px;
  }
}
