/* Thicket Pulse — catalog (seed atlas) */

.tp-catalog {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3.5vw, 2.75rem) clamp(1rem, 3vw, 2rem) 3.5rem;
}

.tp-catalog__mast {
  margin-bottom: 1.35rem;
}

.tp-catalog__mast h1 {
  margin: 0.3rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tp-catalog__mast > p {
  margin: 0 0 1rem;
  max-width: 48ch;
  color: var(--tp-mute);
  line-height: 1.5;
}

.tp-meters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tp-meter {
  min-width: 7.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--tp-radius-sm);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
}

.tp-meter strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tp-pine);
  line-height: 1;
}

.tp-meter span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-catalog__deck {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.15rem;
}

.tp-sectors {
  position: sticky;
  top: 1.15rem;
  padding: 1rem;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  box-shadow: 0 10px 24px rgba(21, 36, 28, 0.05);
}

.tp-sectors__head {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-sectors__ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  position: relative;
}

.tp-sectors__ladder::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.55rem;
  width: 2px;
  background: linear-gradient(180deg, var(--tp-leaf), var(--tp-vein), var(--tp-leaf));
  opacity: 0.4;
  pointer-events: none;
}

.tp-sector a {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.55rem 0.5rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
  transition: background 0.2s ease;
}

.tp-sector a::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--tp-panel);
  border: 1.5px solid var(--tp-line);
  z-index: 1;
}

.tp-sector.is-active a {
  background: var(--tp-meadow);
  font-weight: 650;
}

.tp-sector.is-active a::before {
  background: var(--tp-flare);
  border-color: var(--tp-flare);
}

.tp-sector__label {
  font-family: var(--font-display);
}

.tp-sector__count {
  font-size: 0.75rem;
  color: var(--tp-mute);
  font-weight: 650;
}

.tp-atlas {
  min-width: 0;
}

.tp-atlas__banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--tp-line);
}

.tp-atlas__banner h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 750;
}

.tp-atlas__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--tp-mute);
}

.tp-compass__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-compass__rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tp-compass__opt {
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--tp-line);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  color: var(--tp-ink);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 650;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tp-compass__opt.is-active {
  background: var(--tp-pine);
  border-color: var(--tp-pine);
  color: #f5fff7;
}

.tp-folios {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  counter-reset: folio;
}

.tp-folio {
  counter-increment: folio;
}

.tp-folio a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  border-radius: var(--tp-radius-sm);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--tp-snap), border-color 0.25s ease, box-shadow 0.3s ease;
}

.tp-folio a:hover {
  transform: translateX(4px);
  border-color: var(--tp-pine);
  box-shadow: 0 8px 20px rgba(21, 36, 28, 0.06);
}

.tp-folio__seal {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tp-meadow);
}

.tp-folio__seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-folio__seal::after {
  content: counter(folio, decimal-leading-zero);
  position: absolute;
  left: 0.25rem;
  bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.tp-folio__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.tp-folio__aisle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-vein);
}

.tp-folio__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
}

.tp-folio__note {
  font-size: 0.78rem;
  color: var(--tp-mute);
}

.tp-folio__note--out { color: var(--tp-flare); }

.tp-folio__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--tp-pine);
  white-space: nowrap;
}

.tp-catalog__empty {
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px dashed var(--tp-line);
}

.tp-catalog__empty h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.tp-catalog__empty p {
  margin: 0 0 1rem;
  color: var(--tp-mute);
}

.tp-catalog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tp-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--tp-line);
}

.tp-pages__label {
  margin-right: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-pages a,
.tp-pages span[aria-current] {
  display: grid;
  place-items: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--tp-ink);
  border: 1px solid var(--tp-line);
  background: var(--tp-panel);
}

.tp-pages span[aria-current] {
  background: var(--tp-pine);
  border-color: var(--tp-pine);
  color: #f5fff7;
}

.tp-pages__nav {
  min-width: auto;
  padding: 0 0.75rem !important;
}

.tp-bridge {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: var(--tp-radius);
  background: var(--tp-meadow);
  border: 1px solid var(--tp-line);
}

.tp-bridge p {
  margin: 0;
  max-width: 48ch;
  color: var(--tp-mute);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .tp-catalog__deck {
    grid-template-columns: 1fr;
  }

  .tp-sectors {
    position: static;
  }

  .tp-sectors__ladder {
    display: flex;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.25rem;
  }

  .tp-sectors__ladder::before { display: none; }

  .tp-sector {
    flex: 0 0 auto;
  }

  .tp-sector a {
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
    background: var(--tp-mist);
    border: 1px solid var(--tp-line);
  }

  .tp-sector a::before { display: none; }

  .tp-sector.is-active a {
    background: var(--tp-pine);
    color: #f5fff7;
    border-color: var(--tp-pine);
  }

  .tp-sector.is-active .tp-sector__count { color: rgba(245, 255, 247, 0.75); }
}

@media (max-width: 520px) {
  .tp-folio a {
    grid-template-columns: 3rem 1fr;
  }

  .tp-folio__price {
    grid-column: 2;
  }
}
