/* field-guide-chrome.add.css
 * Additive only — load AFTER investigations SoR shadcn.css
 * Do not redefine --background / --radius / fonts.
 */

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
}
.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

/* Five-door nav on SoR .nav-links */
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-links a:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}
.nav-links a[aria-current="page"] {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
  border-color: hsl(var(--border));
  font-weight: 600;
}

/* Room subtitle under brand (optional) */
.brand .brand-room {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* Preview / staging strip — maps to SoR alert language */
.preview-banner,
.staging-banner {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  margin: 1rem auto 0;
  max-width: 1120px;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.4);
}
.preview-banner strong,
.staging-banner strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}
.staging-banner,
.preview-banner[data-kind="staging"] {
  border-color: hsl(var(--warning) / 0.35);
  background: hsl(var(--warning) / 0.08);
}

@media (min-width: 640px) {
  .preview-banner,
  .staging-banner {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: calc(1120px - 0px);
  }
}

/* Empty state (News quiet empty, Events no plans, Maps stubs) */
.empty-state {
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.25);
}
.empty-state > strong,
.empty-state .empty-state__title {
  display: block;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.empty-state p {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  max-width: 40rem;
}

/* Feedback panel — structure only; uses SoR .label .input .btn .chip */
.feedback-panel {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.feedback-panel__lede {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  max-width: 40rem;
}
.feedback-panel__form {
  display: grid;
  gap: 0.9rem;
}
.feedback-panel fieldset {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  padding: 0.75rem 1rem;
  margin: 0;
}
.feedback-panel legend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 0.25rem;
  color: hsl(var(--muted-foreground));
}
.feedback-panel .stack {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.feedback-panel__status {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.feedback-panel__status[data-tone="ok"] { color: hsl(var(--success)); }
.feedback-panel__status[data-tone="warn"] { color: hsl(var(--warning)); }

/* Optional docked drawer shell (community preview) */
.feedback-drawer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  max-height: min(85vh, 40rem);
  overflow: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid hsl(var(--border));
  border-bottom: none;
  background: hsl(var(--card));
  box-shadow: var(--shadow-md);
  padding: 0.75rem 1rem 1.25rem;
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.feedback-drawer[data-open="true"] { transform: translateY(0); }
.feedback-drawer__handle {
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 999px;
  background: hsl(var(--border));
  margin: 0.25rem auto 0.75rem;
}
@media (prefers-reduced-motion: reduce) {
  .feedback-drawer { transition: none; }
}
