:root {
  /* COLOR SYSTEM */
  --color-brand: #006492;
  --color-brand-dark: #004d73;
  --color-brand-light: #009DE4;
  --color-brand-light-hover: #0084c4;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-text-light: #888;
  --color-surface: #fff;
  --color-surface-alt: #eeeeee;
  --color-border: #e0e0e0;

  /* SPACING SYSTEM (base 4px) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* TYPOGRAPHY */
  --font-family: 'Montserrat', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.85rem;
  --font-size-base: 0.9rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2.25rem;

  /* RADIUS */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 30px;

  /* SHADOWS */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* TRANSITIONS */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;

  /* CONTAINER SYSTEM */
  --container-max: 1200px;
  --container-narrow: 720px;
  --container-padding: 24px;
}
/* RESET */
*,
*::before,
*::after {
  margin: 0;
  border: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 99999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-sm);
}

:focus-visible {
  outline: 3px solid var(--color-brand-light);
  outline-offset: 2px;
}

/* GLOBAL */

/* SHARED CTA BUTTON */
.cat-destaque__btn,
.article-related__cta,
.secao-posts__cta,
.instagram-feed__btn,
.error-404__cta,
.empty-state__cta {
  display: inline-block;
  padding: 12px 36px;
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-family: var(--font-family);
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-base);
}
.cat-destaque__btn:hover,
.article-related__cta:hover,
.secao-posts__cta:hover,
.instagram-feed__btn:hover,
.error-404__cta:hover,
.empty-state__cta:hover {
  background: var(--color-brand-dark);
  color: #fff;
  transform: scale(1.03);
}

/* 404 PAGE */
.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: var(--space-3xl) var(--container-padding);
}

.error-404__content {
  text-align: center;
  max-width: 480px;
}

.error-404__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.error-404__desc {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 28px;
  line-height: 1.6;
}

.error-404__cta {
  padding: 14px 32px;
}

/* EMPTY STATE (componente global) */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--container-padding);
  font-family: var(--font-family);
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.empty-state__message {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 24px;
}

.empty-state__cta {
  padding: 12px 28px;
}

/* BREADCRUMB (componente global) */
.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--container-padding);
  background: none;
  border: none;
  border-radius: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.breadcrumb::-webkit-scrollbar {
  height: 3px;
}

.breadcrumb::-webkit-scrollbar-track {
  background: transparent;
}

.breadcrumb::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.breadcrumb::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  white-space: nowrap;
}

.breadcrumb__item {
  font-size: 0.8rem;
  font-weight: 400;
  color: #999;
  line-height: 1.4;
}

.breadcrumb__item a {
  color: #999;
  text-decoration: none;
  transition: color .2s ease;
}

.breadcrumb__item a:hover {
  color: #666;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin: 0 6px;
  color: #999;
  font-weight: 400;
}

.breadcrumb__item[aria-current="page"] span {
  color: #999;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

/* LOADER */
body:not(.loaded) {
  overflow: hidden;
}
#site-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-brand-light);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.loaded #site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#site-loader .loader__wrapper {
  width: 200px;
}
#site-loader .loader__wrapper img {
  width: 100%;
  height: auto;
}

/* SHARED CATEGORY LIST (partial) */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-list li a {
  display: block;
  padding: 6px 0;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color .3s ease;
}

.category-list .cat-extra.is-hidden {
  display: none;
}

.category-list__toggle {
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-list__toggle .js-ver-mais-arrow {
  transition: transform 0.3s;
}
