@font-face {
  font-family: "ans-font";
  src: url("fonts/WebPlus_ToshibaSat_8x14.woff") format("woff");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.ans {
  background: #000000;
  color: #fefefe;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5em;
  padding-bottom: 2em;
  font-family: "ans-font", "Consolas", "Monaco", "Courier New", monospace;
  font-size: 14px;
  line-height: 14px;
}

/* Apenas o banner ANSI: pre sem quebra. O blog usa .post-content (pre-wrap). */
.ans .banner pre {
  font-family: inherit;
  font-size: 14px;
  line-height: 14px;
  white-space: pre;
  letter-spacing: 0;
  margin: 0;
  padding: 0.5em;
  max-width: max-content;
  overflow: visible;
  transform: translateZ(0);
  will-change: transform;
}

.ans span {
  font-family: inherit;
}

.banner {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Blog: nunca mais largo que a imagem (106 chars = SAUCE TInfo1), sempre centralizado */
.blog-wrap {
  width: 100%;
  max-width: 106ch;
  min-width: 0;
  margin: 0 auto;
  padding: 1em 0.5em;
  text-align: center;
  overflow-x: hidden;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
}

.post {
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #333;
  text-align: center;
  min-width: 0;
}

.post:last-child {
  border-bottom: none;
}

.post-title {
  color: #ab0000;
  font-weight: bold;
  margin-bottom: 0.25em;
}

.post-date {
  color: #575757;
  font-size: 12px;
  margin-bottom: 0.5em;
}

.post-content {
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 106ch;
  width: 100%;
  min-width: 0;
  color: #fefefe;
  margin: 0 auto;
  text-align: center;
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  margin-top: 2em;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  color: #87ffff;
  text-decoration: none;
  padding: 0.25em 0.5em;
}

.pagination a:hover {
  color: #fff;
  text-decoration: underline;
}

.pagination .current {
  color: #fefefe;
  font-weight: bold;
}

.pagination .disabled {
  color: #575757;
  pointer-events: none;
}
