/* lp.css v0.23.0 — LeatherPets
   Palette taken from Abby's hand-drawn flyer: sage field, cream panels,
   deep-green ink, hand-lettered section titles with a hand-drawn rule.
   Mobile-first. */

:root {
  --sage:       #C9DDB3;
  --sage-soft:  #DAE8C8;
  --sage-deep:  #6E8F52;   /* borders, fills, decorative — non-text (3:1 rule) */
  --sage-text:  #456029;   /* sage-family green for TEXT: 6.55:1 on cream, 4.89:1 on sage */
  --cream:      #F8F6EC;
  --ink:        #354A2B;
  --ink-soft:   #455438;   /* secondary text: 7.52:1 on cream, 5.61:1 on sage (was #566B4A, 4.02 on sage) */
  --white:      #FFFFFF;

  --radius: 14px;
  --shadow: 0 2px 12px rgba(53, 74, 43, 0.13);
  --wrap: 1080px;   /* header, content and footer all use this — a page that
                       narrows its content must narrow all three (page-narrow) */

  --font-script: 'Caveat', 'Bradley Hand', cursive;
  --font-head: 'Quicksand', 'Avenir Next', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
/* A class-level display rule beats the UA's [hidden]{display:none}. Restore it
   globally so hidden="" actually hides (bit the per-service count inputs). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Narrower measure for form-heavy pages; header and footer follow automatically
   because they read the same variable. */
body.page-narrow { --wrap: 860px; }

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); }

/* Hand-lettered section title. Ink rather than white: white on sage fails
   contrast at any size, and the script face carries the flyer's feel anyway. */
.script {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 0.5em;
  display: inline-block;
}
.script::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--sage-deep);
  border-radius: 3px;
  margin-top: 6px;
  transform: rotate(-0.4deg);
}

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto;
  padding: 1rem 1.25rem;
}
.wordmark {
  font-family: var(--font-script);
  font-size: 2.1rem; line-height: 1; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--sage-text); }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a {
  color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
}
.site-header nav a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--ink); color: var(--cream) !important;
  border: 0; border-radius: 999px; padding: 0.6rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(53, 74, 43, 0.2);
  transition: background-color 120ms ease, transform 120ms ease;
}
.site-header .btn { color: var(--cream) !important; }
.btn:hover { background: #26361d; }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.btn-lg {
  padding: 0.85rem 2.2rem; font-size: 1.05rem;
  align-self: flex-start; min-width: 15rem;
  /* min-width without centring left the label hugging the left padding:
     35px of space on one side, 109px on the other. .btn now centres. */
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ---------- Photo frames ----------
   Cream mat + a fraction of a degree of tilt, so photos read as snapshots
   pinned to the page rather than stock art. */
.photo {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}
.photo:nth-of-type(odd)  { transform: rotate(0.6deg); }
.photo:nth-of-type(even) { transform: rotate(-0.8deg); }
@media (prefers-reduced-motion: reduce) { .photo { transform: none; } }

/* ---------- Layout shells ---------- */
.hero, .how, .services, .about, .site-footer {
  max-width: var(--wrap); margin: 0 auto; padding: 1.25rem;
}
.hero { display: grid; gap: 1.25rem; }
.about { display: grid; gap: 1.25rem; padding-bottom: 2rem; }
/* CRITICAL: grid children default to min-width:auto, so an intrinsically
   1000px-wide image forces its track wide and crushes the text column.
   min-width:0 is what keeps the proportions honest. */
.hero > *, .about > * { min-width: 0; }

/* ---------- Hero ---------- */
.hero-card {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.6rem;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; color: var(--sage-text);
  margin: 0 0 0.6rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  line-height: 1.12; margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.lede { font-size: 1.05rem; margin: 0 0 0.8rem; color: var(--ink-soft); }
.lede--sub { font-size: 0.97rem; margin-bottom: 1rem; }
.hero-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0; }

/* Animal scope, stated plainly instead of decoratively */
.chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 1.4rem; padding: 0;
}
.chips li {
  background: var(--sage-soft);
  border: 1px solid rgba(110, 143, 82, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  color: var(--ink);
}
.photo--hero img { aspect-ratio: 4 / 5; }

/* ---------- Services ---------- */
.services { padding-top: 0.5rem; }
.panel--services { padding: 1.6rem 1.6rem 1.4rem; }
.panel-title {
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 2.9rem); line-height: 1;
  color: var(--ink); margin: 0 0 1.1rem;
  padding-bottom: 0.15rem; border-bottom: 3px solid var(--sage-deep);
  display: inline-block;
}
.svc-group { margin-bottom: 1.6rem; }
.svc-group:last-of-type { margin-bottom: 1rem; }
.svc-group h3 {
  font-size: 1.15rem; margin: 0 0 0.15rem;
  color: var(--ink);
}
.svc-group h3::before {
  content: '';
  display: inline-block;
  width: 9px; height: 9px; margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--sage-deep);
  vertical-align: 0.12em;
}
.svc-sub { margin: 0 0 0.85rem; font-size: 0.93rem; color: var(--ink-soft); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.svc-card {
  background: var(--white);
  border: 1px solid var(--sage-soft);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.9rem;
}
.svc-name { font-family: var(--font-head); font-weight: 700; font-size: 0.97rem; }
.svc-price {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  white-space: nowrap; text-align: right;
}
.svc-price .per { font-weight: 600; font-size: 0.82rem; color: var(--ink-soft); }
.svc-price small {
  display: block; font-weight: 600; font-size: 0.73rem;
  color: var(--ink-soft); white-space: nowrap;
}
.drive-note { font-size: 0.9rem; font-style: italic; color: var(--ink-soft); margin: 0; }

/* ---------- About ---------- */
.about-text {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.4rem;
  align-self: start;
}
.about-text p { margin: 0 0 0.9rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-placeholder { font-size: 0.85rem; font-style: italic; color: var(--sage-text); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: start; }
.about-photos .photo img { aspect-ratio: 4 / 5; }
/* Offset the right-hand column so the grid reads as a scrapbook rather than a
   rigid table. Targeting the column (2n) keeps this correct as photos are
   added; the old :last-child rule only worked while there were exactly two. */
.about-photos .photo:nth-child(2n) { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 1rem;
  border-top: 2px solid rgba(110, 143, 82, 0.35);
  padding-top: 1.25rem;
}
.foot-grid { display: grid; gap: 1.6rem; margin-bottom: 1.25rem; }
.foot-col + .foot-col {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(110, 143, 82, 0.35);
}
.disclaimer { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.foot-col h2 {
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0 0 0.5rem; color: var(--sage-text);
}
.foot-contact p { margin: 0 0 0.45rem; font-size: 0.88rem; color: var(--ink-soft); }
.foot-contact a { color: var(--ink); }
.foot-placeholder { font-style: italic; }
.foot-policy { line-height: 1.5; }
.fineprint { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .svc-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.25fr 1fr;
    align-items: stretch;
    padding-top: 1.5rem; padding-bottom: 2.5rem;
  }
  .hero-card { padding: 2.25rem 2rem; }
  /* Photo matches the card's height rather than its own proportions, so a wide
     window doesn't turn the portrait into a billboard. */
  .photo--hero { align-self: stretch; }
  .photo--hero img { aspect-ratio: auto; height: 100%; min-height: 340px; max-height: 560px; }
  .about { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .foot-col + .foot-col {
    padding-top: 0; padding-left: 2.5rem;
    border-top: 0; border-left: 1px solid rgba(110, 143, 82, 0.35);
  }
  .foot-col:first-child { padding-right: 2.5rem; }
}

/* ---------- Panels ----------
   Every heading lives INSIDE its cream panel. Headings that sat on the panel's
   top edge straddled the sage/cream boundary and were hard to read. */
.panel {
  border: 0; margin: 0 0 1.1rem;
  padding: 1.5rem 1.6rem;
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-h {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  margin: 0 0 0.35rem; color: var(--ink);
}
.panel-sub { margin: 0 0 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.panel-h3 {
  font-family: var(--font-head); font-size: 1rem; margin: 1.4rem 0 0.2rem;
  padding-top: 1rem; border-top: 1px solid var(--sage-soft); color: var(--ink);
}
.panel--intro h1 {
  font-family: var(--font-script); font-size: clamp(2.4rem, 7vw, 3.2rem);
  line-height: 1; margin: 0 0 0.5rem; color: var(--ink);
}
.panel--submit { text-align: center; padding: 1.5rem 1.6rem 1.6rem; }
.panel--submit .btn-lg { align-self: center; }
/* visually hidden — keeps the fieldset's accessible name without drawing it */
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Booking flow (v0.6.0) ---------- */
.book { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem; }
.book-intro { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.stepnum {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 1.6em; height: 1.6em;
  background: var(--sage-deep); color: var(--cream);
  border-radius: 50%; font-size: 0.8em;
}

.svc-pick { display: grid; gap: 0.55rem; margin: 0 0 1rem; }
.svc-opt-label { display: block; cursor: pointer; }
.svc-opt-label input { position: absolute; opacity: 0; }
.svc-opt-body {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.7rem 0.95rem; border-radius: 10px;
  border: 2px solid var(--sage-soft); background: var(--white);
}
.svc-opt-label input:checked + .svc-opt-body {
  border-color: var(--sage-deep); background: var(--sage-soft);
}
.svc-opt-label input:focus-visible + .svc-opt-body { outline: 3px solid var(--ink); outline-offset: 2px; }
.svc-opt-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.svc-opt-price { font-size: 0.85rem; color: var(--ink-soft); }
.svc-count {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0.4rem 0 0.2rem 0.95rem; font-size: 0.85rem;
}
.book .svc-count input[type="number"] { width: 5rem; margin-top: 0; }
.inline-num { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; margin-bottom: 0.6rem; }
.book .inline-num input[type="number"] { width: 5rem; margin-top: 0; }
.visit-len {
  margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--sage-text); font-weight: 600;
}

.when-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.book label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.book input[type="text"], .book input[type="email"], .book input[type="tel"],
.book input[type="date"], .book input[type="number"], .book textarea {
  display: block; width: 100%; margin-top: 0.3rem;
  padding: 0.55rem 0.7rem; font: inherit;
  border: 2px solid var(--sage-soft); border-radius: 8px; background: var(--white);
}
.book input:focus, .book textarea:focus { outline: none; border-color: var(--sage-deep); }
.when-row input { width: auto; min-width: 10rem; }

.slots { margin-top: 1.1rem; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.slots-hint { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.slots--attn { outline: 3px solid var(--sage-deep); outline-offset: 6px; border-radius: 10px; }
.slot-btn {
  font: inherit; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 2px solid var(--sage-deep); background: var(--white); color: var(--ink);
  cursor: pointer;
}
.slot-btn:hover { background: var(--sage-soft); }
.slot-btn.is-picked { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.grid2 { display: grid; gap: 0.9rem; }
.pet-row { display: grid; gap: 0.9rem; padding-top: 0.9rem; margin-top: 0.9rem; border-top: 1px dashed var(--sage-soft); }
.pet-row:first-child { border-top: 0; margin-top: 0.6rem; padding-top: 0; }
.btn-ghost {
  font: inherit; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  background: none; border: 2px dashed var(--sage-deep); color: var(--ink);
  border-radius: 999px; padding: 0.4rem 1rem; cursor: pointer; margin-top: 0.9rem;
}
.notes { margin-top: 1.3rem; }
.book-fine { font-size: 0.85rem; color: var(--ink-soft); max-width: 54ch; margin: 0 auto 1rem; }

.bk { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.2rem; margin: 1.2rem 0; }
.bk dt { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.bk dd { margin: 0; font-size: 0.95rem; }
.bk-lines { margin: 0 0 0.3rem; padding-left: 1.1rem; font-size: 0.9rem; }
.bk-note { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.bk-status { text-transform: capitalize; font-weight: 700; }
.bk-status--pending { color: #8a6d1a; }
.bk-status--confirmed { color: var(--sage-text); }
.bk-status--declined, .bk-status--cancelled { color: #9c3b2e; }

@media (min-width: 620px) {
  .svc-opt-body { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 0.8rem; }
  .svc-opt-price { white-space: nowrap; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .pet-row { grid-template-columns: 1fr 1fr; }
  .span2 { grid-column: span 2; }
}

/* ---------- Admin panel (v0.8.0) ----------
   Denser than the public site: this is a tool, used mostly on a phone between
   classes. Same palette so it still feels like the same product. */
body.admin { background: var(--sage-soft); }
.admin-bar { background: var(--ink); color: var(--cream); }
.admin-bar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.admin-brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--cream); text-decoration: none;
}
.admin-brand span { color: var(--sage); font-weight: 600; }
.admin-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-nav a {
  color: var(--sage); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem;
}
.admin-nav a:hover, .admin-nav a.is-on { color: var(--cream); text-decoration: underline; }
.admin-main { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }

.admin-head { margin: 0.5rem 0 1.2rem; }
.admin-head h1 {
  font-family: var(--font-head); font-size: 1.6rem; margin: 0 0 0.2rem;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.admin-sub { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.admin-crumb { margin: 0 0 0.4rem; font-size: 0.85rem; }
.admin-crumb a { color: var(--ink-soft); }
.admin-section { margin-bottom: 1.8rem; }
.admin-h2 {
  font-family: var(--font-head); font-size: 1.05rem; margin: 0 0 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
  color: var(--sage-text);
}
.admin-grid { display: grid; gap: 1.1rem; }
.empty { color: var(--ink-soft); font-style: italic; margin: 0; }
.muted { color: var(--ink-soft); }
.tight { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.tight li { margin-bottom: 0.15rem; }

/* Job cards */
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.job {
  background: var(--cream); border-radius: var(--radius);
  border-left: 5px solid var(--sage-deep);
  box-shadow: var(--shadow); padding: 0.9rem 1.1rem;
  display: grid; gap: 0.6rem;
}
.job--pending { border-left-color: #c39a2b; }
.job-when { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.job-date { font-family: var(--font-head); font-weight: 700; }
.job-time { font-family: var(--font-head); font-weight: 700; color: var(--sage-text); }
.job-span {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--sage-soft); border-radius: 999px; padding: 0.1rem 0.5rem;
}
.job-who { margin: 0; font-family: var(--font-head); font-weight: 700; }
.job-ref { font-weight: 600; font-size: 0.78rem; color: var(--ink-soft); margin-left: 0.4rem; }
.job-what { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.job-note { margin: 0.3rem 0 0; font-size: 0.85rem; font-style: italic; color: var(--ink-soft); }
.job-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.pill {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; border-radius: 999px; padding: 0.15rem 0.55rem;
  background: var(--sage-soft); color: var(--ink);
}
.pill--pending { background: #f2e3b8; color: #6b5312; }
.pill--confirmed { background: #d6e8c4; color: #33501f; }
.pill--declined, .pill--cancelled { background: #f0d6d1; color: #7c2f22; }
.pill--completed { background: #dfe3ea; color: #3b4759; }
.pill--warn { background: #f2e3b8; color: #6b5312; }

/* Buttons used only in admin */
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; min-width: 0; }
.btn-outline {
  font: inherit; font-family: var(--font-head); font-weight: 700;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--sage-deep); border-radius: 999px;
  padding: 0.4rem 0.9rem; font-size: 0.85rem; cursor: pointer;
}
.btn-outline:hover { background: var(--sage-soft); }
.btn-link {
  font: inherit; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); text-decoration: underline;
}
.admin-nav .btn-link { color: var(--sage); }
.inline-form { display: inline; }
.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Forms in admin */
.row-form { display: grid; gap: 0.8rem; align-items: end; }
.row-form label, .admin label {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
}
.admin input[type="text"], .admin input[type="email"], .admin input[type="password"],
.admin input[type="number"], .admin input[type="time"], .admin input[type="date"],
.admin select, .admin textarea {
  display: block; width: 100%; margin-top: 0.25rem;
  padding: 0.45rem 0.6rem; font: inherit;
  border: 2px solid var(--sage-soft); border-radius: 8px; background: var(--white);
}
.admin textarea { margin-bottom: 0.6rem; }
.admin input:focus, .admin select:focus, .admin textarea:focus {
  outline: none; border-color: var(--sage-deep);
}
.check-inline { display: flex; align-items: center; gap: 0.4rem; }
.check-inline input { width: auto; margin: 0; }

.note { border-radius: 10px; padding: 0.7rem 1rem; font-size: 0.9rem; margin: 0 0 1rem; }
.note--ok { background: #d6e8c4; color: #2c4419; }
.note--err { background: #f4d9d4; color: #7c2f22; }
.note--warn { background: #f6ecd2; color: #6b5312; }
.note code { display: block; margin-top: 0.4rem; font-size: 0.82rem; word-break: break-all; }

/* Weekly template rows */
.day-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--sage-soft);
}
.day-name { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; min-width: 6.5rem; }
.day-hours { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.chip-del {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--sage-soft); border-radius: 999px;
  padding: 0.15rem 0.3rem 0.15rem 0.6rem; font-size: 0.83rem; font-weight: 600;
}
.x {
  background: none; border: 0; cursor: pointer; color: #7c2f22;
  font-size: 1rem; line-height: 1; padding: 0 0.2rem;
}
.ov-list { list-style: none; margin: 0; padding: 0; }
.ov-list li {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.45rem 0; border-bottom: 1px solid var(--sage-soft); font-size: 0.9rem;
}

/* Service price editor */
.svc-admin { display: grid; gap: 0.7rem; }
.svc-admin-row {
  display: grid; gap: 0.6rem; align-items: end;
  background: var(--white); border: 1px solid var(--sage-soft);
  border-radius: 10px; padding: 0.8rem 0.9rem;
}
.svc-admin-name { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }

/* Login */
.login-wrap { max-width: 26rem; margin: 3rem auto; padding: 1.25rem; }
.login-panel h1 { font-family: var(--font-script); font-size: 2.6rem; margin: 0 0 0.2rem; }
.login-form { display: grid; gap: 0.9rem; }
.login-form .btn { justify-self: start; }

@media (min-width: 720px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 9rem 1fr auto; align-items: center; gap: 1rem; }
  .job-when { flex-direction: column; gap: 0.1rem; align-items: flex-start; }
  .row-form { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
  .svc-admin-row { grid-template-columns: 2fr 1fr 1fr 1fr auto auto; }
}

/* Service editor cards (v0.9.0) */
.svc-admin-card {
  background: var(--white); border: 1px solid var(--sage-soft);
  border-radius: 10px; padding: 0.8rem 0.9rem 0.6rem;
  display: grid; gap: 0.4rem;
}
.svc-admin-card .svc-admin-row {
  background: none; border: 0; border-radius: 0; padding: 0;
}
.svc-del { justify-self: end; }
.svc-del .btn-link { color: #7c2f22; font-size: 0.8rem; }
.svc-admin-new {
  background: var(--sage-soft); border: 2px dashed var(--sage-deep);
}
.opt { font-weight: 500; color: var(--ink-soft); font-size: 0.8em; }
@media (min-width: 720px) {
  .svc-admin-row { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); align-items: end; }
  .svc-admin-row .wide { grid-column: span 2; }
}

/* Frequency chips + live estimate (v0.10.0) */
.freq { border: 0; padding: 0; margin: 0.9rem 0 0; }
.freq-legend {
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  padding: 0; margin-bottom: 0.4rem;
}
.freq-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.freq-chip { cursor: pointer; }
.freq-chip input { position: absolute; opacity: 0; }
.freq-chip span {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
  border: 2px solid var(--sage-deep); border-radius: 999px;
  padding: 0.4rem 0.95rem; background: var(--white); color: var(--ink);
}
.freq-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.freq-chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.quote-box {
  margin-top: 1rem;
  background: var(--sage-soft);
  border: 2px solid var(--sage-deep);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.quote-line { margin: 0 0 0.25rem; font-size: 0.9rem; }
.quote-total { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.quote-fine { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--ink-soft); }

/* Primary/add-on refinements (v0.11.0) */
.svc-opt-price strong { font-size: 1.05rem; }
.svc-opt-price small { display: block; font-weight: 600; }
.addon-wrap { margin-top: 0.4rem; }
@media (min-width: 620px) {
  .svc-opt-price { text-align: right; }
  .svc-opt-price small { font-size: 0.78rem; }
}

/* Team & stats (v0.12.0) */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin: 0 0 1.4rem; }
.stat {
  background: var(--cream); border-radius: 10px; box-shadow: var(--shadow);
  padding: 0.7rem 0.9rem; display: grid; gap: 0.1rem;
}
.stat-n { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.stat-l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); }
.team-meta { display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.pw-reset input { width: 12rem; display: inline-block; margin: 0 0.4rem 0 0; padding: 0.3rem 0.5rem; }
.cal-picker { margin-top: 0.6rem; display: block; }
.cal-picker select { width: auto; display: inline-block; margin-left: 0.4rem; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Pet-mix step 1 + day tuner (v0.13.0) */
.mode-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.2rem 0 1rem; }
.pet-grid { display: grid; gap: 0.6rem; }
.pet-line {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border: 1px solid var(--sage-soft);
  border-radius: 10px; padding: 0.7rem 0.9rem;
}
.pet-line-label { flex: 1; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.pet-line-label small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; }
.book .pet-line input[type="number"] {
  width: 4.4rem; margin-top: 0; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.daytune { margin-top: 1rem; }
.daytune summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  color: var(--sage-text);
}
.daytune-grid { display: grid; gap: 0.5rem; margin-top: 0.7rem; }
.daytune-cell {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; font-family: var(--font-head); font-weight: 600;
}
.book .daytune-cell input[type="number"] { width: 4rem; margin: 0; text-align: center; }
.daytune-unit { color: var(--ink-soft); font-weight: 500; font-size: 0.8rem; }
@media (min-width: 620px) {
  .daytune-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
}

/* Arrival window chips (v0.14.0) */
.win-btn {
  font: inherit; cursor: pointer;
  display: grid; gap: 0.1rem; text-align: center;
  min-width: 8.5rem;
  padding: 0.65rem 1.1rem; border-radius: 12px;
  border: 2px solid var(--sage-deep); background: var(--white); color: var(--ink);
}
.win-btn strong { font-family: var(--font-head); font-size: 0.95rem; }
.win-btn span { font-size: 0.78rem; color: var(--ink-soft); }
.win-btn:hover { background: var(--sage-soft); }
.win-btn.is-picked { background: var(--ink); border-color: var(--ink); }
.win-btn.is-picked strong, .win-btn.is-picked span { color: var(--cream); }

/* Window checkboxes (v0.15.0) */
.win-chip span { display: inline-grid; gap: 0.05rem; text-align: center; padding: 0.5rem 1.1rem; }
.win-chip span strong { font-family: var(--font-head); font-size: 0.92rem; }
.win-chip span small { font-size: 0.75rem; color: inherit; opacity: 0.75; font-weight: 500; }
.win-chip.is-off { opacity: 0.4; }
.win-chip.is-off span { text-decoration: line-through; }

/* Notifications & mail log (v0.16.0) */
.decline-reason { width: 15rem; margin: 0 0.4rem 0 0; padding: 0.35rem 0.55rem; }
.mail-log { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.35rem; }
.mail-log li { font-size: 0.85rem; }
.mail-log .muted { display: block; font-size: 0.78rem; }

/* Uniform date fields + readable itemized estimate (v0.17.0) */
.when-row { display: grid; gap: 0.9rem; }
.when-row > label { display: block; }
.book .when-row input[type="date"] {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 0.6rem 0.7rem; text-align: left;
}
@media (min-width: 620px) { .when-row { grid-template-columns: 1fr 1fr; } }

.quote-head {
  margin: 0 0 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
}
.quote-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.quote-items li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.45rem; border-bottom: 1px solid rgba(53, 74, 43, 0.12);
}
.qi-what { display: grid; gap: 0.05rem; }
.qi-what strong { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; }
.qi-what small { font-size: 0.78rem; color: var(--ink-soft); }
.qi-amt { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.quote-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0.7rem 0 0; font-family: var(--font-head); font-size: 1rem;
}
.quote-total strong { font-size: 1.35rem; }
.walk-count select { margin-top: 0.15rem; }
.svc-opt-price small { display: block; font-weight: 500; font-size: 0.75rem; }

/* Settings guidance box (v0.18.0) */
.help-box {
  background: var(--sage-soft); border-radius: 10px;
  padding: 0.7rem 0.9rem; margin: 0 0 1rem;
}
.help-box p { margin: 0 0 0.35rem; font-size: 0.85rem; }
.help-box p:last-child { margin-bottom: 0; }


/* Accessibility pass (v0.19.0) — focus, touch targets, non-colour states */

/* A visible focus ring on EVERYTHING interactive. Several inputs previously
   removed the outline and signalled focus with border colour alone, which is
   invisible to some users and fails on a coloured background. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
.book input:focus-visible,
.book textarea:focus-visible,
.book select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
/* Chips hide their real control, so the ring has to go on the visible label. */
.freq-chip input:focus-visible + span,
.win-chip input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* 44x44 minimum touch targets on the controls people actually tap. */
.btn, .btn-sm, .btn-outline, .btn-ghost, .slot-btn, .win-btn, .btn-link,
.freq-chip span, .win-chip span {
  min-height: 44px;
}
/* A min-height only centres its text in a flex box; as inline-block the label
   pins to the top of the taller target. Everything given a min-height above
   therefore has to centre too. */
.btn-sm, .btn-outline, .btn-ghost, .btn-link, .slot-btn {
  display: inline-flex; align-items: center; justify-content: center;
}
.book .pet-line input[type="number"],
.book .daytune-cell input[type="number"] { min-height: 44px; }

/* Unavailable windows say so in TEXT, not just strike-through + fade. */
.win-chip.is-off span::after {
  content: 'Unavailable';
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.win-chip.is-off span strong,
.win-chip.is-off span small { text-decoration: line-through; }
.win-chip.is-off { opacity: 0.65; }

/* Admin sign-in: use the same field styling as the rest of the product. */
.login-form label { display: grid; gap: 0.3rem; font-family: var(--font-head);
  font-weight: 600; font-size: 0.9rem; }
.login-form input {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 2px solid var(--sage-deep); border-radius: 8px;
  background: var(--white); color: var(--ink);
}
.login-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.login-links { margin-top: 1rem; font-size: 0.85rem; }

/* How it works + service notes + applies-to tags (v0.19.0) */
.how { padding-bottom: 0.25rem; }
.panel--how { padding: 1.6rem 1.6rem 1.4rem; }
.how-steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; gap: 1.1rem;
}
.how-steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.1rem 0.75rem;
  align-items: start;
}
.how-steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage); color: var(--ink);
  border: 2px solid var(--sage-deep);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.how-steps strong { font-family: var(--font-head); font-size: 1.02rem; align-self: center; }
.how-steps span { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.svc-note {
  background: var(--white); border: 2px solid var(--sage-deep); border-radius: 10px;
  padding: 0.8rem 1rem; margin: 1.2rem 0 0.6rem;
}
.svc-note p { margin: 0 0 0.4rem; font-size: 0.88rem; }
.svc-note p:last-child { margin: 0; }
.svc-applies { display: block; font-size: 0.75rem; color: var(--ink-soft); font-weight: 500; }
@media (min-width: 760px) {
  .how-steps { grid-template-columns: 1fr 1fr; gap: 1.4rem 2.2rem; }
}

/* Price adjustments (v0.23.0) */
.adj-list li { margin-bottom: 0.35rem; }
.adj-list .muted { display: block; font-size: 0.78rem; }
.adj-list .inline-form { display: inline; }
