/*
 * Sample Powerful web app: Whistle Creek Pet Care, a made-up business.
 * Modeled on the Down Home Pet Care build: a public site, booking in three steps, a customer account
 * and the owner's admin. Fraunces headings, Atkinson Hyperlegible body, light and dark mode.
 */
@font-face {
  font-family: "Fraunces";
  src: url("../shared/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../shared/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #fbf6ec;
  --surface: #fffdf8;
  --subtle: #f4ecdf;
  --sunken: #efe5d5;
  --edge: #e4d7c3;
  --edge-strong: #cbb89e;
  --ink: #2b1d15;
  --muted: #6b5646;
  --brand: #b4531c;
  --brand-soft: #fbe6d6;
  --primary: #2f6b5e;
  --primary-hover: #24564b;
  --on-primary: #ffffff;
  --primary-soft: #e0eee8;
  --primary-ink: #24564b;
  --warn-ink: #7a4b00;
  --warn-soft: #fcefcf;
  --warn-edge: #e2be6e;
  --danger-soft: #fbe3df;
  --danger-ink: #a32a1e;
  --p1: #b4531c;
  --p2: #2a72cc;
  --p3: #7a4fc4;
  --shadow: 0 1px 2px rgb(43 29 21 / 0.06), 0 8px 24px rgb(43 29 21 / 0.07);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17110d;
  --surface: #211913;
  --subtle: #2b211a;
  --sunken: #130e0b;
  --edge: #3d3027;
  --edge-strong: #5a4a3d;
  --ink: #f6ede0;
  --muted: #c4b19e;
  --brand: #f0955a;
  --brand-soft: #3a2414;
  --primary: #62bba5;
  --primary-hover: #7ccab6;
  --on-primary: #0e1f1a;
  --primary-soft: #163129;
  --primary-ink: #86d2bf;
  --warn-ink: #f2c46b;
  --warn-soft: #3a2c10;
  --warn-edge: #7a5a1a;
  --danger-soft: #3d1a16;
  --danger-ink: #f5a196;
  --p1: #f0955a;
  --p2: #5b9cf0;
  --p3: #a493f0;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110d;
    --surface: #211913;
    --subtle: #2b211a;
    --sunken: #130e0b;
    --edge: #3d3027;
    --edge-strong: #5a4a3d;
    --ink: #f6ede0;
    --muted: #c4b19e;
    --brand: #f0955a;
    --brand-soft: #3a2414;
    --primary: #62bba5;
    --primary-hover: #7ccab6;
    --on-primary: #0e1f1a;
    --primary-soft: #163129;
    --primary-ink: #86d2bf;
    --warn-ink: #f2c46b;
    --warn-soft: #3a2c10;
    --warn-edge: #7a5a1a;
    --danger-soft: #3d1a16;
    --danger-ink: #f5a196;
    --p1: #f0955a;
    --p2: #5b9cf0;
    --p3: #a493f0;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary-ink);
}
h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 2rem;
  }
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1.15rem;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font: 700 1rem/1.1 "Atkinson Hyperlegible Next", sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover {
  background: var(--primary-hover);
}
.btn--line {
  border-color: var(--edge-strong);
  background: var(--surface);
  color: var(--ink);
}
.btn--line:hover {
  background: var(--subtle);
}
.btn--soft {
  background: var(--subtle);
  color: var(--ink);
}
.btn--sm {
  min-height: 38px;
  padding: 0 0.8rem;
  border-radius: 11px;
  font-size: 0.92rem;
}
.btn--block {
  width: 100%;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 700 0.92rem "Atkinson Hyperlegible Next", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge--wait {
  background: var(--warn-soft);
  color: var(--warn-ink);
}
.badge--new {
  background: var(--danger-soft);
  color: var(--danger-ink);
}
.badge--ok {
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.badge--plain {
  background: var(--subtle);
  color: var(--muted);
}

/* ---------- public header ---------- */
.top {
  border-bottom: 1px solid var(--edge);
  background: var(--bg);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brandmark img {
  width: 54px;
  height: 40px;
}
.brandmark span {
  font: 600 1.2rem/1.02 "Fraunces", serif;
}
.top__nav {
  display: none;
  gap: 1.1rem;
  margin-right: auto;
}
.top__nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.top__nav a:hover {
  color: var(--primary-ink);
}
.top__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.top__phone,
.top__signin {
  display: none;
  font-weight: 700;
  text-decoration: none;
}
.top__phone {
  color: var(--ink);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--edge-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1100px) {
  .top__nav,
  .top__phone,
  .top__signin {
    display: flex;
  }
  .top__menu,
  .top__call {
    display: none !important;
  }
}
.drawer {
  border-bottom: 1px solid var(--edge);
  background: var(--surface);
}
.drawer ul {
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  list-style: none;
}
.drawer a {
  display: block;
  padding: 0.7rem 0.5rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
}

/* ---------- public sections ---------- */
.band {
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .band {
    padding: 4.5rem 0;
  }
}
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
  }
}
.hero h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
}
.hero__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.talk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
  font-weight: 700;
}
.collage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.75rem;
}
.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.collage__tall {
  grid-row: span 2;
}
.offer-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.1rem;
  padding: 1.6rem;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: var(--surface);
}
.offer__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 1.35rem;
}
.offer:nth-child(2) .offer__icon {
  background: var(--brand-soft);
  color: var(--brand);
}
.offer h2 {
  font-size: 1.6rem;
}
.offer p {
  margin-top: 0.5rem;
  color: var(--muted);
}
.offer .btn {
  margin-top: 1rem;
}
.zip {
  display: grid;
  gap: 1.5rem;
  padding: 1.8rem;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: var(--surface);
}
@media (min-width: 768px) {
  .zip {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.zip h2 {
  font-size: 2rem;
}
.zip__towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.zip__out {
  margin-top: 0.75rem;
  font-weight: 700;
  min-height: 1.5em;
}
.zip__out[data-ok="yes"] {
  color: var(--primary-ink);
}
.zip__out[data-ok="no"] {
  color: var(--danger-ink);
}
.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.split h2,
.band h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
}
.list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
}
.list li + li {
  border-top: 1px solid var(--edge);
}
.list b {
  white-space: nowrap;
}
.list small {
  color: var(--muted);
  font-weight: 400;
}
.list__sub {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}
.callout {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--warn-edge);
  border-radius: 14px;
  background: var(--warn-soft);
  color: var(--warn-ink);
  font-weight: 600;
}
.how {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .how {
    grid-template-columns: repeat(3, 1fr);
  }
}
.how li {
  display: flex;
  gap: 0.9rem;
}
.how__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-weight: 800;
}
.how h3 {
  font-family: "Atkinson Hyperlegible Next", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}
.how p {
  color: var(--muted);
}
.pets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.pets img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
}
.quotes {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 768px) {
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
}
.quote {
  padding: 1.25rem;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.quote p {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}
.quote footer {
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}
.qa {
  border-top: 1px solid var(--edge);
}
.qa details {
  border-bottom: 1px solid var(--edge);
}
.qa summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "⌄";
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.15s;
}
.qa details[open] summary::after {
  transform: rotate(180deg);
}
.qa details p {
  padding: 0 0.25rem 1rem;
  color: var(--muted);
}
.foot {
  margin-top: 2rem;
  background: var(--subtle);
}
.foot .wrap {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .foot .wrap {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.foot h2 {
  margin-bottom: 0.6rem;
  font-family: "Atkinson Hyperlegible Next", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.foot a {
  color: var(--ink);
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot__base {
  border-top: 1px solid var(--edge);
}
.foot__base .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.themes {
  display: inline-flex;
  padding: 4px;
  border-radius: 16px;
  background: var(--sunken);
}
.themes button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: 700 0.92rem "Atkinson Hyperlegible Next", sans-serif;
  cursor: pointer;
}
.themes button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- booking ---------- */
.flow {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem 9rem;
}
.flow__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.flow__head h1 {
  font-family: "Atkinson Hyperlegible Next", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}
.flow__head small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}
.bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 0.6rem;
}
.bars span {
  height: 6px;
  border-radius: 99px;
  background: var(--edge);
}
.bars span.is-on {
  background: var(--primary);
}
.flow h2 {
  margin-top: 1.75rem;
  font-size: 1.85rem;
}
.flow h3 {
  margin-top: 1.5rem;
  font-size: 1.4rem;
}
.field {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}
.field label,
.field .label {
  font-weight: 800;
}
.field small {
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: 52px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--edge-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
textarea.input {
  min-height: 90px;
  padding: 0.75rem 0.9rem;
}
.input:focus {
  outline: 3px solid var(--primary-soft);
  border-color: var(--primary);
}
.input--short {
  max-width: 220px;
}
.petcard {
  margin-top: 1rem;
  padding: 1.1rem;
  border: 2px solid var(--primary);
  border-radius: 20px;
  background: var(--surface);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips button {
  display: grid;
  gap: 0.05rem;
  min-width: 64px;
  min-height: 46px;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 700 0.95rem "Atkinson Hyperlegible Next", sans-serif;
  cursor: pointer;
}
.chips--days button {
  border-radius: 16px;
  min-width: 76px;
}
.chips button small {
  color: var(--muted);
  font-size: 0.75rem;
}
.chips button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
.chips button[aria-pressed="true"] small {
  color: inherit;
}
.chips button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.svc {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.svc label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--edge);
  border-radius: 14px;
  cursor: pointer;
}
.svc label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.svc input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
.svc span {
  flex: 1;
  font-weight: 700;
}
.svc b {
  color: var(--muted);
}
.dash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 50px;
  margin-top: 0.85rem;
  border: 1.5px dashed var(--edge-strong);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: 700 1rem "Atkinson Hyperlegible Next", sans-serif;
  cursor: pointer;
}
.summary {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  border-top: 1px solid var(--edge);
  background: var(--surface);
  box-shadow: 0 -6px 20px rgb(0 0 0 / 0.06);
}
.summary__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0.85rem 1rem 1rem;
}
.summary p {
  font-weight: 800;
}
.summary .btn {
  width: 100%;
  margin-top: 0.6rem;
  min-height: 54px;
  font-size: 1.05rem;
}
.slots-note {
  margin-top: 0.6rem;
  color: var(--muted);
}
.confirm {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--primary-soft);
}
.confirm h2 {
  margin: 0;
  font-size: 1.6rem;
}
.cal-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ---------- account ---------- */
.acct {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.acct__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.acct__head h1 {
  font-size: 2.4rem;
}
.acct h2 {
  margin-top: 2.25rem;
  font-size: 1.6rem;
}
.box {
  margin-top: 0.9rem;
  padding: 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.box__when {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
}
.who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: var(--muted);
}
.av {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--p1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}
.av--2 {
  background: var(--p2);
}
.av--3 {
  background: var(--p3);
}
.box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.ref {
  color: var(--muted);
  font-size: 0.85rem;
}
.pet {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.pet + .pet {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--edge);
}
.pet img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}
.pet b {
  display: block;
}
.pet p {
  color: var(--muted);
  font-size: 0.95rem;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 14px;
  background: var(--primary-soft);
  font-weight: 700;
}
.check-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

/* ---------- admin ---------- */
.admin {
  display: grid;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .admin {
    grid-template-columns: 270px 1fr;
  }
}
.side {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--edge);
  background: var(--surface);
}
@media (min-width: 1024px) {
  .side {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}
.side nav {
  display: grid;
  gap: 2px;
}
.side nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 42px;
  padding: 0 0.75rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.side nav a .icon {
  color: var(--muted);
}
.side nav a:hover,
.side nav a.is-on {
  background: var(--subtle);
}
.side nav a.is-on .icon {
  color: var(--primary-ink);
}
.side nav a .badge {
  margin-left: auto;
}
.side__me {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--edge);
}
.side__me .themes {
  margin-top: 0.75rem;
}
.main {
  padding: 1.5rem 1rem 6rem;
  min-width: 0;
}
@media (min-width: 640px) {
  .main {
    padding: 2rem 2rem 4rem;
  }
}
.main__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.main__head h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.main__date {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 420px);
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--edge-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  padding: 1rem;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.stat span {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}
.stat b {
  display: block;
  margin-top: 0.3rem;
  font: 600 2rem/1.1 "Fraunces", serif;
}
.stat small {
  color: var(--muted);
}
.main h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  font-size: 1.6rem;
}
.main h2 a {
  font: 700 0.95rem "Atkinson Hyperlegible Next", sans-serif;
}
.needs {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 900px) {
  .needs {
    grid-template-columns: repeat(3, 1fr);
  }
}
.need {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.need .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.need b {
  font-size: 1.05rem;
}
.need p {
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
}
.need .btn {
  align-self: flex-start;
}
.people {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 900px) {
  .people {
    grid-template-columns: repeat(3, 1fr);
  }
}
.person {
  padding: 1rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.person__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--edge);
  font-weight: 800;
}
.person__head small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 600;
}
.visit {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--edge);
  font-size: 0.95rem;
}
.visit:last-child {
  border-bottom: 0;
}
.visit time {
  font-weight: 800;
}
.visit p {
  color: var(--muted);
}
.visit .badge {
  margin: 0.25rem 0;
}
.open-slot {
  margin: 0.6rem 0;
  padding: 0.5rem 0.7rem;
  border: 1.5px dashed var(--edge-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.week {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.bar-row {
  display: grid;
  grid-template-columns: 64px 1fr 8.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.92rem;
}
.bar-row b {
  font-weight: 800;
}
.bar-row > span:last-child {
  text-align: right;
}
@media (max-width: 520px) {
  .bar-row {
    grid-template-columns: 44px 1fr 6.5rem;
    font-size: 0.82rem;
  }
}
.bar {
  height: 14px;
  border-radius: 99px;
  background: var(--edge);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--muted);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--edge);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--edge);
  text-align: left;
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table th {
  background: var(--subtle);
  font-size: 0.85rem;
  color: var(--muted);
}
.table .input {
  min-height: 40px;
  max-width: 120px;
}
.scroll-x {
  overflow-x: auto;
}
.grid-week {
  display: grid;
  grid-template-columns: 90px repeat(5, minmax(120px, 1fr));
  gap: 6px;
  margin-top: 1rem;
  min-width: 720px;
}
.grid-week > div {
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--edge);
  font-size: 0.85rem;
  min-height: 56px;
}
.grid-week .gh {
  background: transparent;
  border: 0;
  font-weight: 800;
  min-height: 0;
}
.slot {
  display: block;
  margin-bottom: 4px;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}
.slot--1 {
  background: var(--p1);
}
.slot--2 {
  background: var(--p2);
}
.slot--3 {
  background: var(--p3);
}
.slot--open {
  background: transparent;
  border: 1.5px dashed var(--edge-strong);
  color: var(--muted);
}
.editor {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}
.toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
.hours-row {
  display: grid;
  grid-template-columns: 110px auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--edge);
}
.hours-row:last-child {
  border-bottom: 0;
}
.hours-row .input {
  min-height: 40px;
  max-width: 140px;
}
.banner-preview {
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.text-msg {
  max-width: 320px;
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px 18px 18px 4px;
  background: var(--subtle);
}
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--edge);
  background: var(--surface);
}
.tabbar a {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.tabbar a.is-on {
  color: var(--primary-ink);
}
.tabbar .icon {
  font-size: 1.35rem;
}
@media (min-width: 1024px) {
  .tabbar,
  .main__brand {
    display: none !important;
  }
}
.main__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.more {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}
.more a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 50px;
  padding: 0 1rem;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
