/* Sutika Home Care Tracker. Colours and type from the Sutika Home design system. */
@font-face {
  font-family: "Sutika Display";
  src: url("fonts/SutikaDisplay.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --forest: #1B3D36;
  --cream: #F4EFE8;
  --paper: #FEFAF1;
  --sand: #E4D3BC;
  --gold: #A8865C;
  --gold-text: #7A5C3A;
  --gold-on-forest: #CCAD80;
  --muted: #5C5750;
  --danger: #9B3B2E;
  --ok: #2F6B4F;
  --line: #E4D3BC;
  --display: "Sutika Display", "Lato", Georgia, serif;
  --sans: "Lato", "Carlito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--muted);
  font: 400 15px/23px var(--sans);
}
a { color: var(--forest); }
a:hover { color: var(--gold-text); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--forest); margin: 0; }
h1 { font-size: 30px; line-height: 36px; }
h2 { font-size: 22px; line-height: 28px; }
h3 { font-size: 18px; line-height: 24px; }
p { margin: 0; }
strong { color: var(--forest); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 19px; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mt2 { margin-top: 24px; } .mt3 { margin-top: 32px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap-row { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-text);
}
.on-forest .eyebrow, .band .eyebrow { color: var(--gold-on-forest); }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 20px 120px; }
.wrap-wide { max-width: 900px; padding-bottom: 64px; }
.area-public .wrap { padding-bottom: 0; }

.section { margin-top: 32px; }
.section > .eyebrow + h2 { margin-top: 8px; }
.head { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* Header bars */
.mother-bar {
  max-width: 560px; margin: 0 auto; padding: 16px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.mother-logo { width: 104px; display: block; }
.staff-bar { background: var(--forest); color: var(--cream); }
.staff-bar-in { max-width: 900px; margin: 0 auto; padding: 12px 20px 4px; display: flex; align-items: center; gap: 12px; }
.staff-logo img { width: 88px; display: block; }
.staff-who { margin-left: auto; font-size: 13px; color: var(--gold-on-forest); }
.staff-nav { max-width: 900px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.staff-nav::-webkit-scrollbar { display: none; }
.staff-nav a {
  flex: 0 0 auto; color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 12px 10px; border-bottom: 3px solid transparent; min-height: 44px; display: flex; align-items: center;
}
.staff-nav a[aria-current="page"] { border-bottom-color: var(--gold-on-forest); color: #fff; }
.link-btn { background: none; border: 0; padding: 8px 4px; font: 700 13px var(--sans); cursor: pointer; text-decoration: underline; color: var(--forest); min-height: 44px; }
.link-btn.on-forest { color: var(--cream); }

.mother-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
}
.mother-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; color: var(--muted); text-decoration: none; font-size: 12px;
}
.mother-nav a[aria-current="page"] { color: var(--forest); font-weight: 700; }

.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--forest); }

/* Surfaces */
.card { background: var(--paper); padding: 16px; }
.card-sand { background: var(--sand); padding: 16px; }
.band { background: var(--forest); color: var(--cream); padding: 24px; }
.band strong { color: var(--cream); }
.quote {
  margin-top: 16px; padding: 20px 4px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.quote p { font-family: var(--display); font-size: 22px; line-height: 30px; color: var(--forest); }

.big-num { font-family: var(--display); font-size: 52px; line-height: 52px; color: var(--gold-on-forest); }
.mid-num { font-family: var(--display); font-size: 30px; line-height: 34px; }
.num { font-family: var(--display); font-size: 22px; line-height: 26px; color: var(--forest); }

.bar { height: 4px; background: var(--sand); }
.bar > span { display: block; height: 100%; background: var(--gold); }
.band .bar { height: 6px; background: rgba(244, 239, 232, .2); }
.band .bar > span { background: var(--gold-on-forest); }

.svc { background: var(--paper); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.svc-name { font-weight: 700; color: var(--forest); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.list-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.date-box { width: 48px; flex-shrink: 0; text-align: center; }
.date-box .d { font-family: var(--display); font-size: 28px; line-height: 32px; color: var(--forest); display: block; }
.date-box .m { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--gold-text); }
.note { background: var(--cream); padding: 8px 12px; font-size: 13px; line-height: 19px; margin-top: 6px; }

.badge { display: inline-block; font-size: 12px; line-height: 18px; font-weight: 700; padding: 1px 8px; border-radius: var(--r); white-space: nowrap; }
.badge-done { background: var(--sand); color: var(--forest); }
.badge-sched { border: 1px solid var(--gold); color: var(--gold-text); padding: 0 8px; }
.badge-alert { background: var(--danger); color: #fff; }
.badge-missed { background: #EAD9D3; color: var(--danger); }
.badge-muted { background: #ECE6DD; color: var(--muted); }

/* Forms */
label, .label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--forest); }
.field { display: flex; flex-direction: column; gap: 8px; }
.hint { font-size: 13px; line-height: 19px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; background: var(--paper); color: var(--forest);
  border: 1px solid var(--gold); border-radius: var(--r); font: 400 16px/22px var(--sans);
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--forest); outline-offset: 2px;
}
.pin-input { font-size: 22px; letter-spacing: .5em; text-align: center; }
.prefix { display: flex; border: 1px solid var(--gold); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.prefix span { display: flex; align-items: center; padding: 0 12px; border-right: 1px solid var(--line); color: var(--forest); }
.prefix input { border: 0; border-radius: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--forest); }

.check { display: flex; align-items: center; gap: 12px; min-height: 52px; background: var(--paper); padding: 8px 16px; cursor: pointer; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); flex-shrink: 0; }
.check .t { display: flex; flex-direction: column; }
.check .t b { color: var(--forest); font-size: 15px; }
.check .t small { font-size: 12px; line-height: 17px; color: var(--muted); font-weight: 400; }

.count-row { display: flex; align-items: center; gap: 10px; background: var(--paper); padding: 8px 12px 8px 16px; min-height: 56px; }
.count-row .t { flex: 1 1 auto; min-width: 0; }
.count-row input[type=number] { width: 72px; min-height: 40px; text-align: center; font-weight: 700; padding: 6px; }
.count-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--forest); margin: 0; }

.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; background: var(--sand); border-radius: var(--r); }
.seg a, .seg label {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 4px;
  font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; cursor: pointer; position: relative;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg a[aria-current="page"], .seg label:has(input:checked) { background: var(--paper); color: var(--forest); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--gold); border-radius: var(--r); background: transparent; color: var(--forest);
  font: 700 13px var(--sans); text-decoration: none; cursor: pointer; position: relative;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip[aria-current="page"], .chip:has(input:checked) { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.plan-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.plan-pick label {
  display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: var(--paper);
  outline: 1px solid var(--line); cursor: pointer; position: relative;
}
.plan-pick label .n { font-family: var(--display); font-size: 32px; line-height: 36px; color: var(--gold); }
.plan-pick label .c { font-size: 12px; font-weight: 700; color: var(--forest); }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick label:has(input:checked) { background: var(--forest); outline-color: var(--forest); }
.plan-pick label:has(input:checked) .n { color: var(--gold-on-forest); }
.plan-pick label:has(input:checked) .c { color: var(--cream); }
.plan-pick label:has(input:focus-visible) { outline: 2px solid var(--forest); outline-offset: 2px; }

.day-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.day-pick a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--forest);
}
.day-pick a .w { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.day-pick a .n { font-family: var(--display); font-size: 22px; line-height: 26px; }
.day-pick a[aria-current="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.slot-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slot-pick label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 4px;
  border: 1px solid var(--gold); border-radius: var(--r); background: var(--paper); color: var(--forest);
  font-weight: 700; font-size: 14px; cursor: pointer; position: relative; text-align: center;
}
.slot-pick label small { font-weight: 400; font-size: 12px; }
.slot-pick input { position: absolute; opacity: 0; pointer-events: none; }
.slot-pick label:has(input:checked) { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.slot-pick label:has(input:focus-visible) { outline: 2px solid var(--forest); outline-offset: 2px; }

.week-grid { width: 100%; border-collapse: collapse; }
.week-grid th, .week-grid td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.week-grid th:first-child, .week-grid td:first-child { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--forest); }
.week-grid thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.week-grid input { width: 22px; height: 22px; accent-color: var(--forest); }
.table-scroll { overflow-x: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border: 0; border-radius: var(--r); background: var(--forest); color: var(--cream);
  font: 700 15px var(--sans); text-decoration: none; cursor: pointer; width: 100%;
}
.btn:hover { background: #24504a; color: var(--cream); }
.btn[disabled] { background: var(--sand); color: var(--muted); cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.btn-outline:hover { background: var(--paper); color: var(--forest); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: #F6E9E5; color: var(--danger); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; width: auto; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.flash { padding: 12px 16px; margin: 12px 0 0; font-size: 14px; line-height: 21px; border-radius: var(--r); }
.flash-ok { background: #DCE8DF; color: var(--forest); }
.flash-error { background: #F3DED9; color: var(--danger); }
.flash-info { background: var(--sand); color: var(--forest); }
.flash a { font-weight: 700; }

/* Staff */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stat { border: 1px solid rgba(204, 173, 128, .5); padding: 10px 12px; }
.stat .mid-num { color: var(--gold-on-forest); display: block; }
.stat span:last-child { font-size: 12px; line-height: 16px; }
.mother-card { display: flex; flex-direction: column; gap: 8px; background: var(--paper); padding: 14px 16px; text-decoration: none; color: var(--muted); }
.mother-card:hover { color: var(--muted); outline: 1px solid var(--gold); }
.left-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 13px; line-height: 19px; }
.left-grid div { display: flex; justify-content: space-between; gap: 8px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 820px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.pin-show { font-family: var(--display); font-size: 44px; line-height: 48px; letter-spacing: .12em; color: var(--forest); }
.login-band { background: var(--forest); color: var(--cream); padding: 24px; margin: 40px -20px 0; }
.login-band .eyebrow { color: var(--gold-on-forest); }
.empty { padding: 24px 16px; background: var(--paper); text-align: center; }
