:root {
  --bar: #3e6b4a;
  --sage: #eef3ea;
  --line: #c5d0c4;
  --ink: #243028;
  --open: #5d7f55;
  --closed: #a45c5c;
  --warn: #9a4a4a;
  --muted: #5e6e62;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #f6f3ec; }
body, .board { font-family: Futura, "Futura PT", Montserrat, "Century Gothic", sans-serif; color: var(--ink); }
.board { min-height: 100vh; display: flex; flex-direction: column; background: #f7f4ee; }

.topbar {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 0.7fr;
  align-items: center;
  background: var(--bar);
  color: #fff;
  min-height: 64px;
  padding: 0 8px;
}
.brand, .top-when, .top-hours {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  height: 100%; padding: 8px 16px;
}
.brand { justify-content: flex-start; border-right: 1px solid rgba(255,255,255,0.35); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 20px; }
.brand-mark { height: 32px; }
.top-when { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 20px; gap: 22px; border-right: 1px solid rgba(255,255,255,0.35); }
.top-hours { flex-direction: column; line-height: 1.05; text-transform: uppercase; align-items: flex-end; padding-right: 22px; }
.top-hours span { font-size: 13px; letter-spacing: 0.12em; }
.top-hours strong { font-size: 18px; }

.body { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 12px; padding: 12px; flex: 1; min-height: 0; }
.left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trio { display: grid; grid-template-columns: 1fr 1.15fr 0.95fr; gap: 10px; }
.card, .course, .practice-wrap, .calendar-card {
  background: var(--sage);
  border: 1.5px solid var(--line);
  border-radius: 8px;
}
.card { padding: 8px 10px 12px; }
.card-label, .course-label, .section-label, .fac-name {
  margin: 0; text-align: center; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; font-size: 13px; color: var(--muted);
}
.wx-body, .staff-body, .pin-body { display: flex; align-items: center; justify-content: center; min-height: 78px; gap: 10px; }
.wx-temp { font-size: 40px; font-weight: 800; }
.wx-sky { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wx-body svg { width: 52px; height: 52px; }
.staff-photo, .staff-photo img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; }
.staff-name { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15; max-width: 140px; }
.pin-flag { font-size: 34px; color: var(--bar); }
.pin-num { font-size: 52px; font-weight: 800; color: var(--bar); line-height: 1; }

.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.course { text-align: center; padding: 0 0 12px; overflow: hidden; }
.course-label { background: #e4ece2; padding: 8px; border-bottom: 1px solid var(--line); }
.pill {
  display: inline-block; margin: 12px 0 4px; padding: 7px 28px; border-radius: 8px;
  color: #fff; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: var(--open); font-size: 16px;
}
.course.closed .pill { background: var(--closed); }
.course.restricted .pill { background: #c9a44a; color: #1b1b1b; }
.course-detail { margin: 8px 0 0; color: var(--warn); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 20px; line-height: 1.15; }
.tee { margin: 4px 0 0; font-size: 13px; color: #555; }

.practice-wrap, .calendar-card { overflow: hidden; }
.section-label { background: #e4ece2; padding: 8px; border-bottom: 1px solid var(--line); }
.fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fac { text-align: center; padding: 12px 6px 14px; border-right: 1px solid var(--line); }
.fac:last-child { border-right: 0; }
.fac-name { margin-bottom: 8px; }
.fac-state {
  display: inline-block; padding: 6px 18px; border-radius: 8px; background: var(--open); color: #fff;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px;
}
.fac.off .fac-state { background: var(--closed); }
.fac.limited .fac-state { background: #c9a44a; color: #111; }
.fac-limit, .fac-extra { display: block; font-size: 11px; margin-top: 4px; color: #666; min-height: 0; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); min-height: 88px; }
.cell { padding: 8px 4px 10px; border-right: 1px solid var(--line); text-align: center; }
.cell:last-child { border-right: 0; }
.cal-head { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.num { font-weight: 800; font-size: 16px; }
.chip { margin-top: 8px; color: var(--bar); font-weight: 800; font-size: 13px; text-transform: uppercase; line-height: 1.2; }
.chip small { display: block; font-size: 11px; font-weight: 600; color: #777; text-transform: none; }

.flyer { border-radius: 8px; overflow: hidden; background: #fff; border: 1.5px solid var(--line); min-height: 100%; }
.flyer-frame { height: 100%; display: flex; align-items: center; justify-content: center; }
.flyer-frame img, .flyer-frame iframe { width: 100%; height: 100%; object-fit: contain; border: 0; }
.flyer-empty { color: #999; }

.honors-ticker { display: flex; background: #f3efe8; min-height: 48px; overflow: hidden; border-top: 1px solid #e4dfd6; }
.honors-label {
  background: var(--bar); color: #fff; padding: 6px 14px; display: flex; flex-direction: column; justify-content: center;
  font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 13px; line-height: 1.15; white-space: nowrap;
}
.honors-track-wrap { flex: 1; overflow: hidden; display: flex; align-items: center; }
.honors-track { display: flex; gap: 40px; white-space: nowrap; animation: honors-scroll 40s linear infinite; padding-left: 12px; color: #6a756e; font-weight: 600; font-size: 16px; }
.honors-track b { color: var(--bar); margin-right: 6px; }
@keyframes honors-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.message-dock { background: #fff6db; }
.ticker { overflow: hidden; height: 32px; display: flex; align-items: center; }
.ticker-track { white-space: nowrap; animation: honors-scroll 22s linear infinite; padding-left: 100%; }
.hio { position: fixed; inset: 64px 0 48px; background: #1f6b3a; color: #fff; z-index: 30; display: none; align-items: center; justify-content: center; }
body.hio-show .hio { display: flex; }
.hio-box { background: #fff; color: #145c32; margin: 8px; padding: 10px 16px; border-radius: 6px; font-weight: 700; }


/* v20261022c — match mockup: larger header, short dividers, green headers, fill height, ticker */
.topbar { min-height: 72px; padding: 0; }
.brand, .top-when, .top-hours { border-right: 0; position: relative; }
.brand::after, .top-when::after {
  content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,0.45);
}
.brand { font-size: 26px; }
.top-when { font-size: 24px; }
.top-hours span { font-size: 15px; }
.top-hours strong { font-size: 22px; }

.body { flex: 1; }
.left { flex: 1; }
.calendar-card { flex: 1; display: flex; flex-direction: column; }
.cal { flex: 1; }

.card, .course, .practice-wrap, .calendar-card { border: 2px solid #6d8a72; background: #f4f7f2; }
.course-label, .section-label, .card-label {
  background: #d5e0d4; color: #3e5c46; font-weight: 700;
}
.course-label { display: flex; align-items: center; justify-content: center; gap: 8px; }
.course-ico { height: 16px; width: auto; }
.hs { font-size: 16px; }

.honors-ticker { display: flex !important; min-height: 52px; }


/* v20261022d — compact mockup proportions */
.trio .card { min-height: 0; }
.wx-body, .staff-body, .pin-body { min-height: 64px; }
.pin-flag { width: 28px; height: 40px; }
.pin-num { font-size: 48px; }
.card, .course { padding-bottom: 10px; }
.calendar-card { min-height: 120px; }
.cal { min-height: 90px; }
.honors-track { color: #4a5c50; font-size: 18px; }
