/* ==========================================================================
   Shepherd — Staff Board (mini) embed
   A self-contained, scalable 24x18 mosaic in the site palette.
   Scoped under #staff-board-preview so it can't leak into the rest of the site.
   All inner sizing uses cqw so the board scales like a TV at any width.
   ========================================================================== */

#staff-board-preview {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

#staff-board-preview .sb-kicker {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #6b8e23;
  text-align: center;
}
#staff-board-preview .sb-heading {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 1.875rem;
  line-height: 1.1;
  font-weight: 500;
  color: #1e3a2f;
}
@media (min-width: 640px) {
  #staff-board-preview .sb-heading { font-size: 2.25rem; }
}
#staff-board-preview .sb-lede {
  margin: 1rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(30, 58, 47, 0.7);
}

#staff-board-preview .sb-bezel {
  margin-top: 2.5rem;
  border-radius: 1.5rem;
  background: #0f2f22;
  padding: 0.55rem;
  box-shadow: 0 24px 60px -32px rgba(30, 58, 47, 0.55);
  outline: 1px solid rgba(30, 58, 47, 0.12);
}
@media (min-width: 640px) {
  #staff-board-preview .sb-bezel { padding: 0.8rem; }
}

#staff-board-preview .sb-board {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #0b241a;
  container-type: inline-size;
  color: #fff;
}

/* ---- Full mosaic ---- */
#staff-board-preview .sb-full {
  display: none;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-template-rows: repeat(18, minmax(0, 1fr));
  gap: 0.4cqw;
  padding: 0.7cqw;
  height: 100%;
  width: 100%;
}
@media (min-width: 1024px) {
  #staff-board-preview .sb-full { display: grid; }
}

#staff-board-preview .sb-tile {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 0.5cqw;
  background: #1e3a2f;
  padding: 0.9cqw;
}

#staff-board-preview .sb-ink { background: #0f2f22; }
#staff-board-preview .sb-teal { background: #235454; }
#staff-board-preview .sb-steel { background: #334249; }
#staff-board-preview .sb-amber { background: #b6742a; }
#staff-board-preview .sb-clay { background: #b07a4b; }
#staff-board-preview .sb-moss { background: #3d5340; }
#staff-board-preview .sb-fern { background: #4d7232; }

#staff-board-preview .sb-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
#staff-board-preview .sb-tilelabel {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05cqw;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
#staff-board-preview .sb-right { margin-left: auto; text-align: right; }

/* Clock */
#staff-board-preview .sb-tile.sb-clocktile { flex-direction: column; justify-content: center; align-items: flex-start; }
#staff-board-preview .sb-clockrow { display: flex; align-items: baseline; gap: 1.1cqw; }
#staff-board-preview .sb-clock { font-size: 9.4cqw; line-height: 0.86; font-weight: 800; letter-spacing: -0.02em; }
#staff-board-preview .sb-ampm {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.4cqw;
  letter-spacing: 0.05em;
  color: #9db057;
}
#staff-board-preview .sb-date {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.15cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.8cqw;
}

/* Logo */
#staff-board-preview .sb-tile.sb-logotile { flex-direction: row; align-items: center; gap: 1.4cqw; }
#staff-board-preview .sb-logoimg { height: 3.4cqw; width: auto; object-fit: contain; }
#staff-board-preview .sb-logotext { font-size: 2.1cqw; font-weight: 800; color: #9db057; line-height: 1; letter-spacing: 0.02em; }
#staff-board-preview .sb-logosub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.95cqw;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.4cqw;
}

/* Weather */
#staff-board-preview .sb-tile.sb-weather { flex-direction: column; }
#staff-board-preview .sb-forecast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5cqw; margin-top: auto; margin-bottom: auto; text-align: center; }
#staff-board-preview .sb-wt { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.95cqw; color: rgba(255, 255, 255, 0.55); }
#staff-board-preview .sb-wicon { display: flex; justify-content: center; margin: 0.5cqw 0; color: #cdbf8f; }
#staff-board-preview .sb-wicon svg { width: 2.4cqw; height: 2.4cqw; }
#staff-board-preview .sb-wtemp { font-size: 1.9cqw; font-weight: 700; }
#staff-board-preview .sb-wcond { font-size: 0.9cqw; color: rgba(255, 255, 255, 0.6); }

/* Quote */
#staff-board-preview .sb-tile.sb-quotetile { flex-direction: column; justify-content: center; }
#staff-board-preview .sb-quotemark { font-size: 6cqw; line-height: 0.5; color: rgba(255, 255, 255, 0.14); }
#staff-board-preview .sb-quotetext { font-size: 1.5cqw; line-height: 1.4; font-style: italic; color: rgba(255, 255, 255, 0.95); }
#staff-board-preview .sb-quoteauth { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.95cqw; letter-spacing: 0.08em; color: #9db057; margin-top: 0.9cqw; }

/* Focus */
#staff-board-preview .sb-tile.sb-focustile { flex-direction: column; justify-content: center; }
#staff-board-preview .sb-focus { font-size: 1.7cqw; font-weight: 700; line-height: 1.2; margin-top: 0.5cqw; }

/* Assignments header */
#staff-board-preview .sb-tile.sb-ahdr { flex-direction: row; align-items: center; gap: 1cqw; padding: 0 1.4cqw; }
#staff-board-preview .sb-asgtitle { font-size: 1.8cqw; font-weight: 800; line-height: 1.1; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#staff-board-preview .sb-ahdr .sb-date { margin-top: 0; white-space: nowrap; }

/* Assignment tiles: crew info left, staff avatars + names right, split by a divider */
#staff-board-preview .sb-asggrid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 0.4cqw; min-height: 0; }
#staff-board-preview .sb-tile.sb-assign { flex-direction: row; align-items: stretch; gap: 1.0cqw; padding: 1.0cqw 1.2cqw; }
#staff-board-preview .sb-asginfo { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
#staff-board-preview .sb-asgsite { font-size: 2.3cqw; font-weight: 800; line-height: 0.94; text-transform: uppercase; letter-spacing: 0.005em; }
#staff-board-preview .sb-asgveh { margin-top: 0.6cqw; display: flex; align-items: center; gap: 0.45cqw; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82cqw; color: rgba(255, 255, 255, 0.82); white-space: nowrap; overflow: hidden; }
#staff-board-preview .sb-asgveh svg { width: 1.1cqw; height: 1.1cqw; color: #9db057; flex: none; }
#staff-board-preview .sb-asgprops { margin-top: auto; display: flex; flex-direction: column; gap: 0.28cqw; }
#staff-board-preview .sb-asgprop { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78cqw; color: rgba(255, 255, 255, 0.78); display: flex; align-items: center; gap: 0.4cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#staff-board-preview .sb-asgprop::before { content: ""; width: 0.5cqw; height: 0.5cqw; border-radius: 50%; background: #9db057; flex: none; }
#staff-board-preview .sb-asgstaff { display: flex; flex-direction: column; justify-content: center; gap: 0.9cqw; flex: 0 0 auto; padding-left: 0.8cqw; border-left: 1px solid rgba(255, 255, 255, 0.18); }
#staff-board-preview .sb-asgstaff-empty { align-items: center; text-align: center; max-width: 9cqw; }
#staff-board-preview .sb-staffrow { display: flex; align-items: center; gap: 0.7cqw; }
#staff-board-preview .sb-avwrap { position: relative; display: inline-flex; flex: none; }
#staff-board-preview .sb-av { display: block; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; object-fit: cover; background: rgba(0, 0, 0, 0.32); box-shadow: 0 0 0 0.1cqw rgba(255, 255, 255, 0.3); }
#staff-board-preview .sb-avdot { position: absolute; top: -0.05cqw; right: -0.05cqw; width: 0.7cqw; height: 0.7cqw; border-radius: 50%; background: #e6a13a; box-shadow: 0 0 0 0.12cqw rgba(15, 47, 34, 0.85); }
#staff-board-preview .sb-asgname { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85cqw; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#staff-board-preview .sb-flag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.8cqw; text-transform: uppercase; letter-spacing: 0.1em; color: #ffd9a8; }

/* News */
#staff-board-preview .sb-tile.sb-news { flex-direction: column; }
#staff-board-preview .sb-newsitem { margin-top: 0.8cqw; }
#staff-board-preview .sb-newsfrom { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85cqw; letter-spacing: 0.08em; text-transform: uppercase; color: #9db057; }
#staff-board-preview .sb-newshead { font-size: 1.15cqw; line-height: 1.35; color: rgba(255, 255, 255, 0.92); margin-top: 0.4cqw; }
#staff-board-preview .sb-dots { display: flex; gap: 0.4cqw; margin-top: auto; }
#staff-board-preview .sb-dot { width: 0.5cqw; height: 0.5cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
#staff-board-preview .sb-dot.sb-on { background: #9db057; }

/* Photo */
#staff-board-preview .sb-tile.sb-photo { padding: 0; }
#staff-board-preview .sb-photoimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s ease; }
#staff-board-preview .sb-on { opacity: 1; }
#staff-board-preview .sb-off { opacity: 0; }
#staff-board-preview .sb-photocap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4cqw 1cqw 0.8cqw;
  font-size: 0.95cqw;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Stats */
#staff-board-preview .sb-tile.sb-stat { flex-direction: column; justify-content: center; padding: 1cqw; }
#staff-board-preview .sb-statnum { font-size: 5.6cqw; font-weight: 800; line-height: 0.85; letter-spacing: -0.02em; }
#staff-board-preview .sb-statlabel { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85cqw; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); margin-top: 0.5cqw; }

/* QR */
#staff-board-preview .sb-tile.sb-qr { flex-direction: row; align-items: center; gap: 0.7cqw; padding: 0.7cqw; }
#staff-board-preview .sb-qrbox { flex: none; width: 4.6cqw; height: 4.6cqw; border-radius: 0.35cqw; background: #fff; padding: 0.35cqw; }
#staff-board-preview .sb-qrbox svg { width: 100%; height: 100%; display: block; }
#staff-board-preview .sb-qrsub { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.72cqw; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); display: block; }
#staff-board-preview .sb-qrhead { font-size: 1.15cqw; font-weight: 700; line-height: 1.1; display: block; }

/* Footer */
#staff-board-preview .sb-tile.sb-footer { flex-direction: column; justify-content: center; }
#staff-board-preview .sb-footertext { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.72cqw; line-height: 1.4; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.8); text-transform: uppercase; }

/* Caption + link */
#staff-board-preview .sb-note { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: rgba(30, 58, 47, 0.6); }
#staff-board-preview .sb-cta { margin-top: 1rem; text-align: center; }
#staff-board-preview .sb-cta a { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: #6b8e23; }
#staff-board-preview .sb-cta a:hover { color: #1e3a2f; }


/* Logo tile fit */
#staff-board-preview .sb-tile.sb-logotile { gap: 1cqw; padding: 0.8cqw 1cqw; }
#staff-board-preview .sb-logotile > div { min-width: 0; }
#staff-board-preview .sb-logoimg { height: 2.8cqw; }
#staff-board-preview .sb-logotext { font-size: 1.5cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#staff-board-preview .sb-logosub { font-size: 0.7cqw; margin-top: 0.2cqw; }

/* Logo tile: show the uploaded logo image only */
#staff-board-preview .sb-tile.sb-logotile { flex-direction: row; align-items: center; justify-content: flex-start; padding: 0.8cqw 1.4cqw; }
#staff-board-preview .sb-logoimg { height: 3.6cqw; max-width: 100%; }

/* ---- Mobile: screenshot of the board ---- */
#staff-board-preview .sb-shot { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  #staff-board-preview .sb-shot { display: none; }
}
