/* Hunton Distribution brand (Brand Guidelines at a Glance, 2026)
   Light Green #009570 primary · Dark Green #005B44 secondary
   Trane Red #FF2B00 accent only · Hunton Black #231F20
   Arial Black headlines · Arial body. Archivo Black / Arimo are web stand-ins for
   phones that don't include Arial. */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Arimo"; src: url(/fonts/arimo-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Arimo"; src: url(/fonts/arimo-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --brand: #009570;
  --brand-dark: #005B44;
  --brand-tint: #e5f4ef;
  --accent: #FF2B00;
  --text: #231F20;
  --bg: #f3f5f4;
  --card: #ffffff;
  --muted: #5f6763;
  --line: #dfe5e2;
  --radius: 6px;
  --head: "Arial Black", "Archivo Black", Arial, sans-serif;
  --body: Arial, Arimo, Helvetica, sans-serif;
  font-family: var(--body);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
a { color: var(--brand-dark); }
button, input, textarea, select { font: inherit; }
h1, h2, .head { font-family: var(--head); font-weight: 400; letter-spacing: .01em; }
h3 { font-weight: 700; }

/* Header: logo bar + dark green title band with a light green stripe */
.topbar { background: var(--brand-dark); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; }
.topbar .logo { height: 34px; width: auto; display: block; }
.topbar .back { color: #fff; background: none; border: 0; font-size: 26px; line-height: 1; padding: 0 2px 2px 0; cursor: pointer; }
.topbar .link { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 6px 10px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.topbar .who { font-size: 12px; opacity: .85; }
.hero { background: var(--brand-dark); color: #fff; padding: 4px 16px 18px; border-bottom: 6px solid var(--brand); }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { margin: 0; font-size: 22px; line-height: 1.2; }
.hero h1.caps { text-transform: uppercase; }
.hero .sub { margin-top: 6px; font-size: 14px; opacity: .9; }
.hero .eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.spread { flex: 1; }

main { max-width: 760px; margin: 0 auto; padding: 18px 16px 96px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.card h2 { margin: 0 0 6px; font-size: 19px; color: var(--brand-dark); }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.section-title { font-family: var(--head); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-dark); margin: 22px 0 10px; padding-top: 8px; border-top: 2px solid var(--brand); }
.card .section-title:first-child { margin-top: 0; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--brand-tint); color: var(--brand-dark); }
.pill.tour { background: var(--brand-dark); color: #fff; }
.pill.draft { background: #eceeed; color: var(--muted); }
.pill.alert { background: var(--accent); color: #fff; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.tappable { cursor: pointer; transition: border-color .15s; }
.tappable:hover { border-color: var(--brand); }
.tappable:active { transform: scale(.995); }
.chev { color: var(--brand); flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 4px; padding: 11px 16px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 15px; }
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.btn.secondary:hover { background: var(--brand-tint); }
.btn.danger { background: #fff; color: #b3261e; border: 1.5px solid #e6b3ae; }
.btn.block { width: 100%; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 5px; color: var(--text); }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid #c5ceca; border-radius: 4px; background: #fff; font-size: 16px; color: var(--text); }
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(0,149,112,.3); border-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.error { background: #fdeceb; color: #9b1c15; padding: 10px 12px; border-radius: 4px; font-size: 14px; margin-top: 12px; border-left: 4px solid #b3261e; }
.notice { background: var(--brand-tint); border-left: 5px solid var(--brand); color: var(--text); padding: 12px 14px; border-radius: 4px; margin-bottom: 12px; font-size: 15px; }
.notice strong { color: var(--brand-dark); }

/* Schedule */
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.day-tabs button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 4px; padding: 8px 14px; font-weight: 700; cursor: pointer; color: var(--text); }
.day-tabs button.active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.slot { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.slot:last-child { border-bottom: 0; }
.slot .time { width: 78px; flex: none; font-weight: 700; font-size: 14px; color: var(--brand-dark); }
.slot .time span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.slot .title { font-weight: 700; }
.slot.now { background: var(--brand-tint); margin: 0 -16px; padding: 14px 16px; border-left: 4px solid var(--accent); }
.slot.past { opacity: .5; }
.maplink { display: inline-flex; gap: 4px; align-items: center; margin-top: 3px; }
.maplink svg { width: 13px; height: 13px; flex: none; }

/* Menu */
.menu { white-space: pre-wrap; line-height: 1.6; font-size: 15px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.bubble { max-width: 80%; padding: 10px 13px; border-radius: 12px; font-size: 15px; line-height: 1.4; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--brand-dark); color: #fff; border-bottom-right-radius: 3px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.bubble .txt { white-space: pre-wrap; }
.bubble .meta { font-size: 11px; opacity: .7; margin-top: 4px; }
.composer { position: fixed; left: 0; right: 0; bottom: 62px; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 8px; z-index: 4; }
.composer textarea { min-height: 44px; height: 44px; flex: 1; }
.composer.no-tabs { bottom: 0; }

/* Bottom tab bar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 5; padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { flex: 1; background: none; border: 0; border-top: 3px solid transparent; padding: 7px 0 9px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; position: relative; }
.tabbar button svg { display: block; width: 22px; height: 22px; margin: 0 auto 3px; }
.tabbar button.active { color: var(--brand-dark); border-top-color: var(--brand); }
.tabbar .dot { position: absolute; top: 6px; left: 57%; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }

/* Staff */
.list-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.stat { font-family: var(--head); font-size: 28px; color: var(--brand-dark); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 12px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--brand-dark); border-color: var(--brand); }
.checkbtn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #c5ceca; background: #fff; cursor: pointer; flex: none; display: grid; place-items: center; color: #fff; }
.checkbtn svg { width: 22px; height: 22px; }
.checkbtn.on { background: var(--brand); border-color: var(--brand); }
.center { text-align: center; }
.spacer { height: 8px; }
.hidden { display: none !important; }
