/* Solio's own colours and fonts (olive, sage, khaki, cream; The Seasons and Lato). Quiet frame, 4px grid.
   Chart colours (storm blue, ochre) were checked for colour-blind separation on this surface. */
@font-face { font-family: "The Seasons"; src: url(fonts/seasons-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url(fonts/lato-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url(fonts/lato-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --olive: #4a533b; --olive-deep: #343b29; --sage: #69795f; --khaki: #bdbba2; --cream: #e3dec4;
  --paper: #f6f3e8; --card: #fbf9f1; --paper-2: #ebe6d2; --line: #d6d1b8;
  --ink: #262b1f; --ink-2: #4a533b; --ink-3: #62684f; --rust: #8f3a1c;
  --viewing: #2b78a6; --feeding: #c07f22;
  --serif: "The Seasons", "Iowan Old Style", Georgia, serif; --sans: Lato, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); } h2 { font-size: 1.375rem; } h3 { font-size: 1.125rem; font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 12px; } a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.top :focus-visible { outline-color: var(--cream); }
.small { font-size: .875rem; color: var(--ink-3); } .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.wrap { max-width: 1200px; margin-inline: auto; padding: 24px 16px 64px; }

.top { background: var(--olive); color: var(--cream); }
.top .in { max-width: 1200px; margin-inline: auto; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; padding: 12px 0; min-height: 48px; display: flex; align-items: center; }
nav { display: flex; overflow-x: auto; margin-left: auto; max-width: 100%; }
nav a { padding: 0 12px; min-height: 48px; display: flex; align-items: center; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: background-color .15s; }
nav a:hover { background: var(--olive-deep); } nav a[aria-current] { border-bottom-color: var(--cream); font-weight: 700; }
.demo { background: var(--paper-2); border-bottom: 1px solid var(--line); margin: 0; padding: 8px 16px; font-size: .875rem; text-align: center; }
.demo a { display: inline-block; padding: 12px 4px; margin: -12px 0; }

.button, button { font: 700 1rem/1.2 var(--sans); min-height: 44px; padding: 8px 16px; border-radius: 4px; border: 1px solid var(--olive); background: var(--card); color: var(--olive); cursor: pointer; transition: background-color .15s, color .15s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { background: var(--paper-2); } button:active { background: var(--khaki); }
.main, button.main { background: var(--olive); color: var(--cream); min-height: 48px; padding: 12px 24px; } .main:hover, button.main:hover { background: var(--olive-deep); }
button.plain { border-color: transparent; background: none; text-decoration: underline; font-weight: 400; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { font: 400 1rem/1.3 var(--sans); min-height: 44px; padding: 8px 12px; border: 1px solid var(--sage); border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
label { display: block; font-weight: 700; margin-bottom: 4px; } label .small { font-weight: 400; }
.field { margin-bottom: 16px; } .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 16px; }
.error { color: var(--rust); font-weight: 700; margin: 0 0 12px; } .error:empty { display: none; }
.bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-bottom: 24px; } .bar > .grow { flex: 1 1 200px; } .bar .field { margin: 0; } .bar input, .bar select { width: auto; max-width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 16px; align-items: start; } .grid2 .card { margin: 0; }
.wide { grid-column: 1 / -1; }

/* figures */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; } .tile b { display: block; font-size: 1.75rem; line-height: 1.2; } .tile span { color: var(--ink-3); font-size: .875rem; }
.hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; } .hero b { font-size: 3.5rem; line-height: 1; font-weight: 700; } .hero span { font-size: 1.125rem; color: var(--ink-2); }
.meter { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; min-width: 64px; } .meter i { display: block; height: 100%; background: var(--sage); border-radius: 4px; }
.key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .875rem; margin-bottom: 8px; } .key i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; }
.hb { display: grid; grid-template-columns: minmax(96px, 34%) 1fr 48px; gap: 8px; align-items: center; min-height: 32px; font-size: .9375rem; } .hb i { display: block; height: 16px; background: var(--sage); border-radius: 0 4px 4px 0; min-width: 2px; }
svg text { font: 12px var(--sans); fill: var(--ink-3); } svg .g { stroke: var(--line); stroke-width: 1; }
#tip { position: fixed; z-index: 9; pointer-events: none; background: var(--ink); color: var(--paper); padding: 6px 10px; border-radius: 4px; font-size: .875rem; max-width: 240px; } #tip[hidden] { display: none; }

/* tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; } th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 700; color: var(--ink-2); white-space: nowrap; } tfoot td { font-weight: 700; border-top: 2px solid var(--sage); border-bottom: 0; }
tr.pick { cursor: pointer; } tr.pick:hover { background: var(--paper-2); }
.heat td, .heat th { text-align: center; padding: 0; height: 44px; border: 2px solid var(--card); } .heat th:first-child, .heat td:first-child { text-align: left; padding: 0 12px 0 0; white-space: nowrap; }
.heat a { display: flex; align-items: center; justify-content: center; height: 44px; min-width: 56px; text-decoration: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .8125rem; font-weight: 700; border: 1px solid var(--sage); white-space: nowrap; }
.chip.arrived { background: var(--olive); border-color: var(--olive); color: var(--cream); } .chip.noshow { border-color: var(--rust); color: var(--rust); } .chip.cancelled { border-color: var(--line); color: var(--ink-3); text-decoration: line-through; }

/* day view */
.slot { margin-bottom: 16px; } .slot header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; } .slot header h3 { margin: 0; } .slot header .meter { flex: 0 0 96px; }
.bk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.bk .who { flex: 1 1 240px; min-width: 0; border: 0; background: none; text-align: left; display: block; padding: 4px 0; font-weight: 400; color: var(--ink); } .bk .who:hover { background: none; text-decoration: underline; } .bk .who b { display: block; }

/* guest page */
.guest { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 1040px; }
@media (min-width: 860px) { .guest { grid-template-columns: minmax(0, 1fr) 380px; } .guest img { position: sticky; top: 24px; } }
.guest img { width: 100%; height: auto; border-radius: 4px; display: block; }
.steps { color: var(--ink-3); margin-bottom: 4px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--sage); border-radius: 4px; background: var(--card); margin-bottom: 8px; cursor: pointer; font-weight: 400; min-height: 48px; }
.choice:has(input:checked) { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); background: #fff; } .choice input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--olive); flex: none; } .choice b { display: block; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; } .times button { flex-direction: column; min-height: 56px; } .times button span { font-weight: 400; font-size: .875rem; }
dl.sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 16px; } dl.sum dt { color: var(--ink-3); } dl.sum dd { margin: 0; font-weight: 700; }

dialog { border: 1px solid var(--line); border-radius: 8px; padding: 24px 16px; width: min(560px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(38, 43, 31, .5); } .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .actions .end { margin-left: auto; }
@media print { .top, .demo, .bar, button, .button { display: none !important; } body { background: #fff; } .card, .tile { border-color: #999; break-inside: avoid; } .wrap { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* pieces that used to be inline styles (the header set allows none) */
.bar h1, .slot header h3 { margin: 0; } .narrow { max-width: 420px; } .mid { max-width: 720px; } .gap { margin-top: 24px; } input.full { width: 100%; } input.short { max-width: 160px; }
.navbtn { border: 0; background: none; color: var(--cream); font-weight: 400; min-height: 48px; white-space: nowrap; text-decoration: underline; } .navbtn:hover { background: var(--olive-deep); }
.s0 { background: var(--card); } .s1 { background: color-mix(in oklab, var(--olive) 18%, var(--card)); } .s2 { background: color-mix(in oklab, var(--olive) 36%, var(--card)); }
.s3 { background: color-mix(in oklab, var(--olive) 55%, var(--card)); } .s4 { background: var(--olive); color: var(--cream); }
.fv, .kv { fill: var(--viewing); background: var(--viewing); } .ff, .kf { fill: var(--feeding); background: var(--feeding); } .hit { fill: transparent; }
.hp { position: absolute; left: -9999px; } .plainset { border: 0; padding: 0; margin: 0 0 16px; } .plainset legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.ptype { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; } .tick { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; min-height: 44px; white-space: nowrap; } .tick input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--olive); }
tr.void td { color: var(--ink-3); text-decoration: line-through; } td button.plain { min-height: 44px; padding: 0 4px; }
/* month calendar */
.cal { table-layout: fixed; } .cal th { text-align: center; padding: 8px 0; border: 0; }
.cal td { padding: 0; border: 1px solid var(--line); background: var(--card); vertical-align: top; }
.cal a { display: flex; flex-direction: column; gap: 4px; min-height: 88px; height: 100%; padding: 8px; text-decoration: none; font-size: .875rem; line-height: 1.25; overflow-wrap: anywhere; }
.cal a:hover { background: var(--paper-2); } .cal b { font: 400 1.375rem/32px var(--serif); } .cal small { font-size: inherit; }
.cal .meter { min-width: 0; margin-top: auto; flex: none; }
.cal .out { background: var(--paper); } .cal .out b { color: var(--ink-3); }
.cal .today b { width: 32px; text-align: center; border-radius: 50%; background: var(--olive); color: var(--cream); }
.cal .shut { background: repeating-linear-gradient(135deg, var(--paper-2) 0 8px, var(--cream) 8px 16px); } .cal .shut a:hover { background: none; text-decoration: underline; }
.why { color: var(--rust); font-weight: 700; }
@media (max-width: 700px) { .cal a { padding: 4px; min-height: 72px; font-size: .8125rem; } .cal small { display: none; } }
.closedday { border-color: var(--rust); border-left-width: 4px; } .closedday h2 { color: var(--rust); } .bk > .grow { flex: 1 1 240px; }
/* day rows: status and button keep the same place on every row */
.bk .st { flex: 0 0 160px; } .bk .do { flex: 0 0 148px; } .bk .do button { width: 100%; }
