/* shadcn interaction patterns, expressed as an EduAvenues editorial index. */
:root {
  --component-border: var(--line);
  --component-border-strong: color-mix(in srgb, var(--navy) 20%, var(--surface));
  --component-muted: color-mix(in srgb, var(--navy) 4%, var(--surface));
  --component-canvas: var(--subtle);
  --component-placeholder: color-mix(in srgb, var(--quiet) 88%, var(--navy));
  --component-row-hover: color-mix(in srgb, var(--navy) 2%, var(--surface));
  --component-on-dark: color-mix(in srgb, var(--blue) 16%, var(--surface));
  --component-action-hover: color-mix(in srgb, var(--blue) 7%, var(--surface));
  --radius-component: 8px;
  --radius-none: 0;
}

body,
.nav {
  background: var(--surface);
}

.hero {
  padding: 54px 0 44px;
  background: var(--surface);
}

.hero-kicker {
  margin-bottom: 14px;
  color: var(--navy);
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(42px, 4.5vw, 58px);
  letter-spacing: -0.042em;
}

.catalog-filter-shell {
  max-width: 1040px;
  margin-top: 32px;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--component-border-strong);
  border-bottom: 1px solid var(--component-border);
  border-radius: var(--radius-none);
  background: transparent;
  box-shadow: var(--shadow-none);
}

.ea-db-filters--primary {
  gap: 0;
  padding: 0;
  border: 0;
}

.ea-db-filters--primary .ea-db-filter--search {
  position: relative;
  margin: 0;
  padding: 0 18px 0 34px;
  border: 0;
}

.catalog-search-icon {
  position: absolute;
  top: 50%;
  left: 1px;
  width: 16px;
  height: 16px;
  color: var(--quiet);
  pointer-events: none;
  transform: translateY(-50%);
}

.ea-db-filters--primary .ea-db-filter__control {
  height: 54px;
  padding: 0;
  color: var(--ink);
  line-height: 54px;
}

.ea-db-filters--primary .ea-db-filter__control::placeholder {
  color: var(--component-placeholder);
}

.ea-db-filters--primary .ea-db-filter__control:focus,
.ea-db-filters--primary .ea-db-filter__control:focus-visible {
  box-shadow: var(--shadow-none);
}

.filter-toggle {
  align-self: stretch;
  min-width: 116px;
  min-height: 54px;
  border: 0;
  border-left: 1px solid var(--component-border);
  border-radius: var(--radius-none);
  background: transparent;
  padding: 0 18px;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.filter-toggle:hover {
  background: var(--component-canvas);
  color: var(--navy);
}

.advanced-filter-panel {
  padding: 18px 0 20px;
  border-top: 1px solid var(--component-border);
  border-bottom: 0;
  background: transparent;
}

.ea-db-filters--advanced {
  gap: 13px;
  border: 0;
}

.ea-db-filters--advanced .ea-db-filter {
  margin: 0;
  padding: 0;
  border: 0;
}

.ea-db-filters--advanced .ea-db-filter__label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ea-db-filters--advanced .ea-db-filter__control {
  height: 42px;
  border: 1px solid var(--component-border);
  border-radius: var(--radius-component);
  background: var(--surface);
  padding: 0 34px 0 12px;
  font-size: 12px;
  line-height: 42px;
}

.ea-db-filters--advanced .ea-db-filter__control:focus,
.ea-db-filters--advanced .ea-db-filter__control:focus-visible {
  border-color: var(--navy);
  box-shadow: var(--shadow-focus);
}

.ea-db-filters--advanced .ea-db-filter__reset {
  align-self: end;
  min-height: 42px;
  border: 1px solid var(--component-border);
  border-radius: var(--radius-component);
  background: var(--surface);
  padding: 0 14px;
}

.result-count {
  margin: 0;
  padding: 0 0 14px;
}

.database.is-preview {
  padding: 0 0 76px;
  border-top: 0;
  background: var(--surface);
}

.database.is-preview .list-shell.is-preview #list {
  display: block;
  border-top: 2px solid var(--navy);
}

.preview-featured {
  padding: 34px 0 44px;
}

.preview-featured-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 36px;
  padding-bottom: 21px;
}

.preview-featured-kicker {
  margin-bottom: 8px;
}

.preview-featured h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.035em;
}

.preview-featured-copy {
  max-width: 500px;
  margin: 0 0 2px auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.preview-featured-grid {
  border-top: 2px solid var(--navy);
}

.preview-featured .preview-lock-card {
  margin-top: 24px;
}

.preview-browse-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 0 14px;
  border-bottom: 1px solid var(--component-border);
}

.preview-browse-head .kicker,
.preview-browse-head h2 {
  margin: 0;
}

.preview-browse-head h2 {
  font-size: 29px;
  letter-spacing: -0.03em;
}

.preview-category {
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--component-border);
  border-radius: var(--radius-none);
  background: var(--surface);
  box-shadow: var(--shadow-none);
}

.preview-category:first-child {
  border-top: 0;
}

.preview-category[open] {
  border-color: var(--component-border-strong);
  box-shadow: var(--shadow-none);
}

.preview-category-head {
  padding: 19px 0;
  transition:
    color 140ms ease,
    padding 140ms ease;
}

.preview-category-head:hover {
  background: transparent;
  color: var(--blue);
}

.preview-category[open] .preview-category-head {
  border-bottom: 0;
}

.preview-category-icon {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--radius-none);
  background: transparent;
  color: var(--navy);
}

.preview-category-icon svg {
  width: 17px;
  height: 17px;
}

.preview-category-title {
  font-size: 24px;
  letter-spacing: -0.025em;
}

.preview-category-side {
  padding-right: 2px;
}

.preview-category-body {
  padding: 0 0 34px;
}

.preview-category-body:has(.preview-lock-card) {
  display: block;
}

.preview-category-grid,
.preview-category-grid.is-expanded {
  grid-template-columns: 1fr;
  gap: 0;
}

.preview-category-grid .opportunity {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  grid-template-rows: auto 1fr;
  gap: 0 42px;
  min-height: 0;
  padding: 25px 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: var(--radius-none);
  background: transparent;
  box-shadow: var(--shadow-none);
  transition:
    background 140ms ease,
    color 140ms ease;
}

.preview-category-grid .opportunity:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.preview-category-grid .opportunity:hover {
  border-color: var(--line-soft);
  background: var(--component-row-hover);
  box-shadow: var(--shadow-none);
  transform: none;
}

.preview-category-grid .opportunity-main {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-right: 12px;
}

.preview-category-grid .opportunity h3 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.024em;
}

.preview-category-grid .summary {
  max-width: 720px;
  -webkit-line-clamp: 2;
  font-size: 12.5px;
  line-height: 1.65;
}

.preview-category-grid .preview-card-facts {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding: 2px 0 15px;
  border-top: 0;
}

.preview-category-grid .catalog-lock-row {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin-top: 0;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.preview-category-grid .catalog-lock-row .open-brief {
  margin-left: 0;
}

.preview-more {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  border: 0;
  border-bottom: 1px solid var(--navy);
  border-radius: var(--radius-none);
  background: transparent;
  padding: 5px 0 4px;
}

.preview-more:hover {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue);
}

.preview-lock-card,
.preview-category-body:has(.preview-lock-card) .preview-lock-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  margin-top: 21px;
  padding: 20px 22px;
  border: 0;
  border-radius: var(--radius-none);
  background: var(--navy-dark);
  box-shadow: var(--shadow-none);
}

.preview-lock-icon,
.preview-category-body:has(.preview-lock-card) .preview-lock-icon {
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--surface) 18%, transparent);
  border-radius: var(--radius-component);
  background: color-mix(in srgb, var(--surface) 8%, transparent);
  color: var(--component-on-dark);
}

.preview-lock-copy strong {
  color: var(--surface);
  font-size: 19px;
}

.preview-lock-copy span {
  margin-top: 3px;
  color: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 10.5px;
  line-height: 1.5;
}

.preview-lock-action,
.preview-category-body:has(.preview-lock-card) .preview-lock-action {
  width: auto;
  min-height: 40px;
  margin: 0;
  border-radius: var(--radius-component);
  background: var(--surface);
  color: var(--navy-dark);
  padding: 9px 15px;
  font-size: 10.5px;
}

.preview-lock-action:hover {
  background: var(--component-action-hover);
}

section.preview-category {
  padding: 8px 0 30px;
}

.below-list.is-preview {
  display: none;
}

.methodology {
  padding: 76px 0;
  background: var(--component-canvas);
}

.methodology h2 {
  font-size: 34px;
}

.method-list {
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--component-border-strong);
  border-radius: var(--radius-none);
  background: transparent;
}

.method-row {
  padding: 20px 0;
  border-bottom-color: var(--component-border);
}

.method-row:last-child {
  border-bottom: 1px solid var(--component-border);
}

.access-dialog {
  border: 1px solid var(--component-border);
  box-shadow: var(--shadow-dialog);
}

.access-dialog::backdrop {
  backdrop-filter: blur(4px);
}

.access-dialog-close {
  border-radius: var(--radius-component);
}

.access-dialog-close:hover {
  background: var(--component-muted);
}

@media (max-width: 980px) {
  .preview-category-grid .opportunity {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 0 28px;
  }
}

@media (max-width: 650px) {
  .hero {
    padding: 38px 0 32px;
  }

  .hero-kicker {
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(37px, 11vw, 48px);
  }

  .catalog-filter-shell {
    margin-top: 24px;
  }

  .ea-db-filters--primary {
    gap: 0;
    padding: 0;
  }

  .ea-db-filters--primary .ea-db-filter--search {
    margin: 0;
    border-right: 0;
    padding-left: 28px;
  }

  .catalog-search-icon {
    left: 0;
  }

  .filter-toggle {
    min-width: 88px;
    padding: 0 10px;
  }

  .advanced-filter-panel {
    padding: 16px 0 18px;
  }

  .ea-db-filters--advanced {
    gap: 12px;
  }

  .ea-db-filters--advanced .ea-db-filter__reset {
    width: 100%;
  }

  .database.is-preview {
    padding-bottom: 54px;
  }

  .preview-featured {
    padding: 27px 0 34px;
  }

  .preview-featured-head {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 16px;
  }

  .preview-featured h2 {
    font-size: 30px;
  }

  .preview-featured-copy {
    max-width: 520px;
    margin: 0;
  }

  .preview-browse-head {
    display: block;
    padding: 36px 0 12px;
  }

  .preview-browse-head h2 {
    margin-top: 5px;
    font-size: 25px;
  }

  .preview-category-head {
    padding: 16px 0;
  }

  .preview-category-icon {
    width: 24px;
    height: 24px;
  }

  .preview-category-title {
    font-size: 21px;
  }

  .preview-category-body {
    padding: 0 0 26px;
  }

  .preview-category-grid,
  .preview-category-grid.is-expanded {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88%, 1fr);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 2px 9px;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
  }

  .preview-category-grid .opportunity {
    display: block;
    padding: 21px 0;
    scroll-snap-align: start;
  }

  .preview-category-grid .opportunity-main {
    padding-right: 0;
  }

  .preview-category-grid .preview-card-facts {
    margin-top: 16px;
    padding: 13px 0 0;
    border-top: 1px solid var(--line-soft);
  }

  .preview-category-grid .catalog-lock-row {
    margin-top: 12px;
    padding-top: 12px;
  }

  .preview-lock-card,
  .preview-category-body:has(.preview-lock-card) .preview-lock-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
  }

  .preview-lock-action,
  .preview-category-body:has(.preview-lock-card) .preview-lock-action {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
  }

  .methodology {
    padding: 58px 0;
  }

  .methodology h2 {
    font-size: 30px;
  }

  .method-row {
    padding: 17px 0;
  }
}
