/* Staff Hub. Apple-leaning restyle (2026-09-23) on the CF palette.
   Shell, top nav, search, tab bar and pills live in shared/css/base.css. */

/* ---------- Page headings ---------- */
.page-head { display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-4) 0 var(--space-5); }
.page-title { font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -.035em; line-height: 1.04; }
.page-sub { margin: 10px 0 0; color: var(--faint); font-size: clamp(1.05rem, 2.2vw, 1.3rem); letter-spacing: -.012em; line-height: 1.35; max-width: 46ch; }
.page-lede { margin: var(--space-2) 0 0; max-width: 54ch; color: var(--slate); font-size: 1.05rem; }
/* The section's color survives as a small dot before the title. */
.page-head.has-accent .page-title::before {
  content: ""; display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--sec, var(--teal)); margin-bottom: 16px;
}

/* ---------- Welcome (greeting off) ---------- */
.welcome { max-width: 62ch; padding: var(--space-4) 0 0; }
.welcome h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.035em; }
.welcome-lede { margin: var(--space-3) 0 0; font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 500; color: var(--faint); }
.welcome p + p { margin-top: var(--space-3); }
.welcome p:not(.welcome-lede) { color: var(--slate); font-size: 1rem; line-height: 1.65; }

/* Small uppercase label used inside pages (Brand, Admin). */
.block-head {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); margin: var(--space-5) 0 var(--space-3);
  display: flex; align-items: center; gap: 9px;
}

/* Big section heading on Home: title plus a grey line under it. */
.sec-head { margin: var(--space-6) 0 var(--space-4); }
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -.03em; }
.sec-head p { margin: 6px 0 0; color: var(--faint); font-size: 1.06rem; letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  margin-top: var(--space-2);
  display: flex; align-items: flex-end;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(50,185,219,.55), transparent 60%),
    radial-gradient(700px 380px at 105% 110%, rgba(205,217,67,.35), transparent 60%),
    linear-gradient(160deg, #0B2A33 0%, var(--jungle) 70%);
  color: #fff;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.7) 100%);
}
.hero-text { position: relative; z-index: 1; padding: 72px 64px 56px; width: 100%; }
.hero-date { margin: 0 0 14px; font-size: .9rem; font-weight: 600; letter-spacing: .01em; color: var(--cyan); }
.hero.has-photo .hero-date { color: #fff; opacity: .9; }
.hero h1 { margin: 0; color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.25rem); letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
/* One line when it fits (same width as the search bar), two balanced
   lines when it does not. */
.hero-sub { margin: 16px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.72); letter-spacing: -.012em; max-width: 620px; line-height: 1.4; text-wrap: balance; }
.hero-mark { position: absolute; right: 64px; bottom: 52px; width: 120px; opacity: .14; pointer-events: none; }
.hero-place {
  position: absolute; z-index: 1; top: 16px; right: 16px;
  font-size: .75rem; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
  padding: 4px 11px; border-radius: 999px;
}
/* The hero search box on Home. A real input; results render under the hero. */
.spot {
  margin-top: 36px; width: 100%; max-width: 620px; height: 54px;
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: rgba(255,255,255,.66); font: inherit; font-size: 1.02rem; text-align: left; cursor: text;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.spot:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.28); }
.spot:focus-within { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.4); }
.spot input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: inherit; color: #fff; letter-spacing: -.01em;
}
.spot input::placeholder { color: rgba(255,255,255,.66); }
.spot input::-webkit-search-cancel-button { display: none; }
.spot:focus-within kbd { display: none; }
/* Hero search results: shown under the hero while the rest of Home steps aside. */
.hero-results:empty { display: none; }
.hero-results { margin-top: 40px; }
#view.hero-searching > :not(.hero):not(.hero-results) { display: none; }
.spot svg { width: 19px; height: 19px; flex: none; }
.spot span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot kbd {
  font: 500 12px var(--font); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.22); padding: 2px 8px; border-radius: 6px;
}

/* ---------- Announcement ---------- */
.ann {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--card); border-radius: 16px;
  padding: 12px 14px 12px 18px; margin: var(--space-2) 0 var(--space-3); box-shadow: var(--shadow);
}
.ann::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.ann-urgent::before { background: var(--orange); }
.ann p { margin: 0; flex: 1; font-size: .94rem; color: var(--slate); }
.ann-cta { color: var(--teal-d); font-weight: 600; text-decoration: none; margin-left: 6px; white-space: nowrap; }
.ann-cta::after { content: " ›"; }
.ann-cta:hover { text-decoration: underline; }
#ann-x { flex: none; width: 28px; height: 28px; border-radius: 50%; background: none; border: 0; cursor: pointer; color: var(--faint); font-size: 1.25rem; line-height: 1; }
#ann-x:hover { background: var(--bg); color: var(--ink); }

/* ---------- Quick links as app icons ---------- */
.apps { display: flex; flex-wrap: wrap; gap: 28px 34px; }
.app { width: 100px; text-align: center; text-decoration: none; color: var(--ink); }
.app-ic {
  width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 19px;
  display: grid; place-items: center; color: var(--glyph, #fff);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--tile) 82%, white) 0%,
    color-mix(in srgb, var(--tile) 88%, black) 100%);
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.09), inset 0 0 0 .5px rgba(0,0,0,.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.app-ic svg { width: 34px; height: 34px; stroke-width: 1.8; }
.app:hover .app-ic { transform: translateY(-3px) scale(1.03); box-shadow: 0 2px 3px rgba(0,0,0,.06), 0 14px 28px rgba(0,0,0,.14); }
.app:active .app-ic { transform: scale(.96); }
.app b { display: block; font-size: .84rem; font-weight: 500; line-height: 1.25; }
.app-note { display: block; font-size: .74rem; color: var(--faint); line-height: 1.3; margin-top: 1px; }

/* ---------- Browse: tile grid ---------- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: minmax(220px, auto);
  grid-auto-flow: dense;
}
.bt {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg); padding: 28px 30px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.bt:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.bt-tag { font-size: .84rem; font-weight: 600; color: color-mix(in srgb, var(--sec, var(--teal)) 60%, black); margin-bottom: 8px; }
.bt h3 { font-size: 1.65rem; letter-spacing: -.028em; line-height: 1.12; padding-right: 56px; }
.bt-ic {
  position: absolute; right: 24px; top: 24px; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--sec, var(--teal)) 13%, white);
  color: color-mix(in srgb, var(--sec, var(--teal)) 62%, black);
}
.bt-ic svg { width: 22px; height: 22px; stroke-width: 2; }
.bt-go { margin-top: auto; padding-top: 22px; font-size: .95rem; font-weight: 500; color: var(--teal-d); }
.bt-go::after { content: "›"; display: inline-block; margin-left: 4px; transition: transform .2s var(--ease); }
a.bt:hover .bt-go::after { transform: translateX(3px); }

.bt-lead {
  grid-row: span 2;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--sec, var(--teal)) 9%, white) 100%);
}
.bt-lead-head { text-decoration: none; color: inherit; display: block; }
.bt-lead-head:hover h3 { color: color-mix(in srgb, var(--sec, var(--teal)) 55%, black); }
.bt-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid rgba(0,0,0,.08); }
.bt-row {
  display: flex; align-items: center; gap: 10px; padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.bt-row svg { width: 16px; height: 16px; margin-left: auto; color: #AEAEB2; transition: transform .2s var(--ease), color .2s var(--ease); }
a.bt-row:hover { color: color-mix(in srgb, var(--sec, var(--teal)) 55%, black); }
a.bt-row:hover svg { transform: translateX(3px); color: currentColor; }
.bt-row.is-off { color: var(--faint); }
.bt-row.is-off .pill { margin-left: auto; }

.bt-later { background: #EDEDF0; box-shadow: none; --sec: #8E8E93; }
.bt-later h3 { color: var(--slate); font-size: 1.3rem; }
.bt-later .bt-ic { background: rgba(0,0,0,.05); color: var(--faint); }
.bt-later .bt-go { color: var(--faint); }
.bt-later .bt-go::after { content: none; }

/* ---------- Staff values: five color cards ---------- */
.hv-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hv-item {
  width: 100%; height: 100%; min-height: 200px; text-align: left; cursor: pointer;
  border: 0; border-radius: var(--r-lg); padding: 22px 20px 22px;
  display: flex; flex-direction: column; font: inherit; color: #fff;
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--v) 90%, white) 0%,
    color-mix(in srgb, var(--v) 70%, black) 100%);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hv-item:hover, .hv-item:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px color-mix(in srgb, var(--v) 32%, transparent); }
.hv-item:focus-visible { outline: 3px solid color-mix(in srgb, var(--v) 45%, white); outline-offset: 3px; }
.hv-ic { width: 26px; height: 26px; opacity: .85; margin-bottom: 18px; }
.hv-ic svg { width: 26px; height: 26px; }
.hv-item small { font-size: .82rem; font-weight: 500; opacity: .85; margin-top: auto; }
.hv-item b { font-size: 1.8rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin-top: 2px; }
.hv-item i { font-style: normal; font-size: .82rem; line-height: 1.35; opacity: .9; margin-top: 8px; }

/* The value dialog */
.vd { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; }
.vd::backdrop { background: rgba(10, 20, 16, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vd[open] .vd-card { animation: vd-in .3s var(--ease); }
@keyframes vd-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.vd-card {
  position: relative; background: var(--card); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.25);
  padding: 0 var(--space-4) var(--space-3);
}
.vd-x {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.22); color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.vd-x:hover { background: rgba(255,255,255,.35); }
.vd-top {
  margin: 0 calc(var(--space-4) * -1); padding: 34px var(--space-4) 26px; color: #fff;
  background: linear-gradient(165deg, color-mix(in srgb, var(--v) 90%, white), color-mix(in srgb, var(--v) 70%, black));
}
.vd-ic { display: block; width: 30px; height: 30px; margin-bottom: 14px; opacity: .9; }
.vd-ic svg { width: 30px; height: 30px; }
.vd-kicker { margin: 0; font-size: .9rem; font-weight: 500; opacity: .85; }
.vd-title { margin: 0; font-size: 2.4rem; letter-spacing: -.04em; color: #fff; }
.vd-body { margin: var(--space-4) 0 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); letter-spacing: -.005em; }
.vd-ref { margin: var(--space-2) 0 0; font-size: .82rem; color: var(--faint); }
.vd-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line);
}
.vd-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--bg); color: var(--ink); font-size: 1.05rem; cursor: pointer;
}
.vd-nav button:hover { background: var(--line); }
.vd-count { font-size: .82rem; color: var(--faint); }

/* ---------- Stat tiles (off in V1) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.tile { background: var(--card); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.tile-k { font-size: .8rem; color: var(--faint); font-weight: 600; }
.tile-v { font-size: 2rem; font-weight: 700; margin-top: 6px; letter-spacing: -.03em; }
.tile-n { font-size: .8rem; color: var(--slate); margin-top: 2px; }
.tile-warn .tile-v { color: var(--orange-d); }

/* ---------- Panels and rows ---------- */
.cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-3); margin-top: var(--space-3); }
.panel { background: var(--card); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.panel-head h2 { font-size: 1.05rem; }
.panel-head a { font-size: .85rem; font-weight: 500; text-decoration: none; }
.panel-head a:hover { text-decoration: underline; }

.rowlink {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.rowlink:first-of-type { border-top: 0; }
.rowlink:hover b { color: var(--teal-d); }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: .92rem; font-weight: 600; }
.row-main span { display: block; font-size: .8rem; color: var(--faint); }

.empty-soft { margin: var(--space-3) 0; color: var(--faint); font-size: .9rem; }

/* ---------- Cards (section pages) ---------- */
.cards { display: grid; gap: 18px; }
.cards-compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards-full    { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards-values  { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--r-lg);
  padding: 24px 24px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* The section color, as a small dot above the title. */
.card::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 14px;
  background: var(--sec, var(--teal));
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
/* A card with nothing live on it goes grey. The accent survives only in the
   Coming soon pill, so the eye reads "not yet" before it reads a word. */
.card-soon { background: #EDEDF0; box-shadow: none; }
.card-soon::before { background: #C7C7CC; }
.card-soon h3 { color: var(--slate); }
/* Body text is NOT dimmed further on the grey card; it still has to read. */
.card-soon:hover { transform: none; box-shadow: none; }

.card-top { margin-bottom: 11px; min-height: 22px; }
.card h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }
.card-owner { font-size: .8rem; font-weight: 600; color: var(--teal-d); margin-top: 2px; }
.card-body { margin: 8px 0 0; color: var(--slate); font-size: .94rem; line-height: 1.5; }
.card-meta { margin: var(--space-2) 0 0; font-size: .78rem; color: var(--faint); }

.cards-values .card-body { color: var(--ink); }

.card-links { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: grid; gap: 9px; }
.card-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .94rem; }
.link {
  color: color-mix(in srgb, var(--sec, var(--teal)) 58%, black); font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.link::after { content: "›"; font-size: 1.1em; line-height: 1; transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover::after { transform: translateX(3px); }
.link-off { color: var(--faint); }
.link-off::after { content: none; }
.link-note { color: var(--faint); font-size: .78rem; }

.card-foot {
  margin-top: var(--space-3); padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--faint);
}

/* ---------- Empty states ---------- */
.empty {
  margin: 0; padding: var(--space-5); text-align: center;
  background: #EDEDF0; border-radius: var(--r-lg);
  color: var(--faint); font-weight: 500; font-size: .95rem;
}
.ask { margin-top: var(--space-4); color: var(--slate); font-size: .95rem; }
.ask a { font-weight: 600; }

/* ---------- Footer ---------- */
.foot {
  max-width: calc(var(--max-width) - 2 * var(--space-5)); width: calc(100% - 2 * var(--space-5)); margin: 0 auto;
  padding: 22px 0 40px; text-align: left;
  border-top: 1px solid var(--line-2);
  color: var(--faint); font-size: .8rem; line-height: 1.6;
  display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center;
}
.foot p { margin: 0; }
.foot p:empty { display: none; }
.foot #me-line { margin-left: auto; }
.foot a { color: var(--teal-d); font-weight: 500; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Narrow ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .hv-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .hero-text { padding: 56px 40px 44px; }
  .hero-mark { right: 40px; bottom: 40px; width: 96px; }
}

/* Phone */
@media (max-width: 720px) {
  .page-head { margin: var(--space-3) 0 var(--space-4); }
  .sec-head { margin: 44px 0 18px; }
  .sec-head p { font-size: .98rem; }
  .block-head { font-size: 1.2rem; margin: var(--space-4) 0 var(--space-2); }

  .hero { border-radius: 26px; }
  .hero-text { padding: 40px 24px 26px; }
  .hero-sub { font-size: 1.05rem; }
  .hero-mark { display: none; }
  .spot { margin-top: 26px; height: 48px; font-size: .95rem; }
  .spot kbd { display: none; }
  .spot input { font-size: 16px; }   /* 16px stops iOS zooming on focus */

  .apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 8px; }
  .app { width: auto; }
  .app-ic { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 7px; }
  .app-ic svg { width: 30px; height: 30px; }
  .app b { font-size: .8rem; }
  .app-note { display: none; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .bt { padding: 22px 22px; min-height: 150px; }
  .bt-lead { grid-row: auto; }
  .bt h3 { font-size: 1.4rem; }

  /* Values scroll sideways like an App Store shelf. */
  .hv-row {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--space-3) * -1); padding: 4px var(--space-3) 14px;
    scroll-padding-inline: var(--space-3); scrollbar-width: none;
  }
  .hv-row::-webkit-scrollbar { display: none; }
  .hv-row li { flex: 0 0 158px; scroll-snap-align: start; }
  .hv-item { min-height: 186px; padding: 18px 16px; }
  .hv-item b { font-size: 1.55rem; }

  .vd-card { padding: 0 var(--space-3) var(--space-3); }
  .vd-top { margin: 0 calc(var(--space-3) * -1); padding: 30px var(--space-3) 22px; }
  .vd-title { font-size: 2rem; }
  .vd-body { font-size: 1rem; }

  .cards-compact, .cards-full, .cards-values { grid-template-columns: 1fr; }
  .cards { gap: 14px; }
  .card { padding: 20px 20px 18px; }
  .ann { padding: 11px 12px 11px 14px; }
  .ann p { font-size: .88rem; }
  .foot { width: calc(100% - 2 * var(--space-3)); padding: 18px 0 24px; flex-direction: column; align-items: flex-start; }
  .foot #me-line { margin-left: 0; }
}

/* ---------- Admin drift report ---------- */
.block-head .count {
  display: inline-block; margin-left: 2px; padding: 2px 9px;
  border-radius: 999px; background: rgba(0,0,0,.06);
  color: var(--faint); font-size: .78rem; font-weight: 600; letter-spacing: 0;
}
.drift {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 4px 20px;
}
.drift-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px 0; border-top: 1px solid var(--line);
}
.drift-row:first-child { border-top: 0; }

/* ---------- Admin gate ---------- */
.gate { max-width: 420px; margin: var(--space-6) auto; text-align: center; }
.gate form { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.gate input {
  flex: 1; min-width: 0; padding: 11px 14px;
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink);
}
.gate input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(6,147,178,.12); }
.gate-err { margin-top: var(--space-3); color: var(--orange-d); font-size: .9rem; font-weight: 600; }

/* ---------- Brand page ---------- */
.brand-lead {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--sec, var(--teal)) 8%, white));
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px 32px; max-width: 760px;
}
.brand-lead h2 { font-size: 1.65rem; letter-spacing: -.028em; }
.brand-lead p { margin: 10px 0 0; color: var(--slate); font-size: 1rem; line-height: 1.6; }
.brand-lead-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.brand-note { margin: var(--space-3) 0 0; color: var(--faint); font-size: .9rem; max-width: 70ch; }
.brand-note-top { margin: calc(var(--space-3) * -1 + 6px) 0 var(--space-3); }

/* Colors */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-2); }
.swatches-sec { margin-top: var(--space-2); }
.swatch {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow);
  padding: 10px 14px 10px 10px; font: inherit; color: var(--ink); cursor: pointer; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.swatch:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.swatch-chip {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.swatch-name { font-size: .88rem; font-weight: 600; }
.swatch-hex {
  margin-left: auto; font-size: .74rem; color: var(--faint);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.swatch::after {
  content: "Copied"; position: absolute; right: 12px;
  font-size: .75rem; font-weight: 600; color: var(--lime-d);
  opacity: 0; transition: opacity .15s;
}
.swatch.is-copied::after { opacity: 1; }
.swatch.is-copied .swatch-hex { opacity: 0; }
.swatch.is-failed::after { content: "Copy it manually"; color: var(--orange-d); opacity: 1; }
.swatch.is-failed .swatch-hex { opacity: 0; }

/* Download grid */
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: var(--space-3); }
.asset {
  margin: 0; background: var(--card);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.asset-art {
  height: 104px; display: grid; place-items: center; padding: 18px;
  background: #F7F7F9; border-bottom: 1px solid var(--line);
  overflow: hidden;   /* nothing can spill onto the caption, whatever happens */
}
/* White marks need a dark tile or they are invisible. */
.asset-white .asset-art { background: var(--jungle); border-bottom-color: var(--jungle); }
/* Explicit pixels, not percentages. A percentage height on a grid item whose
   alignment is `center` does not resolve in Chrome, so the square icons fell
   back to their intrinsic 1202px and spilled over the caption. */
.asset-art img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 64px; object-fit: contain;
}
.asset figcaption { padding: 10px 12px 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.asset figcaption b { font-size: .88rem; font-weight: 600; flex: 1 1 100%; }
.asset figcaption > span:first-of-type {
  font-size: .76rem; font-weight: 500; text-transform: capitalize;
  color: var(--faint);
}
.asset-dl { margin-left: auto; display: flex; gap: 8px; }
.asset-dl a {
  font-size: .74rem; font-weight: 600; text-decoration: none;
  color: var(--teal-d); padding: 3px 10px; border-radius: 999px;
  background: var(--teal-wash);
}
.asset-dl a:hover { background: var(--teal-d); color: #fff; }

@media (max-width: 620px) {
  .assets { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .asset-art { height: 76px; padding: 12px; }
  .asset-art img { max-height: 52px; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .swatch-hex { display: none; }
  .brand-lead { padding: var(--space-3); }
}

/* ---------- Sign-in gate ---------- */
body.is-locked .gnav, body.is-locked .main, body.is-locked .skip, body.is-locked .tabbar { display: none; }
.signin[hidden] { display: none; }
.signin {
  min-height: 100vh; min-height: 100dvh; width: 100%;
  display: grid; place-items: center; padding: var(--space-4) 16px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(50,185,219,.5), transparent 60%),
    radial-gradient(700px 420px at 100% 110%, rgba(205,217,67,.3), transparent 60%),
    linear-gradient(160deg, #0B2A33 0%, var(--jungle) 70%);
}
.signin-card {
  width: min(420px, 100%); text-align: center;
  background: rgba(255,255,255,.96); border-radius: var(--r-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); padding: 48px 36px 40px;
}
.signin-card img { height: 30px; width: auto; margin: 0 auto 30px; display: block; }
.signin-card h1 { font-size: 2.2rem; letter-spacing: -.035em; margin: 0; }
.signin-card p { color: var(--faint); font-size: 1.02rem; margin: 10px 0 28px; line-height: 1.5; }
.signin-btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; width: 100%; padding: 14px 18px; font-size: 1rem; cursor: pointer; border: 0; }
.signin-btn svg { width: 18px; height: 18px; flex: none; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-d); font-weight: 500; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.signin { position: fixed; inset: 0; z-index: 50; overflow-y: auto; min-height: 0; margin: 0; }

/* ---------- Staff directory ---------- */
.dir-tools { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; margin-bottom: var(--space-2); }
.dir-q {
  flex: 1 1 260px; max-width: 440px; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 16px; border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
}
.dir-q::placeholder { color: var(--faint); }
.dir-q:focus { outline: none; box-shadow: 0 0 0 4px rgba(6,147,178,.18), var(--shadow); }
.dir-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 0;
  background: rgba(0,0,0,.05); color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: rgba(0,0,0,.09); }
.chip.is-on { background: var(--camp, var(--teal-d)); border-color: var(--camp, var(--teal-d)); color: #fff; }
.dir-count { margin: 4px 0 var(--space-3); font-size: .85rem; color: var(--faint); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-2); }
.person[hidden] { display: none; }
.person {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 14px 16px;
}
.person-av {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .85rem; font-weight: 600; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--camp) 88%, white), color-mix(in srgb, var(--camp) 72%, black));
}
.person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-main b { font-size: 1rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.person-title { font-size: .85rem; color: var(--slate); line-height: 1.35; }
.person-camp { font-size: .76rem; font-weight: 500; color: color-mix(in srgb, var(--camp) 60%, black); margin-top: 2px; }
.person-acts { display: flex; gap: 4px; flex: none; }
.person-acts a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--teal-d); border: 0; background: var(--teal-wash); text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.person-acts a:hover { color: #fff; background: var(--teal-d); }
.person-acts svg { width: 17px; height: 17px; }
.person-acts span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 620px) {
  .people { grid-template-columns: 1fr; }
  .dir-q { max-width: none; }
  .person-acts a { width: 40px; height: 40px; }
}
.back-link { display: inline-block; margin: var(--space-3) 0 calc(var(--space-3) * -1); font-size: .95rem; font-weight: 500; color: var(--teal-d); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Whole-card click ---------- */
/* The card's first working link covers the whole card, so a click anywhere
   opens it. Other links on the card are lifted above that layer. */
.card-click { cursor: pointer; }
.card-click .link-primary::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-click .card-links a:not(.link-primary), .card-click .link-note { position: relative; z-index: 1; }
.card-click:hover .link-primary::after { opacity: 1; transform: translateX(0); }
.card-click:has(.link-primary:focus-visible) { outline: 3px solid color-mix(in srgb, var(--sec, var(--teal)) 45%, transparent); outline-offset: 3px; }
.card-click:hover .link-primary { text-decoration: underline; text-underline-offset: 3px; }
.card-click .link-primary:focus-visible { outline: none; }

/* ---------- HR dates ---------- */
.card-body .soft { color: var(--faint); }
.card-body b { color: var(--ink); }
.page-head .dl-btn { margin-left: auto; align-self: center; }
.dates { width: 100%; max-width: 720px; border-collapse: separate; border-spacing: 0; background: var(--card);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; font-size: .95rem; }
.dates th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--faint);
  background: #FAFAFC; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.dates td { padding: 13px 20px; border-bottom: 1px solid var(--line); }
.dates tr:last-child td { border-bottom: 0; }
.dates tr.is-past td { color: var(--faint); }
.dates tr.is-next td { background: color-mix(in srgb, var(--sec-hr) 16%, white); font-weight: 600; }
.next-tag { display: inline-block; font-size: .72rem; font-weight: 600;
  background: var(--lime-d); color: #fff; padding: 2px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 620px) {
  .page-head .dl-btn { margin-left: 0; }
  .dates { font-size: .85rem; }
  .dates th, .dates td { padding: 9px 11px; }
}
.dates.hide-past tr.is-past { display: none; }
.past-toggle { display: block; margin: 0 0 var(--space-2); font-size: .85rem; }

/* ---------- Document lists (labor law notices) ---------- */
.docs { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-2); }
.doc {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doc:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-main b { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.doc-main span { font-size: .8rem; color: var(--faint); }
.doc-dl { flex: none; display: flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--lime-d);
  background: var(--lime-wash); border-radius: 999px; padding: 6px 11px; }
.doc-dl svg { width: 15px; height: 15px; }
.doc:hover .doc-dl { background: var(--lime-d); color: #fff; }
@media (max-width: 620px) { .docs { grid-template-columns: 1fr; } }

/* ---------- Employee Handbook ---------- */
.hb-tools .chip { flex: none; }
.hb { list-style: none; margin: 0; padding: 0; max-width: 820px; background: var(--card);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.hb-item { border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.hb-item:last-child { border-bottom: 0; }
.hb-item summary, .hb-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 20px; }
.hb-item summary { cursor: pointer; list-style: none; }
.hb-item summary::-webkit-details-marker { display: none; }
.hb-item summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: 2px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(-45deg) translateY(-2px);
  transition: transform .15s; }
.hb-item details[open] > summary::before { transform: rotate(45deg) translateY(-3px); }
.hb-item summary:hover { background: #FAFAFC; }
.hb-t { flex: 1; min-width: 0; font-weight: 600; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; }
.hb-p { flex: none; font-size: .74rem; color: var(--faint); white-space: nowrap; }
.hb-item.lvl-1 summary { padding-left: 38px; }
.hb-item.lvl-1 .hb-t { font-weight: 500; font-size: .95rem; }
.hb-group .hb-head { background: #FAFAFC; padding-left: 20px; }
.hb-group .hb-t { font-size: .8rem; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.hb-body { padding: 0 20px 16px 39px; font-size: .95rem; line-height: 1.65; color: var(--slate); }
.hb-item.lvl-1 .hb-body { padding-left: 57px; }
.hb-body p { margin: 0 0 .7em; }
.hb-body ul { margin: 0 0 .8em; padding-left: 1.2em; }
.hb-body li { margin: 0 0 .35em; }
.hb mark { background: color-mix(in srgb, var(--lime-d) 30%, white); color: inherit; border-radius: 3px; padding: 0 1px; }
.hb-item.is-target { box-shadow: inset 4px 0 0 var(--sec-hr); }
.hb-edition { margin: var(--space-2) 0 0; font-size: .82rem; color: var(--faint); }
@media (max-width: 620px) {
  .hb-item summary, .hb-head { padding: 12px 12px; gap: 8px; }
  .hb-item.lvl-1 summary { padding-left: 26px; }
  .hb-body, .hb-item.lvl-1 .hb-body { padding: 0 12px 12px 12px; font-size: .9rem; }
}

/* Search results: the title sits straight in the view, no page-head. */
#view > .page-title { margin: var(--space-4) 0 0; }
#view > .page-title + .page-sub { margin-bottom: var(--space-3); }
