.public-page {
  background:
    radial-gradient(820px 480px at 0% 18%, rgba(251, 232, 223, .55), transparent 58%),
    linear-gradient(180deg, #fff 0%, var(--bee-off) 55%, #fff 100%);
}
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bee-blue);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 16% 0%, rgba(250, 215, 65, .24), transparent 62%),
    radial-gradient(660px 440px at 94% 90%, rgba(245, 90, 120, .34), transparent 60%),
    linear-gradient(135deg, #1e28a5 0%, #18218c 54%, #0e1457 100%);
}
.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 46px;
  align-items: center;
  padding: 64px 0 58px;
}
.page-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  font-weight: 900;
}
.glass-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 32px;
  padding: 16px;
  background: rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(18px);
}
.glass-search > span {
  color: var(--bee-yellow);
}
.glass-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  color: var(--bee-muted);
  outline: none;
  font-weight: 750;
}

.page-stats {
  background: #fff;
}
.page-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0 0;
}
.page-stat-grid article {
  min-height: 118px;
  border: 1px solid var(--bee-line);
  border-radius: 26px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.page-stat-grid span { color: var(--bee-blue); }
.page-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--bee-blue);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}
.page-stat-grid small {
  display: block;
  margin-top: 6px;
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 800;
}

.page-shell {
  padding: 54px 0 90px;
}
.split-workbench,
.article-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.atlas-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid var(--bee-line);
  border-radius: 32px;
  padding: 22px;
  background:
    radial-gradient(240px 180px at 100% 0%, rgba(250, 215, 65, .28), transparent 66%),
    rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(12px);
}
.atlas-panel h2 {
  color: var(--bee-blue);
  font-size: 26px;
  font-weight: 900;
}
.atlas-panel p {
  color: var(--bee-muted);
  font-weight: 650;
  line-height: 1.65;
}
.atlas-actions,
.article-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.atlas-actions button,
.article-type-filter button {
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(30, 40, 165, .09);
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.atlas-actions button:hover,
.article-type-filter button:hover,
.article-type-filter button.active {
  background: var(--bee-yellow);
  color: var(--bee-blue-deep);
}
.results-stage {
  min-width: 0;
}
.stage-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.stage-head h2 {
  color: var(--bee-blue);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 900;
}

.vocab-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.vocab-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--bee-line);
  border-radius: 28px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vocab-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 35%;
  height: 140px;
  border-radius: 999px;
  background: rgba(245, 90, 120, .12);
  transform: rotate(-8deg);
  transition: transform .28s ease;
}
.vocab-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-3);
}
.vocab-card:hover::after {
  transform: translateY(-24px) rotate(-8deg);
}
.vocab-card .chip {
  position: relative;
  z-index: 1;
}
.vocab-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--bee-blue);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
}
.vocab-card code {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 8px;
  color: var(--bee-coral);
  font-weight: 900;
}
.vocab-card p {
  position: relative;
  z-index: 1;
  color: var(--bee-muted);
  line-height: 1.6;
  font-weight: 650;
}

.vocab-command {
  position: relative;
  display: grid;
  gap: 12px;
}

.vocab-status {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 800;
}

.vocab-status[data-mode="loading"] {
  color: var(--bee-yellow);
}

.vocab-status[data-mode="error"] {
  color: #fff;
}

.vocab-suggestions {
  position: absolute;
  top: calc(100% - 6px);
  right: 0;
  left: 0;
  z-index: 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-3);
}

.vocab-suggestions[hidden] {
  display: none;
}

.vocab-suggestions button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--bee-line);
  padding: 13px 16px;
  background: transparent;
  color: var(--bee-blue);
  text-align: left;
  cursor: pointer;
}

.vocab-suggestions button:hover {
  background: rgba(250, 215, 65, .18);
}

.vocab-suggestions button:last-child {
  border-bottom: 0;
}

.vocab-suggestions strong {
  font-size: 13px;
  font-weight: 900;
}

.vocab-suggestions span {
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 700;
}

.vocab-filter-panel {
  display: grid;
  gap: 18px;
}

.vocab-filter-group {
  display: grid;
  gap: 9px;
  border-radius: 22px;
  padding: 14px;
  background: rgba(30, 40, 165, .06);
}

.vocab-filter-group strong {
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vocab-filter-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--bee-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.vocab-filter-group input {
  accent-color: var(--bee-blue);
}

.vocab-meta {
  margin: 8px 0 0;
  color: var(--bee-muted);
  font-size: 13px;
  font-weight: 700;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.vocab-result-card {
  min-height: 245px;
}

.vocab-result-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vocab-namespace {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(245, 90, 120, .12);
  color: var(--bee-coral);
  font-size: 11px;
  font-weight: 900;
}

.vocab-code-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.vocab-code-row code {
  margin-top: 0;
}

.vocab-code-row span {
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 900;
}

.vocab-search-results {
  display: grid;
  gap: 18px;
}

.vocab-welcome-container {
  display: grid;
  gap: 20px;
}

.welcome-header {
  border: 1px solid var(--bee-line);
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(250, 215, 65, .24), transparent 66%),
    #fff;
  box-shadow: var(--shadow-1);
}

.welcome-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--bee-blue);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
}

.welcome-header h2 span {
  color: var(--bee-coral);
}

.welcome-header p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--bee-muted);
  line-height: 1.7;
  font-weight: 650;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.example-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--bee-line);
  border-radius: 26px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-1);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.example-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 90, 120, .32);
  box-shadow: var(--shadow-3);
}

.example-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(30, 40, 165, .08);
  color: var(--bee-blue);
  font-size: 28px;
}

.example-content {
  display: grid;
  gap: 5px;
}

.example-query {
  color: var(--bee-coral);
  font-weight: 900;
}

.example-arrow {
  color: var(--bee-blue);
  font-size: 19px;
}

.example-result {
  color: var(--bee-blue);
  font-weight: 900;
}

.search-info-card,
.tips-card {
  border: 1px solid var(--bee-line);
  border-radius: 30px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.search-info-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.search-info-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--bee-blue);
  color: var(--bee-yellow);
  font-size: 34px;
}

.search-info-content h3,
.tips-card h4 {
  margin: 0;
  color: var(--bee-blue);
  font-size: 22px;
  font-weight: 900;
}

.search-info-content p,
.tips-card li {
  color: var(--bee-muted);
  line-height: 1.65;
  font-weight: 650;
}

.search-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.search-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(30, 40, 165, .07);
  color: var(--bee-blue);
  font-size: 13px;
  font-weight: 900;
}

.tips-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.vocab-legacy-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bee-line);
  border-radius: 30px;
  padding: 22px;
  background:
    radial-gradient(340px 190px at 100% 0%, rgba(251, 232, 223, .48), transparent 68%),
    #fff;
  box-shadow: var(--shadow-1);
  transition: transform .22s ease, box-shadow .22s ease;
}

.vocab-legacy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
}

.vocab-legacy-card .result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-type,
.result-score {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.result-type {
  background: rgba(30, 40, 165, .08);
  color: var(--bee-blue);
  text-transform: uppercase;
}

.result-type.term {
  background: rgba(250, 215, 65, .28);
  color: var(--bee-blue-deep);
}

.result-type.descriptor {
  background: rgba(245, 90, 120, .12);
  color: var(--bee-coral);
}

.result-score {
  background: rgba(30, 40, 165, .06);
  color: var(--bee-muted);
}

.vocab-legacy-card h3 {
  margin: 16px 0 0;
  color: var(--bee-blue);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.12;
  font-weight: 900;
}

.result-description {
  margin: 12px 0 0;
  color: var(--bee-muted);
  line-height: 1.7;
  font-weight: 650;
}

.result-details {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-section {
  border-radius: 22px;
  padding: 14px;
  background: rgba(30, 40, 165, .05);
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-title span {
  color: var(--bee-coral);
  font-size: 18px;
}

.detail-content,
.example-item {
  margin-top: 8px;
  color: var(--bee-muted);
  font-size: 13px;
  font-weight: 700;
}

.translations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.translation-item {
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 800;
}

.examples-list {
  display: grid;
  gap: 7px;
}

.vocab-loading {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--bee-line);
  border-radius: 30px;
  padding: 32px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-1);
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(30, 40, 165, .14);
  border-top-color: var(--bee-blue);
  border-radius: 50%;
  animation: vocab-spin .85s linear infinite;
}

@keyframes vocab-spin {
  to { transform: rotate(360deg); }
}

.vocab-knowledge {
  padding: 76px 0 92px;
  background:
    radial-gradient(620px 360px at 0% 18%, rgba(250, 215, 65, .18), transparent 58%),
    var(--bee-pink);
}

.knowledge-lead {
  border: 1px solid rgba(30, 40, 165, .12);
  border-radius: 32px;
  padding: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-1);
}

.knowledge-lead p {
  max-width: 980px;
  color: var(--bee-muted);
  line-height: 1.75;
  font-weight: 650;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.knowledge-card,
.resource-content,
.resource-toc,
.resource-card-grid article {
  border: 1px solid var(--bee-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.knowledge-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
  padding: 24px;
}

.knowledge-card > span,
.resource-card-grid article > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: rgba(30, 40, 165, .09);
  color: var(--bee-blue);
  font-size: 31px;
}

.knowledge-card h3,
.resource-card-grid h3 {
  color: var(--bee-blue);
  font-size: 22px;
  line-height: 1.16;
  font-weight: 900;
}

.knowledge-card p,
.resource-card-grid p {
  color: var(--bee-muted);
  line-height: 1.65;
  font-weight: 650;
}

.link-grid {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.link-grid a,
.resource-link-cloud a,
.resource-toc a,
.resource-card-grid a,
.resource-tree a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(30, 40, 165, .07);
  color: var(--bee-blue);
  font-size: 13px;
  font-weight: 900;
}

.link-grid a:hover,
.resource-link-cloud a:hover,
.resource-toc a:hover,
.resource-card-grid a:hover,
.resource-tree a:hover {
  background: var(--bee-yellow);
  color: var(--bee-blue-deep);
}

.vocab-big-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.vocab-big-stats article {
  border-radius: 28px;
  padding: 24px;
  background: var(--bee-blue);
  color: #fff;
  box-shadow: var(--shadow-2);
}

.vocab-big-stats strong {
  display: block;
  color: var(--bee-yellow);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.vocab-big-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .84);
  font-weight: 800;
}

.resource-shell {
  padding: 58px 0 92px;
}

.resource-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.resource-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.resource-content {
  padding: 28px;
}

.resource-prose {
  display: grid;
  gap: 18px;
}

.resource-prose section {
  border-bottom: 1px solid var(--bee-line);
  padding-bottom: 18px;
}

.resource-prose section:last-child {
  border-bottom: 0;
}

.resource-prose h2 {
  color: var(--bee-blue);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 900;
}

.resource-prose p {
  color: var(--bee-muted);
  line-height: 1.75;
  font-weight: 650;
}

.resource-link-cloud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.resource-table-wrap {
  overflow: auto;
  margin-top: 24px;
  border: 1px solid var(--bee-line);
  border-radius: 24px;
}

.resource-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.resource-table th,
.resource-table td {
  border-bottom: 1px solid var(--bee-line);
  padding: 13px 14px;
  color: var(--bee-muted);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.5;
}

.resource-table th {
  position: sticky;
  top: 0;
  background: var(--bee-off);
  color: var(--bee-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resource-tree {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.resource-tree details {
  border: 1px solid var(--bee-line);
  border-radius: 24px;
  padding: 14px;
  background: #fff;
}

.resource-tree summary {
  color: var(--bee-blue);
  cursor: pointer;
  font-weight: 900;
}

.resource-tree summary span {
  color: var(--bee-muted);
  font-size: 12px;
}

.resource-tree details > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.resource-tree a {
  justify-content: flex-start;
}

.resource-tree a strong {
  min-width: 92px;
}

.resource-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 24px;
}

.resource-search input,
.resource-search select {
  min-width: 0;
  border: 1px solid var(--bee-line);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--bee-muted);
  outline: none;
  font-weight: 750;
  background: #fff;
}

.letter-strip,
.translator-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.letter-strip button,
.translator-quick button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(30, 40, 165, .08);
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.letter-strip button:hover,
.letter-strip button.active,
.translator-quick button:hover {
  background: var(--bee-yellow);
  color: var(--bee-blue-deep);
}

.resource-result-note {
  margin-top: 20px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(30, 40, 165, .06);
  color: var(--bee-muted);
  font-weight: 800;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.resource-card-grid article {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.result-open-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--bee-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.result-open-link:hover {
  background: var(--bee-yellow);
  color: var(--bee-blue-deep);
}

.class-primer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
}

.class-definition-card,
.class-score-card,
.class-section,
.class-index-card,
.tree-root-card {
  border: 1px solid var(--bee-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.class-definition-card {
  padding: 26px;
}

.class-definition-card > div {
  color: var(--bee-blue-deep);
  font-size: clamp(20px, 2.2vw, 31px);
  line-height: 1.35;
  font-weight: 780;
}

.class-definition-card a,
.tree-root-card a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(250, 215, 65, .26);
  color: var(--bee-blue);
  font-weight: 900;
}

.class-definition-card a .material-symbols-outlined,
.tree-root-card a .material-symbols-outlined {
  font-size: 16px;
}

.quote-mark {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(30, 40, 165, .08);
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
}

.creator-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--bee-muted);
  font-size: 14px;
  font-weight: 850;
}

.class-score-card {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 24px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(250, 215, 65, .38), transparent 65%),
    var(--bee-blue);
  color: #fff;
}

.class-score-card strong {
  color: var(--bee-yellow);
  font-size: 64px;
  line-height: .9;
  font-weight: 900;
}

.class-score-card span {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.class-score-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .8);
  line-height: 1.55;
  font-weight: 650;
}

.class-detail-stack {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.class-section {
  overflow: hidden;
  padding: 24px;
}

.class-section > p {
  max-width: 850px;
  color: var(--bee-muted);
  line-height: 1.7;
  font-weight: 650;
}

.section-head-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head-inline h2 {
  margin: 2px 0 0;
  color: var(--bee-blue);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
  font-weight: 900;
}

.section-head-inline code,
.section-badge {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(245, 90, 120, .12);
  color: var(--bee-coral);
  font-size: 12px;
  font-weight: 900;
}

.relationship-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.relationship-column {
  border-radius: 24px;
  padding: 16px;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(251, 232, 223, .62), transparent 68%),
    var(--bee-off);
}

.relationship-column h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--bee-blue);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
}

.relationship-column h3 span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  color: var(--bee-muted);
  font-size: 11px;
}

.relationship-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.relationship-links a {
  display: grid;
  gap: 3px;
  border-radius: 16px;
  padding: 11px 12px;
  background: #fff;
  color: var(--bee-blue);
  font-weight: 900;
  transition: transform .18s ease, background .18s ease;
}

.relationship-links a:hover {
  transform: translateX(6px);
  background: var(--bee-yellow);
  color: var(--bee-blue-deep);
}

.relationship-links small {
  color: var(--bee-muted);
  font-size: 11px;
  font-weight: 800;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.property-card {
  display: grid;
  gap: 7px;
  border-radius: 22px;
  padding: 16px;
  background: var(--bee-off);
}

.property-card .material-symbols-outlined {
  color: var(--bee-coral);
}

.property-card small {
  color: var(--bee-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.property-card strong {
  color: var(--bee-blue);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.iri-strip {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(30, 40, 165, .06);
}

.iri-strip span {
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.iri-strip a {
  overflow-wrap: anywhere;
  color: var(--bee-blue);
  font-weight: 850;
}

.iri-strip.muted {
  background: rgba(74, 79, 119, .06);
}

.descriptor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.descriptor-pills span,
.descriptor-pills a {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(30, 40, 165, .08);
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
}

.contributors-panel {
  display: grid;
  gap: 10px;
}

.contributor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 18px;
  padding: 13px 14px;
  background: var(--bee-off);
}

.contributor-row span,
.muted-note {
  color: var(--bee-muted);
  font-weight: 750;
}

.contributor-row strong {
  color: var(--bee-blue);
  text-align: right;
  font-weight: 900;
}

.translation-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.translation-gallery article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--bee-line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
}

.translation-gallery span {
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.translation-gallery strong {
  display: block;
  margin-top: 4px;
  color: var(--bee-blue);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 900;
}

.translation-gallery p {
  margin: 0;
  color: var(--bee-muted);
  font-size: 13px;
  font-weight: 700;
}

.translation-gallery footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.translation-gallery footer span {
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(30, 40, 165, .06);
}

.translation-gallery footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(250, 215, 65, .3);
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
}

.class-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.class-index-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 220px;
  padding: 20px;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.class-index-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 90, 120, .32);
  box-shadow: var(--shadow-3);
}

.class-index-card > .material-symbols-outlined {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(250, 215, 65, .35);
  color: var(--bee-blue);
}

.class-index-card strong {
  color: var(--bee-blue);
  font-size: 20px;
  line-height: 1.16;
  font-weight: 900;
}

.class-index-card small {
  display: block;
  margin-top: 5px;
  color: var(--bee-coral);
  font-size: 12px;
  font-weight: 900;
}

.class-index-card p {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 10px 0 0;
  color: var(--bee-muted);
  line-height: 1.55;
  font-weight: 650;
}

.class-index-card footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.class-index-card footer span {
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(30, 40, 165, .07);
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
}

.class-index-card strong,
.class-index-card small,
.translation-gallery strong,
.translation-gallery p {
  overflow-wrap: anywhere;
}

.tree-root-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
}

.tree-root-card > .material-symbols-outlined {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--bee-blue);
  color: var(--bee-yellow);
  font-size: 35px;
}

.tree-root-card h2 {
  margin: 2px 0 6px;
  color: var(--bee-blue);
  font-size: 30px;
  font-weight: 900;
}

.tree-root-card p {
  color: var(--bee-muted);
  line-height: 1.65;
  font-weight: 650;
}

.table-title-link {
  color: var(--bee-blue);
  font-weight: 900;
}

.article-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.article-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  min-height: 330px;
  border: 1px solid var(--bee-line);
  border-radius: 34px;
  background:
    radial-gradient(560px 260px at 92% 18%, rgba(250, 215, 65, .18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(252, 252, 255, .82)),
    #fff;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.article-tile.featured {
  border-color: rgba(30, 40, 165, .22);
}
.article-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
  border-color: rgba(30, 40, 165, .34);
}
.article-cover {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(250, 215, 65, .6), transparent 34%),
    linear-gradient(135deg, var(--bee-blue), var(--bee-blue-deep));
}
.article-cover img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform .45s ease, filter .45s ease;
}
.article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(14, 20, 87, .28)),
    radial-gradient(320px 220px at 20% 12%, rgba(250, 215, 65, .24), transparent 70%);
  pointer-events: none;
}
.article-tile:hover .article-cover img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.02);
}
.article-cover-fallback {
  min-height: 330px;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
}
.article-cover-fallback span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, .58);
  border-radius: 34px;
  background: rgba(255, 255, 255, .12);
  color: var(--bee-yellow);
  font-size: 38px;
  font-weight: 900;
}
.article-cover-fallback small {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.article-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
}
.article-tile h3 {
  margin: 0;
  color: var(--bee-blue);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 900;
}
.article-tile.featured h3,
.article-tile.featured p {
  color: var(--bee-blue);
}
.article-tile p {
  max-width: 760px;
  margin: 0;
  color: var(--bee-muted);
  line-height: 1.7;
  font-weight: 650;
}
.article-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-keyword-row span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(30, 40, 165, .08);
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 900;
}
.article-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.article-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-mini-stats span {
  border-left: 3px solid var(--bee-yellow);
  padding-left: 10px;
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.article-mini-stats strong {
  color: var(--bee-blue);
  font-size: 18px;
}

.impact-card {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 34px;
  padding: 32px;
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(250, 215, 65, .35), transparent 68%),
    rgba(255, 255, 255, .13);
  color: #fff;
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(18px);
}
.impact-card > span {
  color: var(--bee-yellow);
  font-size: 54px;
}
.impact-card strong {
  display: block;
  margin-top: 18px;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}
.impact-card p {
  color: rgba(255, 255, 255, .84);
  line-height: 1.7;
  font-weight: 650;
}
.involvement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.path-card {
  min-height: 320px;
  border: 1px solid var(--bee-line);
  border-radius: 30px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.path-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3);
}
.path-card > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(30, 40, 165, .09);
  color: var(--bee-blue);
  font-size: 32px;
}
.path-card h2 {
  margin-top: 22px;
  color: var(--bee-blue);
  font-size: 23px;
  font-weight: 900;
}
.path-card p {
  color: var(--bee-muted);
  line-height: 1.65;
  font-weight: 650;
}
.journey-section {
  padding: 76px 0;
  background: var(--bee-pink);
}
.journey-section h2 {
  color: var(--bee-blue);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
}
.journey-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.journey-line article {
  border-radius: 28px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.journey-line b {
  color: var(--bee-coral);
  font-size: 13px;
  font-weight: 900;
}
.journey-line strong {
  display: block;
  margin-top: 10px;
  color: var(--bee-blue);
  font-size: 20px;
  font-weight: 900;
}
.journey-line small {
  display: block;
  margin-top: 8px;
  color: var(--bee-muted);
  line-height: 1.55;
  font-weight: 650;
}
.reading-modal {
  width: min(860px, 100%);
}
.reading-modal h2 {
  color: var(--bee-blue);
  font-size: clamp(28px, 4vw, 44px);
}
.reading-body {
  margin-top: 18px;
  color: var(--bee-muted);
  white-space: pre-wrap;
  line-height: 1.85;
  font-weight: 600;
}

@media (max-width: 1040px) {
  .page-hero-grid,
  .split-workbench,
  .article-layout,
  .resource-layout {
    grid-template-columns: 1fr;
  }
  .atlas-panel,
  .resource-toc {
    position: static;
  }
  .knowledge-grid,
  .resource-card-grid,
  .resource-link-cloud,
  .relationship-board,
  .class-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .class-primer {
    grid-template-columns: 1fr;
  }
  .involvement-grid,
  .journey-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Articles: meta, states, skeletons and rich reading view */
.article-count {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 800;
}
.article-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
}
.article-tile-meta {
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 800;
}
.article-tile.featured .article-tile-meta {
  color: var(--bee-muted);
}
.article-tile .button {
  position: relative;
  z-index: 1;
}

.article-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 28px;
  text-align: center;
}
.article-state > span {
  font-size: 40px;
  color: var(--bee-blue);
}
.article-state p {
  margin: 0;
  color: var(--bee-blue);
  font-size: 17px;
  font-weight: 850;
}
.article-state small {
  color: var(--bee-muted);
  font-weight: 650;
}
.article-state .button {
  margin-top: 8px;
}

/* Loading skeleton tiles */
.article-tile.is-skeleton {
  gap: 12px;
  pointer-events: none;
}
.article-tile.is-skeleton .sk-cover {
  min-height: 330px;
  background: linear-gradient(90deg, rgba(30, 40, 165, .06) 25%, rgba(30, 40, 165, .13) 37%, rgba(30, 40, 165, .06) 63%);
  background-size: 400% 100%;
  animation: article-shimmer 1.4s ease infinite;
}
.article-tile.is-skeleton .sk {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 40, 165, .07) 25%, rgba(30, 40, 165, .14) 37%, rgba(30, 40, 165, .07) 63%);
  background-size: 400% 100%;
  animation: article-shimmer 1.4s ease infinite;
}
.sk-chip { width: 90px; height: 22px; border-radius: 999px; }
.sk-line { height: 14px; }
.sk-line.lg { height: 26px; width: 80%; }
.sk-line.sm { width: 45%; margin-top: 10px; }
@keyframes article-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* Rich reading view inside the modal */
body.modal-open { overflow: hidden; }
.reading-meta {
  margin: 6px 0 0;
  font-weight: 800;
  font-size: 14px;
}
.reading-body.rich {
  white-space: normal;
}
.reading-body.rich h1,
.reading-body.rich h2,
.reading-body.rich h3,
.reading-body.rich h4 {
  color: var(--bee-blue);
  line-height: 1.2;
  font-weight: 900;
  margin: 22px 0 10px;
}
.reading-body.rich h2 { font-size: 24px; }
.reading-body.rich h3 { font-size: 20px; }
.reading-body.rich p { margin: 0 0 14px; }
.reading-body.rich a { color: var(--bee-blue); font-weight: 800; text-decoration: underline; }
.reading-body.rich ul,
.reading-body.rich ol { margin: 0 0 16px; padding-left: 22px; }
.reading-body.rich li { margin-bottom: 6px; }
.reading-body.rich img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 10px 0;
}
.reading-body.rich blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--bee-yellow);
  background: rgba(30, 40, 165, .05);
  border-radius: 0 16px 16px 0;
}
.reading-body.rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.reading-body.rich th,
.reading-body.rich td {
  border: 1px solid var(--bee-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.reading-body.rich th { background: var(--bee-off); color: var(--bee-blue); font-weight: 900; }
.reading-body.rich pre,
.reading-body.rich code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.reading-body.rich pre {
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(30, 40, 165, .06);
}

@media (max-width: 760px) {
  .page-hero-grid {
    padding: 44px 0;
  }
  .glass-search {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .glass-search input,
  .glass-search .button {
    width: 100%;
  }
  .page-stat-grid,
  .vocab-card-grid,
  .examples-grid,
  .article-showcase,
  .involvement-grid,
  .journey-line,
  .knowledge-grid,
  .vocab-big-stats,
  .resource-card-grid,
  .resource-link-cloud,
  .resource-tree details > div,
  .relationship-board,
  .property-grid,
  .translation-gallery,
  .class-index-grid {
    grid-template-columns: 1fr;
  }
  .resource-content {
    padding: 20px;
  }
  .class-section,
  .class-definition-card {
    padding: 18px;
  }
  .class-definition-card > div {
    font-size: 20px;
  }
  .section-head-inline,
  .contributor-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .contributor-row strong {
    text-align: left;
  }
  .iri-strip,
  .tree-root-card,
  .class-index-card {
    grid-template-columns: 1fr;
  }
  .resource-search {
    grid-template-columns: 1fr;
  }
  .article-tile.featured {
    grid-column: span 1;
  }
  .article-tile {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .article-cover,
  .article-cover img,
  .article-cover-fallback,
  .article-tile.is-skeleton .sk-cover {
    min-height: 240px;
  }
  .article-card-foot,
  .article-tile-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .stage-head {
    align-items: start;
    flex-direction: column;
  }
  .search-info-card {
    grid-template-columns: 1fr;
  }
}

/* Data providers directory (GAP-02) */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.provider-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(30, 40, 165, .14);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 27, 96, .08);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.provider-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 40, 165, .32);
  box-shadow: 0 18px 40px rgba(20, 27, 96, .14);
}
.provider-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.provider-card-head h3 {
  margin: 0;
  color: var(--bee-blue);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}
.provider-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--bee-blue);
  color: var(--bee-yellow);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .4px;
}
.provider-avatar.large {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  font-size: 20px;
}
.provider-type {
  margin: 4px 0 0;
  color: var(--bee-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.provider-excerpt {
  margin: 0;
  color: var(--bee-muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}
.provider-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.provider-stat {
  border-left: 3px solid var(--bee-yellow);
  padding-left: 10px;
  color: var(--bee-blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.provider-stat strong {
  font-size: 17px;
}
.provider-stat.muted {
  color: var(--bee-muted);
}
.providers-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 28px;
  color: var(--bee-blue);
  font-weight: 800;
  text-align: center;
}
.providers-state > span {
  font-size: 40px;
}
.providers-state.error {
  color: #a02040;
}
.providers-state .spin {
  animation: providers-spin 1.1s linear infinite;
}
@keyframes providers-spin {
  to { transform: rotate(360deg); }
}

/* Provider public profile */
.provider-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}
.provider-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
}
.provider-detail-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}
.provider-detail-identity h1 {
  margin: 0;
}
.provider-detail-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.provider-detail-page [hidden] {
  display: none !important;
}

.moderation-view-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--bee-line);
  border-radius: 11px;
  background: #f5f6fa;
}

.moderation-view-tabs button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bee-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.moderation-view-tabs button.active {
  background: var(--bee-blue);
  color: #fff;
  box-shadow: 0 7px 16px rgba(30, 40, 165, .17);
}

.moderation-view-tabs .material-symbols-outlined {
  font-size: 18px;
}
.provider-about {
  max-width: 860px;
  margin-bottom: 34px;
}
.provider-description p {
  margin: 10px 0 0;
  color: var(--bee-muted);
  line-height: 1.75;
  font-weight: 600;
}
.provider-description a {
  color: var(--bee-blue);
  font-weight: 800;
}
.provider-datasets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.provider-dataset-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(30, 40, 165, .14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 27, 96, .08);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.provider-dataset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 40, 165, .32);
  box-shadow: 0 18px 40px rgba(20, 27, 96, .14);
}
.provider-dataset-card h3 {
  margin: 0;
  color: var(--bee-blue);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}
.provider-dataset-card p {
  margin: 0;
  color: var(--bee-muted);
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 600;
}
.provider-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bee-blue);
  font-size: 13px;
  font-weight: 900;
}
.provider-open .material-symbols-outlined {
  font-size: 17px;
}
@media (max-width: 720px) {
  .provider-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .provider-detail-identity {
    gap: 14px;
  }
}

/* Provider knowledge links: restores the legacy provider -> article surface
   while keeping it visually distinct from catalogue datasets. */
.provider-articles { margin-top: clamp(48px, 7vw, 84px); }
.provider-articles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.provider-article-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(30, 40, 165, .14);
  border-radius: 24px;
  color: inherit;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 28, 92, .08);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.provider-article-card:hover { transform: translateY(-4px); border-color: rgba(30, 40, 165, .35); box-shadow: 0 22px 48px rgba(20, 28, 92, .14); }
.provider-article-cover {
  min-height: 230px;
  display: grid;
  place-items: center;
  background-color: #19257e;
  background-position: center;
  background-size: cover;
}
.provider-article-cover > .material-symbols-outlined { color: #f9d83b; font-size: 54px; }
.provider-article-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
.provider-article-copy small { color: var(--bee-muted); font-weight: 800; }
.provider-article-copy strong { color: var(--bee-blue); font-size: 22px; line-height: 1.2; }
.provider-article-copy > span { color: var(--bee-muted); line-height: 1.52; }
.provider-article-copy b { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--bee-blue); }
.provider-article-copy b .material-symbols-outlined { font-size: 19px; transition: transform .2s ease; }
.provider-article-card:hover .provider-article-copy b .material-symbols-outlined { transform: translateX(4px); }

/* Keep the bee visible in the narrow article cover crop. */
.articles-page .article-cover img[src*="photo-1562091668-cd20c2abe700"] {
  object-position: 100% 50%;
}

@media (max-width: 900px) {
  .provider-articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .provider-article-card { grid-template-columns: 1fr; }
  .provider-article-cover { min-height: 180px; }
}
