/* Vans CAAB — estilo próprio (substitui Bulma 0.9.4, bulma-modal-fx, DataTables e Font Awesome) */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #eff3f4;
  color: #4a4a4a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body { max-width: 100%; overflow-x: hidden; }

img { max-width: 100%; display: block; }

a { color: #485fc7; text-decoration: none; }

::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-track { background: #efefef; border-radius: 6px; }
::-webkit-scrollbar-thumb { background: #d5d5d5; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #c4c4c4; }

.small { font-size: .75rem; }
.strong { font-weight: 700; color: #0a0a0a; }

.single-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

/* Ícones */
.icon-sprite { display: none; }
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cabeçalho */
.page-header { text-align: center; padding: 3rem 1rem 0; }
.page-header h1 {
  margin: 0 0 1.5rem;
  color: #0a0a0a;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.125;
  letter-spacing: -2px;
}
.page-header h2 { margin: -1.25rem 0 0; font-size: .75rem; font-weight: 400; }

/* Grade de cards: 3 por linha no desktop, 2 no tablet, 1 no celular */
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1216px) { .container { max-width: 1152px; } }
@media (min-width: 1408px) { .container { max-width: 1344px; } }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.5rem;
  padding: 5rem 0;
}
@media (min-width: 769px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Card */
.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
  margin: 10px 10px 2rem;
  overflow: hidden;
  transition: all .2s ease-in-out;
}
.card:hover { box-shadow: 0 10px 16px rgba(0, 0, 0, .13), 0 6px 6px rgba(0, 0, 0, .19); }

.card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.card-content { padding: 1.5rem; font-size: 14px; }
.card .card-content { padding: 2.5rem; }
.card-content p { margin: 0 0 1em; }
.card-content h4 {
  margin: 0 0 .8em;
  color: #363636;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.125;
}
.card-content .buttons { margin-top: 1.5rem; }
.note { margin-top: 1.25rem !important; }

/* Botões */
.buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  height: 2.5em;
  padding: 0 1em;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
}
.button .icon { width: .85em; height: .85em; }
.button.is-link { background: #485fc7; }
.button.is-link:hover { background: #3e56c4; }
.button.is-danger { background: #f14668; }
.button.is-danger:hover { background: #f03a5f; }
.button.is-success { background: #48c78e; }
.button.is-success:hover { background: #3ec487; }
.button:focus-visible { outline: 3px solid rgba(72, 95, 199, .4); outline-offset: 1px; }

/* Rodapé */
.page-footer { text-align: center; margin: 1.25rem 1rem 3rem; }
.page-footer > img { margin: 0 auto; }
.page-footer p { margin: .5rem 0 0; }
.tags { display: inline-flex; margin-top: 1.25rem; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 2em;
  padding: 0 .75em;
  color: #fff;
  font-size: .75rem;
}
.tag.is-dark { background: #363636; border-radius: 4px 0 0 4px; }
.tag.is-info { background: #3e8ed0; border-radius: 0 4px 4px 0; }
.author { display: flex; justify-content: center; align-items: center; gap: .3rem; margin-top: 1.25rem !important; }
.version { color: #f5f5f5; }

/* Modal (elemento <dialog> nativo) */
.modal {
  width: calc(100% - 40px);
  max-width: 460px;
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  overflow: visible;
}
.modal::backdrop { background: rgba(10, 10, 10, .86); }
.modal[open] { animation: modal-in .35s ease-out; }
@keyframes modal-in {
  from { opacity: 0; transform: perspective(1300px) rotateX(-60deg); }
  to   { opacity: 1; transform: none; }
}
.modal-card { background: #fff; border-radius: 6px; overflow: hidden; min-width: 0; }
.modal-card .card-content { padding: 1.5rem; }

.media { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.media-content { min-width: 0; }
.media-content .small { margin: 0 0 .25rem; color: #4a4a4a; }
.modal-title { margin: 0; color: #363636; font-size: 1rem; font-weight: 600; line-height: 1.125; }

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, .2);
  cursor: pointer;
}
.modal-close::before, .modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-close:hover { background: rgba(10, 10, 10, .3); }

/* Tabela de roteiro (rolagem de 220px, listrada, ordenável pelo cabeçalho) */
.table-wrap { max-height: 220px; overflow-y: auto; margin-bottom: 1.5rem; }
.table-wrap:focus { outline: none; }
.roteiro { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.roteiro th, .roteiro td { padding: .5em .75em; text-align: left; vertical-align: top; }
.roteiro td { border-bottom: 1px solid #dbdbdb; }
.roteiro th {
  position: sticky;
  top: 0;
  background: #fff;
  color: #363636;
  border-bottom: 2px solid #dbdbdb;
  cursor: pointer;
  user-select: none;
}
.roteiro th::after { content: " \2195"; color: #b5b5b5; font-size: .8em; }
.roteiro th[aria-sort="ascending"]::after { content: " \2191"; color: #363636; }
.roteiro th[aria-sort="descending"]::after { content: " \2193"; color: #363636; }
.roteiro .col-horario { width: 6.5em; white-space: nowrap; }
.roteiro tbody tr:nth-child(even) { background: #fafafa; }
.roteiro .vazio { text-align: center; color: #7a7a7a; }
