/* Tokens globais, container e acessibilidade extraidos de base.css para manter
   cada modulo abaixo do limite rigido de tamanho. */
:root {
  --theme-primary: #00467c;
  --theme-primary-rgb: 0, 70, 124;
  --theme-accent: #0273b2;
  --theme-accent-rgb: 2, 115, 178;
  --theme-filled-primary: var(--theme-primary);
  --theme-filled-primary-rgb: var(--theme-primary-rgb);
  --theme-filled-primary-hover: color-mix(in srgb, var(--theme-filled-primary) 90%, black);
  --theme-filled-primary-hover-rgb: var(--theme-filled-primary-rgb);
  --theme-filled-primary-active: var(--theme-primary);
  --theme-filled-primary-active-rgb: var(--theme-primary-rgb);
  --theme-filled-primary-foreground-rgb: var(--color-primary-foreground-rgb);
  --theme-filled-primary-shadow: var(--theme-action-shadow);
  --theme-tooltip-background-rgb: 255, 255, 255;
  --theme-tooltip-border-rgb: var(--theme-primary-rgb);
  --theme-tooltip-foreground-rgb: var(--color-secondary-rgb);
  --theme-primary-muted: #64748b;
  --theme-primary-soft: rgba(0, 70, 124, 0.1);
  --theme-primary-wash: rgba(0, 70, 124, 0.05);
  --theme-shell-glow: rgba(2, 115, 178, 0.08);
  --theme-card-glow: rgba(2, 115, 178, 0.12);
  --theme-action-shadow: 0 1px 3px rgba(0, 70, 124, 0.12);
  --color-primary: #00467c;
  --color-accent: #0273b2;
  --color-surface: #ffffff;
  --color-surface-muted: #edf4f8;
  --color-border: #d7e2ea;
  --color-text: #263238;
  --color-muted: #6b7280;
  --color-success: #16a34a;
  --color-success-light: #22c55e;
  --color-error: #dc2626;
  --color-error-light: #ef4444;
  --color-warning: #d97706;
  --color-warning-light: #f59e0b;
  --color-info: #2563eb;
  --color-info-light: #3b82f6;
  --color-diff-old: #fef2f2;
  --color-diff-new: #ecfdf5;
  --color-surface-alt: #f0f4f8;
  --color-text-muted: #6b7280;
  --shadow-soft: 0 1px 3px rgba(0, 70, 124, 0.06);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-float: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-dropdown: 0 8px 24px rgba(15, 23, 42, 0.12);
  --shadow-focus-ring-sm: 0 0 0 2px;
  --shadow-focus-ring: 0 0 0 3px;
  --shadow-focus-ring-lg: 0 0 0 4px;
  --color-surface-100: #f8fafc;
  --color-surface-200: #e2e8f0;
  --color-surface-300: #cbd5e1;
  --color-text-primary: #334155;
  --color-text-secondary: #64748b;
  --color-foreground: #111827;
  --color-danger: #dc2626;
  --color-tone-sky: #39a0e2;
  --color-tone-purple: #7c3aed;
  --color-tone-amber: #f59b42;
  --color-tone-gold: #d4a017;
  --color-tone-mint: #3fbf9b;
  --color-tone-emerald: #047857;
  --color-tone-slate: #94a3b8;
  --color-dark: #333333;
  --color-gray-mid: #888888;
  --color-hover-subtle: #f8fafc;
  --color-hover-muted: #f1f5f9;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --opacity-disabled: 0.55;
  --app-header-height: 4rem;
  --app-footer-height: 2.75rem;

  /* Spacing scale — base 4px (0.25rem). */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Border radius scale */
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 9999px;

  /* Font size scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;

  /* Breakpoints — referencia semantica para devs.
     CSS nao aceita custom properties em media queries. */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-decoration-line: none;
  background: var(--theme-filled-primary);
  color: rgb(var(--theme-filled-primary-foreground-rgb));
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - 2rem));
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

.skip-link:focus-visible,
.skip-link:active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
