/* Shared page components (hd-*) for both portals: the Home welcome and
   category tiles, page headers, cards, status chips and per-question
   squares. Tokens come from assets/lifehub.css. */

.hd-eyebrow {
  margin: 0 0 8px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-slate);
}

/* ---- Home: welcome + category tiles ---- */
.hd-welcome { padding: 24px 0 34px; }
.hd-welcome h1, .hd-page-head h1 {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.15; margin: 0 0 8px; color: var(--ink);
}
.hd-welcome p:last-child, .hd-page-head p:last-child { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.hd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hd-tile {
  display: flex; align-items: center; gap: 16px; padding: 24px 22px; min-height: 116px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.hd-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d3e6b8; }
.hd-tile-ico {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.hd-tile-ico .lh-ico { width: 26px; height: 26px; }
.hd-tile-text { flex: 1; min-width: 0; }
.hd-tile-text strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 3px; }
.hd-tile-text span { display: block; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.hd-tile-go { color: var(--ink-faint); font-size: 1.2rem; transition: transform .15s ease, color .15s ease; }
a.hd-tile:hover .hd-tile-go { color: var(--accent); transform: translateX(3px); }
.hd-tile.is-soon { background: rgba(255, 255, 255, .55); box-shadow: none; }
.hd-tile.is-soon .hd-tile-ico { filter: grayscale(.6); opacity: .7; }
.hd-tile.is-soon strong { color: var(--ink-soft); }
.hd-tile-soon {
  font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-slate); background: var(--paper-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  display: inline-block; margin-bottom: 6px;
}
.hd-tone-green { background: #eef7e2; color: #4a851c; }
.hd-tone-slate { background: #eaf0f5; color: #4f6577; }
.hd-tone-amber { background: #fdf3df; color: #a1691a; }
.hd-tone-rose { background: #fcebee; color: #b2475e; }
.hd-tone-violet { background: #f0edfb; color: #6450b5; }

/* ---- Inner pages: header ---- */
.hd-page-head { padding: 8px 0 28px; }

/* ---- Cards, chips, squares ---- */
.hd-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.hd-chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.hd-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.hd-chip-done { background: var(--good-soft); color: var(--good); }
.hd-chip-progress { background: #fff4dc; color: #93600f; }
.hd-chip-todo { background: #fdeceb; color: #a3432b; }
.hd-chip-new { background: #eef1f4; color: var(--ink-soft); }

.hd-squares { display: flex; flex-wrap: wrap; gap: 4px; }
.hd-sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #edf1ea; border: 1px solid #dfe6da; }
.hd-sq-done { background: var(--brand-green); border-color: #7ab432; }
.hd-sq-tried { background: linear-gradient(135deg, var(--brand-green) 50%, #edf1ea 50%); border-color: #b9d895; }

/* ---- Riser lists (staff pages): avatar, name, one short status ---- */
.sq-list { padding: 6px 12px; max-width: 760px; }
.sq-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 14px;
  text-decoration: none; color: inherit; transition: background .15s ease;
}
.sq-row + .sq-row { border-top: 1px solid var(--border); }
.sq-row:hover { background: #f8fbf5; }
.sq-avatar { width: 36px; height: 36px; font-size: .9rem; }
.sq-name { flex: 1; font-weight: 600; }
.sq-meta { font-size: .85rem; color: var(--ink-faint); }
.sq-meta.is-done { color: var(--good); font-weight: 600; }
.sq-go { color: var(--ink-faint); transition: transform .15s ease, color .15s ease; }
.sq-row:hover .sq-go { color: var(--accent); transform: translateX(3px); }

@media (max-width: 1100px) {
  .hd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hd-tiles { grid-template-columns: 1fr; gap: 12px; }
  .hd-tile { padding: 20px; min-height: 0; gap: 14px; }
  .hd-tile-ico { width: 44px; height: 44px; border-radius: 13px; }
  .hd-welcome { padding: 8px 0 22px; }
}
