.hypothesis-collection {
  display: grid;
  grid-template-columns: minmax(13rem, 0.9fr) minmax(0, 2fr);
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  margin: 1rem 0 clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-display);
}

.hypothesis-collection a { color: var(--ink); text-decoration: none; }
.hypothesis-collection a:hover { color: var(--accent-dark); }
.hypothesis-collection__home { display: grid; align-content: center; gap: 0.18rem; min-width: 0; padding-block: 1rem; }
.hypothesis-collection__label { color: var(--accent-text); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.2; text-transform: uppercase; }
.hypothesis-collection__title { font-size: clamp(0.82rem, 1.6vw, 0.96rem); line-height: 1.25; }
.hypothesis-collection__nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.hypothesis-collection__nav li { display: grid; min-width: 0; border-left: 1px solid var(--border); }
.hypothesis-collection__nav a { display: grid; align-content: center; gap: 0.22rem; height: 100%; box-sizing: border-box; padding: 1rem clamp(0.45rem, 1.5vw, 0.85rem); font-size: clamp(0.66rem, 1.2vw, 0.76rem); font-weight: 500; line-height: 1.25; }
.hypothesis-collection__number { color: var(--muted); font-size: 0.6rem; line-height: 1; }
.hypothesis-collection__nav a[aria-current="page"] { position: relative; color: var(--bg); background: var(--ink); box-shadow: inset 0 -0.22rem 0 var(--accent); font-weight: 700; }
.hypothesis-collection__nav a[aria-current="page"]::after { content: "Вы здесь"; color: var(--surface-raised); font-size: 0.55rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1; text-transform: uppercase; }
.hypothesis-collection__nav a[aria-current="page"] .hypothesis-collection__number { color: currentColor; }
.artifact-topnav--with-collection { margin-bottom: 0; }

@media (max-width: 760px) {
  .hypothesis-collection { grid-template-columns: 1fr; align-items: start; }
  .hypothesis-collection__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
  .hypothesis-collection__nav li { border-bottom: 1px solid var(--border); }
  .hypothesis-collection__nav li:nth-child(3n + 1) { border-left: 0; }
  .hypothesis-collection__nav a { padding-block: 0.65rem; }
}

@media (max-width: 420px) {
  .hypothesis-collection__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hypothesis-collection__nav li:nth-child(3n + 1) { border-left: 1px solid var(--border); }
  .hypothesis-collection__nav li:nth-child(odd) { border-left: 0; }
}

@media print { .hypothesis-collection { display: none; } }

