/* ==========================================================================
   Rajawat Physiotherapy Clinic — stylesheet
   Theme: the practice's own identity — deep navy and forest green, sampled
   from the clinic emblem, on a cool off-white.
   Hand-written, no build step. Design tokens live in :root.
   ========================================================================== */

:root {
  /* Palette. Navy and green are the emblem's own colours (#35376D, #4B5C3F),
     darkened slightly so text and buttons clear contrast at body sizes. */
  --ground:       #F7F7FA;
  --ground-deep:  #EDEDF3;
  --paper:        #FFFFFF;
  --ink:          #1B1D33;
  --ink-soft:     #474A66;
  --ink-mute:     #7C7F98;
  --brand:        #2E3168;
  --brand-dark:   #22254E;
  --brand-light:  #E6E7F0;
  --accent:       #4B5C3F;
  --accent-dark:  #3A4830;
  --accent-light: #E7EBE2;
  --line:         #DDDEE8;
  --ok:           #2F7D5F;
  --warn:         #B07A22;
  --danger:       #B4402F;

  /* Type */
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space and shape */
  --wrap: 1180px;
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow:    0 1px 2px rgba(27, 29, 51, .05), 0 8px 24px rgba(27, 29, 51, .06);
  --shadow-lg: 0 2px 6px rgba(27, 29, 51, .06), 0 20px 48px rgba(27, 29, 51, .12);
  --section-y: clamp(3.5rem, 7vw, 6rem);
}

/* --- reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .88em;
  background: var(--ground-deep);
  padding: .12em .4em;
  border-radius: 5px;
}
pre {
  background: var(--ink); color: var(--ground);
  padding: 1rem; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: .85rem;
}
pre code { background: none; padding: 0; color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Names a section for screen readers where the visual design already makes the
   grouping obvious and a printed heading would just be noise. Keeps the heading
   outline from jumping h1 straight to h3. */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* --- layout helpers ------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 820px); }
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.mt { margin-top: 2rem; }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--ground-deep); }

.section-head { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-title { margin-bottom: .5rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-light);
  padding: .38rem .8rem; border-radius: 999px;
  margin-bottom: 1rem;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

/* auto-fit keeps packing columns in as the container grows, so a "3-up" grid
   silently becomes 4-up on a wide screen — which leaves the 9 services and the
   6 reasons-to-choose-us with orphan cards on a ragged last row. Pin the column
   count once there is room for it. */
@media (min-width: 60rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 1.85rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-xs { padding: .34rem .7rem; font-size: .8rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-outline:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* --- top bar and header --------------------------------------------------- */

.topbar {
  background: var(--brand-dark); color: color-mix(in srgb, #fff 82%, transparent);
  font-size: .82rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
/* The emblem is the clinic's own artwork on a transparent ground — it needs no
   tile or backing colour behind it, and must not be tinted. */
.brand-mark {
  width: 2.9rem; height: 2.9rem; flex: none;
  object-fit: contain; display: block;
}
.brand-mark-lg { width: 4.4rem; height: 4.4rem; margin-inline: auto; }
/* On the dark footer and admin bar the navy strokes would disappear, so the
   emblem sits on a small light disc there. */
.site-footer .brand-mark,
.admin-header .brand-mark {
  background: #fff; border-radius: 50%; padding: 3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.08rem; }
.brand-text small { font-size: .72rem; color: var(--ink-mute); letter-spacing: .04em; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; position: relative; padding-block: .35rem; }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* The nav CTA is an <a> inside .site-nav, so the nav link colour rule would
   otherwise out-specify .btn-primary and render the label invisible. */
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }
.site-nav a.btn::after { display: none; }

/* Visually hidden but still focusable and still in the accessibility tree —
   see the comment in base.html. `display: none` here would break keyboard
   access to the mobile menu. */
.nav-toggle {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.nav-burger { display: none; }

/* --- hero ----------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--brand-light), transparent 65%),
    radial-gradient(40rem 24rem at 5% 110%, var(--accent-light), transparent 60%),
    var(--ground);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy h1 { margin-bottom: .6rem; }
.hero-copy h1 em { font-style: normal; color: var(--brand); }
.hero-copy .lede { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--ink-soft); }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points .ico { color: var(--brand); }

.hero-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.hero-card > p { color: var(--ink-mute); font-size: .92rem; margin-bottom: 1.1rem; }

.mode-tile {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem; margin-bottom: .7rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; background: var(--ground);
  transition: border-color .15s ease, transform .12s ease;
}
.mode-tile:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.mode-ico { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); border-radius: 10px; }
.mode-ico .ico { width: 1.3rem; height: 1.3rem; }
.mode-text { display: flex; flex-direction: column; flex: 1; }
.mode-text strong { font-size: .98rem; }
.mode-text small { color: var(--ink-mute); font-size: .8rem; }
.mode-fee { font-weight: 700; color: var(--accent-dark); font-size: 1rem; }
.hero-card-foot { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--ink-mute); }

/* --- stats ---------------------------------------------------------------- */

.stats-strip { background: var(--brand); color: #fff; padding-block: 2.25rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; }
.stat span { font-size: .86rem; opacity: .82; }

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card-icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand);
  border-radius: 12px; margin-bottom: 1rem;
}
.card-icon .ico { width: 1.5rem; height: 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* Column layout so "Learn more" sits on the card's baseline instead of
   floating directly under a description whose length varies card to card. */
.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.service-card .card-link { margin-top: auto; padding-top: 1rem; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); color: inherit; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; font-size: .88rem; color: var(--accent-dark); }
.service-card:hover .card-link .ico { transform: translateX(3px); }
.card-link .ico { transition: transform .15s ease; }

.post-card { display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; font-size: .78rem; color: var(--ink-mute); }
.post-card h3 { font-size: 1.1rem; }
.post-card h3 a { text-decoration: none; color: inherit; }
.post-card h3 a:hover { color: var(--brand); }
.post-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; font-size: .82rem; color: var(--ink-mute); }
.post-foot .card-link { margin: 0; }

.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--brand-light); color: var(--brand-dark);
  padding: .22rem .6rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.tag-video  { background: var(--accent-light); color: var(--accent-dark); }
.tag-clinic { background: var(--brand-light);  color: var(--brand-dark); }

.review-card { margin: 0; display: flex; flex-direction: column; }
.review-card .stars { display: flex; gap: .1rem; color: var(--accent); margin-bottom: .7rem; }
.review-card p { font-style: italic; flex: 1; }
.review-card footer { margin-top: 1rem; display: flex; flex-direction: column; font-style: normal; }
.review-card footer strong { font-size: .92rem; }
.review-card footer span { font-size: .8rem; color: var(--ink-mute); }

.cred-card h3 { font-size: 1rem; }

/* --- split section -------------------------------------------------------- */

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { position: relative; }
.media-frame {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--brand-light); border: 1px solid var(--line);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: var(--brand); text-align: center; padding: 1.5rem;
}
.media-placeholder .ico { width: 3rem; height: 3rem; opacity: .5; }
.media-placeholder span { font-weight: 600; font-size: .95rem; }
.media-placeholder small { font-family: ui-monospace, monospace; font-size: .78rem; color: var(--ink-mute); }
.media-badge {
  position: absolute; right: -.75rem; bottom: 1.75rem;
  background: var(--accent); color: #fff;
  padding: .9rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); text-align: center;
}
.media-badge strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; }
.media-badge span { font-size: .74rem; opacity: .9; }
.split-copy .creds { font-size: .6em; color: var(--ink-mute); font-family: var(--font-body); }
.split-copy .role { color: var(--accent-dark); font-weight: 600; margin-top: -.4rem; }
.split-copy .quals {
  font-size: .84rem; color: var(--ink-mute); letter-spacing: .04em;
  text-transform: uppercase; font-weight: 600; margin-top: -.6rem;
}

/* Treatment techniques — a plain list of methods, so it reads as a list and
   not as another grid of cards competing with the services above it. */
.technique-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* The clinic's own motto, set the way it appears on their letterhead. */
.footer-motto {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: color-mix(in srgb, #fff 78%, transparent);
  margin: 0 0 1.5rem;
  padding-top: .5rem;
}

.technique { background: var(--paper); padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.technique strong { font-family: var(--font-head); font-size: 1.02rem; }
.technique span { font-size: .88rem; color: var(--ink-soft); }
.about-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .55rem; color: var(--ink-soft); }
.check-list .ico { color: var(--brand); margin-top: .28em; }

/* --- steps ---------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin-bottom: 2.5rem; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step-num {
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: .9rem; margin-bottom: .8rem;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* --- page head and breadcrumbs -------------------------------------------- */

.pagehead {
  background: linear-gradient(180deg, var(--brand-light), var(--ground));
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.pagehead h1 { margin-bottom: .35rem; max-width: 22ch; }
.pagehead .lede { max-width: 52ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--ink-mute); margin-bottom: .9rem; }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* --- article layout ------------------------------------------------------- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.article { max-width: 44rem; }
.article h2 { margin-top: 2.5rem; }
.article h2:first-of-type { margin-top: 1.5rem; }
.article p, .article li { color: var(--ink-soft); }
.article .lede { color: var(--ink); font-weight: 400; }

.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .84rem; color: var(--ink-mute); margin-bottom: 1.25rem; }

.pull-quote {
  margin: 2rem 0; padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-size: 1.12rem; color: var(--ink);
}

.symptom-box, .tips-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; background: var(--paper); margin-bottom: 1rem;
}
.symptom-box { border-left: 4px solid var(--accent); }
.tips-box    { border-left: 4px solid var(--brand); }
.symptom-box ul, .tips-box ul { margin: 0; }
.symptom-box li, .tips-box li { margin-bottom: .4rem; }

.protocol { list-style: none; padding: 0; counter-reset: p; }
.protocol li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.protocol li:last-child { border-bottom: none; }
.protocol-num {
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand-dark); font-weight: 700; font-size: .9rem;
}
.protocol h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.protocol p { margin: 0; font-size: .93rem; }

.post-disclaimer {
  display: flex; gap: .75rem; margin-top: 2.5rem; padding: 1rem 1.25rem;
  background: var(--ground-deep); border-radius: var(--radius); font-size: .9rem;
}
.post-disclaimer .ico { color: var(--warn); flex: none; margin-top: .2em; }
.post-disclaimer p { margin: 0; }

.article-aside { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 6rem; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.aside-card h3 { font-size: 1rem; display: flex; align-items: center; gap: .45rem; }
.aside-card p { font-size: .9rem; color: var(--ink-soft); }
.aside-card .btn { margin-top: .5rem; }
.aside-cta { background: var(--brand-light); border-color: color-mix(in srgb, var(--brand) 20%, var(--line)); }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links li { border-bottom: 1px dashed var(--line); }
.aside-links li:last-child { border-bottom: none; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; text-decoration: none; font-size: .9rem; color: var(--ink-soft); }
.aside-links a:hover { color: var(--brand); }
.aside-small { font-size: .82rem; color: var(--ink-mute); margin: .75rem 0 0; }

.hours-list { list-style: none; padding: 0; margin: 0; }
/* The day label and the hours both have to fit a narrow sidebar. Without
   wrapping, "Monday – Saturday" and "10:00 AM – 2:00 PM, 5:00 PM – 9:00 PM"
   each break mid-phrase and interleave. Keep the label on one line and let the
   hours drop to their own full-width line when there is no room beside it. */
.hours-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.hours-list li:last-child { border-bottom: none; }
.hours-list span { color: var(--ink-mute); white-space: nowrap; }
.hours-list strong { text-align: right; font-weight: 600; margin-left: auto; }

.pill-grid { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.pill {
  background: var(--paper); border: 1px solid var(--line);
  padding: .55rem 1.1rem; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-size: .9rem; font-weight: 500;
}
.pill:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* --- FAQ ------------------------------------------------------------------ */

.faq-section { background: var(--ground-deep); }
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 1.35rem; font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; width: 1rem; height: 1rem; flex: none; }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; background: var(--brand);
  left: 50%; top: 50%; translate: -50% -50%; border-radius: 2px;
  transition: opacity .15s ease, rotate .2s ease;
}
.faq-sign::before { width: 1rem; height: 2px; }
.faq-sign::after  { width: 2px; height: 1rem; }
.faq[open] .faq-sign::after { opacity: 0; rotate: 90deg; }
.faq-body { padding: 0 1.35rem 1.15rem; }
.faq-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* --- CTA band ------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 42ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- forms ---------------------------------------------------------------- */

.field { display: block; margin-bottom: 1rem; }
.field-label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.field-label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; }
.field-sm .field-label { font-size: .78rem; }
.field-sm input, .field-sm select { padding: .45rem .65rem; font-size: .88rem; }
.field-inline { max-width: 16rem; }

.field-error { display: block; color: var(--danger); font-size: .82rem; margin-top: .3rem; font-weight: 500; }

.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: 1rem; }

.alert {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .9rem 1.15rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: .92rem;
}
.alert p { margin: 0; }
.alert .ico { flex: none; margin-top: .18em; }
.alert-error   { background: color-mix(in srgb, var(--danger) 10%, var(--paper)); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-success { background: color-mix(in srgb, var(--ok) 10%, var(--paper)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.alert-note    { background: var(--ground-deep); color: var(--ink-soft); border: 1px solid var(--line); }
.alert-warn    { background: color-mix(in srgb, var(--warn) 12%, var(--paper)); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); }

/* --- booking page --------------------------------------------------------- */

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 1.5rem; margin: 0 0 1.25rem;
  /* A <fieldset> defaults to min-content sizing, so without this the scrolling
     day-strip inside it forces the whole grid column wider than the viewport. */
  min-width: 0;
}
.booking-form { min-width: 0; }
.step legend {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  padding: 0 .5rem; margin-left: -.5rem;
}
.step legend .step-num { margin: 0; width: 1.9rem; height: 1.9rem; font-size: .85rem; }

.mode-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .9rem; }
.mode-option { cursor: pointer; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-body {
  display: flex; flex-direction: column; gap: .3rem; height: 100%;
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; background: var(--ground); position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.mode-body strong { font-size: 1rem; }
.mode-body small { color: var(--ink-mute); font-size: .82rem; }
.mode-body .mode-fee { margin-top: .4rem; }
.mode-option input:checked + .mode-body { border-color: var(--brand); background: var(--brand-light); }
.mode-option input:focus-visible + .mode-body { outline: 3px solid var(--accent); outline-offset: 2px; }

.daystrip {
  display: flex; gap: .5rem; overflow-x: auto;
  padding: .25rem .25rem 1rem; margin-bottom: .5rem;
  scrollbar-width: thin;
}
.day {
  flex: none; width: 4.25rem; padding: .6rem .3rem;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.day:hover:not(:disabled) { border-color: var(--brand); }
.day-wd { font-size: .72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }
.day-num { font-family: var(--font-head); font-size: 1.3rem; line-height: 1; }
.day-mo { font-size: .7rem; color: var(--ink-mute); }
.day.is-selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.day.is-selected .day-wd, .day.is-selected .day-mo { color: rgba(255,255,255,.8); }
.day-closed { opacity: .38; cursor: not-allowed; text-decoration: line-through; }

.slots-block { margin-top: 1.25rem; border-top: 1px dashed var(--line); padding-top: 1.25rem; }
.slots-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.slots-head h3 { margin: 0; font-size: 1.02rem; }
.slots-status { font-size: .85rem; color: var(--ink-mute); }
.slots-status.is-ok    { color: var(--ok); font-weight: 600; }
.slots-status.is-empty { color: var(--warn); font-weight: 600; }
.slots-status.is-error { color: var(--danger); font-weight: 600; }
.slots-status.is-loading { color: var(--ink-mute); font-style: italic; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr)); gap: .5rem; }
.slot {
  padding: .6rem .4rem; font: inherit; font-size: .88rem; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.slot:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-light); }
.slot.is-selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot.is-taken { opacity: .35; cursor: not-allowed; text-decoration: line-through; background: var(--ground-deep); }

.booking-aside { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 6rem; }
.summary-card { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 1.4rem; }
.summary-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: .9rem; }
.summary-card dl { margin: 0; }
.summary-card dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem 0; border-bottom: 1px dashed rgba(255,255,255,.2); font-size: .89rem; }
.summary-card dt { color: rgba(255,255,255,.72); }
.summary-card dd { margin: 0; font-weight: 600; text-align: right; }
.summary-card .sum-fee { border-bottom: none; font-size: 1rem; padding-top: .7rem; }
.summary-card .sum-fee dd { color: #F6C9B5; }
.summary-note { display: flex; gap: .55rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .84rem; }
.summary-note .ico { flex: none; margin-top: .2em; opacity: .85; }
.summary-note p { margin: 0; color: rgba(255,255,255,.85); }

/* --- confirmation --------------------------------------------------------- */

.confirm-hero { background: linear-gradient(180deg, var(--brand-light), var(--ground)); padding-block: clamp(2.5rem, 5vw, 4rem); }
.confirm-tick {
  display: grid; place-items: center; width: 4rem; height: 4rem;
  margin: 0 auto 1.25rem; border-radius: 50%;
  background: var(--brand); color: #fff;
}
.confirm-tick .ico { width: 2rem; height: 2rem; }
.ref-inline { background: var(--paper); border: 1px dashed var(--brand); padding: .1rem .5rem; border-radius: 6px; font-family: ui-monospace, monospace; }

.appt-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.appt-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1.25rem; }
.appt-head h2 { margin: .6rem 0 0; font-size: 1.5rem; }
.appt-ref { text-align: right; }
.appt-ref small { display: block; font-size: .74rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
.appt-ref strong { font-family: ui-monospace, monospace; font-size: 1.1rem; color: var(--brand); }

.appt-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 1.15rem; background: var(--ground); border-radius: var(--radius); }
.appt-details dt { font-size: .76rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.appt-details dd { margin: .2rem 0 0; font-weight: 600; }

.meet-box { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.25rem; background: var(--ground); }
.meet-box h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
/* Deliberately NOT flex. This paragraph mixes bare text with <strong> and <a>,
   and flex turns each of those inline runs into its own item — the sentence
   ends up laid out side by side in columns and reads out of order. A hanging
   indent gives the same outdented-icon look in normal inline flow. */
.meet-box .note {
  font-size: .9rem; color: var(--ink-soft);
  padding-left: 1.65em; text-indent: -1.65em;
}
.meet-box .note .ico { margin-right: .5em; color: var(--warn); }
.meet-url { font-family: ui-monospace, monospace; font-size: .82rem; color: var(--ink-mute); word-break: break-all; margin-top: .6rem; }
.meet-tips { margin: 1rem 0 0; padding-left: 1.15rem; font-size: .86rem; color: var(--ink-soft); }
.meet-tips li { margin-bottom: .3rem; }

.appt-notes { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.appt-notes h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: .35rem; }
.appt-notes p { margin: 0; color: var(--ink-soft); }
.appt-foot { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--ink-mute); }

.next-steps { margin-top: 2.5rem; }
.confirm-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

.lookup-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.5rem; }
.lookup-form .field { flex: 1; min-width: 14rem; margin: 0; }
.lookup-form input { text-transform: uppercase; font-family: ui-monospace, monospace; }

.error-page { padding-block: 3rem; }
.error-code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem); color: var(--brand-light); line-height: 1; display: block; }

/* --- contact -------------------------------------------------------------- */

.contact-layout { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.info-card h3 { font-size: 1rem; }
.info-card p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .5rem; }
.info-card a { text-decoration: none; }
.contact-form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.map-section { height: clamp(18rem, 40vh, 26rem); }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }

/* --- footer --------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(250,247,242,.72); padding-top: clamp(2.5rem, 5vw, 4rem); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h2 { color: #fff; font-size: .95rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(250,247,242,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand-footer { margin-bottom: 1rem; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(250,247,242,.5); }
.footer-about p { max-width: 34ch; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .8rem; }
.footer-contact .ico { flex: none; margin-top: .2em; color: var(--accent); }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.25rem; }

/* --- floating quick actions ----------------------------------------------- */

.quick-actions { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }
.qa { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); }
.qa .ico { width: 1.4rem; height: 1.4rem; }
.qa-call { background: var(--brand); }
.qa-wa   { background: #25D366; }
.qa-book { background: var(--accent); width: auto; border-radius: 999px; padding: 0 1.1rem; gap: .45rem; display: inline-flex; align-items: center; font-weight: 600; font-size: .9rem; height: 3rem; }
.qa:hover { filter: brightness(1.08); color: #fff; }

/* --- admin ---------------------------------------------------------------- */

.admin-body { background: var(--ground-deep); }
.admin-header { background: var(--ink); color: #fff; padding-block: .8rem; position: sticky; top: 0; z-index: 40; }
/* Wraps rather than overflowing: the nav is a fixed row of links and on a
   phone it used to push the whole admin page ~250px wider than the viewport. */
.admin-header-inner { display: flex; align-items: center; gap: .75rem 1.5rem; justify-content: space-between; flex-wrap: wrap; }
.admin-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.admin-brand strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.1; }
.admin-brand small { font-size: .7rem; color: rgba(255,255,255,.55); letter-spacing: .1em; text-transform: uppercase; }
.admin-nav { display: flex; gap: .5rem 1.25rem; flex: 1 1 100%; flex-wrap: wrap; order: 3; }
@media (min-width: 46rem) { .admin-nav { flex: 1; order: 0; } }
.admin-nav a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; font-weight: 500; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: #fff; }
.admin-nav a[aria-current="page"] { font-weight: 700; }
.admin-header .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); }
.admin-header .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.admin-main { padding-block: 2rem 4rem; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-head h1 { font-size: 1.9rem; margin-bottom: .1rem; }
.admin-head p { margin: 0; }
.admin-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.35rem; }
.admin-stat strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--brand); }
.admin-stat span { font-size: .84rem; color: var(--ink-mute); }
.admin-stat-warn strong { color: var(--warn); }

.admin-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-section h2 { font-size: 1.25rem; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; align-items: start; }

.admin-filters { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.admin-filters .field { margin: 0; min-width: 10rem; }

.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 54rem; }
.admin-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); padding: .6rem .75rem; border-bottom: 2px solid var(--line); }
.admin-table td { padding: .9rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: var(--ground); }
.admin-table a { text-decoration: none; }
.ref { font-size: .78rem; color: var(--brand); background: var(--brand-light); }

.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge-ok   { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge-warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.badge-bad  { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.badge-done { background: var(--brand-light); color: var(--brand-dark); }

.actions-cell { min-width: 14rem; }
.action-row { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .5rem; }
.action-row form { margin: 0; }
.manage summary { cursor: pointer; font-size: .8rem; color: var(--ink-mute); }
.manage-body { margin-top: .6rem; padding: .75rem; background: var(--ground); border-radius: var(--radius-sm); }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .6rem; }
.inline-form .field { margin: 0; }
.inline-form:last-child { margin-bottom: 0; }
.notes { margin-top: .4rem; }
.notes summary { cursor: pointer; font-size: .78rem; color: var(--brand); }
.notes p { margin: .35rem 0 0; font-size: .84rem; color: var(--ink-soft); max-width: 22rem; }

.empty-state { color: var(--ink-mute); font-style: italic; padding: 1.5rem 0; text-align: center; }
.blocked-list { list-style: none; padding: 0; margin: 0; }
.blocked-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--line); }
.hours-admin { margin-bottom: 1.25rem; }

.login-body { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.login-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; width: min(100%, 24rem); text-align: center; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 1.4rem; margin: 1rem 0 .2rem; }
.login-card .stack-form { text-align: left; margin-top: 1.5rem; }
.login-card pre { text-align: left; margin: .75rem 0 0; }
.login-back { margin: 1.5rem 0 0; font-size: .86rem; }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-grid, .split, .article-layout, .booking-layout, .contact-layout {
    grid-template-columns: 1fr;
  }
  .article-aside, .booking-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .media-frame { aspect-ratio: 16 / 10; }
  .media-badge { right: 1rem; }
}

@media (max-width: 760px) {
  .topbar-links { display: none; }

  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--paper);
  }
  .nav-burger span { display: block; width: 1.15rem; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  /* The checkbox is invisible, so move its focus ring onto the burger it
     controls — otherwise tabbing to the menu button shows nothing. */
  .nav-toggle:focus-visible + .nav-burger {
    outline: 3px solid var(--accent); outline-offset: 2px;
  }
  /* Turn the burger into an X while the menu is open. */
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .85rem 0; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .nav-cta { margin-top: 1rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .quick-actions { right: .75rem; bottom: .75rem; flex-direction: row; }
  .qa-book span { display: none; }
  .qa-book { width: 3rem; padding: 0; border-radius: 50%; }
  .appt-ref { text-align: left; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
}

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

/* --- admin day view ------------------------------------------------------- */

.day-nav { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; margin-bottom: 1.5rem; }
.day-nav .is-current { background: var(--brand-light); border-color: var(--brand); }
.day-jump { margin-left: auto; }
.day-jump .field-label { font-size: .74rem; }
.day-stats { margin-bottom: 2rem; }
.day-window-sub { font-size: .84rem; margin: -.35rem 0 1rem; }
.day-empty { padding: 2rem 0; text-align: center; }

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

.tl-slot {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: .25rem 1rem;
  align-items: start;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

/* The status stripe carries the same meaning as the badge, so the row can be
   read down the left edge without stopping to read each pill. */
.tl-busy  { border-left: 4px solid var(--ink-mute); }
.tl-warn  { border-left-color: var(--warn); }
.tl-ok    { border-left-color: var(--ok); }
.tl-done  { border-left-color: var(--brand); }
.tl-bad   { border-left-color: var(--danger); }
.tl-outside { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 5%, var(--paper)); }

.tl-free {
  background: transparent;
  border-style: dashed;
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: var(--line);
  color: var(--ink-mute);
}
.tl-free .tl-body em { font-style: normal; font-size: .9rem; }

.tl-enquiry { border-left: 4px solid var(--warn); }

.tl-time {
  font-size: .84rem; font-weight: 600; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: .1rem;
}
.tl-free .tl-time { font-weight: 500; color: var(--ink-mute); }

.tl-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.tl-body strong { font-size: .96rem; }
.tl-meta, .tl-contact { font-size: .82rem; color: var(--ink-soft); }
.tl-contact { color: var(--ink-mute); }
.tl-notes { font-size: .82rem; color: var(--ink-soft); margin-top: .25rem; padding-left: .6rem; border-left: 2px solid var(--line); }

.tl-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.tl-ref { font-size: .72rem; color: var(--ink-mute); background: var(--ground-deep); }

@media (max-width: 720px) {
  .tl-slot { grid-template-columns: minmax(0, 1fr); }
  .tl-tags { justify-content: flex-start; }
  .day-jump { margin-left: 0; }
}

@media print {
  .topbar, .site-header, .site-footer, .quick-actions, .cta-band, .booking-aside { display: none !important; }
  body { background: #fff; }
  .appt-card { box-shadow: none; border: 1px solid #999; }
  /* The day view is the page most likely to be printed and pinned up. */
  .admin-header, .day-nav, .admin-head .btn { display: none !important; }
  .tl-slot { break-inside: avoid; }
}
