/* Catálogo — Busca, chips e controles de visualização */

/* Hero headline */
.hero-content {
  padding: clamp(0.8rem, 1.7vw, 1.15rem) 0 clamp(1.35rem, 2.7vw, 2.1rem);
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.4vw, 0.95rem);
  width: min(100%, 760px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.65rem, 1.4vw, 0.95rem);
  padding: 0;
}

.hero-eyebrow {
  display: inline-block;
  gap: 0.55rem;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 239, 226, 0.78);
  animation: titleEnter 0.5s 0s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 0.85rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 220, 196, 0.82) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-title {
  width: min(100%, 13ch);
  margin: 0;
  font-size: clamp(1.8rem, 4.1vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.46),
    0 10px 26px rgba(0, 0, 0, 0.2);
  animation: titleEnter 0.5s 0.08s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-subtitle {
  width: min(100%, 54ch);
  margin: 0;
  font-size: clamp(0.92rem, 1.08vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 243, 233, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
  animation: titleEnter 0.5s 0.18s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-subtitle:empty {
  display: none;
}

.hero[data-hero-variant='machine'] .hero-eyebrow {
  color: rgba(255, 223, 197, 0.9);
}

.hero[data-hero-variant='machine'] .hero-subtitle {
  color: rgba(255, 238, 223, 0.88);
}

.hero[data-hero-variant='machine'] .hero-title {
  width: min(100%, 12ch);
  font-size: clamp(1.72rem, 3.85vw, 2.55rem);
}

.hero[data-hero-variant='context'] .hero-eyebrow {
  color: rgba(234, 225, 217, 0.74);
}

.hero[data-hero-variant='context'] .hero-subtitle {
  width: min(100%, 54ch);
  color: rgba(240, 232, 224, 0.8);
}

.hero[data-hero-variant='context'] .hero-title {
  width: min(100%, 15ch);
  font-size: clamp(1.5rem, 3.3vw, 2.3rem);
}

.hero[data-hero-variant='history'] .hero-title {
  width: min(100%, 12ch);
  font-size: clamp(1.62rem, 3.45vw, 2.45rem);
  color: rgba(255, 248, 241, 0.98);
}

.hero[data-hero-variant='history'] .hero-eyebrow {
  color: rgba(229, 212, 191, 0.78);
}

.hero[data-hero-variant='history'] .hero-subtitle {
  color: rgba(236, 221, 205, 0.88);
}

@keyframes titleEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-eyebrow,
  .hero-title,
  .hero-subtitle {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Wrapper da barra + hint para alinhar hint com o input */
.search-section-inner {
  width: min(70%, 860px);
  margin: 0 auto;
}

.search-section.search-hero .search-section-inner {
  max-width: 640px;
}

/* Helper text DENTRO do search-panel, abaixo do input */
.search-hint {
  flex-basis: 100%;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 1;
  margin: 0;
  margin-top: 2px;
  padding: 0;
  text-align: left;
  line-height: var(--lh-copy-sm);
  order: 2;
}

/* Authority indicator */
.authority-indicator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.5rem 0 clamp(1.1rem, 2.4vw, 1.6rem);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.authority-item {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  min-width: clamp(180px, 22vw, 230px);
  padding: 0.7rem 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(91, 74, 65, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 246, 242, 0.78) 100%);
  box-shadow: 0 14px 30px -24px rgba(28, 20, 16, 0.22);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  color: var(--text-secondary);
}

.authority-item::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.82) 18%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 255, 255, 0.82) 82%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.9;
}

.authority-item .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--color-brand-600);
}

.authority-item:not(:last-child) {
  padding-right: 1rem;
  margin-right: 0;
  border-right: 0;
}

.search-section {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 1.8vw, 1.4rem) 0 clamp(0.75rem, 1.3vw, 1rem);
  margin: 0.25rem 0 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 245, 242, 0.96) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.main-content>.search-section {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Barra na linha divisória hero/conteúdo: metade sobre a imagem, metade sobre o conteúdo */
.search-section.search-hero {
  --search-panel-half-height: 40px;
  margin-top: calc(-1 * var(--search-panel-half-height));
  padding-top: var(--search-panel-half-height);
  padding-bottom: 0.9rem;
}

.search-section.search-hero .search-panel {
  max-width: 760px;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.1rem;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 20, 16, 0.06);
  border-radius: 18px;
  box-shadow: 0 22px 44px -30px rgba(28, 20, 16, 0.28);
}

.search-section.search-hero #pesquisa {
  font-size: 1rem;
  padding: 12px 3.9rem 12px 46px;
}

.search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  z-index: 1;
  border: 0;
  transition: none;
  width: 100%;
  max-width: none;
  margin: 0;
  animation: none;
}

.search-toolbar {
  display: flex;
  align-items: center;
  width: auto;
  flex: 1 1 100%;
  min-width: 0;
  order: 3;
}

.search-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 clamp(96px, 24%, 118px);
  flex-shrink: 0;
  margin-left: 0;
  order: 2;
}

.search-panel:focus-within {
  box-shadow: none;
  border-color: transparent;
  transform: none;
}

/* .search-helper removido — conteúdo repetido */

.search-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  width: auto;
  min-width: min(100%, 240px);
  margin-bottom: 0;
  gap: 0;
  order: 1;
}

.search-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: var(--touch-target-min);
  height: 42px;
  padding: 0 0.9rem;
  border: 1px solid rgba(214, 89, 16, 0.3);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fd6919 0%, #db4f11 100%);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
  box-shadow: 0 16px 28px -20px rgba(219, 79, 17, 0.75);
}

.search-actions .search-submit-btn {
  margin-left: 0;
}

.search-submit-btn:hover {
  background: linear-gradient(135deg, #ff7a2f 0%, #e45d16 100%);
  transform: scale(1.03);
  border-color: rgba(214, 89, 16, 0.4);
  box-shadow: 0 18px 30px -20px rgba(219, 79, 17, 0.8);
}

.search-submit-btn:active {
  transform: scale(0.98);
}

.search-submit-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18), 0 16px 28px -20px rgba(219, 79, 17, 0.75);
}

.search-submit-btn .material-symbols-outlined {
  font-size: 1.35rem;
}

.search-submit-label {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.search-mode-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: auto;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0.22rem;
  border-radius: 16px;
  border: 1px solid rgba(67, 56, 49, 0.08);
  background: rgba(246, 241, 237, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 30px -28px rgba(28, 20, 16, 0.24);
}

.search-panel .view-btn {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 12px;
}

.search-panel .view-btn .material-symbols-outlined {
  font-size: 1.15rem;
}

.search-field-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-panel .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 1.25rem;
  opacity: 0.7;
}

.search-panel #pesquisa {
  width: 100%;
  min-height: 42px;
  padding: 12px 3.9rem 12px 46px;
  font-size: 1rem;
  border: 1px solid rgba(28, 20, 16, 0.18);
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.search-panel #pesquisa:hover {
  border-color: rgba(28, 20, 16, 0.26);
  background: rgba(255, 255, 255, 0.98);
}

.search-panel #pesquisa:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--surface-white);
  box-shadow: var(--focus-ring);
}

.search-panel #pesquisa::placeholder {
  color: var(--text-muted);
  opacity: 0.82;
}

.search-panel-footer {
  display: none;
}

.search-shortcut-hint {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.72rem;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.search-field-wrap:focus-within .search-shortcut-hint,
.search-field-wrap:has(#pesquisa:not(:placeholder-shown)) .search-shortcut-hint {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.search-shortcut-hint kbd {
  background: var(--accent-strip);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.search-field-wrap:focus-within .search-icon {
  color: var(--text-secondary);
  opacity: 1;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.search-clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.search-clear-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-50%) scale(1.1);
}

.search-clear-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.search-clear-btn .material-symbols-outlined {
  font-size: 1.1rem;
}

.search-panel #pesquisa.has-value {
  padding-right: 2.5rem;
}

/* Chips */
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-basis: 100%;
  width: 100%;
  min-height: 0;
  padding: 0;
  transition: padding var(--transition-fast), min-height var(--transition-fast);
  order: 4;
}

.search-tags:not(:empty) {
  padding: 0.35rem 0 0.1rem;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(28, 20, 16, 0.08);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 12px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  animation: tag-in 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  cursor: default;
  user-select: none;
}

@keyframes tag-in {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.search-tag-remove {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
  border-radius: 50%;
  opacity: 0.65;
  transition: opacity var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
  line-height: 1;
}

.search-tag-remove:hover {
  opacity: 1;
  transform: scale(1.15);
}

.search-tag-remove:active {
  transform: scale(0.9);
}

.search-tag-remove .material-symbols-outlined {
  font-size: 0.95rem;
}

/* View controls (grid/list/history) */
.view-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-hover);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 20, 16, 0.08);
}

.view-btn {
  background: transparent;
  border: none;
  width: 36px;
  min-width: var(--touch-target-min);
  height: 36px;
  min-height: var(--touch-target-min);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.view-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  transform: scale(1.05);
}

.view-btn:active {
  transform: scale(0.96);
}

.view-btn.active {
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: 0 8px 18px -16px rgba(28, 20, 16, 0.28), var(--shadow-surface);
}

@media (min-width: 769px) {
  .search-section-inner {
    width: min(100%, 920px);
  }

  .search-section.search-hero .search-section-inner {
    max-width: 920px;
  }

  .search-input-wrapper {
    min-width: 0;
  }

  .search-field-wrap {
    min-width: 0;
  }

  .search-section.search-hero .search-panel {
    max-width: 100%;
  }

  .search-toolbar,
  .search-actions {
    align-self: center;
  }

  .search-toolbar {
    flex: 0 0 auto;
    order: 2;
  }

  .search-actions {
    flex: 0 0 clamp(96px, 9vw, 110px);
    order: 3;
  }

  .search-input-wrapper {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 0.35rem 0 0.8rem;
  }

  .hero-headline {
    width: min(100%, 620px);
    gap: 0.45rem;
  }

  .hero-copy {
    gap: 0.5rem;
  }

  .hero-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .hero-eyebrow::before {
    width: 36px;
    margin-bottom: 0.55rem;
  }

  .hero-title,
  .hero[data-hero-variant='machine'] .hero-title,
  .hero[data-hero-variant='context'] .hero-title,
  .hero[data-hero-variant='history'] .hero-title {
    width: min(100%, 22ch);
    font-size: clamp(1.22rem, 4.6vw, 1.74rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    width: min(100%, 40ch);
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .search-hint {
    font-size: var(--text-sm);
    margin-top: 2px;
  }

  .search-section {
    padding: 0.9rem 0 0.95rem;
    margin: 0.25rem 0 0;
  }

  .search-section.search-hero {
    --search-panel-half-height: 24px;
    margin-top: calc(-1 * var(--search-panel-half-height));
    padding-top: var(--search-panel-half-height);
  }

  .search-panel {
    gap: 0.85rem;
  }

  .search-input-wrapper {
    min-width: 0;
    flex: 1 1 0;
    order: 1;
  }

  .search-field-wrap {
    min-width: 0;
  }

  .search-actions {
    flex: 0 0 clamp(104px, 28%, 120px);
    order: 2;
    margin-left: 0;
  }

  .search-toolbar {
    flex: 1 1 100%;
    order: 3;
  }

  .search-panel .search-icon {
    left: 14px;
    font-size: 1.2rem;
  }

  .search-panel #pesquisa {
    padding: 12px 14px 12px 44px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
  }

  .search-panel #pesquisa::placeholder {
    opacity: 0.8;
    color: var(--text-secondary);
  }

  .search-panel #pesquisa.has-value {
    padding-right: 2.5rem;
  }

  .search-shortcut-hint {
    display: none;
  }

  .search-submit-btn {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 0.95rem 1rem;
    border-radius: 16px;
  }

  .search-submit-btn .material-symbols-outlined {
    font-size: 1.2rem;
  }

  .search-submit-label {
    font-size: 0.9rem;
  }

  .search-mode-controls {
    padding: 0.28rem;
    gap: 0.28rem;
    border-radius: 16px;
  }

  .search-panel .view-btn {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 14px;
  }

  .view-controls {
    justify-content: center;
  }

  .search-tags:not(:empty) {
    padding-top: 0.15rem;
  }

  .authority-indicator {
    gap: 0.65rem;
    padding: 0.35rem 0 1.1rem;
    max-width: 460px;
  }

  .authority-item {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
  }

  .authority-item::before {
    left: 12px;
    right: 12px;
  }

  .authority-item:not(:last-child) {
    padding-right: 0.85rem;
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 0.2rem 0 0.56rem;
  }

  .hero-copy {
    gap: 0.44rem;
  }

  .search-section {
    padding: 0.64rem 0 0.66rem;
    margin: 0.08rem 0 0;
  }

  .search-section.search-hero {
    --search-panel-half-height: 18px;
  }

  .search-section.search-hero .search-panel {
    padding: 0.84rem;
    gap: 0.7rem;
  }

  .search-panel {
    gap: 0.68rem;
  }

  .authority-indicator {
    gap: 0.52rem;
    padding: 0.18rem 0 0.64rem;
  }
}

@media (max-width: 560px) {
  .hero-headline {
    width: 100%;
  }

  .hero-content {
    padding: 0.12rem 0 0.46rem;
  }

  .hero-title,
  .hero[data-hero-variant='machine'] .hero-title,
  .hero[data-hero-variant='context'] .hero-title,
  .hero[data-hero-variant='history'] .hero-title {
    width: min(100%, 20ch);
    font-size: clamp(1.06rem, 5.4vw, 1.42rem);
    line-height: 1.1;
  }

  .hero-eyebrow {
    max-width: 100%;
    font-size: 0.6rem;
  }

  .hero-subtitle {
    width: min(100%, 34ch);
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .search-section {
    padding: 0.62rem 0 0.66rem;
    margin: 0.08rem 0 0;
  }

  .search-section.search-hero {
    --search-panel-half-height: 18px;
  }

  .search-section.search-hero .search-panel {
    padding: 0.82rem 0.84rem;
    gap: 0.68rem;
  }

  .search-panel {
    gap: 0.64rem;
  }

  .authority-indicator {
    gap: 0.48rem;
    padding-bottom: 0.68rem;
  }

  .authority-item {
    font-size: 0.79rem;
    padding: 0.6rem 0.75rem;
  }

  .authority-item .material-symbols-outlined {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .search-section-inner {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .hero-content {
    padding: 0.06rem 0 0.34rem;
  }

  .hero-copy {
    gap: 0.4rem;
  }

  .hero-title,
  .hero[data-hero-variant='machine'] .hero-title,
  .hero[data-hero-variant='context'] .hero-title,
  .hero[data-hero-variant='history'] .hero-title {
    width: 100%;
    max-width: 18.5ch;
    font-size: clamp(0.98rem, 5.9vw, 1.24rem);
    line-height: 1.12;
  }

  .hero-subtitle {
    width: 100%;
    max-width: 28ch;
    font-size: 0.74rem;
    line-height: 1.34;
  }

  .search-section.search-hero {
    --search-panel-half-height: 12px;
  }

  .search-section {
    padding: 0.44rem 0 0.5rem;
  }

  .search-section.search-hero .search-panel {
    padding: 0.68rem 0.72rem;
    border-radius: 18px;
    gap: 0.6rem;
    box-shadow: 0 16px 34px -28px rgba(28, 20, 16, 0.28);
  }

  .search-panel {
    gap: 0.54rem;
  }

  .search-input-wrapper {
    flex: 1 1 0;
    min-width: 0;
  }

  .search-actions {
    flex: 0 0 clamp(92px, 31%, 108px);
    min-width: 92px;
  }

  .search-toolbar {
    flex: 1 1 100%;
    min-width: 0;
  }

  .search-mode-controls {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .search-mode-controls::-webkit-scrollbar {
    display: none;
  }

  .search-panel #pesquisa,
  .search-section.search-hero #pesquisa {
    min-height: 54px;
    padding: 14px 2.9rem 14px 42px;
    font-size: 0.93rem;
    border-radius: 16px;
  }

  .search-panel .search-icon {
    left: 13px;
    font-size: 1.12rem;
  }

  .search-clear-btn {
    right: 0.4rem;
  }

  .search-submit-btn {
    min-height: 50px;
    min-width: 0;
    padding: 0.88rem 0.82rem;
    border-radius: 16px;
    box-shadow: 0 14px 24px -20px rgba(219, 79, 17, 0.76);
  }

  .search-submit-label {
    font-size: 0.95rem;
  }

  .search-panel .view-btn {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 13px;
  }

  .authority-indicator {
    gap: 0.42rem;
    padding: 0.1rem 0 0;
  }

  .authority-item {
    min-height: var(--touch-target-min);
    justify-content: flex-start;
    text-align: left;
    padding: 0.62rem 0.82rem;
    font-size: 0.78rem;
    line-height: 1.25;
  }
}

@media (max-width: 360px) {

  .hero-title,
  .hero[data-hero-variant='machine'] .hero-title,
  .hero[data-hero-variant='context'] .hero-title,
  .hero[data-hero-variant='history'] .hero-title {
    max-width: 17.5ch;
    font-size: clamp(0.92rem, 5.4vw, 1.08rem);
    line-height: 1.12;
  }

  .hero-subtitle {
    max-width: 26ch;
    font-size: 0.72rem;
  }

  .search-section.search-hero .search-panel {
    padding: 0.74rem;
  }

  .search-panel #pesquisa,
  .search-section.search-hero #pesquisa {
    font-size: 0.9rem;
    padding-left: 40px;
  }

  .search-actions {
    flex-basis: clamp(88px, 31%, 98px);
    min-width: 88px;
  }

  .search-submit-btn {
    min-width: 0;
    padding-inline: 0.72rem;
  }

  .search-panel .view-btn {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }
}