/* =====================================================================
   AIRTENDO STYLES
   Colours and sizes come from the Brand & Website Guideline.
   Change values in :root to re-theme the whole site.
   ===================================================================== */

/* Brand colours, spacing, radii, shadows and motion. Every rule below reads these. */
:root {
  /* Brand colours */
  --gold: #D4A017;
  --gold-hi: #F7DC6F;
  --gold-deep: #A67C00;
  --gold-line: #FFE388;
  --gold-wash: #EFE3B8;
  --cream: #FFFBEF;
  --white: #FFFFFF;
  --ink: #1F1F1F;
  --muted: #6B6B6B;
  --green: #2E7D4F;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing tokens */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  /* Shape */
  --r-card: 16px;
  --r-input: 12px;
  --r-pill: 999px;

  /* Layered, gold-tinted shadows (low opacity) */
  --shadow-1: 0 1px 2px rgba(122, 90, 0, 0.06), 0 6px 16px -10px rgba(166, 124, 0, 0.22);
  --shadow-2: 0 2px 4px rgba(122, 90, 0, 0.05), 0 20px 40px -18px rgba(166, 124, 0, 0.32);

  /* Motion: spring-style easing, transform and opacity only */
  --spring: cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Page base: body font, background and text colour. */
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 var(--s2); }

/* Headings use Poppins with tight letter spacing. */
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

/* Keyboard focus outline for links and buttons. */
:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Centres page content with side padding. */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s2);
}
@media (min-width: 768px) { .container { padding: 0 var(--s4); } }

.section { padding: var(--s5) 0; }
.section-head { margin-bottom: var(--s4); }
.section-head p { color: var(--muted); max-width: 56ch; margin-top: var(--s1); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 44px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--spring), opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-gold {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

.btn-line {
  color: var(--ink);
  background: var(--white);
  border-color: var(--gold);
}
.btn-line:hover { background: var(--cream); }

.btn-dark {
  color: var(--gold-hi);
  background: var(--ink);
  box-shadow: var(--shadow-1);
}

.btn-text {
  padding: 0;
  min-height: auto;
  color: var(--ink);
  background: none;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.btn-text:hover { transform: none; color: var(--gold-deep); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 72px;
}
/* Header logo: a little larger than before, and a touch smaller on phones so the header stays slim. */
/* The logo keeps its proportions: the header's flex row must not squeeze it sideways. */
.brand, .brand img { flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
/* On desktop the header is taller, so the larger logo has room above and below. */
@media (min-width: 900px) {
  .header-bar { min-height: 84px; }
  .brand img { height: 66px; }
}
.nav { display: none; align-items: center; gap: 18px; }
@media (min-width: 1200px) { .nav { gap: var(--s3); } }
/* Links in the top menu. */
.nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.35s var(--spring);
}
.nav a:hover,
.nav a[aria-current="page"] { background-size: 100% 2px; }
.nav a.btn {
  padding: 8px 18px;
  background: var(--white);
}
.nav a.btn:hover { background: var(--cream); }
.nav .count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.nav .count:empty { display: none; }

/* Mobile menu button and the panel it opens. */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--r-pill);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.35s var(--spring);
}
.menu-toggle:hover { transform: translateY(-1px); }
.menu-toggle:active { transform: scale(0.97); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--s2) var(--s2) var(--s3);
  border-top: 1px solid var(--gold-line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--cream);
}
.mobile-nav .btn { margin-top: var(--s2); border-bottom: none; }

@media (min-width: 1200px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
/* Hero section at the top of the homepage. */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(55% 70% at 92% 8%, rgba(247, 220, 111, 0.55), transparent 62%),
    radial-gradient(42% 55% at 0% 100%, rgba(212, 160, 23, 0.16), transparent 70%),
    var(--cream);
  padding: var(--s5) 0 var(--s6);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  gap: var(--s4);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero h1 { max-width: 19ch; }
.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
  margin: var(--s2) 0 var(--s4);
}

.hero-logo {
  justify-self: center;
  width: min(100%, 484px);
  padding: var(--s4);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.hero-logo img { width: 100%; height: auto; }

/* Staggered entrance: one orchestrated moment on load */
.rise { animation: rise 0.8s var(--spring) both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Search panel (ticket style) ---------- */
.search {
  position: relative;
  display: grid;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
}
@media (min-width: 720px) {
  .search { grid-template-columns: 1fr 1fr auto; align-items: end; }
}

.field { display: grid; gap: 6px; }
.field > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--r-input);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9A9A9A; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--gold); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.18);
}
.field-hint { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: #B3261E; min-height: 0; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.35s var(--spring), background-color 0.2s ease;
}
.chip:hover { transform: translateY(-2px); background: var(--cream); }
.chip:active { transform: scale(0.96); }
.chip svg { width: 18px; height: 18px; color: var(--gold-deep); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  border-color: var(--gold);
  font-weight: 600;
}

/* ---------- Icons ---------- */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Ticket-stub listing card (signature element) ---------- */
.grid-cards {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--spring);
}
.ticket:hover { transform: translateY(-4px); }
.ticket:active { transform: translateY(-1px) scale(0.99); }

.ticket-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--gold-wash);
}
.ticket-img img { width: 100%; height: 100%; object-fit: cover; }
.ticket-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 55%);
}
.ticket-img .tag {
  position: absolute;
  left: var(--s2);
  bottom: var(--s2);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.ticket-img .tag.is-dim { background: rgba(255, 255, 255, 0.7); }

/* Perforated edge: the "stub" line between image and details */
.ticket-body {
  position: relative;
  padding: var(--s3);
  display: grid;
  gap: 6px;
  border-top: 2px dashed var(--gold-line);
}
.ticket-body::before,
.ticket-body::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold-line);
}
.ticket-body::before { left: -11px; }
.ticket-body::after { right: -11px; }

.ticket-title { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s1); }
.ticket-title h3 { font-size: 1.0625rem; }
.meta { font-size: 14px; color: var(--muted); margin: 0; }
.stars { font-size: 14px; font-weight: 600; margin: 4px 0 0; display: flex; align-items: center; gap: 6px; }
.stars span:not([aria-label]) { font-weight: 400; color: var(--muted); }
.stars span[aria-label] { color: var(--gold-deep); letter-spacing: 1px; }
/* Price line shown on listing cards. */
.from {
  margin: var(--s2) 0 0;
  padding-top: var(--s2);
  border-top: 1px solid var(--cream);
  font-size: 14px;
  color: var(--muted);
}
.from strong { font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }

/* Licence and availability marks */
.licence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  border-radius: var(--r-pill);
  background: #E8F3EC;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.licence svg { width: 16px; height: 16px; }
.licence.is-pending { background: var(--cream); color: var(--muted); }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.is-off::before { background: #B9B9B9; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: var(--s2);
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.step {
  padding: var(--s3);
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
}
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--s2);
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Reviews ---------- */
.review {
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.review blockquote { margin: 0 0 var(--s2); font-size: 16px; }
.review footer { font-size: 14px; color: var(--muted); }
.review footer strong { color: var(--ink); }
.review .stars { margin: 0 0 var(--s2); color: var(--gold-deep); }

/* ---------- Become a provider banner ---------- */
.banner {
  display: grid;
  gap: var(--s3);
  align-items: center;
  padding: var(--s4) var(--s3);
  border-radius: 24px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(247, 220, 111, 0.7), transparent 60%),
    linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
@media (min-width: 800px) {
  .banner { grid-template-columns: 1fr auto; padding: var(--s5) var(--s4); }
}
.banner h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); max-width: 22ch; }
.banner p { margin: var(--s1) 0 0; max-width: 46ch; }
.price-badge {
  display: inline-grid;
  justify-items: center;
  padding: var(--s2) var(--s3);
  border-radius: 20px;
  background: var(--ink);
  color: var(--gold-hi);
}
.price-badge strong { font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.price-badge span { font-size: 13px; color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--gold-line);
  padding: var(--s5) 0 var(--s4);
  margin-top: var(--s5);
}
.footer-grid {
  display: grid;
  gap: var(--s4) var(--s3);
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr repeat(5, 1fr); } .footer-brand { grid-column: auto; } }
.footer-col h2 { font-size: 15px; font-weight: 600; margin: 0 0 var(--s2); }
.footer-col .footer-links { flex-direction: column; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; font-size: 15px; font-weight: 500; }
.footer-links a:hover { color: var(--gold-deep); }
.footer-fine { margin-top: var(--s4); font-size: 13px; color: var(--muted); }
.footer-brand img { height: 44px; width: auto; }

/* ---------- Browse layout ---------- */
.page-head { padding: var(--s4) 0 var(--s3); background: var(--cream); border-bottom: 1px solid var(--gold-line); }
.page-head p { color: var(--muted); margin: var(--s1) 0 0; }

.browse {
  display: grid;
  gap: var(--s4);
  padding: var(--s4) 0 var(--s5);
}
@media (min-width: 900px) { .browse { grid-template-columns: 260px 1fr; } }

/* Filter panel on the browse page. */
.filters {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.filters legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
.filters fieldset { border: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 15px;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-deep);
  margin: 0;
}

/* Result count and sort control above the list. */
.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.sort-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.results-head select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--r-input);
  background: var(--white);
  font: inherit;
  font-size: 15px;
}
/* Message shown when a search has no results. */
.empty {
  padding: var(--s5) var(--s3);
  text-align: center;
  border: 1.5px dashed var(--gold-line);
  border-radius: var(--r-card);
  background: var(--cream);
}
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0; }

/* ---------- Provider profile ---------- */
.profile {
  display: grid;
  gap: var(--s4);
  padding: var(--s4) 0 var(--s5);
}
@media (min-width: 900px) { .profile { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.profile-cover {
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gold-wash);
  box-shadow: var(--shadow-2);
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }

.profile-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
}
.profile-card .from strong { font-size: 28px; }

.profile h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: var(--s1); }
.profile-meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; margin-bottom: var(--s3); }

.section-title { font-size: 1.25rem; margin: var(--s4) 0 var(--s2); }

/* Services list on a provider profile. */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: var(--r-input);
}
.service-list svg { color: var(--green); }

/* Package price cards on a provider profile. */
.package {
  display: grid;
  gap: 4px;
  padding: var(--s2);
  border: 1.5px solid var(--gold-line);
  border-radius: var(--r-card);
  background: var(--white);
}
.package-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.package-top strong { font-size: 18px; }
.package-top span { font-weight: 700; }
.package p { margin: 0; font-size: 14px; color: var(--muted); }

.stack { display: grid; gap: var(--s2); }

/* ---------- Messages ---------- */
.inbox {
  display: grid;
  gap: 0;
  padding: var(--s4) 0 var(--s5);
}
.inbox-shell {
  display: grid;
  min-height: 560px;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
@media (min-width: 800px) { .inbox-shell { grid-template-columns: 320px 1fr; } }

.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: 1px solid var(--gold-line);
  background: var(--cream);
  overflow-y: auto;
  max-height: 70vh;
}
.thread-list a {
  display: grid;
  gap: 2px;
  padding: var(--s2) var(--s3);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: background-color 0.2s ease;
}
.thread-list a:hover { background: var(--white); }
.thread-list a[aria-current="true"] { background: var(--white); box-shadow: inset 4px 0 0 var(--gold); }
.thread-list strong { font-size: 15px; }
.thread-list small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.thread {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}
.thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--gold-line);
}
.thread-head h2 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.thread-head p { margin: 0; font-size: 13px; color: var(--muted); }

/* Message area in the open thread. */
.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s3);
  overflow-y: auto;
  background: var(--white);
}
/* One chat bubble. .me is the visitor's message and .them is the other person's. */
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.55;
  animation: rise 0.45s var(--spring) both;
}
.bubble.them {
  align-self: flex-start;
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-bottom-left-radius: 6px;
}
.bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  border-bottom-right-radius: 6px;
}
.bubble time { display: block; margin-top: 4px; font-size: 12px; opacity: 0.7; }

/* Message box at the bottom of a thread. */
.composer {
  display: flex;
  align-items: flex-end;
  gap: var(--s2);
  padding: var(--s2);
  border-top: 1px solid var(--gold-line);
}
.composer textarea {
  flex: 1;
  min-height: 48px;
  max-height: 140px;
  padding: 12px 14px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--r-input);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}
.composer textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.18); }
.thread-empty { display: grid; place-items: center; padding: var(--s5) var(--s3); text-align: center; color: var(--muted); }

/* ---------- Forms (post-event, list) ---------- */
.form-layout {
  display: grid;
  gap: var(--s4);
  padding: var(--s4) 0 var(--s5);
}
@media (min-width: 900px) { .form-layout { grid-template-columns: 1fr 340px; align-items: start; } }

/* Form panel used by the post-event and list pages. */
.form-card {
  display: grid;
  gap: var(--s3);
  padding: var(--s4) var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
}
.form-grid { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.form-actions .muted { font-size: 14px; margin: 0; }

/* Side panel next to forms. */
.summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
}
.summary ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s3);
  z-index: 100;
  transform: translate(-50%, 140%);
  opacity: 0;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  box-shadow: var(--shadow-2);
  transition: transform 0.5s var(--spring), opacity 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Drinks picker block on the post-event and list pages. */
.drinks-fieldset {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  border: none;
}
.drinks-fieldset > legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 4px; }
/* One drink category in the picker. */
/* A closed drink category is a deeper gold; it turns cream with a stronger gold edge when opened. */
.drink-type {
  border: 1px solid var(--gold-line);
  border-radius: var(--r-input);
  background: #F0DC93;
  padding: 0 var(--s2);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.drink-type:not([open]):hover { background: #EBD27F; }
.drink-type[open] {
  background: var(--cream);
  border-color: var(--gold);
  padding-bottom: var(--s2);
}
.drink-type summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 52px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.drink-type summary::-webkit-details-marker { display: none; }
.drink-type summary:focus-visible { border-radius: var(--r-input); }
.drink-type .field-hint { margin: 0 0 var(--s1); }
.drink-count { font-size: 13px; font-weight: 500; color: var(--muted); }
.drink-group-label { font-weight: 600; font-size: 14px; margin: var(--s2) 0 4px; }
.drink-grid {
  display: grid;
  gap: 2px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px 2px;
}
@media (min-width: 640px) { .drink-grid { grid-template-columns: 1fr 1fr; column-gap: 24px; } }

/* ---------- Event requests board ---------- */
/* One event request card on the event requests board. */
.event-card {
  display: grid;
  align-content: start;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.event-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); }
.event-head h3 { font-size: 1.0625rem; }
.budget {
  padding: 4px 12px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-pill);
  background: var(--cream);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.event-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin: 0;
}
.event-facts dt { font-size: 12px; color: var(--muted); }
.event-facts dd { margin: 0; font-size: 14px; font-weight: 600; }
.event-drinks { font-size: 14px; margin: 0; }
.offer-panel { border-top: 1px dashed var(--gold-line); padding-top: var(--s2); }
.offer-panel summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  transition: transform 0.35s var(--spring);
}
.offer-panel summary::-webkit-details-marker { display: none; }
.offer-panel summary:hover { transform: translateY(-2px); }
.offer-panel summary:active { transform: scale(0.97); }
.offer-form { display: grid; gap: var(--s2); margin-top: var(--s2); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Homepage ---------- */
.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn-glass:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.btn-glass:active { transform: scale(0.98); }

/* Hero layout on the homepage. */
.hm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: var(--s6) 0 var(--s5);
}
.hm-hero-media { position: absolute; inset: 0; z-index: -2; }
.hm-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-deep);
  mix-blend-mode: multiply;
  opacity: 0.45;
}
.hm-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 31, 31, 0.92) 0%, rgba(31, 31, 31, 0.55) 60%, rgba(31, 31, 31, 0.3) 100%);
}
.hm-hero h1 {
  color: var(--white);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 13ch;
  margin: 0;
}
.hm-lede {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  max-width: 52ch;
  margin: var(--s3) 0 var(--s4);
}
.hm-cta { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hm-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  padding: 0;
  margin: var(--s4) 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-hi);
}
.hm-proof li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}

.hm-member-wrap { padding-top: var(--s5); }
/* Membership banner on the homepage. */
.hm-member {
  display: grid;
  gap: var(--s3);
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 15%, rgba(247, 220, 111, 0.35), transparent 42%),
    radial-gradient(circle at 10% 100%, rgba(166, 124, 0, 0.45), transparent 50%),
    linear-gradient(135deg, var(--ink), #3a2c00);
  border-radius: 24px;
  padding: var(--s4) var(--s3);
  box-shadow: var(--shadow-2);
}
@media (min-width: 768px) { .hm-member { grid-template-columns: 1fr auto; padding: var(--s5) var(--s5); } }
.hm-member-label { font-size: 14px; font-weight: 600; color: var(--gold-hi); margin: 0 0 var(--s1); }
.hm-member h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0 0 var(--s3);
}
.hm-fine { font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.42); margin: var(--s3) 0 0; }
.hm-tiers { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s1); font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.hm-tiers strong { color: var(--gold-hi); margin-right: 6px; }
/* Card with the hirer membership line. */
.hm-member-card {
  display: grid;
  gap: var(--s1);
  justify-items: start;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: var(--s3);
  min-width: 220px;
  box-shadow: var(--shadow-1);
}
.hm-member-card img { height: 48px; width: auto; }
.hm-member-card span { font-weight: 600; font-size: 15px; }

.hm-split { display: grid; gap: var(--s4); align-items: center; }
/* Two-column split used by homepage sections. */
@media (min-width: 900px) { .hm-split { grid-template-columns: 1fr 1fr; } }
.hm-split h2,
.hm-trust-copy h2,
.hm-cats h2,
.hm-done h2,
.hm-stories h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 var(--s2);
}
.hm-steps { list-style: none; padding: 0; margin: var(--s3) 0 var(--s4); display: grid; gap: var(--s2); }
.hm-steps li { display: flex; align-items: center; gap: var(--s2); font-weight: 500; }
/* Icons for the homepage steps. */
.hm-step-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-wash);
  color: var(--gold-deep);
  font-weight: 600;
}
.hm-link {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
}
.hm-link:hover { text-decoration: underline; }
.hm-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.hm-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
/* Grid of example profile cards under the posting steps. */
@media (min-width: 640px) { .hm-people { grid-template-columns: repeat(3, 1fr); } }
.hm-person {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform 0.35s var(--spring);
}
.hm-person:hover { transform: translateY(-3px); }
.hm-person:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hm-person:active { transform: scale(0.98); }
.hm-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hm-person span { display: block; min-width: 0; }
.hm-person strong { display: block; font-size: 15px; font-weight: 600; }
.hm-person small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Header row for the event tabs. */
.hm-done-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s2) var(--s3);
  margin-bottom: var(--s3);
}
.hm-tabs { display: flex; flex-wrap: wrap; gap: var(--s1); }
.hm-tab {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--gold-line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--spring);
}
.hm-tab:hover { background: var(--gold-wash); }
.hm-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hm-tab:active { transform: scale(0.96); }
.hm-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--gold-hi); }

/* Horizontal row of sample event cards. */
.hm-done-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--s2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s2);
}
@media (min-width: 640px) { .hm-done-grid { grid-auto-columns: 46%; } }
@media (min-width: 1000px) { .hm-done-grid { grid-auto-columns: calc((100% - 3 * var(--s2)) / 4); } }
.hm-job {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform 0.35s var(--spring);
}
.hm-job:hover { transform: translateY(-3px); }
.hm-job:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hm-job:active { transform: scale(0.98); }
.hm-job img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hm-job-body { padding: var(--s2); }
.hm-job-cat { font-size: 13px; font-weight: 600; color: var(--gold-deep); margin: 0 0 4px; }
.hm-job h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 var(--s1); }
.hm-job-budget { font-size: 14px; color: var(--muted); margin: var(--s1) 0 0; }
.hm-cta-row { margin: var(--s4) 0 0; }

.hm-trust-media { position: relative; }
/* Photo area in the trust section. */
.hm-trust-media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  box-shadow: var(--shadow-2);
}
.hm-rating-card {
  position: absolute;
  left: var(--s2);
  bottom: var(--s2);
  display: grid;
  gap: 4px;
  background: var(--white);
  border-radius: 16px;
  padding: var(--s2);
  box-shadow: var(--shadow-2);
}
.hm-rating-card strong { font-size: 24px; line-height: 1; }
.hm-rating-card small { color: var(--muted); font-size: 13px; }
.hm-bubble {
  position: absolute;
  right: var(--s2);
  max-width: 200px;
  background: var(--white);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: var(--shadow-2);
}
.hm-bubble-a { top: 22%; }
.hm-bubble-b { top: 46%; background: var(--gold-wash); }
.hm-features { list-style: none; padding: 0; margin: var(--s3) 0 var(--s4); display: grid; gap: var(--s3); }
.hm-features h3 { font-size: 18px; margin: 0 0 4px; }
.hm-features p { color: var(--muted); margin: 0; }

/* Earnings section on the homepage. */
.hm-earn {
  background:
    radial-gradient(circle at 90% 10%, rgba(247, 220, 111, 0.22), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(166, 124, 0, 0.35), transparent 45%),
    var(--ink);
  color: var(--white);
}
.hm-earn h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; margin: 0 0 var(--s2); }
.hm-earn p { color: rgba(255, 255, 255, 0.8); max-width: 52ch; }
.hm-earn-top { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .hm-earn-top { grid-template-columns: 1.2fr 1fr; } }
.hm-earn-list { list-style: none; padding: 0; margin: var(--s3) 0 var(--s4); display: grid; gap: var(--s1); }
.hm-earn-list li { display: flex; align-items: center; gap: 10px; }
.hm-earn-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.hm-earn-card {
  justify-self: start;
  display: grid;
  gap: 4px;
  min-width: 260px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 24px;
  padding: var(--s4) var(--s3);
  box-shadow: 0 30px 60px -30px rgba(247, 220, 111, 0.5);
}
.hm-earn-card span { font-size: 14px; font-weight: 500; }
.hm-earn-card strong { font-size: 52px; line-height: 1; letter-spacing: -0.03em; }
.hm-earn-card small { font-size: 14px; }
.hm-earn-grid { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 720px) { .hm-earn-grid { grid-template-columns: 1fr 1fr; } }
/* One earnings figure. */
.hm-earn-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 227, 136, 0.2);
  border-radius: var(--r-card);
}
.hm-earn-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hm-earn-item > div { padding: var(--s2) var(--s3) var(--s3); }
.hm-earn-item h3 { color: var(--white); font-size: 19px; margin: 0 0 4px; }
.hm-earn-item p { font-size: 15px; margin: 0; }

.hm-stories-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.hm-stories-head h2 { margin: 0; }
/* One story card. */
.hm-story {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  padding-bottom: var(--s3);
}
.hm-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin-bottom: var(--s2); }
.hm-story h3 { font-size: 19px; line-height: 1.35; margin: 0 var(--s3) var(--s2); }
.hm-story .hm-link { margin-left: var(--s3); display: inline-block; }

.hm-cats-grid { display: grid; gap: var(--s4) var(--s3); margin-top: var(--s4); }
@media (min-width: 640px) { .hm-cats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hm-cats-grid { grid-template-columns: repeat(3, 1fr); } }
.hm-cat h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 var(--s2); }
.hm-cat h3 a { color: var(--ink); text-decoration: none; }
.hm-cat h3 a:hover { color: var(--gold-deep); }
.hm-cat h3 a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.hm-cat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hm-cat a { color: var(--muted); font-size: 15px; text-decoration: none; }
.hm-cat a:hover { color: var(--ink); text-decoration: underline; }
.hm-cat a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Membership and payment ---------- */
.mb-plans { display: grid; gap: var(--s3); padding-top: var(--s4); }
@media (min-width: 720px) { .mb-plans { grid-template-columns: 1fr 1fr; } }
/* Membership plan card. */
.mb-plan {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  padding: var(--s4) var(--s3);
  box-shadow: var(--shadow-1);
}
.mb-plan h2 { font-size: 30px; letter-spacing: -0.03em; margin: var(--s1) 0 var(--s2); }
.mb-plan p { margin: 0; }
.mb-label { font-size: 14px; font-weight: 600; color: var(--gold-deep); }
.mb-price { font-size: 44px; }

.mb-pay-wrap { padding-top: var(--s4); padding-bottom: var(--s5); }
.mb-pay { display: grid; gap: var(--s3); max-width: 640px; }
.mb-choice { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.mb-choice legend { font-weight: 600; margin-bottom: var(--s1); padding: 0; }
/* Option row in the membership form. */
.mb-option {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-input);
  background: var(--white);
  cursor: pointer;
  transition: transform 0.25s var(--spring);
}
.mb-option:hover { background: var(--cream); }
.mb-option:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.mb-option:active { transform: scale(0.99); }
.mb-option input { width: 18px; height: 18px; accent-color: var(--gold-deep); flex-shrink: 0; }
.mb-option span { font-size: 15px; line-height: 1.5; }
.mb-option strong { display: block; font-weight: 600; }
.mb-pay .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Log in and sign up ---------- */
[hidden] { display: none !important; }
.auth-body { background: var(--cream); min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { padding: var(--s3) var(--s3) 0; }
.auth-brand img { height: 48px; width: auto; display: block; }
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: var(--s5) var(--s2) var(--s4); }
.auth-card { width: 100%; max-width: 380px; text-align: center; }
/* Heading inside the login and sign-up card. */
.auth-card h1 {
  font-size: clamp(30px, 6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--s4);
}
.auth-form { display: grid; gap: var(--s2); }
.auth-row {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-input);
  overflow: visible;
  position: relative;
  transition: border-color 0.2s;
}
.auth-row:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2); }
/* Email and code input fields. */
.auth-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--r-input);
  padding: 16px;
  height: 56px;
  width: 100%;
  box-sizing: border-box;
}
.auth-input::placeholder { color: var(--muted); }
.auth-input:focus-visible { outline: none; }
.auth-row .auth-input { border-radius: 0 var(--r-input) var(--r-input) 0; }
.auth-field { display: block; }
.auth-field .auth-input {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-input);
}
.auth-field .auth-input:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2); }

.cc { position: relative; flex-shrink: 0; }
/* Country picker (no longer used). */
.cc summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border-right: 1px solid var(--gold-line);
  border-radius: var(--r-input) 0 0 var(--r-input);
  transition: background-color 0.2s;
}
.cc summary::-webkit-details-marker { display: none; }
.cc summary::after { content: "▾"; font-size: 12px; color: var(--muted); margin-left: 2px; }
.cc summary:hover { background: var(--cream); }
.cc summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.cc summary:active { transform: scale(0.98); }
.cc-flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(31, 31, 31, 0.12); display: block; }
.cc-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-input);
  box-shadow: var(--shadow-2);
  text-align: left;
}
.cc-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.cc-list button span { margin-left: auto; color: var(--muted); }
.cc-list button:hover { background: var(--gold-wash); }
.cc-list button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.cc-list button:active { transform: scale(0.98); }

.auth-error { color: #B3261E; font-size: 14px; text-align: left; margin: calc(var(--s1) * -1) 0 0; min-height: 0; }
.auth-error:empty { display: none; }
.auth-status { color: var(--green); font-size: 14px; text-align: left; margin: 0; }
.auth-status:empty { display: none; }

/* Shown on post-event.html to a visitor who is not signed in. */
.signin-prompt {
  margin: var(--s3) 0 0;
  padding: var(--s3);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  background: var(--gold-wash);
  box-shadow: var(--shadow-1);
}
.signin-prompt[hidden] { display: none; }
.signin-prompt h2 { margin: 0 0 var(--s1); font-size: 20px; }
.signin-prompt p { margin: 0; color: var(--muted); }
.signin-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }

.auth-continue { width: 100%; height: 56px; font-size: 16px; }
/* Text buttons such as Resend code. */
.auth-link {
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-deep);
  cursor: pointer;
  padding: 4px;
  justify-self: center;
  border-radius: 6px;
}
.auth-link:hover { text-decoration: underline; }
.auth-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.auth-switch { margin: 0; font-size: 16px; }
.auth-switch a,
.auth-legal a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.auth-switch a:hover,
.auth-legal a:hover { text-decoration: underline; }
.auth-switch a:focus-visible,
.auth-legal a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.auth-or { margin: var(--s1) 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
/* Social sign-in buttons (not connected yet). */
.auth-social {
  width: 100%;
  height: 52px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.25s;
}
.auth-social:hover { background: var(--cream); }
.auth-social:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.auth-social:active { transform: scale(0.98); }
/* Terms text under the sign-in card. */
.auth-legal {
  margin: var(--s4) 0 0;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.auth-hint { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.auth-hint strong { color: var(--ink); font-weight: 600; }
/* Large box for the 6-digit code. */
.auth-code {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  height: 64px;
}
.auth-code::placeholder { letter-spacing: 0.4em; }
.auth-link:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Bookings and offers ---------- */
/* Two columns on wide screens: offers on your events, then your bookings. */
.bookings-layout { display: grid; gap: var(--s5); padding-top: var(--s4); padding-bottom: var(--s5); }
@media (min-width: 1000px) { .bookings-layout { grid-template-columns: 1fr 1.25fr; gap: var(--s5); align-items: start; } }
.bookings-col { display: grid; gap: var(--s3); align-content: start; }
.bookings-col .section-title { margin: 0; }

/* An event you posted, with the offers on it. */
.own-event {
  display: grid;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.own-event + .own-event { margin-top: var(--s2); }
.own-event-head { display: grid; gap: 4px; }
.own-event-head h3 { margin: 0; font-size: 1.0625rem; }

/* Offer rows: the price is the largest thing in each row. */
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.offer-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s3);
  align-items: center;
  padding: var(--s2);
  background: var(--cream);
  border-radius: 14px;
}
.offer-amount {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.offer-body { display: grid; gap: 4px; min-width: 0; }
.offer-message { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.offer-action { grid-column: 1 / -1; }
.offer-action .btn { width: 100%; }
@media (min-width: 640px) {
  .offer-row { grid-template-columns: auto 1fr auto; }
  .offer-action { grid-column: auto; }
  .offer-action .btn { width: auto; }
}
.booking-link { font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.booking-link:hover { text-decoration: underline; }
.booking-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* A booking card. Confirmed bookings get a gold rule down the left. */
.booking-list { display: grid; gap: var(--s3); }
.booking-card {
  display: grid;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-left: 4px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.booking-card.is-confirmed { border-left-color: var(--gold); }
.booking-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1); }
.booking-ref {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.booking-card h4 { margin: var(--s1) 0 0; font-size: 15px; }

/* Status pill: gold wash while waiting, solid gold once confirmed. */
.status-pill {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--gold-wash);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill.is-confirmed { background: var(--gold); color: var(--ink); }

/* Document checklist: a ring while still needed, a filled gold disc with a tick once on file. */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.doc-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  box-sizing: border-box;
}
.doc-list li.is-done .doc-mark {
  background: var(--gold) radial-gradient(circle, transparent 0 3px, var(--ink) 3px 4px, transparent 4px);
  border-color: var(--gold);
}
.doc-state { font-size: 13px; color: var(--muted); }
.doc-list li.is-done .doc-state { color: var(--gold-deep); font-weight: 600; }

/* Upload forms: one per document, side by side on wide screens. */
.upload-grid { display: grid; gap: var(--s2); }
@media (min-width: 640px) { .upload-grid { grid-template-columns: 1fr 1fr; } }
.upload-form {
  display: grid;
  gap: var(--s1);
  padding: var(--s2);
  background: var(--cream);
  border: 1px dashed var(--gold-line);
  border-radius: 14px;
}
.upload-form .field input[type="file"] { padding: 10px; font-size: 14px; }
.upload-form .form-actions { margin-top: 4px; }
.form-error { margin: 0; color: #9A2E1E; font-size: 14px; }
.form-error[hidden] { display: none; }
.meta { margin: 0; font-size: 14px; color: var(--muted); }

.nav a { white-space: nowrap; }
/* From 1200px to 1359px the menu labels and logo are a little smaller, so the menu fits beside the List My Bar button. */
@media (min-width: 1200px) and (max-width: 1359px) {
  .nav { gap: 10px; }
  .nav a { font-size: 13px; }
  .brand img { height: 56px; }
}

/* File names the tasker submitted on a booking. */
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s1);
  padding: 8px 12px;
  background: var(--cream);
  border-radius: 10px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.booking-card h4 { margin-top: var(--s2); }

/* ---------- Profile page ---------- */
/* Photo panel beside the profile form on wide screens. */
.profile-layout { display: grid; gap: var(--s4); padding: var(--s4) 0 var(--s5); }
@media (min-width: 900px) { .profile-layout { grid-template-columns: 300px 1fr; align-items: start; } }
.profile-card {
  display: grid;
  gap: var(--s3);
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.avatar-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--gold-wash);
  display: grid;
  place-items: center;
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.avatar-frame img[hidden], .avatar-empty[hidden] { display: none; }
.avatar-empty { color: var(--gold-deep); font-weight: 600; font-size: 15px; }
.avatar-form { display: grid; gap: var(--s2); }
.avatar-form .field input[type="file"] { padding: 10px; font-size: 14px; }

/* ---------- Chat ---------- */
.notice {
  margin: 0 0 var(--s3);
  padding: var(--s2) var(--s3);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: var(--gold-wash);
  font-size: 15px;
}
.thread-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: var(--s2);
  border: 0;
  border-bottom: 1px solid var(--gold-line);
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.thread-item:hover { background: var(--cream); }
.thread-item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.thread-item[aria-current="true"] { background: var(--gold-wash); }
.thread-meta { font-size: 13px; color: var(--muted); }
.thread-last { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-empty { padding: var(--s2); }
.thread-head { display: grid; gap: 4px; padding-bottom: var(--s2); border-bottom: 1px solid var(--gold-line); }
.thread-head h2 { margin: 0; font-size: 1.25rem; }
.bubbles {
  display: grid;
  gap: var(--s2);
  align-content: start;
  max-height: 420px;
  min-height: 160px;
  overflow-y: auto;
  padding: var(--s2) 0;
}
.bubble {
  justify-self: start;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--cream);
  border: 1px solid var(--gold-line);
}
.bubble.is-mine {
  justify-self: end;
  border-radius: 16px 16px 4px 16px;
  background: var(--gold-wash);
}
.bubble p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.bubble-time { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.chat-form { display: grid; gap: var(--s2); margin-top: var(--s2); }

/* Activity cards: hirer and tasker counts, full width above the form. */
.activity { grid-column: 1 / -1; display: grid; gap: var(--s3); }
@media (min-width: 640px) { .activity { grid-template-columns: 1fr 1fr; } }
.activity-card {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.activity-card h2 { margin: 0; font-size: 1.0625rem; }
.activity-number { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* Corporate profiles: a dark gold card with a gold frame and a gold rule, so they stand apart from individual profiles. */
.is-corporate .profile-card {
  background: linear-gradient(165deg, #1F1F1F 0%, #2E2611 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 18px 40px -18px rgba(166, 124, 0, 0.45), 0 2px 6px rgba(31, 31, 31, 0.25);
  color: var(--cream);
}
.is-corporate .profile-card .avatar-frame { border: 2px solid var(--gold); background: #2E2611; }
.is-corporate .profile-card .avatar-empty { color: var(--gold-hi); }
.is-corporate .profile-card .field > span:first-child { color: var(--cream); }
.is-corporate .profile-card .field-hint { color: #CDBF8E; }
.is-corporate .form-card { border-top: 4px solid var(--gold); box-shadow: 0 18px 40px -22px rgba(166, 124, 0, 0.35); }
.is-corporate .activity-card { border-color: var(--gold); }

/* ---------- Public profile ---------- */
.public-profile { padding: var(--s4) 0 var(--s5); }
.public-card { display: grid; gap: var(--s3); max-width: 720px; }
@media (min-width: 720px) { .public-card { grid-template-columns: 220px 1fr; align-items: center; } }
.public-card .avatar-frame { max-width: 220px; }
.public-text { display: grid; gap: var(--s1); }
.public-text h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.03em; }
.public-about { margin: var(--s1) 0 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); max-width: 60ch; overflow-wrap: anywhere; }
.public-badge { margin: 0; font-size: 13px; font-weight: 600; color: var(--gold-hi); }
/* The public profile card is itself the corporate card, so the premium look applies to it directly. */
.public-card.is-corporate {
  background: linear-gradient(165deg, #1F1F1F 0%, #2E2611 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 18px 40px -18px rgba(166, 124, 0, 0.45), 0 2px 6px rgba(31, 31, 31, 0.25);
  color: var(--cream);
  padding: var(--s4);
}
.public-card.is-corporate .avatar-frame { border: 2px solid var(--gold); background: #2E2611; }
.public-card.is-corporate .avatar-empty { color: var(--gold-hi); }
.public-card.is-corporate h1,
.public-card.is-corporate .public-about { color: var(--cream); }
.public-card.is-corporate .meta { color: #CDBF8E; }

/* ---------- Verified information (profile and public profile) ---------- */
.verify-card {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s3);
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.verify-card h2 { margin: 0; font-size: 1.0625rem; }
.verify-row { display: flex; align-items: center; gap: var(--s1); margin: 0; font-weight: 600; color: var(--ink); }
.verify-row[hidden] { display: none; }
.verify-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--gold-wash);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
}
.is-corporate .verify-card { border-color: var(--gold); }

/* Profile layout on wide screens: photo and verified cards in the left column, the editable profile on the right. */
@media (min-width: 900px) {
  .profile-layout > .profile-card { grid-column: 1; grid-row: 2; }
  .profile-layout > .verify-card { grid-column: 1; grid-row: 3; margin-top: 0; }
  .profile-layout > #profileForm { grid-column: 2; grid-row: 2 / span 2; }
}

/* ---------- Homepage photo gallery ---------- */
.hm-gallery { padding-bottom: var(--s5); }
.hm-gallery-head { display: grid; gap: var(--s1); max-width: 620px; margin-bottom: var(--s4); }
.hm-gallery-head .section-title { margin: 0; }
.hm-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (min-width: 900px) {
  .hm-gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
  .hm-shot-wide { grid-column: span 2; }
}
.hm-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--gold-wash);
  box-shadow: 0 14px 32px -20px rgba(31, 31, 31, 0.55);
}
.hm-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hm-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 31, 31, 0.72) 0%, rgba(31, 31, 31, 0) 55%);
  pointer-events: none;
}
.hm-shot figcaption {
  position: absolute;
  left: var(--s2);
  bottom: var(--s2);
  z-index: 1;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 251, 239, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.hm-shot:hover img { transform: scale(1.04); }
.hm-shot:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hm-shot img { transition: none; } .hm-shot:hover img { transform: none; } }
/* Phones: wide photos take the full row, and captions stay inside the photo. */
.hm-shot-wide { grid-column: 1 / -1; }
.hm-shot figcaption { max-width: calc(100% - 24px); font-size: 13px; line-height: 1.3; }
@media (min-width: 900px) { .hm-shot-wide { grid-column: span 2; } .hm-shot figcaption { font-size: 14px; } }
@media (max-width: 899px) { .hm-gallery-grid > .hm-shot:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Payment panel on each booking ---------- */
.payment-panel {
  margin-top: var(--s2);
  padding: var(--s2);
  border-radius: var(--r-input);
  background: var(--cream);
  border: 1px solid var(--gold-line);
  display: grid;
  gap: var(--s1);
  justify-items: start;
}
.payment-panel h4 { margin: 0; }
.payout-timing { padding-top: var(--s1); border-top: 1px dashed var(--gold-line); width: 100%; }
.fee-list { display: grid; gap: 4px; margin: 0; width: 100%; }
.fee-list div { display: flex; justify-content: space-between; gap: var(--s2); }
.fee-list dt, .fee-list dd { margin: 0; font-size: 14px; }
.fee-list dd { font-weight: 600; }
.fee-list div:last-child dd { color: var(--gold-deep); }

/* ---------- Reviews: star ratings on bookings and public profiles ---------- */
.booking-reviews { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--gold-line); }
.booking-reviews h4 { margin: 0 0 var(--s1); }
.review-form { display: grid; gap: var(--s2); margin-top: var(--s2); }
.rating-field { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
.rating-field legend { padding: 0; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--ink); }
.star-row { position: relative; display: flex; gap: 2px; }
.star-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.star-row label {
  font-size: 28px;
  line-height: 1;
  color: var(--gold-wash);
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.star-row label.is-on { color: var(--gold); }
.star-row label:hover { transform: scale(1.12); }
.star-row label:active { transform: scale(0.94); }
.star-input:focus-visible + label { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.review-wrap { display: grid; gap: var(--s4); margin-top: var(--s4); max-width: 720px; }
.review-block { padding: var(--s3); border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-1); }
.review-block .section-title { margin: 0 0 var(--s2); }
.review-summary { margin: 0 0 var(--s2); font-size: 16px; }
.stars { color: var(--gold-wash); letter-spacing: 1px; }
.stars .star.is-on { color: var(--gold); }
.review-criteria { display: grid; gap: var(--s1); margin: 0 0 var(--s2); }
.review-criteria div { display: flex; justify-content: space-between; gap: var(--s2); }
.review-criteria dt, .review-criteria dd { margin: 0; font-size: 14px; }
.review-criteria dd { font-weight: 600; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-item { padding: var(--s2) 0; border-top: 1px solid var(--gold-line); }
.review-top { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.review-avg { margin: 4px 0; font-size: 14px; }
.review-comment { margin: 0; line-height: 1.7; }
@media (max-width: 599px) { .star-row label { font-size: 24px; } }

/* ---------- Terms and Conditions page ---------- */
.legal-kicker { margin: 0 0 var(--s1); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.legal-doc { max-width: 860px; margin: var(--s4) auto var(--s5); padding: var(--s4) var(--s4); background: var(--white); border: 1px solid var(--gold-line); border-radius: var(--r-card); box-shadow: var(--shadow-2); color: var(--ink); }
.legal-meta { margin: 0 0 var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--gold-line); }
.legal-meta p { margin: 0 0 4px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.legal-part { margin: var(--s4) 0 var(--s2); padding-bottom: var(--s1); border-bottom: 2px solid var(--gold); font-size: 1.375rem; letter-spacing: -0.03em; color: var(--ink); scroll-margin-top: var(--s3); }
.legal-section { margin: var(--s3) 0 var(--s1); font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--gold-deep); scroll-margin-top: var(--s3); }
.legal-clause, .legal-text { margin: 0 0 var(--s1); font-size: 15px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.legal-clause { padding-left: var(--s2); }
.legal-doc a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--ink); }
.legal-doc a:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 720px) {
  .legal-doc { margin: var(--s3) var(--s2) var(--s5); padding: var(--s3) var(--s2); }
  .legal-part { font-size: 1.1875rem; }
  .legal-clause { padding-left: 0; }
}
