/* Minimal, accessible styling. Only the three base hex values ADR-029 §7
   actually specifies are used, and only within their documented-safe
   roles: saffron (#E9A13B) is fill-only, never text (measured 1.93:1);
   deep teal-green (#1E4F45) is the structural/text colour (dark enough
   for AA body text on a light ground); warm brick (#C2553F) is tertiary
   only, used sparingly. The full saffron ramp ADR-031 §17 records as an
   unavailable documentation gap is not invented here. */

:root {
  color-scheme: light;
  --ink: #1e4f45;
  --ink-deep: #1b4a41;
  --ground: #f4f3ef;
  --surface: #ffffff;
  --border: #dedcd3;
  --accent-fill: #e9a13b;
  --accent-fill-ink: #1a1206;
}

/* Work Sans is ADR-029's approved body/UI typeface, same variable font
   asset the mobile app bundles. Served from our own origin (CSP font-src). */
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/WorkSans-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* Persistent brand bar (SiteHeader.astro), included on every page via
   BaseLayout. Mirrors the app's top bar: logo left, primary links right. */

.site-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.site-header {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo {
  height: 3rem;
  width: auto;
}

.site-bar__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  background: #fbead2;
}

/* Language switcher: Swahili is the default, English is opt-in. Plain links so
   it works with script-src 'none'; the choice is stored server-side in a cookie. */
.site-lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem;
}

.site-lang__current,
.site-lang__link {
  display: inline-block;
  min-width: 2.1rem;
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
}

.site-lang__current {
  background: var(--ink);
  color: var(--surface);
}

.site-lang__link {
  color: var(--ink);
}

.site-lang__link:hover {
  background: #fbead2;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

main.main--wide {
  max-width: 64rem;
}

.main--wide > section:not(.nearby-radar-card) {
  border-top: none;
  padding-top: 0;
  margin-top: 2.25rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.9rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.section-sub {
  margin: 0.15rem 0 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.section-link {
  flex: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

header {
  margin-bottom: 2rem;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0 0 0.25rem;
  text-wrap: balance;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.service-area {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 0.75rem;
}

.chips li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
  background: var(--surface);
}

.badge {
  display: inline-block;
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.portfolio {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}

.portfolio img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  background: var(--surface);
}

.portfolio .caption {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.offerings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.offerings li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.offerings li:last-child {
  border-bottom: none;
}

.service-chip {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.description {
  margin: 0 0 0.35rem;
}

.price-duration {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.4rem 0.5rem 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.unavailable {
  max-width: 32rem;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

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

a:focus-visible,
img:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.unavailable a {
  color: var(--ink);
  font-weight: 600;
}

/* Discovery Slice (Home / Search) */

.hero {
  margin-bottom: 1.5rem;
}

/* Decorative only -- never a photograph (ADR-028 §21: no stock imagery
   standing in for a real professional or their work). A flat brand-colour
   gradient panel gives the "visual first" presence the Tanzania-market
   redesign calls for without fabricating a person or a portfolio photo. */
.hero-visual {
  height: 7rem;
  border-radius: 1rem;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink) 40%, var(--accent-fill) 100%);
}

.hero .tagline {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.hero .tagline-sub {
  margin: 0;
  opacity: 0.85;
}

/* Deep-teal editorial hero card, matching the app's Nyumbani hero. */
.hero--card {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 1.5rem;
  background: var(--ink-deep);
  color: #fff;
}

.hero--card::after {
  content: "";
  position: absolute;
  top: -4rem;
  right: -3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero--card > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f6dc9a;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero--card .tagline {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.hero--card .tagline-sub {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 32rem;
  padding: 0.95rem 1.25rem;
  border-radius: 1rem;
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  font-weight: 700;
  text-decoration: none;
}

.hero-cta:hover {
  filter: brightness(1.05);
}

/* Category grid -- photo-forward 4:3 cards matching the mobile Nyumbani &
   Tafuta discovery cards, with a clean circular-icon fallback. */
.category-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.85rem;
  padding: 0;
  margin: 0 0 1.5rem;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}

.category-tile:hover {
  border-color: var(--ink);
}

.category-tile--selected {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.category-tile__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8f2ef;
}

.category-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile .icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 1.25rem auto 0.5rem;
  border-radius: 999px;
  background: #fbead2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-tile svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-tile__label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.search-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.search-form select {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--ground);
  color: var(--ink);
}

.search-form button {
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  cursor: pointer;
}

.chip-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
}

.chip-links a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.chip-links a:hover {
  border-color: var(--ink);
}

.chip-links a.is-selected {
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  border-color: var(--accent-fill);
}

.results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
}

/* Photo-forward result card: the image leads, name/meta/CTA follow --
   the literal "picha kwanza" ordering the Tanzania-market redesign calls
   for. `coverPhoto` is only ever a professional's own real, eligible
   portfolio photo (never stock); `.cover-placeholder` is the honest
   fallback when none exists yet. */
.result-link {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.result-link:hover {
  border-color: var(--ink);
}

.result-cover {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--border);
}

.cover-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-fill) 100%);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
}

.result-body {
  padding: 0.85rem 0.9rem 1rem;
}

.result-link h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.result-meta {
  margin: 0 0 0.5rem;
  opacity: 0.85;
  font-size: 0.85rem;
}

.result-cta {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.state-message {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  text-align: center;
}

/* WhatsApp Contact/Inquire CTA (ADR-028 §8.1) */

.contact {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.whatsapp-cta {
  display: inline-block;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  text-decoration: none;
}

/* ADR-033 Web Digital Salon Transaction Link */

.salon-header .affiliation {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.rating-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portfolio-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  background: var(--surface);
}

.look-action {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.look-meta {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
}

.book-look-cta {
  display: inline-block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  text-decoration: none;
}

.offering-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem;
}

.offering-media-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.offering-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.offering-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--canvas);
  text-decoration: none;
}

.offering-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offering-thumb-video {
  width: auto;
  padding: 0 0.65rem;
  background: #1e4f45;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.offering-media-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e4f45;
  background: #e8f2ef;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.offering-reference-wrap {
  position: relative;
  display: inline-block;
  width: 84px;
  height: 84px;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
}

.offering-reference-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reference-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 22, 20, 0.72);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 0.15rem 0.25rem;
}

.offerings .offering-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.offerings .offering-card:last-child {
  border-bottom: 1px solid var(--border);
}

.offering-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.offering-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill-accent {
  display: inline-block;
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-teal {
  display: inline-block;
  background: #e6f0ee;
  color: var(--ink);
  border: 1px solid #b8d1cc;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.travel-fee {
  font-weight: 500;
  opacity: 0.88;
}

.patana-hint {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.offering-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-primary,
.btn-primary-sm {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 0.55rem;
  background: var(--accent-fill);
  color: var(--accent-fill-ink);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  padding: 0.72rem 1.25rem;
}

.btn-primary-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.9rem;
}

/* Cancelling a booking is destructive and cannot be undone, so it must not
   look like the saffron primary action. Warm brick is ADR-029's tertiary
   colour; it is dark enough to carry white text. */
.btn-danger {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.72rem 1.25rem;
  border: 1px solid #c2553f;
  border-radius: 0.55rem;
  background: var(--surface);
  color: #a33f2c;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-danger:hover {
  background: #c2553f;
  color: var(--surface);
}

/* My bookings (/bookings) */
.booking-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.booking-list__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}

.booking-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.booking-list__title {
  margin: 0;
  font-size: 1.05rem;
}

.booking-list__title a {
  color: var(--ink);
}

.booking-list__who {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.booking-list__when {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

.book-again-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0 0 0.25rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.book-again-card {
  flex: 0 0 auto;
  width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.book-again-card--ineligible {
  opacity: 0.55;
}

.book-again-card__name {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.book-again-card__area {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.btn-outline,
.btn-outline-sm,
.quote-cta {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-outline,
.quote-cta {
  padding: 0.65rem 1.2rem;
}

.btn-outline-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.btn-link {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reviews-list,
.payments-list,
.messages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.messages-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.6rem 0.85rem;
}

.messages-list li p {
  margin: 0.3rem 0 0;
}

.roster-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.roster-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
}

.roster-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.roster-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.roster-row-actions form {
  display: inline;
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.notification-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.notification-list form {
  margin: 0;
}

.notification-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.notification-row__dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
}

.notification-row.is-unread .notification-row__dot {
  background: var(--ink);
}

.notification-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.notification-row__message {
  font-weight: 500;
}

.notification-row.is-unread .notification-row__message {
  font-weight: 700;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.review-stars {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.review-comment {
  margin: 0;
}

.back-link {
  margin: 0 0 1rem;
}

.back-link a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.session-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mode-tab {
  text-align: center;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.mode-tab.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.surface-card,
.auth-card,
.confirmation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.25rem;
  margin-top: 1.25rem;
}

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

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

.stack-form label {
  font-size: 0.88rem;
  font-weight: 600;
}

.stack-form input[type="email"],
.stack-form input[type="text"],
.stack-form input[type="tel"],
.stack-form input[type="date"],
.stack-form select,
.stack-form textarea {
  font: inherit;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--ground);
  color: var(--ink);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.slot-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.slot-grid,
.slot-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.slot-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--ground);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  cursor: pointer;
}

.slot-pill-static {
  text-align: center;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--ground);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.muted {
  opacity: 0.85;
  margin-top: 0;
}

.notice-error {
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  background: #fdeceb;
  border: 1px solid #c2553f;
  color: #6d2316;
  font-weight: 600;
}

.notice-info {
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  background: #e6f0ee;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.notice-warn {
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  background: #fef5e7;
  border: 1px solid var(--accent-fill);
  color: var(--accent-fill-ink);
}

.summary-list {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
}

.summary-list dt {
  opacity: 0.8;
}

.summary-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.payments-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.owner-legal-name {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.88;
}

.verified-inline {
  font-weight: 700;
  color: var(--ink);
}

.vouch-inline {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #e8f2ef;
  border: 1px solid #c3dcd6;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e4f45;
}

.safety-note {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.55rem;
  background: #e6f0ee;
  border: 1px solid #b8d1cc;
  font-size: 0.84rem;
  line-height: 1.4;
}

.requirements-box {
  margin: 0.65rem 0 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  background: #f4f3ef;
  border: 1px solid #dedcd3;
}

.requirements-title {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e4f45;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.requirements-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.requirements-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
}

.req-label {
  font-weight: 600;
  color: var(--ink);
}

.req-bearer {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: #e8f2ef;
  color: #1e4f45;
}

.supplies-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a56813;
}

.supply-fieldset {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid #dedcd3;
  background: #fdf6e9;
  display: grid;
  gap: 0.5rem;
}

.supply-fieldset legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e4f45;
  padding: 0 0.25rem;
}

.supply-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.pill-work-base {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #fdf6e9;
  border: 1px solid #e9a13b;
  color: #7c4d0d;
  font-size: 0.78rem;
  font-weight: 700;
}

.loyalty-perk-banner {
  margin: 0 0 1.35rem;
  padding: 0.95rem 1.1rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #1e4f45 0%, #153932 100%);
  border: 1px solid #2d6a5e;
  color: #f4f3ef;
  box-shadow: 0 6px 18px rgba(30, 79, 69, 0.14);
}

.loyalty-perk-top {
  margin: 0 0 0.4rem;
}

.loyalty-perk-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: rgba(233, 161, 59, 0.2);
  border: 1px solid rgba(233, 161, 59, 0.6);
  color: #f9d596;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.loyalty-perk-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.loyalty-perk-rule {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f5ce87;
}

.loyalty-perk-desc {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(244, 243, 239, 0.86);
}

.rebook-hint {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e4f45;
}

.group-event-callout {
  margin: 0 0 1.4rem;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  background: #fdf6e9;
  border: 1px solid #e9a13b;
  display: grid;
  justify-items: start;
  gap: 0.4rem;
}

.group-event-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: #1e4f45;
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 700;
}

.group-event-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.group-event-body {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  line-height: 1.42;
  color: #3f3e38;
}

.nearby-radar-card {
  margin: 1rem 0 1.4rem;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #1e4f45 0%, #14362f 100%);
  color: #f4f3ef;
  border: 1px solid #2d6a5e;
}

.nearby-radar-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.nearby-radar-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.nearby-radar-sub {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(244, 243, 239, 0.88);
}

.nearby-empty {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: #fde68a;
}

.nearby-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.pill-distance {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: #e8f2ef;
  color: #1e4f45;
  font-size: 0.74rem;
  font-weight: 700;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.live-open {
  background: #d1fae5;
  border: 1px solid #34d399;
  color: #065f46;
}

.live-busy {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.work-locations-box {
  margin: 0 0 1.35rem;
  padding: 0.9rem 1.05rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid #dedcd3;
  display: grid;
  gap: 0.75rem;
}

.work-loc-heading {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e4f45;
}

.work-loc-line {
  margin: 0;
  font-size: 0.88rem;
}

.salon-engagements-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
}

.eng-hours {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: #1e4f45;
}

/* ADR-041: Zero-JS Kadi ya Staila shareable poster (/staila/:slug/card) */
.share-card-shell {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.share-poster {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  background: linear-gradient(150deg, #1e4f45 0%, #14362f 100%);
  color: #f4f3ef;
  padding: 1.5rem;
  border: 2px solid #2d6a5e;
  box-shadow: 0 12px 28px rgba(30, 79, 69, 0.22);
  display: grid;
  gap: 0.9rem;
}

.share-poster-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.share-poster-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(233, 161, 59, 0.22);
  border: 1px solid rgba(233, 161, 59, 0.7);
  color: #fde68a;
  font-size: 0.76rem;
  font-weight: 700;
}

.share-poster-trust {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
}

.share-card-signature {
  margin: 0.2rem 0 0;
  font-size: 1.65rem;
  line-height: 1.18;
  font-weight: 800;
  color: #ffffff;
}

.share-poster-sub {
  margin: 0;
  font-size: 0.94rem;
  color: rgba(244, 243, 239, 0.9);
}

.share-poster-loc {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}

.share-poster-services-heading {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fde68a;
}

.share-poster-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.share-poster-services li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
}

.share-poster-svc-name {
  font-weight: 700;
  color: #ffffff;
}

.share-poster-svc-price {
  font-weight: 800;
  color: #fde68a;
  white-space: nowrap;
}

.share-poster-footer {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: #e9a13b;
  color: #111827;
  display: grid;
  gap: 0.2rem;
}

.share-poster-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  word-break: break-all;
}

.share-poster-hint {
  font-size: 0.78rem;
  font-weight: 600;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-saffron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.8rem;
  background: #e9a13b;
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.8rem;
  border: 2px solid #1e4f45;
  color: #1e4f45;
  background: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

/* ADR-028 §5/§9 public Salon Profile (/salon/:slug) */

.affiliation-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.salon-address {
  margin: 0;
}

.salon-roster {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.salon-roster-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.salon-roster-link:hover {
  border-color: var(--ink);
}

.salon-roster-name {
  font-weight: 700;
}

.salon-roster-cta {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}
