/* ==========================================================================
   Tech Lab Laghouat - "The Repair Slip" (design language v2.3)
   Pure paper, one stamp red, one ready green, IBM Plex Sans Arabic + Plex Mono.
   Loaded after the Tailwind build: this file owns the tokens and the signature
   components; app.css still provides the layout utilities.
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.79936b18df9f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+00B7;
}

:root {
  color-scheme: light;
  --page: #FFFFFF;
  --surface: #F4F4F4;
  --ink: #111111;
  --ink-2: #3F3F3F;
  --muted: #5C5C5C;
  --line: #D9D9D9;
  --line-strong: #767676;
  --stamp: #B3361A;
  --ready: #1B6B3A;
  --on-ready: #FFFFFF;
  --radius: 2px;
  --font-ui: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0F0F0F;
  --surface: #181818;
  --ink: #F2F2F2;
  --ink-2: #CFCFCF;
  --muted: #A3A3A3;
  --line: #2B2B2B;
  --line-strong: #8A8A8A;
  --stamp: #FF8A66;
  --ready: #5FC38A;
  --on-ready: #0F0F0F;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0F0F0F;
    --surface: #181818;
    --ink: #F2F2F2;
    --ink-2: #CFCFCF;
    --muted: #A3A3A3;
    --line: #2B2B2B;
    --line-strong: #8A8A8A;
    --stamp: #FF8A66;
    --ready: #5FC38A;
    --on-ready: #0F0F0F;
  }
}

/* Legacy token names used by the existing Tailwind utilities. They all point at
   the v2.2 tokens, so old markup keeps working while the palette stays neutral. */
:root,
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  --card: var(--page);
  --subtle: var(--surface);
  --border: var(--line);
  --border-input: var(--line-strong);
  --faint: var(--muted);
  --primary: var(--ink);
  --primary-ink: var(--ink);
  --primary-soft: var(--surface);
  --primary-soft-border: var(--line);
  --wa: var(--ready);
  --danger-ink: var(--stamp);
  --danger-soft: transparent;
  --danger-border: var(--stamp);
  --warn-ink: var(--stamp);
  --warn-soft: transparent;
  --warn-border: var(--stamp);
  --chip-green-bg: transparent;
  --chip-green-ink: var(--ink);
  --chip-amber-bg: transparent;
  --chip-amber-ink: var(--ink);
  --chip-blue-bg: transparent;
  --chip-blue-ink: var(--ink);
  --chip-red-bg: transparent;
  --chip-red-ink: var(--ink);
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

h1 { font-size: 28px; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin: 0; }

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

bdi, .num, .mono, .font-mono, .slip-number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.num { direction: ltr; unicode-bidi: isolate; }
.unit { font-family: var(--font-ui); }

/* Two weights only: legacy font-medium utilities resolve to 600. */
.font-medium { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--radius);
}

::selection { background: var(--ink); color: var(--page); }

@media (min-width: 1024px) {
  h1 { font-size: 36px; }
}

/* The old utility classes are still present in the templates. Flatten their
   rounded corners and shadows so no floating card survives the redesign. */
[class*="rounded-"],
[class~="rounded"] { border-radius: var(--radius) !important; }
[class*="shadow"] { box-shadow: none !important; }
header { backdrop-filter: none !important; }
[class*="bg-gradient"] { background-image: none !important; }

/* ------------------------------------------------------------------ shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.section-head p { font-size: 14px; color: var(--muted); }

.prose { max-width: 62ch; }

.eyebrow,
.meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 62ch;
}

.note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.home-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-pair {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .action-pair { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .action-pair .btn,
  .action-pair .btn-outline,
  .action-pair .btn-wa { width: auto; }
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  max-width: 32rem;
}

.hours-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.hours-row dt { color: var(--muted); }
.hours-row dd { margin: 0; }

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.how-steps li { display: flex; gap: 16px; align-items: flex-start; }

.step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}

.how-steps p { font-size: 16px; }

.choice-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.choice-row:has(input:checked) {
  border-color: var(--ink);
  background: var(--surface);
}

.service-choice span {
  justify-content: flex-start;
  text-align: start;
}

/* ------------------------------------------------------------------ cards, rules */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  box-shadow: none;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------------------------------------------------------------- policies */
.muted { color: var(--muted); }

.policy {
  display: flex;
  flex-direction: column;
  max-width: 70ch;
}

.policy-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.policy-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy-text {
  color: var(--ink-2);
  line-height: 1.75;
}

.policy-text + .policy-text { margin-top: 8px; }

.policy h2 {
  margin-bottom: 4px;
  font-size: 16px;
}

/* ------------------------------------------------------------------ buttons */
.btn,
.btn-outline,
.btn-wa,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
}

.btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--page);
}

.btn:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--page);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-wa {
  background: var(--ready);
  border-color: var(--ready);
  color: var(--on-ready);
}

.btn-wa:hover {
  background: var(--ready);
  border-color: var(--ink);
  color: var(--on-ready);
}

.btn-danger {
  background: transparent;
  border-color: var(--stamp);
  color: var(--stamp);
}

.btn-danger:hover {
  background: var(--surface);
  border-color: var(--stamp);
  color: var(--stamp);
}

.btn:disabled,
.btn-outline:disabled,
.btn-wa:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
}

.btn svg { flex: none; }

/* ------------------------------------------------------------------ forms */
.label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.input,
textarea.input,
select.input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.input:focus,
textarea.input:focus,
select.input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
  box-shadow: none;
}

.input-error { border-color: var(--stamp); }

textarea.input {
  min-height: 110px;
  padding: 10px 12px;
  line-height: 1.65;
}

.hint {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.choice { position: relative; flex: 1 1 0; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  text-align: start;
}
.choice input:checked + span {
  border-color: var(--ink);
  background: var(--surface);
  font-weight: 600;
}
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.check-row input { accent-color: var(--ink); }

.form-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section:first-of-type { border-top: 0; padding-top: 0; }

/* ------------------------------------------------------------------ alerts */
.alert,
.alert-danger,
.alert-warn,
.alert-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.alert-danger,
.alert-warn { border-inline-start-color: var(--stamp); }
.alert-info { border-inline-start-color: var(--ink); }
.alert svg { display: none; }

.alert-stamp,
.alert-ready {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--stamp);
  border-radius: var(--radius);
  background: transparent;
}

.alert-ready { border-inline-start-color: var(--ready); }
.alert-stamp h2,
.alert-ready h2 { font-size: 20px; }
.alert-stamp .meta,
.alert-ready .meta { font-size: 14px; color: var(--muted); }
.alert-stamp .btn,
.alert-ready .btn { align-self: flex-start; margin-top: 4px; }

/* ------------------------------------------------------------------ status */
.chip,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.chip::before,
.status::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--ink);
}

.chip-green::before,
.chip-ready::before,
.status-ready::before { background: var(--ready); }

.chip-red::before,
.chip-stamp::before,
.chip-amber::before,
.status-stamp::before { background: var(--stamp); }

.chip-blue::before,
.chip-ink::before,
.chip-gray::before,
.status-ink::before { background: var(--ink); }

/* Old capacity badge: a status line, never a pill. */
.capacity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
}

.capacity-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--ink);
}

.capacity-open::before { background: var(--ready); }
.capacity-closed::before { background: var(--stamp); }
.capacity-dot { display: none; }

/* ------------------------------------------------------------------ availability */
.availability { display: flex; flex-direction: column; gap: 2px; }
.availability-line { font-weight: 600; }
.availability-meta { font-size: 14px; line-height: 1.6; color: var(--muted); }
.availability.is-stale .availability-line { font-weight: 400; }

/* ------------------------------------------------------------------ price list */
.price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}

.price-row .service { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }

.price-row::after {
  content: "";
  order: 1;
  flex: 1 0 16px;
  border-bottom: 1px dotted var(--line-strong);
}

.price-row .price {
  order: 2;
  margin-inline-start: auto;
  white-space: nowrap;
}

.price .from { color: var(--muted); }
.price .num { font-family: var(--font-mono); }
.price .unit { font-family: var(--font-ui); }

/* ------------------------------------------------------------------ ticket */
.ticket {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  padding: 20px;
}

.ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ticket-head .meta { margin-bottom: 2px; }
.ticket-title { font-size: 20px; font-weight: 600; }

.ticket-fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 15px;
}

.ticket-fields dt { color: var(--muted); }
.ticket-fields dd {
  margin: 0;
  color: var(--ink);
  text-align: end;
  overflow-wrap: anywhere;
}

.slip-number {
  color: var(--stamp);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tear-line {
  border: 0;
  border-top: 1px dotted var(--line-strong);
  margin: 20px 0;
}

.ticket-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.ticket-qr {
  width: 96px;
  flex: none;
  padding: 4px;
  background: #FFFFFF;
  border: 1px solid var(--line);
}

.ticket-qr svg { display: block; width: 100%; height: auto; }
.ticket-foot p { font-size: 14px; color: var(--muted); }

.progress-line {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.progress-steps li { color: var(--muted); }
.progress-steps li.done { color: var(--ink-2); }
.progress-steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.progress-steps li + li::before { content: "/"; margin-inline-end: 12px; color: var(--line-strong); }

/* ------------------------------------------------------------------ timeline */
.timeline { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; gap: 12px; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .step-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}
.timeline li[aria-current="step"] .step-mark { background: var(--ink); color: var(--page); border-color: var(--ink); }
.timeline li.done .step-mark { border-color: var(--ink); }
.timeline .step-body { min-width: 0; flex: 1 1 auto; }
.timeline .step-body > p:first-child { font-size: 15px; }
.timeline .step-body > p + p { margin-top: 4px; }

/* ------------------------------------------------------------------ links, photos */
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover { color: var(--stamp); }

.photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------------ admin */
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 15px;
}
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link[aria-current="page"] {
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
}

/* The public header marks the current page with a rule, not a filled pill. */
.site-header .nav-link {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
}
.site-header .nav-link:hover { background: transparent; color: var(--ink); }
.site-header .nav-link[aria-current="page"] {
  background: transparent;
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.seg {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}
.seg:hover:not(:disabled) { border-color: var(--ink); background: var(--surface); }
.seg[aria-pressed="true"],
.seg[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--page);
}

.meter {
  display: block;
  width: 100%;
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--page);
  appearance: none;
}
.meter::-webkit-progress-bar { background: var(--page); }
.meter::-webkit-progress-value { background: var(--ink); }
.meter::-moz-progress-bar { background: var(--ink); }

table { border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------ overlays */
.cookie-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  background: var(--page);
  border-top: 1px solid var(--line);
  box-shadow: none;
}
.cookie-bar-link { color: var(--ink); font-weight: 600; text-decoration: underline; }

.modal { background: rgb(0 0 0 / 0.55); }
.modal-box {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.modal-list dt { color: var(--muted); }
.modal-actions { border-top: 1px solid var(--line); }

/* The receipt stays white paper in both themes. */
.paper {
  --ink: #111111;
  --ink-2: #3F3F3F;
  --muted: #5C5C5C;
  --line: #D9D9D9;
  --line-strong: #767676;
  --stamp: #B3361A;
  --ready: #1B6B3A;
  background: #FFFFFF;
  color: #111111;
}
.paper .muted,
.paper .meta,
.paper .note { color: #3F3F3F; }
.paper .num { color: #111111; }

.receipt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.receipt-brand { font-size: 20px; font-weight: 600; }
.receipt-meta { text-align: end; }

.receipt-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.receipt-section h2 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.receipt-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-size: 20px;
  font-weight: 600;
}

.receipt-note {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
}

.receipt-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.receipt-qr { margin-top: 20px; }

/* ==========================================================================
   Logo — add to static/css/site.css (design language 2.3, section 13)
   Place it after the component rules and BEFORE the @media print block.
   Colour comes from currentColor, i.e. --ink, so dark mode follows
   automatically (media query and the manual toggle alike).
   Never colour the logo with --stamp or --ready.
   ========================================================================== */

/* Inline sprite container (only used if includes/logo_sprite.html is in the page) */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

/* The generic text-link hover turns links red; the logo must not. */
.brand:hover,
.brand:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  display: block;
  height: 24px;
  width: auto;
  fill: currentColor;
}

/* Mobile first: compact mark below 480px, full lockup from 480px up. */
.brand .brand-full { display: none; }
@media (min-width: 480px) {
  .brand .brand-full { display: block; }
  .brand .brand-compact { display: none; }
}

/* Footer variant */
.brand-footer svg { height: 20px; }

/* Receipt / dashboard variants (set the height per context) */
.brand-receipt svg { height: 44px; }

/* Print: always solid black ink */
@media print {
  .brand { color: #000; }
}

/* logo — project additions: inner-page header (lg only) and receipt <img> */
.brand-receipt img { height: 44px; width: auto; }
.brand-lg { display: none; }
@media (min-width: 1024px) {
  .brand-lg { display: inline-flex; }
}
/* Mobile & tablet: a smaller logo keeps the narrow header and footer compact. */
@media (max-width: 1023px) {
  .brand svg { height: 18px; }
  .brand-footer svg { height: 18px; }
}


/* ------------------------------------------------------------------ print */
@media print {
  @page { margin: 12mm; }
  :root {
    --page: #FFFFFF;
    --surface: #FFFFFF;
    --ink: #000000;
    --ink-2: #000000;
    --muted: #000000;
    --line: #000000;
    --line-strong: #000000;
    --stamp: #000000;
    --ready: #000000;
    --on-ready: #FFFFFF;
    --card: #FFFFFF;
    --subtle: #FFFFFF;
    --border: #000000;
  }
  body { background: #FFFFFF; color: #000000; font-size: 11pt; }
  .site-header,
  .site-footer,
  .cookie-bar,
  .no-print,
  .btn,
  .btn-outline,
  .btn-wa,
  .btn-danger { display: none !important; }
  .ticket { border: 1px solid #000000; }
  .slip-number { color: #000000; font-size: 2em; font-weight: 600; }
  a { color: #000000; text-decoration: none; }
}

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

/* ------------------------------------------------------------------ booking combobox
   The "Requested services" multi-select: a searchable dropdown. Plain CSS like the rest of
   site.css (2px radius, ink/line tokens), no Tailwind utility has to be generated. */
.combobox { position: relative; }
.combobox-control { position: relative; }
.combobox-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  padding-inline-end: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.combobox-input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}
.combobox-control::after {
  content: "";
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
  transform: rotate(45deg);
  pointer-events: none;
}
.combobox-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  inset-inline: 0;
  max-height: 18rem;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--page);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.14);
}
.combobox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: start;
  cursor: pointer;
}
.combobox-option:hover,
.combobox-option:focus-visible { background: var(--surface); }
.combobox-option-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.combobox-option-price { flex: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.combobox-check {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--page);
}
.combobox-option[aria-pressed="true"] { background: var(--surface); }
.combobox-option[aria-pressed="true"] .combobox-check { border-color: var(--ink); background: var(--ink); }
.combobox-option[aria-pressed="true"] .combobox-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--page);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.combobox-empty { padding: 8px 10px; color: var(--muted); font-size: 14px; }
.combobox-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.combobox-chips:empty { margin-top: 0; }
.combobox-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}
.combobox-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.combobox-chip-remove:hover { background: var(--line); }