/* BlueSignal Silk — shared presentation layer. Content and behavior stay unchanged. */
html { color-scheme: light; background: var(--silk-background); }
html[data-theme="dark"] { color-scheme: dark; }

body {
  background: var(--silk-background);
  color: var(--silk-text);
}

.site-header {
  background: color-mix(in srgb, var(--silk-surface) 94%, transparent);
  color: var(--silk-text);
  border: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.08), inset 0 -1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

.site-header .nav-links a:not(.button),
.site-header .nav-toggle { color: var(--silk-text); }

.site-header .button,
.site-header .button-outline,
.site-header #theme-toggle,
.site-header .nav-profile-toggle {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
}

.site-header .button {
  color: #fff;
  background: radial-gradient(circle at 28% 16%, #66b4ff, #3b82f6 52%, #1462d2 100%);
  box-shadow: 6px 7px 15px rgba(20,98,210,.28), inset 1px 1px 0 rgba(255,255,255,.3);
}

.site-header .nav-links .button[data-report-link] {
  background: var(--brand);
  box-shadow: var(--silk-raised-sm);
}

.site-header .button-outline,
.site-header #theme-toggle,
.site-header .nav-profile-toggle {
  color: var(--silk-text);
  background: var(--silk-surface);
  box-shadow: var(--silk-raised-sm);
}

.site-header .nav-push-toggle.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 5px 6px 13px color-mix(in srgb, var(--accent) 34%, transparent);
}

.site-header .nav-push-toggle.is-switch {
  color: #0f172a;
  background: #f59e0b;
  box-shadow: 5px 6px 13px rgba(245, 158, 11, .28);
}

.site-footer {
  margin-top: var(--content-footer-gap);
  color: var(--silk-text);
  background: var(--silk-surface);
  border: 0;
  box-shadow: 0 -12px 28px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.08);
}

[data-theme="dark"] .site-footer { background: var(--silk-surface); }
.site-footer .footer-title,
.site-footer .footer-heading { color: var(--silk-text); }
.site-footer .footer-sub,
.site-footer a,
.site-footer .contact-item { color: var(--silk-muted); }

.site-footer .social-link {
  color: var(--silk-muted);
  background: var(--silk-surface);
  border: 0;
  box-shadow: inset 5px 5px 10px var(--silk-shadow-dark), inset -5px -5px 10px var(--silk-highlight);
}

.site-footer .social-link:hover,
.site-footer .social-link:focus-visible {
  color: var(--silk-blue);
  background: var(--silk-surface);
  border: 0;
  transform: none;
  box-shadow: var(--silk-inset);
}

.footer-cta form {
  background: var(--silk-surface) !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: var(--silk-inset) !important;
}

.footer-cta input[type="email"] {
  min-height: 48px;
  padding-inline: 16px !important;
  color: var(--silk-text) !important;
  background: var(--silk-surface) !important;
  border-color: transparent !important;
  border-radius: 14px !important;
  box-shadow: inset 10px 10px 20px var(--silk-shadow-dark), inset -10px -10px 20px var(--silk-highlight) !important;
}

.footer-cta .btn {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: radial-gradient(circle at 28% 16%, #66b4ff, #3b82f6 52%, #1462d2 100%);
  box-shadow: 5px 6px 13px rgba(20,98,210,.3);
}

:is(.report-page, .profile-shell, .species-page, .page-wrap, .report-detail) {
  color: var(--silk-text);
}

:is(.report-page, .profile-shell, .species-page, .page-wrap, .report-detail)
  :is(h1, h2, h3, h4) {
  color: var(--silk-text);
  font-family: var(--font-main);
  letter-spacing: -.025em;
}

:is(.report-page, .profile-shell, .species-page, .page-wrap, .report-detail)
  :is(p, small, .profile-muted) {
  color: var(--silk-muted);
}

:is(
  .report-page .card,
  .profile-panel,
  .profile-header,
  .profile-stats > *,
  .species-card,
  .species-explorer,
  .species-detail__hero,
  .species-education-block,
  .species-observation-card,
  .methodology-v2__section,
  .methodology-v2__problem-panel,
  .methodology-v2__risk-card,
  .methodology-v2__pillar-card,
  .report-detail__shell
) {
  background: var(--silk-surface) !important;
  border-color: transparent !important;
  border-radius: 24px !important;
  box-shadow: var(--silk-raised) !important;
}

:is(
  .report-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .report-page select,
  .report-page textarea,
  .profile-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .profile-shell select,
  .profile-shell textarea,
  .species-search input
) {
  min-height: 46px;
  color: var(--silk-text) !important;
  background: var(--silk-surface) !important;
  border-color: transparent !important;
  border-radius: 16px !important;
  box-shadow: var(--silk-inset) !important;
}

:is(.report-page, .profile-shell, .species-page, .page-wrap, .report-detail)
  :is(.button, .btn.primary, button[type="submit"], .nearby-action--detail) {
  min-height: 46px;
  color: #fff;
  border: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 28% 16%, #66b4ff, #3b82f6 52%, #1462d2 100%);
  box-shadow: 7px 8px 17px rgba(20,98,210,.3), inset 1px 1px 0 rgba(255,255,255,.3);
}

:is(.report-page, .profile-shell, .species-page, .page-wrap, .report-detail)
  :is(.button-outline, .btn.secondary, .profile-secondary-link, .nearby-action--share) {
  min-height: 44px;
  color: var(--silk-text);
  background: var(--silk-surface);
  border-color: transparent;
  border-radius: 16px;
  box-shadow: var(--silk-raised-sm);
}

.profile-shell .profile-menu__button.profile-menu__item--danger {
  color: #ef4444 !important;
  background: var(--silk-surface) !important;
  border: 0;
  box-shadow: var(--silk-inset) !important;
}

.profile-shell .profile-menu__button.profile-menu__item--danger :is(.profile-menu__label, .profile-menu__icon) {
  color: #ef4444 !important;
}

.profile-shell .profile-menu__button.profile-menu__item--danger .profile-menu__icon {
  background: transparent;
  box-shadow: none;
}

.profile-shell .profile-menu__button.profile-menu__item--danger:hover,
.profile-shell .profile-menu__button.profile-menu__item--danger:focus-visible {
  color: #f87171 !important;
  background: var(--silk-surface) !important;
  box-shadow:
    inset 9px 9px 18px var(--silk-shadow-dark),
    inset -9px -9px 18px var(--silk-highlight) !important;
}

.species-filters button {
  min-height: 44px;
  color: var(--silk-muted);
  background: var(--silk-surface);
  border-color: transparent;
  border-radius: 14px;
  box-shadow: var(--silk-raised-sm);
}

.species-filters button.is-active {
  color: #fff;
  background: radial-gradient(circle at 28% 16%, #66b4ff, #3b82f6 52%, #1462d2 100%);
  box-shadow: 5px 6px 13px rgba(20,98,210,.3);
}

.report-page :is(.report-form-section, .report-photo-subcard, .report-preview-card),
.profile-shell :is(.login-field__control, .signup-form__section),
.report-detail :is(.report-detail__secondary, .report-detail__footer) {
  border-color: transparent !important;
  border-radius: 20px !important;
}

.report-page :is(.report-form-section, .report-photo-subcard),
.profile-shell .signup-form__section {
  background: var(--silk-surface) !important;
  box-shadow: var(--silk-inset) !important;
}

.species-detail__image-stage,
.report-detail__media,
.profile-avatar {
  border-color: transparent !important;
  box-shadow: var(--silk-inset) !important;
}

.methodology-v2__hero,
.species-page__hero,
.report-header {
  border-radius: 24px;
}

:is(.report-page, .profile-shell, .species-page, .page-wrap, .report-detail)
  :is(a, button, input, select, textarea):focus-visible,
.site-header :is(a, button):focus-visible,
.site-footer :is(a, button, input):focus-visible {
  outline: 3px solid var(--silk-blue) !important;
  outline-offset: 3px !important;
}

:is(.report-page, .profile-shell, .species-page, .page-wrap, .report-detail)
  :is(button, .button, .btn):active {
  transform: translateY(1px);
  box-shadow: var(--silk-inset) !important;
}

/* Draw notification dismiss icons geometrically so the cross is optically centered. */
:is(.flash__close, .push-toast__close) {
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.push-toast__close {
  position: relative;
}

:is(.flash__close, .push-toast__close)::before,
:is(.flash__close, .push-toast__close)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

:is(.flash__close, .push-toast__close)::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 700px) {
  :is(
    .report-page .card,
    .profile-panel,
    .species-card,
    .species-explorer,
    .species-detail__hero,
    .species-education-block,
    .methodology-v2__section,
    .report-detail__shell
  ) {
    border-radius: 20px !important;
    box-shadow: var(--silk-raised-sm) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.report-page, .profile-shell, .species-page, .page-wrap, .report-detail) *,
  .site-header *,
  .site-footer * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
