/* Serenity Spa - site styles (one file for every page, including the error pages) */
:root {
  --brand: #5f6f17;          /* olive from the Serenity Spa logo, darkened for text contrast */
  --brand-600: #4b5912;
  --leaf: #75871d;           /* original logo green: decorative use only */
  --sage-50: #f6f8f0;
  --sage-100: #eef2e4;
  --sage-200: #dde5cb;
  --mist: #e8f0f2;
  --ink: #25302a;
  --muted: #5a665f;
  --line: #d8dfd0;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --bg: #f6f8f0; --surface: #fff; --surface-2: #f6f8f0; --on-brand: #fff; --footer-bg: #26302a;
  --card-bg: #fff; --card-border: var(--line); --card-shadow: var(--shadow-sm); --card-blur: 0px; --card-sat: 100%;
  --header-bg: rgba(255, 255, 255, .94); --tools-bg: rgba(246, 248, 240, .96); --control-bg: #fff; --err-bg: rgba(255, 255, 255, .82);
  --alt-bg: #fff; --tint-bg: var(--sage-100); --hero-grad: linear-gradient(135deg, var(--sage-200), var(--mist));
  --page-bg: #f6f8f0; --err-overlay: linear-gradient(180deg, rgba(246, 248, 240, .55), rgba(221, 229, 203, .72));
  --shadow: 0 10px 30px rgba(37, 48, 42, .10);
  --shadow-sm: 0 2px 10px rgba(37, 48, 42, .08);
  --header-h: 72px;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--page-bg); background-attachment: fixed; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-600); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--alt-bg); }
.section.tint { background: var(--tint-bg); }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--on-brand); font: 500 .95rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--brand-600); color: var(--on-brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: var(--on-brand); }
.btn.light { background: #fff; border-color: #fff; color: var(--brand-600); }
.btn.light:hover { background: var(--sage-100); color: var(--brand-600); }
.btn.outline-light { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn.small { min-height: 38px; padding: 0 18px; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: blur(max(10px, var(--card-blur))) saturate(var(--card-sat)); backdrop-filter: blur(max(10px, var(--card-blur))) saturate(var(--card-sat)); border-bottom: 1px solid var(--card-border); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; text-decoration: none; color: var(--ink); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--sage-100); color: var(--brand-600); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--sage-100); font-weight: 600; }
.nav .btn { margin-left: 8px; color: var(--on-brand); }
.nav .btn:hover { background: var(--brand-600); color: var(--on-brand); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--control-bg); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--sage-100); }
  .nav .btn { margin: 14px 0 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; place-items: center; color: #fff; text-align: center; isolation: isolate; overflow: hidden; background: #2f3a2c; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 40, 28, calc(.55 * var(--k, 1))), rgba(30, 40, 28, calc(.35 * var(--k, 1))) 45%, rgba(30, 40, 28, calc(.70 * var(--k, 1)))); }
.hero .inner { padding: 80px 20px; width: min(900px, 100%); }
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero h1 small { display: block; font-size: .42em; letter-spacing: .3em; font-weight: 500; margin-bottom: .6em; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 640px; margin: 0 auto 28px; color: #f1f4ea; }
.page-hero { background: var(--hero-grad); padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 6vw, 64px); text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; margin-bottom: .3em; }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }

/* ---------- split / cards ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split img.tall { aspect-ratio: 4 / 5; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; -webkit-backdrop-filter: blur(var(--card-blur)) saturate(var(--card-sat)); backdrop-filter: blur(var(--card-blur)) saturate(var(--card-sat)); }
.cat-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; box-shadow: var(--shadow-sm); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(25, 34, 24, .78)); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card span { position: absolute; left: 18px; right: 18px; bottom: 14px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.cat-card small { display: block; font: 400 .8rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 2px; }

.hours { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(var(--card-sat)); backdrop-filter: blur(var(--card-blur)) saturate(var(--card-sat)); }
.hours h3 { margin-bottom: 14px; }
.hours dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 500; text-align: right; }
.hours .today { color: var(--brand); font-weight: 600; }
.cta-band { background: var(--brand); color: var(--on-brand); text-align: center; padding: clamp(40px, 7vw, 72px) 0; }
.cta-band h2 { color: var(--on-brand); }
.cta-band .btn.outline-light { border-color: currentColor; color: var(--on-brand); }
.cta-band p { color: var(--on-brand); opacity: .92; max-width: 600px; margin: 0 auto 24px; }

blockquote.quote { margin: 0; padding: 34px 38px; background: var(--card-bg); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(var(--card-sat)); backdrop-filter: blur(var(--card-blur)) saturate(var(--card-sat)); border-left: 4px solid var(--leaf); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-family: var(--font-head); font-size: 1.5rem; line-height: 1.4; }
blockquote.quote cite { display: block; margin-top: 14px; font: 500 .9rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); font-style: normal; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }

/* ---------- team ---------- */
.person { text-align: center; padding-bottom: 24px; }
.person .photo { aspect-ratio: 5 / 6; object-fit: cover; object-position: center 20%; width: 100%; }
.person h3 { margin: 18px 12px 2px; }
.person .role { color: var(--brand); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin: 0 0 16px; }
.person .links { font-size: .9rem; color: var(--muted); margin: 14px 12px 0; }
.person .links a { color: var(--muted); }

/* ---------- treatments ---------- */
.tools { position: sticky; top: var(--header-h); z-index: 20; background: var(--tools-bg); -webkit-backdrop-filter: blur(max(8px, var(--card-blur))) saturate(var(--card-sat)); backdrop-filter: blur(max(8px, var(--card-blur))) saturate(var(--card-sat)); border-bottom: 1px solid var(--line); padding: 12px 0; }
.tools .row { display: flex; gap: 14px; align-items: center; }
.search { flex: none; width: 260px; position: relative; }
.search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px 0 40px; font: inherit; font-size: .95rem; background: var(--control-bg); color: var(--ink); }
.search svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; flex: 1; }
.chip { flex: none; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--control-bg); color: var(--ink); font: 500 .85rem var(--font-body); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--leaf); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (max-width: 800px) { .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-right: 36px; } .chips::-webkit-scrollbar { display: none; }  .tools .row { flex-direction: column; align-items: stretch; } .search { width: 100%; } .cat { scroll-margin-top: calc(var(--header-h) + 8px); } }
.cat { padding-top: 44px; scroll-margin-top: calc(var(--header-h) + 120px); }
.cat > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.cat > h2 small { font: 400 .9rem var(--font-body); color: var(--muted); letter-spacing: .04em; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.item { display: flex; flex-direction: column; }
.item .pic { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: var(--sage-100); }
.item .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item h3 { font-size: 1.35rem; margin: 0; }
.meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dur { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.dur svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.price { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--brand); }
.item .desc { color: var(--muted); font-size: .96rem; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.steps li { font-size: .8rem; background: var(--sage-100); color: var(--brand-600); border-radius: 999px; padding: 3px 11px; }
.item .btn { margin-top: auto; align-self: flex-start; }
.item .body > .btn { margin-top: 10px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 40px; }
[hidden] { display: none !important; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(var(--card-sat)); backdrop-filter: blur(var(--card-blur)) saturate(var(--card-sat)); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input[type=text], input[type=email], textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; font: inherit; background: var(--surface-2); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(117, 135, 29, .22); background: var(--surface); }
.field.invalid input, .field.invalid textarea { border-color: #b3382c; }
.err { color: #b3382c; font-size: .85rem; margin-top: 4px; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sage-100); color: var(--brand-600); font-size: .95rem; }
.form-status.bad { background: #fbe9e6; color: #8d2a20; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-100); display: grid; place-items: center; }
.info-list svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-list b { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.info-list a { color: var(--ink); }
.info-list li > div { min-width: 0; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #d4dccb; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #d4dccb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 600 .8rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-logo { background: #fff; border-radius: 12px; padding: 8px 14px; display: inline-block; margin-bottom: 14px; }
.foot-logo img { height: 34px; width: auto; }
.legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #aeb9a5; }

/* ---------- error pages ---------- */
.err-page { overflow: hidden; min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; position: relative; isolation: isolate; background: #2f3a2c; }
.err-page > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: blur(3px) saturate(.9); }
.err-page::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--err-overlay); }
.err-card { width: min(520px, 100%); text-align: center; background: var(--err-bg); -webkit-backdrop-filter: blur(max(16px, var(--card-blur))) saturate(1.3); backdrop-filter: blur(max(16px, var(--card-blur))) saturate(1.3); border: 1px solid var(--card-border); border-radius: 26px; padding: 34px 30px 28px; box-shadow: 0 18px 60px rgba(37, 48, 42, .22); }
.err-card .brand { display: inline-block; margin-bottom: 18px; }
.err-card .brand img { height: 38px; width: auto; }
.err-icon { width: 68px; height: 68px; margin: 0 auto 8px; border-radius: 20px; display: grid; place-items: center; background: var(--sage-100); border: 1px solid var(--line); }
.err-icon svg { width: 32px; height: 32px; stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.err-code { font-family: var(--font-head); font-size: clamp(4.2rem, 16vw, 6rem); font-weight: 700; line-height: 1; color: var(--leaf); letter-spacing: -.02em; margin: 6px 0 4px; }
.err-card h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: .35em; }
.err-card p { color: var(--muted); max-width: 40ch; margin: 0 auto 1em; font-size: 1rem; }
.err-card .btn-row { justify-content: center; margin-top: 20px; }
.err-links { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .9rem; }
.err-links a { color: var(--brand); text-decoration: none; }
.err-links a:hover { text-decoration: underline; }
.err-card .err-meta { margin: 16px auto 0; font-size: .78rem; color: var(--muted); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }
@media print { .site-header, .tools, .cta-band, .btn, .menu-btn { display: none !important; } body { background: #fff; } }

/* ---------- light / dark switch for visitors (shown when enabled in Appearance) ---------- */
.bar-tools { display: flex; align-items: center; gap: 8px; }
.mode-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--control-bg); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.mode-btn:hover { background: var(--sage-100); }
.mode-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-btn .sun { display: none; } html[data-mode="dark"] .mode-btn .sun { display: block; } html[data-mode="dark"] .mode-btn .moon { display: none; }
html[data-mode="dark"] { color-scheme: dark; }
html[data-mode="dark"] .btn.light { color: #25302a; }
@media (max-width: 920px) { .bar-tools .menu-btn { display: inline-flex; } }

.bar .nav { margin-left: auto; } .bar-tools { margin-left: 0; } @media (max-width: 920px) { .bar .nav { margin-left: 0; } .bar-tools { margin-left: auto; } }

/* ---------- home link, floating buttons (home on phones, back to top), sticky filter bar on phones ---------- */
.nav-home { display: inline-flex; align-items: center; gap: 7px; } .nav-home svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; z-index: 45; }
.fab-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: opacity .25s, transform .25s, background .2s; }
.fab-btn:hover { background: var(--brand-600); color: var(--on-brand); }
.fab-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab-home { display: none; }
.fab-top { opacity: 0; pointer-events: none; transform: translateY(10px); } .fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 920px) { .fab-home { display: grid; } }
@media (max-width: 800px) {
  body.has-tools .site-header { position: relative; }           /* only the search and category bar stays on screen while scrolling */
  .tools { top: 0; padding: 8px 0; } .tools .row { gap: 8px; } .search input { height: 40px; } .search svg { top: 11px; } .chip { height: 34px; font-size: .8rem; padding: 0 13px; }
  .cat { scroll-margin-top: 112px; }
}
@media print { .fab { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .fab-btn { transition: none; } }

/* ---------- language menu ---------- */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--control-bg); color: var(--ink); font-size: .86rem; font-weight: 500; }
.lang summary::-webkit-details-marker { display: none; } .lang summary:hover { background: var(--sage-100); }
.lang summary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 150px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; }
.lang li a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.lang li a:hover { background: var(--sage-100); } .lang li a[aria-current="true"] { background: var(--sage-100); color: var(--brand); font-weight: 600; }
.hours-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Chinese and Amharic: suitable fonts, and no capital letters / wide tracking (they do not exist in those scripts) ---------- */
html:lang(zh) { --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif; --font-head: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif; }
html:lang(am) { --font-body: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", "Segoe UI", sans-serif; --font-head: "Noto Serif Ethiopic", "Nyala", "Abyssinica SIL", Georgia, serif; }
html:lang(zh) body, html:lang(am) body { line-height: 1.8; }
html:lang(zh) .btn, html:lang(am) .btn, html:lang(zh) .nav a, html:lang(am) .nav a, html:lang(zh) .eyebrow, html:lang(am) .eyebrow, html:lang(zh) .hero h1 small, html:lang(am) .hero h1 small, html:lang(zh) .page-hero h1, html:lang(am) .page-hero h1, html:lang(zh) .person .role, html:lang(am) .person .role,
html:lang(zh) .cat-card small, html:lang(am) .cat-card small, html:lang(zh) label, html:lang(am) label, html:lang(zh) .site-footer h4, html:lang(am) .site-footer h4,
html:lang(zh) blockquote.quote cite, html:lang(am) blockquote.quote cite { text-transform: none; letter-spacing: .03em; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(am) h1, html:lang(am) h2, html:lang(am) h3 { letter-spacing: .02em; font-weight: 600; }
html:lang(fr) .nav a { letter-spacing: .05em; }
@media (max-width: 1100px) and (min-width: 921px) { html:lang(fr) .nav a { padding: 10px 9px; font-size: .86rem; } }
@media (max-width: 920px) { .lang summary span { display: none; } .lang summary { padding: 0 11px; } }

/* menu labels stay on one line; on wide screens the Home link is just the house icon (the text is kept for screen readers and the phone menu) */
.nav a { white-space: nowrap; }
@media (min-width: 921px) {
  .nav-home { padding-left: 12px; padding-right: 12px; }
  .nav-home-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1180px) and (min-width: 921px) {
  .nav a { padding: 10px 8px; font-size: .82rem; letter-spacing: .04em; }
  .nav .btn { padding: 0 14px; margin-left: 4px; }
  .lang summary span { display: none; } .lang summary { padding: 0 11px; }
  .bar { gap: 12px; }
}
@media (max-width: 1020px) and (min-width: 921px) { html:lang(fr) .nav a { padding: 10px 6px; font-size: .78rem; letter-spacing: .02em; } html:lang(fr) .nav-home { display: none; } }
