/* ============================================================
   CampusHub — open-source portal design tokens.
   Developer-tool direction: near-white/near-black neutrals, a single
   flat grey accent, Inter + JetBrains Mono. No crest/heraldry.
   ============================================================ */

.ph {
  --bg:          #fafaf7;
  --surface:     #ffffff;
  --border:      #e4e3dc;
  --ink:         #14140f;
  --ink-soft:    #46453a;
  --muted:       #8c8a7c;
  --accent:      #55555c;
  --accent-soft: #ececea;
  --accent-ink:  #2b2b30;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  width: 1440px;
  height: 900px;
  position: relative;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ph-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.ph-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20,20,15,0.045) 1.1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 88%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 88%);
}

/* ---- shared brand mark ---- */
.ph-brand { display: flex; align-items: center; gap: 12px; }
.ph-mark {
  width: 26px; height: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  flex: 0 0 auto;
}
.ph-mark span { border-radius: 2px; background: var(--ink); }
.ph-mark span:nth-child(1) { background: var(--accent); }
.ph-mark span:nth-child(4) { background: var(--accent); opacity: 0.4; }
.ph-wordmark { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }

/* eyebrow pill */
.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 6px;
  border: none;
  background: var(--accent-soft);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: none;
  color: var(--accent-ink); white-space: nowrap;
}
.ph-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* =========================================================
   Directory Board — the live /portal/ page
   ========================================================= */
.d2 { display: flex; flex-direction: column; padding: 32px 56px 0; box-sizing: border-box; }
.d2-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 32px; border-bottom: 1px solid var(--border); position: relative; z-index: 2; }

.d2-head { padding: 48px 0 32px; position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.d2-eyebrow-wrap { flex: 0 0 auto; }
.d2-title {
  font-family: var(--sans); font-weight: 700; font-size: 52px; line-height: 1.05;
  letter-spacing: -0.02em; margin: 20px 0 0; color: var(--ink);
}
.d2-meta { flex: 0 0 auto; text-align: right; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.02em; }
.d2-meta b { color: var(--ink); font-weight: 700; }

.d2-list { margin-top: 0; position: relative; z-index: 2; }
.d2-list-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 8px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.d2-row {
  position: relative; display: grid; grid-template-columns: 48px 1fr 1.6fr 110px 24px;
  align-items: center; gap: 20px; padding: 22px 8px;
  border-bottom: 1px solid var(--border);
  transition: background .12s ease;
  text-decoration: none; color: inherit;
}
.d2-row:not(.locked):hover { background: var(--surface); }
.d2-idx { position: relative; z-index: 1; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.d2-name { position: relative; z-index: 1; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.d2-desc { position: relative; z-index: 1; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.d2-meta-pill {
  font-family: var(--mono); font-size: 11px; color: var(--accent-ink);
  background: var(--accent-soft); padding: 4px 9px; border-radius: 5px; text-align: center;
}
.d2-arrow { position: relative; z-index: 1; justify-self: end; color: var(--muted); transition: transform .2s, color .2s; }
.d2-row:not(.locked):hover .d2-arrow { color: var(--ink); transform: translateX(4px); }
.d2-row.locked { cursor: default; opacity: 0.45; }
