html,
body {
  min-height: 100%;
}

body.snipaste-site {
  background: #f9f9f9;
  color: #555;
}

/* Blowfish defines a global .collapse visibility rule that hides Bootstrap nav content. */
.snipaste-site .navbar-collapse.collapse,
.snipaste-site .navbar-collapse.collapsing,
.snipaste-site .jumbotron .collapse,
.snipaste-site .jumbotron .collapsing {
  visibility: visible;
}

main {
  min-height: calc(100vh - 92px);
}

.snipaste-home .jumbotron,
.download-page .jumbotron {
  padding-bottom: 40px;
}

.snipaste-hero-image {
  margin: 24px auto 0;
}

.snipaste-support {
  border-top: 1px solid #e5e5e5;
}

.snipaste-footer {
  margin-top: 0;
}

.snipaste-footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
}

.snipaste-footer p {
  margin: 0;
}

.recent-news {
  padding: 56px 0 72px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

.recent-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}

.recent-news-header h2,
.news-list-header h1 {
  margin: 0 0 10px;
  color: #222;
}

.recent-news-header h2 {
  font-size: 32px;
}

.recent-news-header p,
.news-list-header p {
  margin: 0;
  max-width: 760px;
  color: #666;
  line-height: 1.8;
}

.news-grid,
.news-list-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snipaste-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: #333;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.snipaste-news-card:hover,
.snipaste-news-card:focus {
  color: #333;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.1);
}

.snipaste-news-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f1f1;
}

.snipaste-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snipaste-news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.snipaste-news-meta {
  margin-bottom: 10px;
  color: #777;
  font-size: 13px;
}

.snipaste-news-title {
  margin: 0 0 10px;
  color: #222;
  font-size: 21px;
  line-height: 1.35;
}

.snipaste-news-summary {
  margin: 0 0 18px;
  color: #666;
  line-height: 1.75;
  font-size: 14px;
}

.snipaste-news-cta {
  margin-top: auto;
  color: #111;
  font-weight: 600;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #d5d5d5;
  border-radius: 18px;
  background: #fafafa;
  color: #666;
}

.empty-state h3 {
  margin-top: 0;
  color: #222;
}

.news-list-page {
  padding: 60px 0 80px;
  background: #fff;
}

.news-list-header {
  margin-bottom: 30px;
}

.news-list-header h1 {
  font-size: 38px;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
  color: #333;
}

.pagination a:hover,
.pagination a:focus,
.pagination .current {
  border-color: #222;
  background: #222;
  color: #fff;
  text-decoration: none;
}

.archive-table-note {
  margin-top: 18px;
  color: #777;
  font-size: 14px;
}

.faq-page .content {
  padding-bottom: 60px;
}

.faq-page-intro p {
  margin-bottom: 14px;
  color: #666;
  line-height: 1.8;
}

.faq-page ol > li {
  margin-bottom: 24px;
}

.faq-page img {
  margin-top: 10px;
}

.api-page .content {
  padding-bottom: 60px;
}

.api-page p,
.api-page li {
  color: #666;
  line-height: 1.8;
}

.api-page h2 {
  margin-top: 32px;
  color: #222;
}

.api-page h3 {
  color: #222;
}

.filter-black {
  filter: brightness(0);
}

@media (max-width: 991px) {
  .recent-news-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-grid,
  .news-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .news-grid,
  .news-list-grid {
    grid-template-columns: 1fr;
  }

  .recent-news,
  .news-list-page {
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .recent-news-header h2,
  .news-list-header h1 {
    font-size: 28px;
  }

  .snipaste-news-body {
    padding: 18px;
  }
}
