/* Revel Hub — layout on top of the Field Ops theme. */

.site-header .header-inner {
  height: auto;
  min-height: 4rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  gap: 0.65rem;
}
.brand a {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.brand .app-name {
  color: rgba(255, 255, 255, 0.45);
}
.brand .app-name:hover { color: #fff; }

.nav a.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}
.nav a.nav-ghost {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}
.nav a.nav-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.nav a.nav-log {
  color: #fff;
  border-color: rgba(139, 70, 230, 0.55);
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}
.nav a.nav-log:hover {
  filter: brightness(1.08);
  color: #fff;
}
.employee-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.6rem;
  padding: 0.8rem 1.2rem 0.8rem 0.8rem;
}
.employee-photo {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 0.7rem;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  background: #0c0e13;
}
.employee-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  background: rgba(139, 70, 230, 0.35);
  border: 1px solid rgba(139, 70, 230, 0.5);
}
.employee-name {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.employee-title {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.page-head .page-sub { margin-bottom: 0; max-width: 42rem; }
.kicker {
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.updated {
  color: var(--muted-2);
  font-size: 0.8rem;
  white-space: nowrap;
  margin-bottom: 0.2rem;
}
.inline-link {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.sample-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.35rem 0 1.15rem;
}
.badge-sample {
  color: var(--amber);
  border-color: rgba(252, 187, 0, 0.45);
  background: rgba(252, 187, 0, 0.12);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 1.35rem 0 0.7rem;
  font-weight: 600;
}

.needs-block { margin: 1.15rem 0 1.25rem; }
.needs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.needs-head h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.need-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 7.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}
.need-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 70, 230, 0.55);
}
.need-card.tone-red {
  border-color: rgba(255, 101, 104, 0.5);
  background: rgba(255, 101, 104, 0.08);
}
.need-card.tone-amber {
  border-color: rgba(252, 187, 0, 0.4);
  background: rgba(252, 187, 0, 0.07);
}
.need-card.tone-accent {
  border-color: rgba(139, 70, 230, 0.45);
  background: rgba(139, 70, 230, 0.1);
}
.need-kind {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.need-card strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.need-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: auto;
}
.needs-more { margin-top: 0.65rem; }

a.metric-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
a.metric-card:hover {
  border-color: rgba(139, 70, 230, 0.55);
  transform: translateY(-1px);
}
.metric-card .val { font-variant-numeric: tabular-nums; }

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
}
.hub-cards .home-card {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  text-decoration: none;
}
.hub-cards .home-card h2 { margin-top: 0.85rem; }
.hub-cards .home-card .go { margin-top: auto; }
.home-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.35rem 0 1rem;
}
.home-points li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  padding-left: 0.7rem;
  border-left: 2px solid rgba(139, 70, 230, 0.45);
}

.role-grid,
.project-grid,
.decision-list {
  display: grid;
  gap: 1rem;
}
.role-grid,
.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.role-card h2,
.project-card h2,
.decision-card h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0.55rem 0 0.35rem;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.9rem;
}
.pipeline-step {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.45rem 0.2rem 0.4rem;
  text-align: center;
}
.pipeline-step.is-quiet { opacity: 0.55; }
.pipeline-n {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pipeline-l {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-static { cursor: default; }
.card-static:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); }
.check-card {
  border-color: rgba(139, 70, 230, 0.4);
  background: rgba(139, 70, 230, 0.08);
}
.feed-card .blurb {
  display: block;
  -webkit-line-clamp: unset;
  margin-top: 0.45rem;
}
.feed-card .meta { margin-top: 0; margin-bottom: 0.45rem; }
.feed-card h3 { margin-top: 0.15rem; }

a.chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.board.board-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
article.ticket { cursor: default; }
article.ticket:hover {
  background: var(--panel);
  border-color: rgba(139, 70, 230, 0.4);
}
article.ticket.is-overdue {
  border-color: rgba(255, 101, 104, 0.55);
}
.ticket .due {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.ticket .due.is-overdue { color: var(--red); }
.ticket .due.is-today { color: var(--amber); }
.ticket-actions {
  opacity: 1;
  align-items: center;
}
.ticket-actions form { display: inline-flex; }
.note-form {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.note-form .input {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.6rem;
}
.empty-col { padding: 0.35rem 0.2rem; }

.decision-card.is-overdue {
  border-color: rgba(255, 101, 104, 0.55);
  background: rgba(255, 101, 104, 0.06);
}
.decision-card.is-soon {
  border-color: rgba(252, 187, 0, 0.45);
}
.decision-card.is-closed { opacity: 0.92; }
.decision-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.decision-card .tid,
.ticket .tid { font-size: 0.75rem; color: var(--muted-2); }
.decision-context { margin: 0.15rem 0 0.65rem; line-height: 1.45; }
.decision-card .rec {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin: 0.35rem 0 0.7rem;
}
.decision-card .rec span,
.chip-tag {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-size: 0.68rem;
}
.decision-card .rec span { display: block; margin-bottom: 0.15rem; }
.chip-tag { margin-left: 0.35rem; color: var(--accent-soft); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.option-row { margin-bottom: 0.35rem; }
.decided {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.55rem;
}
.recorded {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--accent-soft);
}
.inbox-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.inbox-notes li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.84);
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(139, 70, 230, 0.12);
  border: 1px solid rgba(139, 70, 230, 0.28);
}

.project-card { box-shadow: inset 3px 0 0 transparent; }
.project-card.health-green { box-shadow: inset 3px 0 0 var(--green); }
.project-card.health-amber { box-shadow: inset 3px 0 0 var(--amber); }
.project-card.health-red { box-shadow: inset 3px 0 0 var(--red); }
.project-status {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.35rem;
}
.milestone {
  margin: 0.75rem 0 0.55rem;
  font-size: 0.92rem;
}
.milestone span {
  color: var(--muted);
  margin-left: 0.35rem;
}
.blocker-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.35rem 0;
}
.blocker-list li {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 0.7rem;
  border-left: 2px solid rgba(255, 101, 104, 0.65);
}
.blocker-clear { margin-top: 0.45rem; }
.project-updated { margin-top: 0.75rem; }

.site-footer a {
  color: rgba(255, 255, 255, 0.55);
}
.site-footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .needs-grid { grid-template-columns: 1fr; }
  .board.board-3 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .employee-card { width: 100%; }
}
@media (max-width: 720px) {
  .brand .app-name { display: inline; }
}

.decision-card,
.feed-card,
.ticket,
.project-card {
  scroll-margin-top: 5.5rem;
}
