:root {
  --red: #c4161c;
  --red-dark: #9b0f14;
  --ink: #1b1d21;
  --ink-2: #3a3f47;
  --muted: #6b717b;
  --line: #e3e5e8;
  --bg: #f4f5f7;
  --card: #ffffff;
  --ok: #1f7a3a;
  --warn: #b26a00;
  --warn-bg: #fff4e0;
  --bad-bg: #fde8e8;
  --ok-bg: #e7f5ec;
  --radius: 12px;
  --cover-photo: url("https://static.wixstatic.com/media/26b7ec_851d7f3e1c304680a410ef167e3f1080~mv2.jpg/v1/fit/w_1920,h_1920,q_80/dons-ram.jpg");
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
h3 { font-size: 1rem; margin-top: .75rem; }
a { color: var(--red); }
[hidden] { display: none !important; }

/* ---------- brand ---------- */
.brand-mark { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.6rem; color: var(--red); letter-spacing: .02em; }
.brand-sub { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- cover / login ---------- */
body.cover { background: var(--ink); min-height: 100vh; }
.cover-wrap { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; justify-content: center; padding: 1.25rem; }
.cover-photo { position: fixed; inset: 0; background: var(--cover-photo) 58% 55% / cover no-repeat, linear-gradient(160deg, #3a3f47, #1b1d21); }
.cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); }
.login-card { position: relative; width: 100%; max-width: 400px; background: rgba(255,255,255,.97); border-radius: 16px; padding: 1.5rem; box-shadow: 0 12px 40px rgba(0,0,0,.35); border-top: 5px solid var(--red); margin-bottom: max(1rem, env(safe-area-inset-bottom)); }
.login-card h1 { font-size: 1.5rem; margin-top: .75rem; }
.lede { color: var(--muted); margin: 0 0 1rem; }
@media (min-width: 800px) {
  .cover-wrap { align-items: center; justify-content: flex-start; padding-left: 6vw; }
}
/* Phones held upright: show the whole truck at the bottom, sky above, login card up in the sky. */
@media (orientation: portrait) and (max-width: 799px) {
  .cover-wrap { align-items: flex-start; padding-top: max(1rem, env(safe-area-inset-top)); }
  .cover-photo {
    background:
      linear-gradient(180deg, #e5e5df 0%, rgba(229,229,223,.85) 35%, rgba(229,229,223,0) 100%) left 0 bottom 72.5vw / 100% 40vw no-repeat,
      var(--cover-photo) 72% 100% / 150vw auto no-repeat,
      linear-gradient(180deg, #d3d9de 0%, #e5e5df calc(100% - 112.5vw));
  }
  .cover-photo::after { background: none; }
  .login-card { margin-bottom: 0; padding: 1.1rem 1.25rem; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
  .login-card h1 { font-size: 1.3rem; margin-top: .5rem; }
  .lede { margin-bottom: .6rem; }
}

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: .6rem; }
label { font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 0; }
input, select, textarea { font: inherit; font-weight: 400; padding: .7rem .75rem; border: 1px solid #c9cdd2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.row.center { justify-content: center; margin: .25rem 0 1rem; }
.row.center input { width: auto; }
.check-row { flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; }
.check-row input { width: 22px; min-height: 22px; }
.hint { color: var(--muted); font-size: .85rem; margin: .25rem 0; }
.error { color: var(--red-dark); font-size: .9rem; margin: .25rem 0; min-height: 0; }
.error:empty { display: none; }
.warn-text { color: var(--warn); font-size: .9rem; margin: .25rem 0; }
.ok-text { color: var(--ok); font-size: .9rem; margin: .25rem 0; }
.check:empty { display: none; }
label .hint { font-weight: 400; }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.row > label { flex: 1 1 140px; min-width: 0; }

/* ---------- buttons ---------- */
.btn { font: inherit; font-weight: 600; border: 1px solid #c9cdd2; background: #fff; color: var(--ink); border-radius: 10px; padding: .65rem 1rem; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
.btn:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.danger { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); text-decoration: underline; }
.btn.small { padding: .35rem .7rem; min-height: 36px; font-size: .85rem; }
.btns { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.btns .note { width: auto; flex: 1 1 140px; min-height: 36px; padding: .35rem .6rem; font-size: .85rem; }

/* ---------- app chrome ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top)); background: #fff; border-bottom: 3px solid var(--red); }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: .5rem; }
.logo { align-items: center; gap: .6rem; }
.logo img { height: 40px; width: auto; display: block; }
.logo .brand-sub { display: inline; }
.me { display: flex; align-items: center; gap: .25rem; font-weight: 600; font-size: .9rem; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; padding: .5rem 1rem; background: var(--ink); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { color: #d6d9de; text-decoration: none; white-space: nowrap; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.tabs a.active { background: var(--red); color: #fff; }
.week { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .7rem 1rem; font-size: .9rem; }
.week strong { font-size: 1.05rem; letter-spacing: .03em; }
.week.rcmp { background: #0b2a5b; color: #fff; }
.week.rcmp strong::before { content: "★ "; color: #f2c230; }
.week.regular { background: #e9ecef; color: var(--ink-2); }
.view { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 4rem; }
.loading { color: var(--muted); text-align: center; padding: 3rem 0; }

/* ---------- cards & lists ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); border: 1px solid var(--line); }
.card.attn { border-left: 5px solid var(--red); }
.card.tonight { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.tonight h2 { color: #f2c230; }
.empty { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.card.tonight .muted { color: #b9bec6; }
.center { text-align: center; }
.plain { margin: 0; padding-left: 1.1rem; }
.plain li { margin: .25rem 0; }

.shifts { list-style: none; margin: 0; padding: 0; }
.shift { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.shift:last-child { border-bottom: 0; }
.shift .when { font-weight: 700; min-width: 6.5rem; }
.shift .what { font-weight: 600; }
.shift .time { color: var(--muted); }
.shift.cover .what { text-decoration: line-through; color: var(--muted); }

.outs { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.outs li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.outs li:last-child { border-bottom: 0; }
.outs .n { min-width: 4.5rem; color: #b9bec6; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.outs .p { font-weight: 700; font-size: 1.1rem; }
.outs li:first-child .p { color: #fff; font-size: 1.25rem; }
.outs li.cover .p { text-decoration: line-through; color: #b9bec6; }

.sched { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sched td { padding: .5rem .35rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sched td:first-child { color: var(--ink-2); white-space: nowrap; font-size: .85rem; }
.sched td:nth-child(2) { font-weight: 600; }
.sched td:last-child { color: var(--muted); font-size: .85rem; white-space: nowrap; text-align: right; }
.sched tr.mine td { background: #fff5f5; }
.sched tr.cover td:nth-child(2) { color: var(--red-dark); }
.daynav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-align: center; margin-bottom: .25rem; }
.daynav .btn { font-size: 1.4rem; width: 48px; }
.rcmp-text { color: #0b2a5b; font-weight: 700; }

.reqs { list-style: none; margin: .5rem 0 0; padding: 0; }
.reqs li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.reqs li:last-child { border-bottom: 0; }
.reqs.stacked li { flex-direction: column; align-items: stretch; }
.reqs p { margin: .25rem 0 0; }

.contacts { list-style: none; margin: 0; padding: 0; }
.contacts li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }

.ann { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.ann:last-child { border-bottom: 0; }
.ann h3 { margin: .25rem 0; }
.ann p { margin: .25rem 0; white-space: pre-line; }
.meta { color: var(--muted); font-size: .8rem; }

.balance { background: var(--bg); border-radius: 10px; padding: .6rem .75rem; margin: 0 0 .75rem; }
.balance strong { font-size: 1.3rem; color: var(--red); }

/* ---------- badges, tags, alerts ---------- */
.badge, .tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: #eceef1; color: var(--ink-2); white-space: nowrap; }
.tag.warn, .badge.warn, .badge.s-pending, .badge.s-waiting-on-driver, .badge.s-reported, .badge.s-open, .badge.s-in-shop { background: var(--warn-bg); color: var(--warn); }
.tag.bad, .badge.bad, .badge.s-denied, .badge.s-declined { background: var(--bad-bg); color: var(--red-dark); }
.badge.good, .badge.s-approved, .badge.s-fixed, .badge.s-covered { background: var(--ok-bg); color: var(--ok); }
.card.tonight .tag { background: rgba(255,255,255,.15); color: #fff; }
.card.tonight .tag.warn { background: #f2c230; color: var(--ink); }
.alert { display: block; padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; background: var(--warn-bg); color: var(--ink); text-decoration: none; font-weight: 600; }
.alert.ok { background: var(--ok-bg); }
.alert.no { background: var(--bad-bg); }

.toast { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translate(-50%, 150%); background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 10px; max-width: 92vw; transition: transform .25s; z-index: 20; font-weight: 600; }
.toast.show { transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .tabs { justify-content: center; flex-wrap: wrap; }
}

/* ---------- round 2: updates, calendar, damage reports, dispatch ---------- */
.link-card { display: block; text-decoration: none; color: var(--ink); }
.link-card p { margin: 0 0 .25rem; }
.link-card .more { color: var(--red); font-weight: 600; font-size: .9rem; }
.bad-text { color: var(--red-dark); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem .6rem; margin: 0; }
legend { font-weight: 600; font-size: .9rem; padding: 0 .25rem; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.checks .check-row { flex: 0 0 auto; font-weight: 500; }
.tag.t-vacation, .cal-name.t-vacation { background: #e3f1e6; color: #1f6a35; }
.tag.t-sick, .cal-name.t-sick, .tag.t-illness, .cal-name.t-illness, .tag.t-family-emergency, .cal-name.t-family-emergency { background: #fde8e8; color: #9b0f14; }
.tag.t-out-of-town-on-a-call, .cal-name.t-out-of-town-on-a-call { background: #e3ecfb; color: #1d4c9b; }
.tag.t-unavailable, .cal-name.t-unavailable { background: #efe6f7; color: #5b2c86; }
.tag.t-other, .cal-name.t-other { background: #eceef1; color: var(--ink-2); }
.tag.pending-tag { background: #fff; border: 1px dashed var(--muted); color: var(--muted); }
.tag.rcmp-key { background: #e6ebf4; color: #0b2a5b; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin: .25rem 0 .75rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.cal-head { background: var(--ink); color: #fff; text-align: center; font-size: .72rem; font-weight: 700; padding: .35rem 0; text-transform: uppercase; letter-spacing: .04em; }
.cal-day { background: #fff; min-height: 74px; padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-day.rcmp-wk { background: #f5f7fb; }
.cal-day.out { background: #f4f5f7; opacity: .55; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--red); }
.cal-day .num { font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.cal-name { display: block; font-size: .66rem; font-weight: 700; line-height: 1.2; padding: 1px 3px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-name.pending { background: #fff !important; border: 1px dashed currentColor; }
.cal-more { font-size: .66rem; color: var(--muted); font-weight: 700; }
.cal-day.hol { background: #fff7e0; }
.cal-hol { display: block; font-size: .62rem; font-weight: 800; line-height: 1.15; padding: 1px 3px; border-radius: 4px; background: #f6c343; color: #4a3500; white-space: normal; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.tag.hol-key { background: #f6c343; color: #4a3500; }
.hol-line { margin: 0 0 .6rem; padding: .5rem .7rem; background: #fff7e0; border-radius: 8px; }
@media (min-width: 700px) { .cal-day { min-height: 96px; padding: 5px; } .cal-name { font-size: .75rem; } }
.thumbs, .photos { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.thumbs:empty, .photos:empty { display: none; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.big { width: 110px; height: 110px; cursor: zoom-in; }
.x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.disp-chip { position: relative; display: inline-flex; align-items: center; gap: .3rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .2rem 1.9rem .2rem .6rem; font-size: .85rem; margin: .15rem 0; }
.disp-chip .x { top: 50%; transform: translateY(-50%); right: 3px; width: 22px; height: 22px; font-size: 14px; }
.impact { margin-top: .4rem; padding: .4rem .6rem; background: var(--bg); border-radius: 8px; }
.impact p { margin: .15rem 0; }
.table-wrap { overflow-x: auto; }
.sched.staff th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .35rem; border-bottom: 2px solid var(--line); }
.sched.staff td:last-child { text-align: left; }
.sched .till { display: block; font-size: .78rem; color: var(--muted); white-space: normal; }
.sched.staff td:first-child { font-weight: 700; color: var(--ink); font-size: .95rem; }
.sched.staff td:nth-child(2) { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.toast { visibility: hidden; transition: transform .25s, visibility .25s; }
.toast.show { visibility: visible; }
.disp-list summary { cursor: pointer; font-weight: 600; color: var(--red); padding: .4rem 0; }
.sched td:nth-child(2):last-child { color: var(--ink); font-size: .95rem; text-align: left; white-space: normal; font-weight: 600; }
.dir-search { width: 100%; margin: 0 0 .75rem; }
.contacts li[hidden] { display: none; }
.contacts li > div { min-width: 0; overflow-wrap: anywhere; }
.contacts li .btn { white-space: nowrap; flex-shrink: 0; }
/* schedule: dispatch beside drivers on wide screens, right after Day rotation on phones */
.sched-cols { display: flex; flex-direction: column; }
.sched-cols .col { display: contents; }
.sched-cols .s-day { order: 1; } .sched-cols .s-disp { order: 2; } .sched-cols .s-night { order: 3; } .sched-cols .s-off { order: 4; }
@media (min-width: 900px) {
  .view:has(.sched-cols) { max-width: 1180px; }
  .sched-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 1rem; align-items: start; }
  .sched-cols .col { display: block; }
  .sched-cols .side { position: sticky; top: 1rem; }
}
/* purchase orders */
.po-num { font-size: 2.6rem; font-weight: 800; letter-spacing: .02em; margin: .1rem 0 .4rem; color: var(--ink); }
.badge.s-waiting-for-kevin { background: var(--warn-bg); color: var(--warn); }
.po-shop { align-self: end; padding-bottom: .6rem; }

/* benefits */
.ben { width: 100%; border-collapse: collapse; }
.ben td { padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ben tr:last-child td { border-bottom: 0; }
.ben td:last-child { text-align: right; white-space: nowrap; font-weight: 800; padding-left: .75rem; color: var(--ink); }
.ben .muted { font-size: .88rem; }
.ben-facts li { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.ben-facts li:last-child { border-bottom: 0; }
.ben-facts li span { color: var(--muted); }
.ben-facts li strong { text-align: right; }
.ben-steps { padding-left: 1.2rem; margin: 0 0 .75rem; }
.ben-steps li { margin-bottom: .5rem; }

/* EAP highlight */
.card.eap { background: #0b2a5b; color: #fff; border: 0; }
.card.eap h2 { color: #fff; }
.eap-lead { font-size: 1.02rem; }
.eap-call { display: block; text-align: center; background: #f6c343; color: #1b1b1b; border-radius: 12px; padding: .85rem 1rem; margin: .9rem 0; text-decoration: none; }
.eap-call span { display: block; font-size: 1.35rem; font-weight: 800; }
.eap-call small { display: block; font-weight: 700; opacity: .8; }
.eap-list { margin: 0 0 .6rem; padding-left: 1.1rem; }
.eap-list li { margin-bottom: .3rem; }
.eap-911 { margin: 0; font-size: .9rem; opacity: .9; }
.eap-911 a { color: #fff; font-weight: 800; }
.ben-docs li { padding: .35rem 0; }
.ben-docs a { font-weight: 700; }

/* code of conduct page */
.pol-hero { border-radius: var(--radius); min-height: 240px; background-size: cover; background-position: center 40%; color: #fff; display: flex; align-items: flex-end; padding: 1.25rem; margin-bottom: .75rem; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.pol-hero h1 { margin: 0 0 .35rem; font-size: 2rem; line-height: 1.05; color: #fff; }
.pol-hero p { margin: 0; max-width: 34rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.pol-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: #f6c343 !important; margin-bottom: .25rem !important; }
.pol-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem 0 .6rem; margin-bottom: .25rem; scrollbar-width: none; }
.pol-chips::-webkit-scrollbar { display: none; }
.pol-chip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .4rem .8rem; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.pol-chip:active { background: var(--ink); color: #fff; }
#pol-report, #pol-job, #pol-dress, #pol-truck, #pol-respect, #pol-speak { scroll-margin-top: 140px; }
.pol-person { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem .75rem; background: var(--bg); border-radius: 10px; margin-bottom: .6rem; }
.pol-tiles { list-style: none; counter-reset: t; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pol-tiles li { counter-increment: t; background: var(--bg); border-radius: 10px; padding: .6rem .65rem .65rem; position: relative; }
.pol-tiles li::before { content: counter(t); display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; align-items: center; justify-content: center; margin-bottom: .3rem; }
.pol-tiles strong { display: block; line-height: 1.2; }
.pol-tiles span { display: block; font-size: .85rem; color: var(--muted); margin-top: .2rem; line-height: 1.3; }
.pol-list { padding-left: 1.15rem; margin: .4rem 0 0; }
.pol-list li { margin-bottom: .45rem; }
.pol-photo-card { overflow: hidden; }
.pol-photo { display: block; width: calc(100% + 2rem); max-width: none; margin: -1rem -1rem 1rem; height: 200px; object-fit: cover; object-position: center 60%; }
.pol-zero { background: #9b0f14; color: #fff; border: 0; }
.pol-zero h2 { color: #fff; }
.pol-big { font-size: 1.2rem; line-height: 1.3; margin-top: 0; }
.pol-two { display: grid; gap: 0; }
.pol-speak { background: #0b2a5b; color: #fff; border: 0; }
.pol-speak h2 { color: #fff; }
.pol-speak a { color: #fff; }
.pol-actions { display: grid; gap: .5rem; margin: .8rem 0; }
.pol-btn { display: block; text-align: center; background: #f6c343; color: #1b1b1b !important; border-radius: 12px; padding: .75rem 1rem; text-decoration: none; }
.pol-btn span { display: block; font-size: 1.15rem; font-weight: 800; }
.pol-btn small { display: block; font-weight: 700; opacity: .8; }
.pol-btn.alt { background: #fff; }
.pol-small { font-size: .88rem; opacity: .9; margin: 0; }
@media (min-width: 760px) {
  .pol-hero { min-height: 320px; padding: 2rem; }
  .pol-hero h1 { font-size: 2.6rem; }
  .pol-tiles { grid-template-columns: repeat(4, 1fr); }
  .pol-two { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .pol-actions { grid-template-columns: 1fr 1fr; }
  .pol-photo { height: 280px; }
}

/* stronger RCMP weeks */
.cal-day.rcmp-wk { background: #dce6f6; box-shadow: inset 0 3px 0 #0b2a5b; }
.cal-day.rcmp-wk.today { box-shadow: inset 0 3px 0 #0b2a5b, inset 0 0 0 2px var(--red); }
.cal-day.rcmp-wk.hol { background: #fff1c7; }
.cal-day.rcmp-wk .num { color: #0b2a5b; }
.cal-rcmp { display: inline-block; margin-left: 3px; vertical-align: 1px; background: #0b2a5b; color: #fff; font-size: .55rem; font-weight: 800; letter-spacing: .03em; padding: 1px 3px; border-radius: 3px; }
.tag.rcmp-key { background: #0b2a5b; color: #fff; }

/* grouped navigation */
.subtabs { display: flex; gap: .3rem; overflow-x: auto; padding: .45rem 1rem; background: #2b2e34; border-top: 1px solid rgba(255,255,255,.06); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subtabs[hidden] { display: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { color: #c4c8cf; text-decoration: none; white-space: nowrap; padding: .35rem .75rem; border-radius: 999px; font-weight: 600; font-size: .85rem; border: 1px solid rgba(255,255,255,.12); }
.subtabs a.active { background: #fff; color: var(--ink); border-color: #fff; }
@media (min-width: 700px) { .subtabs { justify-content: center; flex-wrap: wrap; } }
@media (max-width: 460px) { .tabs { gap: 0; padding: .5rem .4rem; } .tabs a { padding: .45rem .55rem; font-size: .84rem; } }

/* photos */
.pg-banner { height: 150px; border-radius: var(--radius); background-size: cover; display: flex; align-items: flex-end; padding: .9rem 1rem; margin-bottom: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.pg-banner h1 { margin: 0; color: #fff; font-size: 1.6rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.slides { position: relative; height: 210px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: #1b1d21; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slide-fade 42s infinite; }
.slides img:first-child { opacity: 1; }
@keyframes slide-fade { 0% { opacity: 0; } 2% { opacity: 1; } 14% { opacity: 1; } 17% { opacity: 0; } 100% { opacity: 0; } }
.slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.slides-text { position: absolute; left: 1rem; right: 1rem; bottom: .8rem; z-index: 1; color: #fff; display: flex; flex-direction: column; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.slides-text strong { font-size: 1.7rem; line-height: 1.1; }
.slides-text span { font-size: .85rem; opacity: .9; }
.slides-text span:first-child { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 800; color: #f6c343; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .slides img { animation: none; } }
@media (min-width: 760px) { .pg-banner { height: 220px; } .slides { height: 300px; } }
.install-tip { display: flex; gap: .75rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; margin-bottom: 1rem; position: relative; font-size: .92rem; }
.install-tip img { border-radius: 10px; flex: 0 0 auto; }
.install-tip .x { position: absolute; top: .3rem; right: .4rem; background: none; border: 0; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
/* fleet */
.fleet-sum { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.fleet-sum .badge { font-size: .85rem; padding: .3rem .75rem; }
.units { list-style: none; margin: 0; padding: 0; }
.unit-row { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.unit-row:last-child { border-bottom: 0; }
.unit-no { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.unit-main { min-width: 0; flex: 1; }
.unit-main .svc { margin-top: .3rem; font-size: .92rem; }
.unit-edit { margin-top: .4rem; }
.unit-edit summary { cursor: pointer; color: var(--red); font-weight: 700; font-size: .9rem; }
.unit-edit form { margin-top: .5rem; }
/* receipts, onboarding */
.daynav.small { margin-bottom: .5rem; }
.rc-coded { font-size: .9rem; font-weight: 700; }
.ob-checks { display: grid; grid-template-columns: 1fr; gap: .15rem; margin-top: .45rem; }
@media (min-width: 560px) { .ob-checks { grid-template-columns: 1fr 1fr; } }
.ob-checks .check-row { font-size: .92rem; }
.badge.s-coded, .badge.s-issued, .badge.s-closed { background: var(--ok-bg); color: var(--ok); }
.badge.s-requested, .badge.s-sent { background: var(--warn-bg); color: var(--warn); }

/* photos round 2 */
.slides img { animation-duration: 72s; animation-name: slide-fade12; }
@keyframes slide-fade12 { 0% { opacity: 0; } 1.2% { opacity: 1; } 8.3% { opacity: 1; } 10% { opacity: 0; } 100% { opacity: 0; } }
.unit-no.pic { width: 3.6rem; height: 3.6rem; background-size: cover; background-position: center; position: relative; align-items: flex-end; justify-content: flex-start; overflow: hidden; }
.unit-no.pic b { background: var(--ink); color: #fff; font-size: .8rem; padding: .1rem .35rem; border-top-right-radius: 8px; }
/* safety talks + shout-outs */
.talk { padding: .25rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.talk:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.talk h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.talk-text { white-space: pre-wrap; line-height: 1.5; }
.talk-done { list-style: none; padding: 0; margin: 0; }
.talk-done li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.talk-done li:last-child { border-bottom: 0; }
.talk-done summary { cursor: pointer; }
.talk-rows { list-style: none; padding: 0; margin: 0; }
.talk-row { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.talk-row:last-child { border-bottom: 0; }
.talk-main { flex: 1; min-width: 0; }
.talk-bar { height: 8px; border-radius: 99px; background: #eceef1; overflow: hidden; margin: .4rem 0 .2rem; }
.talk-bar span { display: block; height: 100%; background: var(--ok); }
.shouts { list-style: none; padding: 0; margin: 0; }
.shout { padding: .6rem 0 .6rem .8rem; border-left: 4px solid var(--red, #c8102e); margin-bottom: .6rem; }
.shout.cust { border-left-color: #f6c343; }
.shout p { margin: .1rem 0; }
.shout .meta { font-size: .8rem; color: var(--ink-2); }
.tag.gold { background: #fff3c4; color: #7a5a00; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font: inherit; cursor: pointer; }
.more-shouts summary, .shout-card .give summary { cursor: pointer; font-weight: 700; margin: .4rem 0; }
.shout-card .give summary { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; list-style: none; }
.shout-card .give summary::-webkit-details-marker { display: none; }
.shout-card .give[open] summary { margin-bottom: .6rem; }
/* christmas party */
.card.party { background: linear-gradient(150deg, #0f3d2e 0%, #155c3f 100%); color: #fff; border-top: 4px solid var(--red); }
.card.party h2 { color: #fff; font-size: 1.45rem; text-transform: none; letter-spacing: 0; margin: .1rem 0 .4rem; }
.party-kicker { margin: 0; color: #f6c343; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.party-when { margin: 0 0 .8rem; line-height: 1.45; }
.party-when a, .card.party summary { color: #f6c343; }
.party-times { list-style: none; padding: 0; margin: 0 0 .8rem; border-top: 1px solid rgba(255,255,255,.18); }
.party-times li { display: flex; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.party-times b { flex: 0 0 5.2rem; color: #f6c343; }
.card.party details { margin-bottom: .7rem; }
.card.party summary { cursor: pointer; font-weight: 700; }
.party-menu { padding-left: 1.1rem; margin: .5rem 0 0; line-height: 1.45; }
.party-menu li { margin-bottom: .35rem; }
.party-menu b { display: block; color: #f6c343; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.party-notes { padding-left: 1.1rem; margin: 0; line-height: 1.45; font-size: .92rem; }
.party-notes li { margin-bottom: .3rem; }
.cal-evt { display: block; font-size: .62rem; font-weight: 800; line-height: 1.15; padding: 1px 3px; margin-top: 1px; border-radius: 4px; background: #155c3f; color: #fff; overflow-wrap: break-word; }

/* Shop bookings on the calendar */
.cal-shop { display: block; font-size: .62rem; font-weight: 800; line-height: 1.15; padding: 1px 3px; border-radius: 4px; background: #b8520a; color: #fff; overflow-wrap: break-word; }
.cal-shop.in-house { background: #ffe0c2; color: #7a3200; }
.tag.shop-key { background: #b8520a; color: #fff; }
@media (min-width: 700px) { .cal-shop { font-size: .7rem; } }

/* Engine fault codes (from Samsara) on the Fleet and Updates pages */
.faults { margin-top: .2rem; font-size: .88rem; line-height: 1.35; }
.fault strong { font-weight: 800; }

/* cover: unit 16 photo + logo */
:root { --cover-photo: url("https://static.wixstatic.com/media/26b7ec_00f96a7b05c8440a821f027c085163dd~mv2.jpg/v1/fit/w_1920,h_1920,q_80/dons-16.jpg"); }
.cover-photo { background: var(--cover-photo) 50% 62% / cover no-repeat, linear-gradient(160deg, #3a3f47, #1b1d21); }
.brand-logo { display: block; width: 200px; max-width: 70%; height: auto; }
@media (min-width: 800px) {
  .cover-wrap { align-items: flex-start; padding-top: 6vh; }
}
@media (orientation: portrait) and (max-width: 799px) {
  .cover-photo {
    --cb: clamp(0px, calc(100vh - 83.4vw - 430px), 14vh);
    background:
      linear-gradient(180deg, #a68c73 0%, rgba(166,140,115,0) 100%) left 0 bottom calc(var(--cb) + 69.4vw) / 100% 14vw no-repeat,
      linear-gradient(180deg, rgba(133,126,119,0) 0%, #857e77 100%) left 0 bottom var(--cb) / 100% 10vw no-repeat,
      var(--cover-photo) left 42% bottom var(--cb) / 125vw auto no-repeat,
      linear-gradient(180deg, #857e77 0%, #6f6a64 100%) left 0 bottom 0 / 100% calc(var(--cb) + 1px) no-repeat,
      linear-gradient(180deg, #8c7259 0%, #a68c73 100%);
  }
  .brand-logo { width: 170px; }
}