:root {
  --ink: #111;
  --muted: #555;
  --line: #d0d0d0;
  --blue: #1f5fbf;
  --blue-bg: #e6efff;
  --green: #1e8e3e;
  --green-bg: #e7f5ea;
  --red: #b00020;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.board {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0;
}

.switch {
  padding: .6rem 1rem;
  border: 2px solid var(--ink);
  border-radius: .5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.switch:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.banner-stale {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.updated {
  color: var(--muted);
  margin: .75rem 0;
}

.queue-bar {
  padding: .6rem .9rem;
  border: 2px solid;
  border-radius: .5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.queue-bar.dropoff {
  border-color: var(--blue);
  background: var(--blue-bg);
}

.queue-bar.pickup {
  border-color: var(--green);
  background: var(--green-bg);
}

table.queue {
  width: 100%;
  border-collapse: collapse;
}

.queue th {
  text-align: left;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  padding: .4rem .3rem;
  border-bottom: 2px solid var(--line);
}

.queue td {
  padding: .65rem .3rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.queue td:nth-child(1) {
  width: 2.2rem;
  font-weight: 700;
}

.queue td:nth-child(2) {
  font-weight: 700;
  white-space: nowrap;
}

.queue td:nth-child(3) {
  white-space: nowrap;
}

.queue tr.first td:nth-child(4) {
  font-weight: 700;
}

.empty {
  padding: 1rem 0;
}

@media (max-width: 25rem) {
  body {
    font-size: 16px;
  }

  .board {
    padding: .75rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  .switch {
    padding: .5rem .75rem;
  }

  .queue th {
    font-size: .8rem;
  }

  .queue td {
    padding: .5rem .25rem;
  }

  .queue td:nth-child(3) {
    white-space: normal;
  }
}

/* ---------- Fixed brand banner ---------- */
.brand-bar {
  position: sticky;
  /* stays at the top while the page scrolls */
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgb(0 0 0 / 6%);
}

.brand-bar-inner {
  max-width: 40rem;
  /* lines up with the page content */
  margin: 0 auto;
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  /* never shrink or stretch in the flex row; the height below sets the size */
  width: auto;
  max-width: none;
}

.brand-logo-tc {
  height: 36px;
}

/* EmptyLink lettering is larger, so a smaller box balances the two */
.brand-logo-el {
  height: 26px;
}

@media (max-width: 25rem) {
  .brand-bar-inner {
    padding: .5rem .75rem;
  }

  /* both logos plus padding must fit a 320px phone, since they no longer shrink */
  .brand-logo-tc {
    height: 28px;
  }

  .brand-logo-el {
    height: 19px;
  }
}
