/* CLAIN — Carla Lane look (ADR-010). Values from the site's Elementor kit:
   green #32523F · cream #E9E4D2 · olive #D4D5BE · sage #B5BAA7 · Dela Gothic One + Nunito 500. */
:root {
  --green: #32523F;
  --green-dark: #263f30;
  --cream: #E9E4D2;
  --cream-2: #F2EEE2;
  --olive: #D4D5BE;
  --sage: #B5BAA7;
  --white: #FFFFFF;
  --ink: #32523F;
  --muted: #5d6b60;
  --amber: #b07d1a;
  --amber-bg: #f6ecd3;
  --red: #9a3b2e;
  --red-bg: #f5e1dc;
  --blue: #2f6f8f;
  --ok-bg: #e2eadf;
  --radius: 22px;
  --radius-s: 12px;
  --font-display: "Dela Gothic One", "Arial Black", sans-serif;
  --font-text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
abbr[title] { text-decoration: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-text); font-weight: 500;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15;
  margin: 0 0 .5em; color: var(--green); }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { background: var(--cream); border-bottom: 2px solid var(--sage); }
.site-header .inner { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand img { width: 64px; height: 64px; }
.brand .names { display: flex; flex-direction: column; line-height: 1.1; }
.brand .org { font-family: var(--font-display); font-size: 1rem; }
.brand .sub { font-weight: 800; font-size: .85rem; color: var(--muted); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { font-weight: 800; text-decoration: none; color: var(--green); }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-nav form { margin: 0; }
.pill { display: inline-block; background: var(--green); color: var(--white) !important; border-radius: 999px;
  padding: 12px 26px; font-family: var(--font-display); text-decoration: none !important; border: 0; cursor: pointer;
  font-size: 1rem; line-height: 1.2; }
.pill:hover { background: var(--green-dark); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--green); cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* ---------- page card (the "Request boarding" panel) ---------- */
main { max-width: 1320px; margin: 0 auto; padding: 0 24px 64px; }
.card-page { background: var(--white); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--sage); }
.card-page.rounded { border-radius: var(--radius); margin-top: 24px; }
.page-head { background: var(--cream-2); padding: 40px 48px 36px; display: flex; gap: 32px; align-items: center; }
.badge-round { flex: 0 0 auto; width: 100px; height: 100px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; }
.badge-round img { width: 54px; height: 54px; }
.eyebrow { margin: 0 0 6px; font-weight: 600; font-size: 1.1rem; }
.page-head h1 { margin: 0 0 8px; }
.page-head .lead { margin: 0; font-size: 1.15rem; }
.helpbar { background: var(--green); color: var(--white); padding: 22px 48px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 1.15rem; }
.helpbar a { color: var(--white); font-weight: 800; font-size: 1.35rem; }
.page-body { padding: 36px 48px 48px; }
.page-body.tight { padding-top: 24px; }
section + section { margin-top: 36px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 28px 48px; border-bottom: 1px solid var(--olive);
  list-style: none; margin: 0; }
.steps li > a, .steps li > span { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 16px;
  border: 1px solid var(--olive); background: var(--cream-2); text-decoration: none; color: var(--green); font-weight: 600;
  font-size: 1.15rem; height: 100%; }
.steps .num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--sage); background: var(--white); font-weight: 800; }
.steps li.current > a, .steps li.current > span { background: var(--green); color: var(--white); border-color: var(--green); }
.steps li.current .num { background: var(--cream); border-color: var(--cream); color: var(--green); }
.steps li.locked > span { opacity: .65; }
.step-of { font-weight: 600; margin: 0 0 4px; }

/* ---------- forms ---------- */
label { font-weight: 700; display: block; margin: 0 0 6px; }
.field { margin: 0 0 18px; }
.field .hint { font-weight: 500; color: var(--muted); font-size: .92rem; margin: -2px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number],
input[type=time], input[type=color], select, textarea {
  width: 100%; max-width: 560px; font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--sage);
  border-radius: var(--radius-s); background: var(--white); }
input[type=number].short, select.short { max-width: 110px; }
textarea { min-height: 96px; max-width: 760px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--green); margin-top: 1px; flex: 0 0 auto; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; padding: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; font: inherit; font-weight: 800; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--green); background: var(--green); color: var(--white); text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--green); }
.btn.secondary:hover { background: var(--cream-2); color: var(--green); }
.btn.danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.choice { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--olive); border-radius: 16px;
  padding: 18px 20px; background: var(--white); font-weight: 600; }
.choice input { width: 22px; height: 22px; accent-color: var(--green); margin-top: 3px; }
.choice:has(input:checked) { border-color: var(--green); background: var(--cream-2); }
.choice.disabled { opacity: .6; }
.choice strong { display: block; font-size: 1.1rem; }

/* ---------- messages ---------- */
.flash { padding: 14px 18px; border-radius: var(--radius-s); margin: 0 0 16px; font-weight: 700; }
.flash.success { background: var(--ok-bg); }
.flash.error { background: var(--red-bg); color: var(--red); }
.flash.warning, .flash.info { background: var(--amber-bg); color: #6c4c0d; }
.flashes { margin-top: 18px; }
.errors { background: var(--red-bg); color: var(--red); border-radius: var(--radius-s); padding: 14px 18px 4px; margin-bottom: 20px; }
.errors li { margin-bottom: 8px; }
.notice { background: var(--cream-2); border-left: 6px solid var(--green); padding: 16px 20px; border-radius: 8px; margin: 0 0 20px; }
.notice.warn { border-color: var(--amber); background: var(--amber-bg); }
.notice.bad { border-color: var(--red); background: var(--red-bg); }

/* ---------- tables, tags, tiles ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--olive); vertical-align: top; }
th { font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr:hover td { background: #faf8f2; }
td.num, th.num { text-align: right; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 800; color: var(--white);
  background: var(--green); white-space: nowrap; }
.tag.light { background: var(--cream); color: var(--green); }
.tag.warn { background: var(--amber); }
.tag.bad { background: var(--red); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.tile { background: var(--cream-2); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--green); display: block; }
.tile .n { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; display: block; }
.tile .l { font-weight: 700; }
.tile.alert { background: var(--amber-bg); }
.panel { border: 1px solid var(--olive); border-radius: 16px; padding: 22px 24px; margin-bottom: 22px; background: var(--white); }
.panel h2, .panel h3 { margin-top: 0; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--olive); }
.list-plain li:last-child { border-bottom: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
dl.facts dt { font-weight: 800; }
dl.facts dd { margin: 0; white-space: pre-wrap; }

/* ---------- availability ---------- */
.avail-layout { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.filters { background: var(--cream-2); border-radius: 18px; padding: 22px; position: sticky; top: 16px; }
.filters h2 { font-size: 1.3rem; }
.kennel-row { background: var(--white); border: 1px solid var(--olive); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.kennel-row .head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 8px; }
.size-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size-inputs label { font-size: .85rem; margin-bottom: 2px; }
.size-inputs input { max-width: 100%; padding: 8px 10px; }
.summary-line { font-weight: 700; margin: 6px 0 14px; }
.months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.month h3 { text-align: center; margin-bottom: 12px; }
.cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.cal th { text-align: center; border: 0; padding: 4px 0; font-size: .8rem; }
.cal td { border: 0; padding: 0; height: 64px; }
.cal td:hover { background: none; }
.day { display: flex; flex-direction: column; justify-content: space-between; height: 100%; border-radius: 10px; padding: 6px 8px;
  font-weight: 800; text-decoration: none; color: var(--green); border: 2px solid transparent; }
.day .d { font-size: 1.05rem; }
.day .s { font-size: .72rem; font-weight: 700; line-height: 1.1; }
.day.avail { background: #dfe8d9; }
a.day.avail:hover { border-color: var(--green); background: #cddcc4; }
.day.full { background: #f1dcd6; color: var(--red); }
.day.closed { background: repeating-linear-gradient(45deg, #ece9df, #ece9df 6px, #e2dfd3 6px, #e2dfd3 12px); color: var(--muted); }
.day.past { background: transparent; color: #b9bdb0; }
.day.today { border-color: var(--green); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 0; font-weight: 700; font-size: .9rem; }
.legend span::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 6px; }
.legend .l-avail::before { background: #dfe8d9; }
.legend .l-full::before { background: #f1dcd6; }
.legend .l-closed::before { background: #e2dfd3; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.cal-status { min-height: 1.5em; font-weight: 700; }
.is-loading .months { opacity: .55; transition: opacity .15s; }

/* ---------- staff layout ---------- */
.staff-bar { background: var(--green); color: var(--white); }
.staff-bar .inner { max-width: 1500px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.staff-bar a, .staff-bar .linklike { color: var(--white); font-weight: 800; text-decoration: none; }
.staff-bar a:hover, .staff-bar a[aria-current="page"] { text-decoration: underline; }
.staff-bar .brandmark { font-family: var(--font-display); font-size: 1.05rem; margin-right: 10px; display: flex; align-items: center; gap: 10px; }
.staff-bar .brandmark img { width: 34px; height: 34px; }
.staff-bar .right { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.staff-bar form { margin: 0; }
.staff-main { max-width: 1500px; margin: 0 auto; padding: 24px 24px 64px; }
.staff-main .page-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.staff-main .page-title h1 { font-size: 2rem; margin: 0; }
.staff-card { background: var(--white); border-radius: 18px; padding: 24px 26px; margin-bottom: 22px; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.filterbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filterbar .field { margin: 0; }
.filterbar input, .filterbar select { max-width: 240px; }
.occ td, .occ th { text-align: center; white-space: nowrap; }
.occ td:first-child, .occ th:first-child { text-align: left; }
.occ .over { background: var(--red-bg); color: var(--red); font-weight: 800; }
.occ .zero { color: var(--red); font-weight: 800; }
.occ tr.weekend td { background: #faf8f2; }
.inline-form { display: inline; margin: 0; }
.stack > * + * { margin-top: 10px; }

/* ---------- menus (phone) ---------- */
.menu-toggle { display: none; }
.staff-bar .menu-links { display: contents; }
.menu-toggle { font: inherit; font-weight: 800; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.staff-bar .menu-toggle { background: transparent; color: var(--white); border: 2px solid var(--cream); }
.site-header .menu-toggle { background: var(--green); color: var(--white); border: 2px solid var(--green); }
@media (max-width: 860px) {
  .js .menu-toggle:not([hidden]) { display: inline-block; margin-left: auto; }
  .js .menu-links { display: none; }
  .js .menu-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; padding: 10px 0 6px; }
  .js .staff-bar .menu-links.open .right { flex-direction: column; align-items: flex-start; gap: 14px; margin: 6px 0 0;
    padding-top: 12px; border-top: 1px solid rgba(255,255,255,.3); width: 100%; }
  .js .site-header .menu-links.open { border-top: 1px solid var(--sage); padding-top: 14px; }
  .js .site-header .menu-links.open .pill { margin-top: 4px; }
  .staff-bar .inner, .site-header .inner { flex-wrap: wrap; }
  .site-header .brand { min-width: 0; flex: 1 1 0; }
  .site-header .menu-toggle { flex: 0 0 auto; }
  .site-header .brand img { width: 46px; height: 46px; }
  .site-header .brand .org { font-size: .85rem; }
  .site-header .brand .sub { font-size: .78rem; }
  .page-head { align-items: flex-start; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .avail-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .months { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); padding: 20px 16px; }
  .page-head { padding: 28px 20px; gap: 18px; }
  .badge-round { width: 64px; height: 64px; }
  .badge-round img { width: 34px; height: 34px; }
  .helpbar, .page-body { padding-left: 20px; padding-right: 20px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .site-header .inner { flex-wrap: wrap; padding: 12px 16px; }
  .site-nav { margin-left: 0; gap: 14px; }
  main, .staff-main { padding-left: 12px; padding-right: 12px; }
  .cal td { height: 54px; }
  .day { padding: 4px 5px; }
  .day .s { font-size: .62rem; }
}
/* Narrow screens: table rows become stacked cards (labels come from app.js). Without JS the
   .table-wrap still scrolls, so nothing is ever cut off. */
@media (max-width: 720px) {
  table.stackable thead { display: none; }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { border: 1px solid var(--olive); border-radius: 12px; padding: 6px 12px; margin-bottom: 12px; background: var(--white); }
  table.stackable tr:hover td { background: none; }
  table.stackable td { border: 0; padding: 6px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  table.stackable td::before { content: attr(data-label); font-weight: 800; font-size: .8rem; text-transform: uppercase;
    letter-spacing: .03em; color: var(--muted); text-align: left; flex: 0 1 55%; min-width: 0; }
  table.stackable td:not([data-label])::before, table.stackable td[data-label=""]::before { content: none; }
  table.stackable td:not([data-label]), table.stackable td[data-label=""] { justify-content: flex-start; }
  table.stackable td.num { text-align: right; }
  .occ td, .occ th { white-space: normal; text-align: right; }
  .staff-card { padding: 18px 16px; }
  .staff-main .page-title h1 { font-size: 1.6rem; }
  .staff-bar .inner { gap: 10px 16px; padding: 10px 12px; }
  .staff-bar .right { margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li > a, .steps li > span { padding: 12px 14px; font-size: 1rem; }
}
