/* --- The Board and Clearance --------------------------------------------------------------- */
/* One rule of colour: everything due is burgundy; what must happen today, or the house cannot
   run, is red; nothing else is coloured. "Open" never changes a fill: only the ring and the
   pointer show it. Built for a twelve-inch tablet and a laptop: four desks across down to 760px. */
:root { --wine: #7A1F2B; --wine-deep: #5E1520; --wine-on: #FFF4F2; --wine-soft: #E9C3C8; --red: #B3261E; --red-deep: #8C1D17; --red-soft: #F4C9C5; --fine: #4E8A5A; --cream: #FFFDF8; --sans: "Manrope", "Segoe UI", system-ui, sans-serif; }
.board { max-width: 1180px; margin: 0 auto; padding: 16px 28px 40px; }
.board-date { margin: 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.board-name { margin: 2px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.08; }
.board-yesterday { margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.board-yesterday span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-right: 10px; }
.board-standing { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 12px; font-size: .95rem; color: var(--muted); }
.board-standing b { font-weight: 600; color: var(--ink); }
.board-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.board-standing.is-fine, .board-standing.is-fine b { color: var(--fine); }
.board-standing.is-fine .board-dot { background: var(--fine); }
/* The names in the line are red and lead to their desk. The Clearance button is an <a> in the
   same line and is said apart, so the rule for the names never reaches it. */
.board-standing a.board-urgent { color: var(--red); text-decoration: none; border-bottom: 1px solid var(--red-soft); }
.board-standing a.board-urgent:hover { border-bottom-color: var(--red); }
.board-standing a.clearance-button, .clearance-button {
  display: inline-flex; align-items: center; gap: 12px; margin-left: auto; padding: 6px 8px 6px 18px; border-radius: 999px;
  background: var(--wine); color: var(--wine-on); text-decoration: none; border-bottom: 0;
}
.board-standing a.clearance-button:hover { background: var(--wine-deep); }
.clearance-word { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wine-on); }
.clearance-n { min-width: 34px; height: 34px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--wine); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

.board-desks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.desk-wrap { position: relative; display: flex; }
.board-desk {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; min-height: 104px; padding: 12px 18px 10px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.board-desk:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(42,37,33,.08), 0 18px 40px rgba(42,37,33,.08); }
.board-desk:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.board-desk-name { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.1; }
.board-desk-sub { display: block; margin-top: 2px; font-size: .76rem; color: var(--muted); }
.board-desk-words i { font-style: normal; margin: 0 .35em 0 .9em; opacity: .7; } .board-desk-words i:first-child { margin-left: 0; }
.board-desk-count { display: block; margin-top: 8px; padding-right: 86px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--fine); }
.board-desk-count small { margin-left: 7px; font-family: var(--sans); font-size: .72rem; font-weight: 400; color: var(--muted); }
.board-desk.is-due { background: var(--wine); border-color: var(--wine-deep); color: var(--wine-on); }
.board-desk.is-urgent { background: var(--red); border-color: var(--red-deep); color: var(--wine-on); }
.board-desk.is-due .board-desk-count, .board-desk.is-urgent .board-desk-count { color: var(--wine-on); }
.board-desk.is-due .board-desk-sub, .board-desk.is-due .board-desk-count small { color: var(--wine-soft); }
.board-desk.is-urgent .board-desk-sub, .board-desk.is-urgent .board-desk-count small { color: var(--red-soft); }
/* Open: a 2px ring of ink with a 2px cream gap outside the fill, and a pointer in the desk's own colour. */
.board-desk.is-open { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink); }
.board-desk.is-open::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 14px; height: 14px; background: var(--surface); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.board-desk.is-due.is-open::after { background: var(--wine); }
.board-desk.is-urgent.is-open::after { background: var(--red); }
/* The way to the desk's own page: a link of its own beside the button, never inside it. */
.desk-screens { position: absolute; right: 12px; bottom: 10px; padding: 5px 9px; border-radius: 999px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; white-space: nowrap; }
.desk-screens:hover { background: var(--gold-soft); }
.desk-wrap.is-due .desk-screens { color: var(--wine-soft); }
.desk-wrap.is-urgent .desk-screens { color: var(--red-soft); }
.desk-wrap.is-due .desk-screens:hover, .desk-wrap.is-urgent .desk-screens:hover { background: rgba(255, 253, 248, .16); color: var(--wine-on); }

.board-panel { margin-top: 20px; padding: 14px 20px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.board-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.board-panel-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; }
.board-panel-head h2 span { margin-left: 10px; font-family: var(--sans); font-size: .84rem; font-weight: 400; color: var(--muted); }
.board-panel-head a { padding: 6px 12px; border: 1px solid var(--gold); border-radius: 999px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.board-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.board-task { display: block; padding: 20px; border-radius: 14px; border: 1px solid var(--wine-deep); background: var(--wine); color: var(--wine-on); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.board-task:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(42, 37, 33, .14); }
.board-task.is-urgent { background: var(--red); border-color: var(--red-deep); }
.board-task-fig { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.board-task-fig small { margin-left: 5px; font-family: var(--sans); font-size: .78rem; font-weight: 400; color: var(--wine-soft); }
.board-task-line { display: block; margin-top: 6px; font-size: .86rem; line-height: 1.35; color: var(--wine-soft); }
.board-task.is-urgent .board-task-line, .board-task.is-urgent .board-task-fig small { color: var(--red-soft); }
.board-task-act { display: block; margin-top: 12px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.board-clear { margin: 0; padding: 6px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--fine); }
.board-foot { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .8rem; }
.board-foot a { color: var(--gold-deep); text-decoration: none; }
.board-foot a:hover { text-decoration: underline; }

/* A desk's own page, and where a floor host lands: the first act first and largest. */
.desk-page-first { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 26px 28px; border-radius: 18px; background: var(--ink); color: var(--paper); text-decoration: none; }
.desk-page-first:hover { background: var(--gold-deep); }
.desk-page-first b { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.05; }
.desk-page-first span { font-size: .92rem; opacity: .78; }
.desk-page h2 { margin: 22px 0 10px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.desk-page .board-tasks { margin-bottom: 8px; }

/* Clearance: the queue. */
.clearance { max-width: 900px; margin: 0 auto; padding: 20px 28px 48px; }
.clearance-back { display: inline-block; margin-bottom: 12px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.clearance h1 { margin: 4px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1.08; }
.clearance h1 span { margin-left: 10px; font-size: 1.5rem; color: var(--wine); vertical-align: 8px; }
.clearance-progress { height: 6px; margin: 6px 0 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.clearance-progress div { height: 100%; border-radius: 999px; background: var(--wine); }
.clearance-said { margin: 0 0 18px; font-size: .95rem; color: var(--muted); }
.clearance-said b { font-weight: 600; color: var(--ink); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px 18px 16px 20px; border-radius: 14px; border: 1px solid var(--wine-deep); background: var(--wine); color: var(--wine-on); }
.q.is-urgent { background: var(--red); border-color: var(--red-deep); }
.q.is-next { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink); }
.q-fig { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.q-fig small { margin-left: 3px; font-family: var(--sans); font-size: .74rem; font-weight: 400; color: var(--wine-soft); }
.q-body { min-width: 0; display: grid; gap: 2px; }
.q-body b { font-size: 1rem; font-weight: 600; }
.q-body b em { margin-left: 10px; font-style: normal; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); opacity: .85; vertical-align: 2px; }
.q-body span { font-size: .82rem; color: var(--wine-soft); }
.q.is-urgent .q-body span, .q.is-urgent .q-fig small, .q.is-urgent .q-later { color: var(--red-soft); }
.q-do { white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--cream); color: var(--wine); text-decoration: none; font-size: .8rem; font-weight: 600; }
.q.is-urgent .q-do { color: var(--red); }
.q-do:hover { background: var(--gold-soft); }
.q-later-form { margin: 0; }
.q-later { padding: 0; border: 0; border-bottom: 1px solid rgba(255, 253, 248, .35); background: none; font: inherit; font-size: .76rem; color: var(--wine-soft); cursor: pointer; }
.q.is-done { grid-template-columns: 84px minmax(0, 1fr); border: 1px solid var(--line); border-left: 5px solid var(--fine); background: transparent; color: var(--ink); }
.q.is-done .q-fig { font-size: 1.3rem; color: var(--fine); }
.q.is-done .q-body b { font-weight: 500; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.q.is-done .q-body span { color: var(--muted); }
.q-sep { margin: 14px 0 2px; padding-left: 4px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.clearance-all-clear { margin: 10px 0 18px; font-family: var(--serif); font-size: 2rem; color: var(--fine); }
/* The way back, on a screen opened from the queue. */
.from-clearance { display: inline-block; margin: 14px 28px 0; padding: 7px 14px; border-radius: 999px; background: var(--wine); color: var(--wine-on); text-decoration: none; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* A tablet upright: the way to the desk's page drops under the count, so the count is never clipped. */
@media (max-width: 1100px) { .board-desk-count { padding-right: 0; margin-bottom: 22px; } }
@media (max-width: 760px) {
  .board { padding: 16px 16px 32px; }
  .board-desks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .board-name { font-size: 1.9rem; }
  .clearance { padding: 16px 16px 40px; }
}
@media (max-width: 640px) {
  .q { grid-template-columns: 64px minmax(0, 1fr); }
  .q-do { grid-column: 2; justify-self: start; }
  .q-later-form { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .board-desk, .board-task { transition: none; } .board-desk:hover, .board-task:hover { transform: none; } }

/* Consult: the one act a client is waiting for, said as a button wherever a client is on screen. */
.consult-button { display: inline-block; padding: 9px 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.consult-button:hover { background: var(--gold-deep); color: var(--paper); }
.consult-form { display: inline; margin: 0; }
.rep-days a.consult-button { color: var(--paper); }
