/* Kudu's palette (pms/client/tailwind.config.js): navy, gold, teal. */
:root { --primary: #0D1B2A; --gold: #C8922A; --teal: #1B5E7B; --line: #d1d5db; --soft: #f3f4f6; --muted: #6b7280; --water: #cfe6f0; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #111827; background: #f9fafb; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--primary); color: #fff; }
.brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.brand .mark { border-radius: 8px; display: block; }
.spacer { flex: 1; }
.who { font-size: 13px; opacity: .8; }
.tabs { display: flex; gap: 4px; padding: 0 12px; background: var(--primary); overflow-x: auto; }
.tabs button { border: 0; background: transparent; color: #cbd5e1; padding: 10px 14px; font: inherit; font-weight: 600; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--gold); }
main { padding: 12px 16px 40px; max-width: 1500px; margin: 0 auto; }
.muted { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
button.primary { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }

/* The toolbar — Kudu's calendar controls: Today, a day or a week back/forward, the date, Month | Week. */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.bar button { min-height: 36px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.bar button:hover { background: var(--soft); }
.bar input[type="date"] { min-height: 36px; padding: 4px 8px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--primary); font-weight: 600; background: #fff; }
.bar .title { font-weight: 700; color: var(--primary); margin: 0 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* The grid — lodges down the side, days across, like rooms and days in Kudu. */
.gridbox { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.grid { position: relative; }
.row { display: flex; }
.label { flex: 0 0 var(--label-w); width: var(--label-w); position: sticky; left: 0; z-index: 3; background: #fff; border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; justify-content: center; }
.label b { font-size: 13px; line-height: 1.2; }
.label small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.head { background: var(--primary); color: #fff; }
.head .label { background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; border-right-color: #374151; }
.day { flex: 0 0 var(--col-w); width: var(--col-w); border-right: 1px solid var(--line); }
.head .day { border: 0; border-right: 1px solid #374151; background: transparent; color: inherit; font: inherit; text-align: center; padding: 5px 0; height: 52px; position: relative; cursor: pointer; }
.head .day .wd { font-size: 10px; opacity: .7; display: block; }
.head .day .num { font-size: 15px; font-weight: 700; display: block; line-height: 1.15; }
.head .day .mon { font-size: 9px; opacity: .7; display: block; }
.head .day.weekend { background: rgba(255,255,255,.07); }
.head .day.today .num { background: var(--gold); color: var(--primary); border-radius: 999px; width: 24px; margin: 0 auto; }
.head .day.selected { box-shadow: inset 0 -3px 0 var(--gold); }
.lodge { border-top: 1px solid var(--line); }
.cells { position: relative; display: flex; }
.cells svg.curve { position: absolute; left: 0; top: 0; pointer-events: none; }
.cells .day { display: flex; flex-direction: column; justify-content: flex-start; padding: calc(var(--overlay-h) + 4px) 3px 5px; background: transparent; border-top: 0; border-bottom: 0; border-left: 0; font: inherit; text-align: left; cursor: pointer; min-height: var(--row-h); }
.cells .day.weekend { background: rgba(13,27,42,.035); }
.cells .day.today { background: rgba(200,146,42,.10); }
.cells .day.selected { box-shadow: inset 0 0 0 2px var(--gold); }
.ex { display: flex; gap: 3px; font-size: var(--cell-font); line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex.high { color: var(--teal); font-weight: 700; }
.ex.low { color: #4b5563; }
.ex .m { margin-left: auto; }

/* The chosen day, large. */
.detail { margin-top: 14px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.detail h3 { margin: 0 0 2px; font-size: 15px; color: var(--primary); }
.detail .sub { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.detail svg { width: 100%; height: auto; display: block; }
.detail ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.detail li { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-variant-numeric: tabular-nums; }
.detail li.high { border-color: var(--teal); color: var(--teal); font-weight: 700; }
.detail li span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.note { margin-top: 14px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #78350f; }
.note b { color: #78350f; }
.credit { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* The weather tab: one dense forecast table per lodge — time across, a row per measure, every number on its colour. */
.wg-bar { gap: 8px; }
.wg-spot { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.wg-spot header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 12px; background: var(--primary); color: #fff; }
.wg-spot h3 { margin: 0; font-size: 15px; }
.wg-spot .sub { font-size: 12px; color: #cbd5e1; }
.wg-scroll { overflow-x: auto; }
.wg { border-collapse: separate; border-spacing: 0; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.wg td, .wg th { height: 20px; padding: 0; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; text-align: center; white-space: nowrap; }
.wg td { min-width: 28px; width: 28px; }
.wg td.first { border-left: 2px solid #6b7280; }
.wg .lab { position: sticky; left: 0; z-index: 2; min-width: 150px; padding: 0 8px; background: #f9fafb; border-right: 1px solid var(--line); text-align: right; font-weight: 600; color: #374151; }
.wg .lab .s { display: none; }
.wg-head td { height: 17px; background: #fff; border-bottom: 0; color: #111827; font-weight: 600; }
.wg-head.hr td { border-bottom: 1px solid #9ca3af; font-weight: 400; }
.wg-head td.weekend { color: #b91c1c; }
.wg-head td.night { background: #e5e7eb; }
.wg-head .lab { border-bottom: 0; } .wg-head.hr .lab { border-bottom: 1px solid #9ca3af; font-weight: 400; color: var(--muted); }
.wg-row.strong td { font-weight: 700; font-size: 12px; }
.wg-row.thin td, .wg-row.thin th { height: 16px; font-size: 10px; }
.wg-row.minor .lab { font-weight: 400; color: var(--muted); }
.wg-arrow { width: 13px; height: 13px; display: block; margin: 0 auto; fill: #111827; }
.wg-miss { padding: 6px 12px; font-size: 12px; color: #92400e; background: #fffbeb; border-top: 1px solid #fcd34d; }
@media (max-width: 639px) {
  .wg .lab { min-width: 62px; padding: 0 5px; font-size: 10px; }
  .wg .lab .l { display: none; } .wg .lab .s { display: inline; }
  .wg td { min-width: 26px; width: 26px; }
}

@media (max-width: 640px) {
  main { padding: 10px 10px 32px; }
  .bar .title { flex-basis: 100%; margin: 0; order: -1; }
}
