/**
 * CDK Civic Position ribbon.
 *
 * A thin fleet-wide context bar rendered at the very top of the page. Fully
 * self-contained (no per-theme CSS variables) so it looks identical across the
 * differently-themed CanuckDUCK sites. Light + dark aware.
 */

.cdk-civic-position {
  --cdk-cp-bg: #1A1A2E;
  --cdk-cp-fg: #E8E8ED;
  --cdk-cp-muted: #A9A9BC;
  --cdk-cp-accent: #D4A017;
  width: 100%;
  background: var(--cdk-cp-bg);
  color: var(--cdk-cp-fg);
  font-size: 0.75rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cdk-civic-position__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.cdk-civic-position__here strong {
  color: var(--cdk-cp-accent);
  font-weight: 700;
}

.cdk-civic-position__blurb {
  color: var(--cdk-cp-muted);
}

.cdk-civic-position__link {
  color: var(--cdk-cp-fg);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--cdk-cp-accent);
  padding-bottom: 1px;
}

.cdk-civic-position__link:hover,
.cdk-civic-position__link:focus {
  color: var(--cdk-cp-accent);
}

/* Sites that render on a light chrome: the dark ribbon still reads well, so we
   keep it dark in both schemes for a consistent fleet signature. Only nudge
   contrast slightly in forced light mode. */
@media (prefers-color-scheme: light) {
  .cdk-civic-position {
    --cdk-cp-bg: #15151f;
  }
}

@media (max-width: 480px) {
  .cdk-civic-position__inner {
    font-size: 0.6875rem;
    gap: 6px;
  }
}
