/* little7 - minimal styles */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
       margin: 0; color: #1a1a1a; line-height: 1.6; }
header { background: #1a2744; color: #fff; padding: 1rem 1.5rem;
         display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.site-title { color: #fff; text-decoration: none; font-size: 1.3rem; font-weight: 700;
              display: inline-flex; align-items: center; }
.site-logo { height: 28px; width: auto; display: block; }
nav a { color: #cfd8f0; text-decoration: none; margin-left: 1rem; font-size: .95rem; }
nav a:hover { color: #fff; }
#lang-switcher {
  font-size: 0.85em;
  padding: 2px 6px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  color: #222;
}
main { max-width: 760px; margin: 1.5rem auto; padding: 0 1.5rem; }
.post { border-bottom: 1px solid #e3e3e3; padding-bottom: 1rem; margin-bottom: 1.2rem; }
.post h2 { margin: 0 0 .3rem; }
.post h2 a { color: #12325f; text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.meta { color: #666; font-size: .85rem; margin-bottom: .5rem; }
.pagination { display: flex; justify-content: space-between; align-items: center;
              border-top: 1px solid #e3e3e3; margin-top: 1.2rem; padding-top: .8rem; }
.pagination a { color: #12325f; text-decoration: none; font-weight: 600; }
.pagination a:hover { text-decoration: underline; }
.page-info { color: #666; font-size: .85rem; }
article.post h1 { margin-bottom: .3rem; }
footer { border-top: 1px solid #e3e3e3; margin-top: 2rem; padding: 1rem 1.5rem;
         color: #888; font-size: .85rem; text-align: center; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid #e3e3e3;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
}
.pagination a {
  color: #12325f;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}
.pagination a:hover {
  background: #f0f4f8;
  text-decoration: none;
}
.pagination .current {
  color: #fff;
  background: #12325f;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}
.pagination .ellipsis {
  color: #888;
  padding: 0.3rem 0.4rem;
}

/* Card wall home / list pages: image cards keep the picture, cards without
   an image switch to a text-forward layout (no fake image placeholder). */
main:has(.cardwall) { max-width: 1040px; }
.cardwall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.card.wide { grid-column: span 2; }
.card.full { grid-column: span 3; display: grid; grid-template-columns: 38% 1fr; }
.card-img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
  background: #eef1f5;
}
.card.wide .card-img { height: 176px; }
.card.full .card-img { height: 100%; min-height: 210px; }
.card-body { padding: 12px 14px; min-width: 0; }
.card.full .card-body { align-self: center; padding: 20px 24px; }
.card h2 { font-size: 1rem; line-height: 1.4; margin: 0 0 .35rem; }
.card h2 a { color: #12325f; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card.wide h2 { font-size: 1.1rem; }
.card.full h2 { font-size: 1.35rem; line-height: 1.3; }
.card.no-image { border-left: 3px solid #ff9f1c; }
.card.no-image .card-body { padding: 16px 16px; }
.card.no-image h2 { font-size: 1.12rem; }
.card-summary {
  color: #555;
  font-size: .88rem;
  line-height: 1.5;
  margin: .5rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.infinite-status { text-align: center; color: #777; font-size: .85rem; padding: 1rem 0; }
#infinite-sentinel { height: 1px; }
@media (max-width: 800px) {
  .cardwall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.wide, .card.full { grid-column: span 2; }
  .card.full { display: flex; flex-direction: column; }
  .card.full .card-img { height: 160px; min-height: 0; }
}
@media (max-width: 520px) {
  .cardwall { grid-template-columns: 1fr; }
  .card.wide, .card.full { grid-column: span 1; }
}

/* Post images — fixed boxes reserve space, preventing layout shift (CLS) */
.post-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #eef1f5;
}
.post-image {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 15px auto;
  border-radius: 4px;
  background: #eef1f5;
}

/* Breadcrumb */
.breadcrumb {
  font-size: .85rem;
  color: #666;
  margin-bottom: .6rem;
}
.breadcrumb a { color: #12325f; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 .35rem; color: #999; }
.breadcrumb .current { color: #444; }

/* Related articles */
.related {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e3e3e3;
}
.related h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.related ul { margin: 0; padding-left: 1.2rem; }
.related li { margin-bottom: .35rem; }
.related li a { color: #12325f; text-decoration: none; }
.related li a:hover { text-decoration: underline; }

/* Back to top */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #12325f;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #1c4a86;
}

/* Ad banner */
.ad-banner {
  margin: 10px auto;
  text-align: center;
  max-width: 468px;
  width: 100%;
  clear: both;
}
.ad-banner iframe {
  max-width: 100%;
  border: none;
  display: block;
  margin: 0 auto;
}
/* Ad banner: top variant */
.ad-banner-top {
  margin-top: 10px;
}
