/* Yearbook homepage: the three sidebar pills. Loaded by index.html (promoted
   from the approved test/assets/home-preview.css; keep both in step). Uses the homepage's own tokens (--navy, --blue,
   --border-strong, --card, --font-body) so the pills sit in the yearbook
   family. Shape follows the Sales Hub favorites chip (white capsule, hairline
   border, accent border plus a soft halo ring on hover and focus) and the
   LO Toolkit tool pill (accent, name over one short line, chevron). */

/* The seasonal switches are replaced by the pills. */
.halloween-toggle,
.halloween-row,
#halloween-chip,
#witch-board-btn { display: none !important; }
.mobile-bar .menu-btn { margin-left: auto !important; }

.hp-links {
  display: grid;
  gap: 0.5rem;
}
/* Pills size to their words (the long album title wraps, the others stay
   compact); one min height, one padding and one icon size keep them a set. */

.hp-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 52px;
  /* 7px + the 1px border = 8px of air around the art (40px art: 56px sidebar pills;
     the 52px floor is for the 36px strip). Wrapped titles grow the pill; fixed 26px corners. */
  padding: 7px 0.75rem 7px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: var(--card);
  /* No ring at rest: like the Sales Hub chip, the halo shows on hover and focus only. */
  color: var(--navy);
  font-family: var(--font-body);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.hp-pill:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
}
.hp-pill:active { background: var(--bg); }
.hp-pill:focus { outline: none; }
.hp-pill:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hp-pill-art {
  position: relative;
  flex: none;
  /* 40px reads as a picture next to a two-line title; the one-line pills grow to 56px. */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #DCEAF7 0%, var(--bg-sky) 100%);
}
.hp-pill-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Restored from bdba0df (Sunny, 2026-11-07): each pill keeps its own art.
   Photo 64 is a wide party scene. Sunny framed this crop by hand in the
   thumbnail framing tool (2026-11-02): the head sits in the upper part of the
   circle so the red "slim jim" shirt shows below it. Use these exact values. */
.hp-pill-art--cover img {
  transform: scale(3.85) translate(-12.82%, 11.89%);
}
/* The game's witch art (drawn on transparent) on the same sky circle, with the
   trophy from the old leaderboard switch tucked at its lower right. No plate. */
.hp-pill-art--witch { overflow: visible; }
.hp-pill-art--witch img { object-fit: contain; border-radius: 50%; }
.hp-pill-trophy {
  position: absolute;
  right: -5px;
  bottom: -1px;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}
/* TypesGiving: a keyboard in autumn leaves (sprites/typing-leaves.svg, the
   hero leaf pile's leaves) on the warm circle from thanksgiving.css .sx-tg. */
.hp-pill-art--typing {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #FFF6E6 0%, #F3D9AE 100%);
}
.hp-pill-art--typing img { width: 84%; height: 84%; object-fit: contain; }
.hp-pill-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Inline after the last title word; nowrap glue keeps it off a line of its own. */
.hp-pill-ext { display: inline-block; width: 0.85em; height: 0.85em; margin-left: 0.25em; vertical-align: -0.05em; color: var(--blue); }
button.hp-pill { width: 100%; font: inherit; text-align: left; cursor: pointer; }
/* The one new thing gets the spotlight at rest: accent border + soft halo. */
.hp-pill--typing { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 114, 190, 0.12); }
html.sx-thanksgiving .hp-pill--typing { box-shadow: 0 0 0 3px var(--sx-tg-halo); }

.hp-pill-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
/* Same size and weight as the sidebar's "Remote only" label. */
.hp-pill-label {
  text-wrap: balance;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--navy);
}
.hp-pill-sub {
  text-wrap: balance;
  margin-top: 0.1rem;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--muted);
}
/* Short on purpose; one line even in the fallback font before Geist loads (2px spare at 296px). */
.hp-pill--moments .hp-pill-sub { white-space: nowrap; text-wrap: nowrap; }
.hp-pill-go {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--blue);
  transition: transform 150ms ease;
}
.hp-pill:hover .hp-pill-go,
.hp-pill:focus-visible .hp-pill-go { transform: translateX(2px); }

/* Desktop sidebar and the phone Menu drawer: stacked, full width. The 296px
   sidebar drops the chevron so each short line stays on one line and only the
   long album title wraps (the border and hover halo already say "link"). */
.hp-links--side { margin: 0.75rem 0 0.25rem; }
/* No chevrons anywhere: the border and the hover halo already say "link". */
.hp-pill-go { display: none; }

/* Phone strip under the sticky bar. Hidden on desktop. */
.hp-links--bar { display: none; }

@media (max-width: 980px) {
  .hp-links--bar {
    display: grid;
    grid-template-columns: repeat(var(--hp-cols, 3), minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    padding: 1.25rem max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  }
  .hp-links--bar .hp-pill { min-height: 48px; }
  .hp-links--bar .hp-pill-art { width: 36px; height: 36px; }
  .hp-links--bar .hp-pill-label { font-size: 0.8rem; line-height: 1.18; }
}

.hp-links--bar[data-count="2"] { --hp-cols: 2; }
/* Tablets: columns sized to their words, so every title and subline stays on one line (measured 820-980px; iPad portrait stacks). */
.hp-links--bar[data-count="3"] { grid-template-columns: auto auto auto; }

/* Phones and small tablets: one pill per row, so the long album title and every short line fit
   without three-line wraps in a narrow pill. */
@media (max-width: 819px) {
  .hp-links--bar, .hp-links--bar[data-count="3"] { grid-template-columns: 1fr; gap: 0.625rem; grid-auto-rows: auto; }
  .hp-links--bar .hp-pill { min-height: 48px; padding-top: 5px; padding-bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-pill, .hp-pill-go { transition: none; }
  .hp-pill:hover .hp-pill-go,
  .hp-pill:focus-visible .hp-pill-go { transform: none; }
}

@media print {
  .hp-links { display: none; }
}
