/* ============================================
   DESIGN TOKENS
   ============================================ */

:root, [data-theme="light"] {
  /* --- Type Scale (fluid) --- */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* --- 4px Spacing System --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* --- Surfaces (warm beige) --- */
  --color-bg:             #f7f6f2;
  --color-surface:        #f9f8f5;
  --color-surface-2:      #fbfbf9;
  --color-surface-offset: #f3f0ec;
  --color-surface-offset-2: #edeae5;
  --color-surface-dynamic: #e6e4df;
  --color-divider:        #dcd9d5;
  --color-border:         #d4d1ca;

  /* --- Text --- */
  --color-text:           #28251d;
  --color-text-muted:     #7a7974;
  --color-text-faint:     #bab9b4;
  --color-text-inverse:   #f9f8f4;

  /* --- Primary Accent (Hydra Teal) --- */
  --color-primary:        #01696f;
  --color-primary-hover:  #0c4e54;
  --color-primary-active: #0f3638;
  --color-primary-highlight: #cedcd8;

  /* --- Semantic Colors --- */
  --color-success:        #437a22;
  --color-success-hover:  #2e5c10;
  --color-success-highlight: #d4dfcc;
  --color-blue:           #006494;
  --color-blue-hover:     #0b5177;
  --color-blue-highlight: #c6d8e4;
  --color-purple:         #7a39bb;
  --color-purple-hover:   #5f2699;
  --color-purple-highlight: #dacfde;
  --color-gold:           #d19900;
  --color-gold-hover:     #b07a00;
  --color-gold-highlight: #e9e0c6;
  --color-warning:        #964219;
  --color-warning-highlight: #ddcfc6;

  /* Category badge colors */
  --badge-frameworks-bg:    #cedcd8;
  --badge-frameworks-text:  #01696f;
  --badge-regulations-bg:   #e9e0c6;
  --badge-regulations-text: #7a4f00;
  --badge-tools-bg:         #d4dfcc;
  --badge-tools-text:       #2e5c10;
  --badge-orgs-bg:          #e6e4df;
  --badge-orgs-text:        #4a4742;
  --badge-education-bg:     #c6d8e4;
  --badge-education-text:   #0b3751;
  --badge-reports-bg:       #dacfde;
  --badge-reports-text:     #431673;

  /* Status badges */
  --badge-enacted-bg:   #d4dfcc;
  --badge-enacted-text: #2e5c10;
  --badge-proposed-bg:  #e9e0c6;
  --badge-proposed-text: #7a4f00;
  --badge-draft-bg:     #e6e4df;
  --badge-draft-text:   #4a4742;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1280px;

  /* --- Fonts --- */
  --font-display: 'Source Serif 4', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:             #171614;
  --color-surface:        #1c1b19;
  --color-surface-2:      #201f1d;
  --color-surface-offset: #1d1c1a;
  --color-surface-offset-2: #22211f;
  --color-surface-dynamic: #2d2c2a;
  --color-divider:        #262523;
  --color-border:         #393836;
  --color-text:           #cdccca;
  --color-text-muted:     #797876;
  --color-text-faint:     #5a5957;
  --color-text-inverse:   #2b2a28;
  --color-primary:        #4f98a3;
  --color-primary-hover:  #227f8b;
  --color-primary-active: #1a626b;
  --color-primary-highlight: #313b3b;
  --color-success:        #6daa45;
  --color-success-hover:  #4d8f25;
  --color-success-highlight: #3a4435;
  --color-blue:           #5591c7;
  --color-blue-hover:     #3b78ab;
  --color-blue-highlight: #3a4550;
  --color-purple:         #a86fdf;
  --color-purple-hover:   #9250d0;
  --color-purple-highlight: #4e4652;
  --color-gold:           #e8af34;
  --color-gold-hover:     #fdc551;
  --color-gold-highlight: #4d4332;
  --color-warning:        #bb653b;
  --color-warning-highlight: #564942;

  --badge-frameworks-bg:    #313b3b;
  --badge-frameworks-text:  #4f98a3;
  --badge-regulations-bg:   #4d4332;
  --badge-regulations-text: #e8af34;
  --badge-tools-bg:         #3a4435;
  --badge-tools-text:       #6daa45;
  --badge-orgs-bg:          #2d2c2a;
  --badge-orgs-text:        #9a9895;
  --badge-education-bg:     #3a4550;
  --badge-education-text:   #5591c7;
  --badge-reports-bg:       #4e4652;
  --badge-reports-text:     #a86fdf;

  --badge-enacted-bg:   #3a4435;
  --badge-enacted-text: #6daa45;
  --badge-proposed-bg:  #4d4332;
  --badge-proposed-text: #e8af34;
  --badge-draft-bg:     #2d2c2a;
  --badge-draft-text:   #9a9895;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #171614;
    --color-surface:        #1c1b19;
    --color-surface-2:      #201f1d;
    --color-surface-offset: #1d1c1a;
    --color-surface-offset-2: #22211f;
    --color-surface-dynamic: #2d2c2a;
    --color-divider:        #262523;
    --color-border:         #393836;
    --color-text:           #cdccca;
    --color-text-muted:     #797876;
    --color-text-faint:     #5a5957;
    --color-text-inverse:   #2b2a28;
    --color-primary:        #4f98a3;
    --color-primary-hover:  #227f8b;
    --color-primary-active: #1a626b;
    --color-primary-highlight: #313b3b;
    --color-success:        #6daa45;
    --color-success-hover:  #4d8f25;
    --color-success-highlight: #3a4435;
    --color-blue:           #5591c7;
    --color-blue-hover:     #3b78ab;
    --color-blue-highlight: #3a4550;
    --color-purple:         #a86fdf;
    --color-purple-hover:   #9250d0;
    --color-purple-highlight: #4e4652;
    --color-gold:           #e8af34;
    --color-gold-hover:     #fdc551;
    --color-gold-highlight: #4d4332;
    --color-warning:        #bb653b;
    --color-warning-highlight: #564942;
    --badge-frameworks-bg:    #313b3b;
    --badge-frameworks-text:  #4f98a3;
    --badge-regulations-bg:   #4d4332;
    --badge-regulations-text: #e8af34;
    --badge-tools-bg:         #3a4435;
    --badge-tools-text:       #6daa45;
    --badge-orgs-bg:          #2d2c2a;
    --badge-orgs-text:        #9a9895;
    --badge-education-bg:     #3a4550;
    --badge-education-text:   #5591c7;
    --badge-reports-bg:       #4e4652;
    --badge-reports-text:     #a86fdf;
    --badge-enacted-bg:   #3a4435;
    --badge-enacted-text: #6daa45;
    --badge-proposed-bg:  #4d4332;
    --badge-proposed-text: #e8af34;
    --badge-draft-bg:     #2d2c2a;
    --badge-draft-text:   #9a9895;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}

.container--narrow {
  max-width: var(--content-narrow);
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.site-logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.site-logo__text span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-dynamic);
  border-color: var(--color-text-faint);
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
  padding-block: var(--space-2);
}

.stats-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.stats-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

.stats-bar__item strong {
  color: var(--color-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}

.stats-bar__dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-divider);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  max-width: 22ch;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

/* ============================================
   SEARCH
   ============================================ */

.search-wrapper {
  position: relative;
  max-width: 580px;
  margin-bottom: var(--space-6);
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 18px + var(--space-3));
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), background var(--transition-interactive);
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-faint);
}

.search-input:focus {
  border-color: var(--color-primary);
  background: var(--color-bg);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}

.search-clear {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-interactive), background var(--transition-interactive);
}

.search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}

.search-clear:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

/* ============================================
   FILTER CHIPS
   ============================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-interactive);
  white-space: nowrap;
  font-family: var(--font-body);
  min-height: 36px;
}

.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.filter-chip .chip-count {
  font-size: var(--text-xs);
  opacity: 0.7;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.filter-chip.active .chip-count {
  opacity: 0.8;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1.5px solid var(--color-divider);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color var(--transition-interactive);
}

.section-title:hover {
  color: var(--color-primary);
}

.section-count {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Category section */
.category-section {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-20));
}

.category-section[data-hidden="true"] {
  display: none;
}

/* ============================================
   CARDS GRID
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--space-4);
  content-visibility: auto;
}

/* ============================================
   RESOURCE CARD
   ============================================ */

.resource-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive), transform var(--transition-interactive);
  opacity: 0;
  animation: cardReveal 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-text-faint);
  transform: translateY(-1px);
}

.resource-card[data-hidden="true"] {
  display: none;
}

@keyframes cardReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Card header row */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

/* Category badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.badge--frameworks { background: var(--badge-frameworks-bg); color: var(--badge-frameworks-text); }
.badge--regulations { background: var(--badge-regulations-bg); color: var(--badge-regulations-text); }
.badge--tools { background: var(--badge-tools-bg); color: var(--badge-tools-text); }
.badge--orgs { background: var(--badge-orgs-bg); color: var(--badge-orgs-text); }
.badge--education { background: var(--badge-education-bg); color: var(--badge-education-text); }
.badge--reports { background: var(--badge-reports-bg); color: var(--badge-reports-text); }

/* Status badges */
.badge--enacted { background: var(--badge-enacted-bg); color: var(--badge-enacted-text); }
.badge--proposed { background: var(--badge-proposed-bg); color: var(--badge-proposed-text); }
.badge--draft { background: var(--badge-draft-bg); color: var(--badge-draft-text); }

/* External link icon button */
.card-link-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  color: var(--color-text-faint);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  text-decoration: none;
}

.card-link-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

/* Card title */
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.card-title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Card meta row */
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.card-meta__org {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.card-meta__sep {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.card-meta__year {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}

/* Card description */
.card-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: -webkit-line-clamp var(--transition-interactive);
}

.card-description.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.card-expand-btn {
  font-size: var(--text-xs);
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  transition: color var(--transition-interactive);
  align-self: flex-start;
  min-height: 0;
}

.card-expand-btn:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Category label inside card */
.card-category-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-body);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  gap: var(--space-4);
}

.empty-state__icon {
  color: var(--color-text-faint);
  opacity: 0.5;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.empty-state__body {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: 36ch;
}

/* ============================================
   NO RESULTS SECTION
   ============================================ */

.no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.no-results.visible {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-8);
  margin-top: var(--space-16);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-text strong {
  color: var(--color-text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition-interactive);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ============================================
   RESULTS COUNT
   ============================================ */

.results-summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  min-height: 1.5em;
  font-family: var(--font-body);
}

.results-summary strong {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */

.super-category-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .stats-bar__inner {
    gap: var(--space-3);
  }

  .stats-bar__dot:nth-child(4),
  .stats-bar__dot:nth-child(4) ~ * {
    display: none;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    max-width: 100%;
  }

  .filter-bar {
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  .site-logo__text span {
    display: none;
  }
}

/* ============================================
   STAGGER ANIMATIONS
   ============================================ */

.resource-card:nth-child(1)  { animation-delay: 0ms; }
.resource-card:nth-child(2)  { animation-delay: 40ms; }
.resource-card:nth-child(3)  { animation-delay: 80ms; }
.resource-card:nth-child(4)  { animation-delay: 120ms; }
.resource-card:nth-child(5)  { animation-delay: 160ms; }
.resource-card:nth-child(6)  { animation-delay: 200ms; }
.resource-card:nth-child(7)  { animation-delay: 240ms; }
.resource-card:nth-child(8)  { animation-delay: 280ms; }
.resource-card:nth-child(9)  { animation-delay: 320ms; }
.resource-card:nth-child(10) { animation-delay: 360ms; }
.resource-card:nth-child(n+11) { animation-delay: 400ms; }
