/* Parlour — tokens and base styles, written for a 320px phone first.
   Colours: only the tokens in design/palette.json ("stone and petrol"), light and dark.
   No viewport-height units anywhere, and no overflow rule on <html>: see design/DIRECTION.md. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght.eb2486760f75.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght.c501f578bf3f.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #f3f2ef;
  --surface: #fcfcfa;
  --raised: #e8e7e3;
  --line: #dcdad5;
  --line-strong: #85837d;
  --text: #1b1f22;
  --text-dim: #50565b;
  --brand: #1f4f5c;
  --brand-ink: #fcfcfa;
  --brand-wash: #e1ecee;
  --warn: #855408;
  --warn-wash: #f8eedb;
  --ok: #2f6a44;
  --ok-wash: #e3efe6;
  --bad: #a3302b;
  --bad-wash: #f8e7e4;
  /* Six hues for the parts of the menu and for faces without a photo (hair, barbering, beauty,
     nails, massage, skin). Text on a wash is always --text; the strong hue is for edges and badges. */
  --hue-1: #5b4a8f;
  --hue-1-wash: #ebe8f5;
  --hue-2: #2f5a96;
  --hue-2-wash: #e3eaf6;
  --hue-3: #1b6a64;
  --hue-3-wash: #dcefeb;
  --hue-4: #a1452e;
  --hue-4-wash: #f9e6df;
  --hue-5: #44703a;
  --hue-5-wash: #e5efde;
  --hue-6: #82600f;
  --hue-6-wash: #f5ecd5;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tap: 3rem; /* 48px minimum touch target */
  --gutter: 1rem;
  color-scheme: light dark;
}

/* Dark: the phone's setting, unless the person has chosen with the switch in the header
   (data-theme on <html>, kept in a cookie so the page arrives in it without a flash). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #121517;
    --surface: #1a1e21;
    --raised: #23282c;
    --line: #2d3337;
    --line-strong: #687076;
    --text: #eceff0;
    --text-dim: #a3abb0;
    --brand: #84c3cf;
    --brand-ink: #0c2328;
    --brand-wash: #17313a;
    --ok: #7fbf92;
    --ok-wash: #182b1f;
    --warn: #ddb05a;
    --warn-wash: #30271a;
    --bad: #ec8a80;
    --bad-wash: #34201d;
    --hue-1: #b6a6ea;
    --hue-1-wash: #26213a;
    --hue-2: #93b1e4;
    --hue-2-wash: #1c2738;
    --hue-3: #6ccabe;
    --hue-3-wash: #132f2b;
    --hue-4: #ee9f8a;
    --hue-4-wash: #3a231c;
    --hue-5: #a6cc90;
    --hue-5-wash: #1e2b18;
    --hue-6: #e3bd6a;
    --hue-6-wash: #32290f;
  }
}
:root[data-theme="dark"] {
  --canvas: #121517;
  --surface: #1a1e21;
  --raised: #23282c;
  --line: #2d3337;
  --line-strong: #687076;
  --text: #eceff0;
  --text-dim: #a3abb0;
  --brand: #84c3cf;
  --brand-ink: #0c2328;
  --brand-wash: #17313a;
  --ok: #7fbf92;
  --ok-wash: #182b1f;
  --warn: #ddb05a;
  --warn-wash: #30271a;
  --bad: #ec8a80;
  --bad-wash: #34201d;
  --hue-1: #b6a6ea;
  --hue-1-wash: #26213a;
  --hue-2: #93b1e4;
  --hue-2-wash: #1c2738;
  --hue-3: #6ccabe;
  --hue-3-wash: #132f2b;
  --hue-4: #ee9f8a;
  --hue-4-wash: #3a231c;
  --hue-5: #a6cc90;
  --hue-5-wash: #1e2b18;
  --hue-6: #e3bd6a;
  --hue-6-wash: #32290f;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.15; margin: 0 0 0.5rem; overflow-wrap: anywhere; }
h1 { font-size: 1.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3125rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-underline-offset: 0.15em; }
.dim { color: var(--text-dim); }
.num { font-variant-numeric: tabular-nums; }

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

.skip-link { position: absolute; left: -999rem; top: 0; background: var(--surface); padding: 0.75rem 1rem; z-index: 20; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---- page frame ---- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.5rem var(--gutter); padding-top: max(0.5rem, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--tap); min-width: 0;
  color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
}
.wordmark svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--brand); }
.wordmark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 0.25rem; flex: none; }
.header-actions form { margin: 0; }

main { display: block; max-width: 44rem; margin: 0 auto; padding: 1.25rem var(--gutter) 2.5rem; }
main:focus { outline: none; }

.site-footer { max-width: 44rem; margin: 0 auto; padding: 1rem var(--gutter) 2rem; color: var(--text-dim); font-size: 0.875rem; }
.site-footer p { margin: 0 0 0.25rem; }

.demo-strip {
  background: var(--warn-wash); color: var(--text); border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter); font-size: 0.875rem; text-align: center;
}
.demo-strip strong { color: var(--warn); }

/* ---- buttons and links that act like buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0.6rem 1.1rem; max-width: 100%;
  font: inherit; font-weight: 650; text-decoration: none; text-align: center;
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 8px; cursor: pointer; touch-action: manipulation;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--brand); padding-left: 0.6rem; padding-right: 0.6rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- forms ---- */
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.field input, .finder-search input, .media-caption input {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: var(--tap);
  padding: 0.6rem 0.75rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px;
}
.field input[aria-invalid="true"] { border-color: var(--bad); border-width: 2.5px; }
.form-error {
  background: var(--bad-wash); border-left: 4px solid var(--bad); padding: 0.75rem 1rem; margin: 0 0 1rem;
  border-radius: 0 6px 6px 0;
}
.form-error strong { color: var(--bad); }

/* ---- cards and tags ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; min-width: 0; }
.card + .card { margin-top: 0.75rem; }
.tag {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 4px; font-size: 0.8125rem; font-weight: 650;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--raised); white-space: nowrap;
}
.tag-arrived { background: var(--warn-wash); border-color: var(--warn); color: var(--warn); }
.tag-in_progress { background: var(--brand-wash); border-color: var(--brand); color: var(--brand); }
.tag-completed { background: var(--ok-wash); border-color: var(--ok); color: var(--ok); }
.tag-no_show { background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }

.messages { list-style: none; margin: 0 0 1rem; padding: 0; }
.msg { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0.6rem 0.8rem; }

/* ---- the price list: the salon's printed menu ---- */
.menu-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.menu-jump a { min-height: var(--tap); }
.menu-group { margin: 0 0 2rem; scroll-margin-top: 1rem; }
.menu-group > h2 { font-size: 1.5rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--text); margin-bottom: 1rem; }
.menu-category { margin: 0 0 1.5rem; }
.menu-category > h3 { color: var(--brand); margin-bottom: 0.25rem; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list > li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.price-list > li:last-child { border-bottom: 0; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.price-name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 520; min-width: 0; overflow-wrap: anywhere; }
.price-leader { flex: 1 1 1rem; min-width: 1rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(-0.25em); }
.price-amount { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-meta { margin: 0.1rem 0 0; color: var(--text-dim); font-size: 0.9375rem; overflow-wrap: anywhere; }
.price-variants { list-style: none; margin: 0.35rem 0 0; padding: 0 0 0 0.9rem; border-left: 2px solid var(--line); }
.price-variants li { padding: 0.2rem 0; }
.price-variants .price-name, .price-variants .price-amount { font-family: var(--font-body); font-size: 1rem; }

.hours { width: 100%; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; padding: 0.3rem 0; }
.hours td { text-align: right; padding: 0.3rem 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }

/* ---- marketing home ---- */
.hero { padding: 1.5rem 0 1rem; }
.hero h1 { font-size: 2.125rem; }
.hero .lede { font-size: 1.125rem; color: var(--text-dim); max-width: 34rem; }
.point-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
.point-list h3 { margin-bottom: 0.25rem; }
.point-list p { margin: 0; color: var(--text-dim); }

@media (min-width: 40rem) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.75rem; }
  .point-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* iOS date and time inputs otherwise size themselves and can overflow their panel. */
.field input[type="date"], .field input[type="time"], .field input[type="datetime-local"] { -webkit-appearance: none; appearance: none; }

/* ---- footer links and the legal pages ---- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0 0 0.5rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.25rem; }
.legal h2 { margin-top: 1.75rem; }
.legal dl { margin: 0; }
.legal dt { color: var(--text-dim); font-size: 0.875rem; margin-top: 0.6rem; }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.legal ul { padding-left: 1.2rem; }
.tap-link { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.tenant-logo { width: 2rem; height: 2rem; object-fit: contain; border-radius: 4px; flex: none; }
/* iOS sizes date and time inputs from their content unless told otherwise; on an iPhone they
   then overflow their card. Let them shrink to the space they are given. */
input[type="date"], input[type="time"], input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; }

/* ---- tick boxes: the whole label is the target ---- */
.check { display: flex; align-items: flex-start; gap: 0.75rem; min-height: var(--tap); margin: 0 0 1rem; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0.6rem 0 0; flex: none; accent-color: var(--brand); }
.check label { min-height: 2.75rem; display: flex; align-items: center; flex: 1 1 auto; flex-wrap: wrap; gap: 0 0.3rem; font-weight: 400; }
.field .hint { display: block; color: var(--text-dim); font-size: 0.9375rem; }
.field-error { display: block; color: var(--bad); font-weight: 650; margin-top: 0.3rem; }
.small-print { color: var(--text-dim); font-size: 0.9375rem; }
.notice { background: var(--warn-wash); border-left: 4px solid var(--warn); border-radius: 0 6px 6px 0; padding: 0.75rem 1rem; margin: 0 0 1.25rem; }
.notice strong { color: var(--warn); }

/* ---- "make it mine": turn the demo into your own salon ---- */
.demo-strip p { margin: 0; }
.mine-form { margin: 0.4rem auto 0; max-width: 30rem; text-align: left; }
.mine-form label { display: block; font-weight: 650; margin-bottom: 0.25rem; }
.mine-row { display: flex; gap: 0.5rem; }
.mine-row input { flex: 1 1 8rem; min-width: 0; min-height: var(--tap); padding: 0.5rem 0.75rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px; }
.mine-row .btn { flex: none; }
.mine-home { margin: 1rem 0 0; }
.btn-row form { margin: 0; }

/* ---- a section that opens on demand ---- */
.fold > summary { display: flex; align-items: center; min-height: var(--tap); font-weight: 650; color: var(--brand); cursor: pointer; }
.fold[open] > summary { margin-bottom: 0.5rem; }
.sub-head { margin-top: 1.25rem; }

/* ---- colour by part of the menu, and faces ---- */
.hue-0 { --hue: var(--line-strong); --hue-wash: var(--raised); }
.hue-1 { --hue: var(--hue-1); --hue-wash: var(--hue-1-wash); }
.hue-2 { --hue: var(--hue-2); --hue-wash: var(--hue-2-wash); }
.hue-3 { --hue: var(--hue-3); --hue-wash: var(--hue-3-wash); }
.hue-4 { --hue: var(--hue-4); --hue-wash: var(--hue-4-wash); }
.hue-5 { --hue: var(--hue-5); --hue-wash: var(--hue-5-wash); }
.hue-6 { --hue: var(--hue-6); --hue-wash: var(--hue-6-wash); }
.avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover;
  background: var(--hue-wash, var(--raised)); color: var(--hue, var(--text)); border: 1.5px solid var(--hue, var(--line-strong));
  font-family: var(--font-body); font-weight: 750; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; line-height: 1;
}
img.avatar { border-color: var(--line); background: var(--raised); }
.avatar-s { width: 1.75rem; height: 1.75rem; font-size: 0.6875rem; }
.avatar-m { width: 2.75rem; height: 2.75rem; font-size: 0.9375rem; }
.avatar-l { width: 4.5rem; height: 4.5rem; font-size: 1.5rem; border-width: 2px; }
.avatar-xl { width: 6.5rem; height: 6.5rem; font-size: 2.1rem; border-width: 2px; }
.dot { display: inline-block; flex: none; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--hue, var(--brand)); }
/* A file picker shown as a button: the input stays in the page for keyboards and screen readers. */
.file-btn { position: relative; cursor: pointer; overflow: hidden; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 1rem; }
.file-btn:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.photo-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; position: relative; }
.photo-form.is-auto .photo-save { display: none; }
.photo-form.is-sending .file-btn { opacity: 0.6; pointer-events: none; }
.photo-actions { margin-bottom: 1rem; }
.file-native { display: block; width: 100%; max-width: 100%; min-height: var(--tap); padding: 0.55rem 0; font: inherit; color: var(--text); }
.photo-form .field { flex: 1 1 100%; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Uploading: previews, a progress bar and what is happening, under the button that was tapped. */
.upload-status { flex: 1 1 100%; display: none; }
.photo-form.is-sending .upload-status, .photo-form.is-failed .upload-status { display: block; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.375rem; }
.upload-preview { width: 3.5rem; height: 3.5rem; border-radius: 8px; object-fit: cover; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-dim); }
.photo-form.is-sending .upload-preview { opacity: 0.75; }
.upload-text { margin: 0 0 0.25rem; font-size: 0.875rem; color: var(--text-dim); }
.photo-form.is-failed .upload-text { color: var(--bad); font-weight: 600; }
.upload-status progress { width: 100%; height: 0.375rem; accent-color: var(--brand); }
.photo-form.is-failed progress { display: none; }
.main-photo-form .upload-status { position: absolute; inset: auto 0 0; background: var(--surface); padding: 0.25rem; border-radius: 0 0 10px 10px; }
.main-photo-form .upload-previews { display: none; }

/* Jump to (static/js/jump.js): pinned to the top corner once a long page is under way, half
   see-through until touched, and tucked into the edge as a thin tab when hidden. */
.jump {
  position: fixed; z-index: 40; top: calc(0.6rem + env(safe-area-inset-top)); right: 0.75rem;
  display: none; align-items: center; gap: 0.25rem;
}
.jump.is-shown { display: flex; }
.jump-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; max-width: min(68vw, 19rem); padding: 0 0.75rem 0 0.85rem;
  border: 1.5px solid var(--brand); border-radius: 999px; color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  font: inherit; font-size: 0.875rem; font-weight: 650; cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / 0.16);
}
.jump-btn:hover, .jump-btn[aria-expanded="true"] { background: var(--surface); }
.jump-btn b { font-weight: 700; color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump-word { white-space: nowrap; }
.jump svg { width: 0.9rem; height: 0.9rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.jump-btn svg { transition: transform 0.15s ease; }
.jump-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.jump-hide, .jump-tab {
  display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--text-dim); box-shadow: 0 4px 16px rgb(0 0 0 / 0.16);
  background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.jump-hide { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.jump-tab { display: none; width: 1.6rem; height: 2.75rem; border-right: 0; border-radius: 10px 0 0 10px; color: var(--brand); }
.jump.is-tucked { right: 0; }
.jump.is-tucked .jump-btn, .jump.is-tucked .jump-hide, .jump.is-tucked .jump-list { display: none; }
.jump.is-tucked .jump-tab { display: inline-flex; }
.jump-list {
  position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 14rem; max-width: min(92vw, 22rem);
  max-height: 30rem; overflow-y: auto; overscroll-behavior: contain; padding: 0.375rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px -14px rgb(0 0 0 / 0.45);
}
.jump-list a, .jump-list button {
  display: block; width: 100%; padding: 0.65rem 0.75rem; border: 0; border-radius: 8px; background: none; text-align: left;
  color: var(--text); text-decoration: none; font: inherit; font-size: 0.9375rem; cursor: pointer;
}
.jump-list a:hover, .jump-list button:hover, .jump-list a.is-here { background: var(--brand-wash); color: var(--brand); }
.jump-list a.is-here { font-weight: 700; }
.jump-list hr { border: 0; border-top: 1px solid var(--line); margin: 0.375rem 0.25rem; }
.jump-quiet { color: var(--text-dim) !important; font-size: 0.875rem !important; }
[data-jump] { scroll-margin-top: 4rem; }
@media (prefers-reduced-motion: reduce) { .jump-btn svg { transition: none; } }

/* The light / dark switch: shows the moon in light mode and the sun in dark. */
.theme-form { display: inline-flex; margin: 0; }
.theme-switch {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-switch:hover { border-color: var(--line-strong); }
.theme-switch svg { width: 1.25rem; height: 1.25rem; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
/* a short fade while the look changes, never on ordinary page loads */
.theme-changing, .theme-changing * { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important; }
@media (prefers-reduced-motion: reduce) { .theme-changing, .theme-changing * { transition: none !important; } }

/* Pictures with a light and a dark version follow the switch too. */
.for-dark { display: none; }
:root[data-theme="dark"] .for-dark { display: block; }
:root[data-theme="dark"] .for-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .for-dark { display: block; }
  :root:not([data-theme="light"]) .for-light { display: none; }
}

/* Google reviews on a salon's page and the product home page. */
.reviews { margin: 0.5rem 0 2rem; }
.review-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.review-score strong { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; }
.review-stars { color: var(--warn); letter-spacing: 0.08em; }
.review-track {
  display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x proximity; list-style: none;
  margin: 0 calc(-1 * var(--gutter)) 0.75rem; padding: 0 var(--gutter) 0.25rem; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(85%, 20rem); scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.review p { margin: 0; }
.review-text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-author { margin-top: auto !important; font-weight: 650; font-size: 0.9375rem; }
.review-author a { color: var(--text); }
.review-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.25rem; }
.review-source { margin: 0; }
@media (min-width: 48rem) { .review-track { margin: 0 0 0.75rem; padding: 0 0 0.25rem; } }
