/* help.availroom.com — migas, etiquetas, búsqueda, novedades y avisos (tokens y escalas en site.css). */

/* Migas */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs li + li::before {
  content: "›";
  padding: 0 8px;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.breadcrumbs [aria-current] {
  color: var(--ink);
}

/* Etiquetas */
.chip {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--dark-blue);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
}

.badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.badge-new {
  background: #e3f6ec;
  color: #14603f;
}

.badge-updated {
  background: var(--tint);
  color: var(--dark-blue);
}

.notice {
  padding: 14px 18px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

/* Búsqueda */
.search-view .results,
.search-view .no-results {
  max-width: 860px;
}

.search-mobile {
  display: none;
}

.results {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.result-meta {
  color: var(--muted);
  font-size: 13px;
}

.result-meta .chip {
  margin-left: 8px;
}

.result-title {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.result:hover .result-title {
  color: var(--blue);
}

.result-snippet {
  font-size: 15px;
  line-height: 1.55;
}

mark {
  padding: 0 2px;
  border-radius: 4px;
  background: #dcdcfa;
  color: inherit;
}

.suggestions {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.suggestions a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.suggestions a > span:first-child {
  flex: 1;
}

.suggestions a:hover > span:first-child {
  color: var(--blue);
}

.suggestion-app {
  color: var(--muted);
  font-size: 14px;
}

/* Novedades */
.news-page {
  max-width: 1100px;
}

.version-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.version-label {
  margin: 0;
  color: var(--blue);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.news-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-items a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 44px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
}

.news-title {
  font-size: 17px;
  font-weight: 600;
}

.news-items a:hover .news-title {
  color: var(--blue);
  text-decoration: underline;
}

.news-app {
  color: var(--muted);
  font-size: 14px;
}

/* Avisos */
.notice-page {
  max-width: 720px;
  margin-left: 0;
}

.notice-page .search {
  margin-bottom: 16px;
}


@media (max-width: 768px) {
  .breadcrumbs ol {
    margin-bottom: 12px;
  }

  .breadcrumbs a {
    min-height: 44px;
  }

  .search-mobile {
    display: block;
    margin-bottom: 8px;
  }

  .search-page {
    height: 52px;
    font-size: 15px;
  }

  .search-page .button {
    display: none;
  }

  .version-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 28px;
  }
}
