/* Hacker Linner · responsive detail pass.
 * Keeps the established pixel-tea composition while tightening rhythm and touch ergonomics.
 */

.topbar.nav-mast {
  gap: var(--space-2xs) var(--space-md);
  padding-block-end: var(--space-xs);
}

.mast-line {
  padding-block: var(--space-2xs);
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

.mast-rule {
  height: 4px;
}

.home-page-hero.editorial-cover {
  margin-block: var(--space-lg) var(--space-xl);
}

.editorial-cover .cover-intro {
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
}

.home-page-hero.editorial-cover h1 {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.cover-register {
  align-content: stretch;
}

.cover-register span {
  align-items: center;
}

:is(
  .trend-shift-header a,
  .trend-shift-evidence header > a,
  .breadcrumb a,
  .event-tags a,
  .footer-route-line a,
  .footer-publication-line a
) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.trend-shift-randomize,
.preview-close {
  min-width: 44px;
  min-height: 44px;
}

.industry-carousel-controls button {
  width: 44px;
  height: 44px;
}

.industry-carousel-dots {
  gap: 0;
}

.industry-carousel-dots button {
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
}

.industry-carousel-dots button::before {
  width: var(--space-xs);
  height: var(--space-xs);
  border-radius: 50%;
  background: var(--color-rule);
  content: "";
}

.industry-carousel-dots button[aria-current="true"] {
  background: transparent;
  transform: none;
}

.industry-carousel-dots button[aria-current="true"]::before {
  background: var(--color-accent);
  transform: scale(1.35);
}

.timeline-controls,
.source-toolbar {
  top: var(--space-sm);
}

.search-box input,
.timeline-date-field select {
  min-height: 44px;
  font-size: var(--text-base);
}

.timeline-controls .chip-row button,
.source-toolbar .chip-row button,
.filter-toolbar button,
.timeline-month-toggle {
  min-height: 44px;
}

.timeline-month-toggle {
  padding-inline: var(--space-sm);
}

@media (min-width: 60rem) {
  .cover-register {
    align-self: stretch;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    padding-block-end: calc(76px + env(safe-area-inset-bottom));
  }

  .timeline-controls,
  .source-toolbar {
    top: var(--space-xs);
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }

  .event-header {
    padding-block: var(--space-lg) var(--space-xl);
  }

  .event-page .event-header h1 {
    font-size: clamp(var(--text-xl), 9vw, var(--text-2xl));
    text-wrap: balance;
  }

  .breadcrumb {
    align-items: center;
    padding-block-start: var(--space-lg);
  }

  .event-tags a {
    padding-inline: var(--space-sm);
  }
}

@media (max-width: 39.99rem) {
  .topbar.nav-mast {
    padding-block-end: var(--space-xs);
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-width: 3px;
  }

  .brand.mast-name .brand-lockup strong {
    font-size: var(--text-md);
  }

  .home-page-hero.editorial-cover {
    margin-block: var(--space-md) var(--space-lg);
  }

  .editorial-cover .cover-intro {
    padding: var(--space-lg);
  }

  .editorial-cover .cover-deck {
    margin-block-end: var(--space-lg);
  }

  .home-page-hero.editorial-cover h1 {
    max-width: 100%;
    font-size: clamp(var(--text-2xl), 11vw, var(--text-3xl));
  }

  .home-page-hero.editorial-cover .cover-intro > p:last-of-type {
    margin-block-start: var(--space-lg);
    font-size: var(--text-base);
    line-height: 1.6;
  }

  .cover-actions {
    margin-block-start: var(--space-lg);
  }

  .cover-register span {
    grid-template-columns: 1fr;
    align-content: center;
    padding: var(--space-md) var(--space-xs);
    border-inline-end: 1px solid var(--color-neutral);
    font-size: var(--text-xs);
  }

  .cover-register {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cover-register span:last-child {
    border-inline-end: 0;
  }

  .industry-carousel-dots {
    display: none;
  }

  .industry-carousel-controls {
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
  }

  .timeline-controls,
  .source-toolbar {
    padding: var(--space-xs);
  }

  .timeline-date-field.month select {
    padding-block: var(--space-xs);
    font-size: var(--text-base);
  }

  .footer-route-group > div {
    row-gap: var(--space-xs);
  }
}
