/* Cornerstone Gigs — shared site chrome ON TOP of Nocturne.
   Load order: assets/nocturne.css → assets/base.css → page stylesheet.
   Rules: Nocturne tokens only (var(--color-*) / --space-* / --radius-* /
   --shadow-* / --font-*). Never re-declare a Nocturne token here; the only
   raw values below are geometry Nocturne has no token for (page width,
   icon/dot sizes, the 768px breakpoint). */

:root {
  --page-max: 1100px;   /* content column width */
  --chrome-t: 220ms ease; /* the one modest transition for all chrome */
}

/* ── Focus & generic interactive states ───────────────────────────────
   (Re-asserted from Nocturne so chrome added here is covered everywhere.) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
a,
.btn,
.site-nav-link,
.site-logo {
  transition: color var(--chrome-t), background-color var(--chrome-t),
    border-color var(--chrome-t), box-shadow var(--chrome-t);
}
a:hover { color: var(--color-accent-400); }  /* one ramp step past base (dark ground) */
a:active { color: var(--color-accent-300); } /* pressed: one further step */

/* ── Page layout wrapper ──────────────────────────────────────────────
   Left-aligned content column. On very wide screens the column sits
   left-of-center — Nocturne's asymmetric direction: whitespace on the right. */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 1500px) {
  .wrap { margin-left: calc((100vw - var(--page-max)) * 0.4); }
}

/* ── Ticker strip (full-width dark bar above the nav) ───────────────── */
.ticker-strip {
  background: var(--color-neutral-900);
  color: var(--color-neutral-300);
  font-size: 12px;
}
.ticker-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.ticker-total { font-variant-numeric: tabular-nums; }
.ticker-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
  white-space: nowrap;
}
.ticker-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--color-neutral-600);
}
.ticker-dot.is-live {
  background: var(--color-accent);
  animation: ticker-pulse 2.4s ease-in-out infinite;
}
.ticker-dot.is-ticking {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 25%, transparent);
}
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-dot.is-live { animation: none; }
}

/* ── Site nav ─────────────────────────────────────────────────────────
   Logo left; text links right (Gigs / How it works / Contact) — no buttons.
   The bottom hairline is Nocturne's signature fading rule. */
.site-nav {
  background: linear-gradient(to right,
    transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}
.site-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-3);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-right: auto;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  color: var(--color-text);
  text-decoration: none;
}
.site-logo:hover { color: var(--color-accent); }
.site-logo:active { color: var(--color-accent-300); }
.site-logo-mark {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent); /* short accent marks stay solid */
}
.site-nav-link {
  padding-block: var(--space-1);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-link:hover { color: var(--color-accent); }
.site-nav-link:active { color: var(--color-accent-300); }
.site-nav-link.is-active { /* current page: accent underline */
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 767px) {
  /* mobile: logo stays, links hide (footer carries the same destinations) */
  .site-nav-link { display: none; }
}

/* ── Footer ───────────────────────────────────────────────────────────
   Three columns on desktop (brand / quick links / industries), stacked on
   mobile; bottom row carries copyright + privacy link. Same fading-rule
   hairline as the nav. */
.site-footer {
  margin-top: var(--space-8);
  padding-block: var(--space-8) var(--space-6);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-neutral-400);
  background: linear-gradient(to right,
    transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent) no-repeat top / 100% 1px;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6) var(--space-8);
}
.site-footer .site-logo {
  font-size: 15px;
}
.site-footer .site-logo-mark {
  width: 8px;
  height: 8px;
}
.site-footer-blurb {
  margin: var(--space-3) 0;
  max-width: 44ch;
}
.site-footer-contact {
  margin: 0;
}
.site-footer-heading {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.site-footer a {
  color: var(--color-neutral-300);
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-accent); }
.site-footer a:active { color: var(--color-accent-300); }
.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: 12px;
}
@media (max-width: 767px) {
  .site-footer {
    padding-block: var(--space-6) var(--space-5);
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Skeleton loading ─────────────────────────────────────────────────
   Bars matching gig row/card geometry; shimmer sweeps until data lands. */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-neutral-800);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg,
    transparent 20%,
    color-mix(in srgb, var(--color-neutral-100) 8%, transparent) 50%,
    transparent 80%);
  animation: skeleton-sweep 1.6s ease-in-out infinite;
}
@keyframes skeleton-sweep {
  to { transform: translateX(100%); }
}
.skeleton-row  { height: 56px;  border-radius: var(--radius-md); }
.skeleton-card { height: 168px; border-radius: var(--radius-md); }
.skeleton-text { height: 12px; }
.skeleton-text-sm { height: 10px; width: 60%; }
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
}

/* ── New-gig highlight ────────────────────────────────────────────────
   Accent border + accent-tinted fill. Works on .card and on plain rows. */
.new-highlight {
  border: 1px solid var(--color-accent);
  background: var(--color-accent-900);
}
.card.new-highlight {
  border: 1px solid var(--color-accent);
  background: var(--color-accent-900);
}
