/* Archive surface governance presentation layer.
 * The plugin decides eligibility; the theme only lowers/raises visual prominence.
 */

.td-category-semantic--compact {
  display: block;
  margin: 18px 0 clamp(22px, 3vw, 34px);
  padding: 14px 16px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.88);
  box-shadow: none;
}

.td-category-semantic--compact .td-category-semantic__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: none;
}

.td-category-semantic--compact .td-category-semantic__eyebrow {
  margin: 0;
  font-size: 0.68rem;
}

.td-category-semantic--compact .td-category-semantic__intro h2 {
  margin: 0;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.td-category-semantic--compact .td-category-semantic__intro > p:not(.td-category-semantic__eyebrow),
.td-category-semantic--compact .td-category-semantic__stats,
.td-category-semantic--compact .td-category-semantic__all,
.td-category-semantic--compact .td-category-semantic__axis-summary,
.td-category-semantic--compact .td-category-semantic__secondary-axes,
.td-category-semantic--compact .td-category-semantic__mobile-summary,
.td-category-semantic--compact script {
  display: none;
}

.td-category-semantic--compact .td-category-semantic__mobile-disclosure {
  margin-top: 10px;
}

.td-category-semantic--compact .td-category-semantic__axes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-category-semantic--compact .td-category-semantic__axis,
.td-category-semantic--compact .td-category-semantic__axis + .td-category-semantic__axis {
  display: contents;
  padding: 0;
  border: 0;
}

.td-category-semantic--compact .td-category-semantic__axis h3 {
  display: none;
}

.td-category-semantic--compact .td-category-semantic__paths {
  display: contents;
}

.td-category-semantic--compact .td-category-semantic__path {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.td-category-semantic--compact .td-category-semantic__path-head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.td-category-semantic--compact .td-category-semantic__path-head a,
.td-category-semantic--compact .td-category-semantic__path-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgb(10 26 60 / 0.1);
  border-radius: 999px;
  background: #f4f8fb;
  color: #173c62;
  font-size: 0.84rem;
  font-weight: 800;
}

.td-category-semantic--compact .td-category-semantic__path-head > span,
.td-category-semantic--compact .td-category-semantic__children,
.td-category-semantic--compact .td-category-semantic__related {
  display: none;
}

.td-archive-surface-debug {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px dashed rgb(131 91 0 / 0.45);
  border-radius: 14px;
  background: #fff8e6;
  color: #332200;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.td-archive-surface-debug summary {
  cursor: pointer;
  font-weight: 800;
}

.td-archive-surface-debug dl {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 12px 0 0;
}

.td-archive-surface-debug dt {
  font-weight: 800;
}

.td-archive-surface-debug dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .td-category-semantic--compact {
    padding: 12px;
  }

  .td-archive-surface-debug dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
