/* ===== Public Blog — elegant listing (search + categories + cards) + article =====
   Uses the site's design tokens, so light theme matches the reference exactly. */
.site .page.blog.active { display: block; min-height: 100vh; }

/* header band */
.site .blog-band {
  width: 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg-base)) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--rail-line);
}
.site .blog-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; width: 100%; }
.site .blog-band .blog-inner { padding-top: 58px; padding-bottom: 30px; }

.site .blog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site .blog-title { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; color: var(--ink); line-height: 1.04; }
.site .blog-sub { color: var(--muted); font-weight: 500; font-size: 16px; line-height: 1.6; margin-top: 12px; max-width: 620px; }

.site .blog-search {
  display: flex; align-items: center; gap: 10px; flex: 0 0 360px; max-width: 100%;
  background: var(--input-bg); border: 1px solid var(--rail-line); border-radius: 14px;
  padding: 0 16px; height: 54px; color: var(--muted); transition: border-color .2s, box-shadow .2s;
}
.site .blog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.site .blog-search input { flex: 1; border: none; outline: none; background: none; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.site .blog-search input::placeholder { color: var(--faint); font-weight: 500; }

/* category chips */
.site .blog-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.site .blog-chip {
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; text-decoration: none;
  background: var(--surface); border: 1px solid var(--rail-line); border-radius: 11px; padding: 9px 17px; transition: .18s;
}
.site .blog-chip:hover { color: var(--ink); border-color: var(--accent); }
.site .blog-chip.on { color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }

/* card grid */
.site #blogBody { padding-top: 44px; padding-bottom: 80px; }
.site .blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.site .bcard {
  display: flex; flex-direction: column; text-align: left; cursor: pointer; height: 100%; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--rail-line); border-radius: 0; padding: 14px;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .2s ease;
  box-shadow: 0 14px 36px -30px var(--shadow);
}
.site .bcard:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 30px 60px -34px var(--shadow); }
.site .bcard-img {
  aspect-ratio: 16/10; border-radius: 0; position: relative; flex: 0 0 auto; width: 100%;
  background: var(--accent); background-size: cover; background-position: center;
}
.site .bcard-cat {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: rgba(10,12,17,.6); color: #fff; backdrop-filter: blur(6px);
}
.site .bcard-unsave { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(10,12,17,.62); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .15s; z-index: 2; }
.site .bcard-unsave svg { width: 16px; height: 16px; }
.site .bcard-unsave:hover { background: var(--accent); }
.site .bcard-body { padding: 18px 8px 8px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.site .bcard h3 {
  font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--ink); letter-spacing: -.4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.site .bcard p {
  font-size: 15px; line-height: 1.6; color: var(--muted); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.site .bcard-foot { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--faint); }

/* pagination */
.site .blog-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.site .blog-pager button {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer; font-family: inherit;
  font-weight: 800; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--rail-line); transition: .2s;
}
.site .blog-pager button:hover:not(:disabled) { color: var(--ink); border-color: var(--accent); }
.site .blog-pager button.on { background: var(--accent); color: #fff; border-color: transparent; }
.site .blog-pager button:disabled { opacity: .4; cursor: not-allowed; }
.site .blog-loading, .site .blog-empty { text-align: center; color: var(--muted); font-weight: 600; padding: 60px 0; }

/* Load More — wide ghost button (same scheme as Post A Review) */
.site .blog-loadmore-wrap { margin-top: 44px; }
.site .blog-loadmore {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 14.5px;
  color: var(--accent); padding: 16px 30px; border-radius: 0; background: var(--surface); border: 1px solid var(--rail-line);
  transition: border-color .15s, background .15s;
}
.site .blog-loadmore svg { width: 16px; height: 16px; flex: 0 0 16px; }
.site .blog-loadmore:hover { border-color: var(--accent); background: var(--accent-soft); }

/* hide header band while reading an article */
.site .page.blog.article-mode .blog-band { display: none; }

/* ===== article view — image shown FULL (natural height, width-fit, never cropped) ===== */
.site .article { max-width: 820px; margin: 0 auto; padding: 56px 0 50px; }
.site .article-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.site .article-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--accent); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; text-decoration: none; }
.site .article-save { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rail-line); background: var(--surface); color: var(--accent); font-family: inherit; font-weight: 800; font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s; }
.site .article-save svg { width: 15px; height: 15px; }
.site .article-save:hover { border-color: var(--accent); background: var(--accent-soft); }
.site .article-save.on { background: var(--accent); color: #fff; border-color: transparent; }
.site .article-cat { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.site .article h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; color: var(--ink); margin: 12px 0 14px; }
.site .article-meta { color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 28px; }
.site .article-cover { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rail-line); margin: 0 auto 30px; }
.site .article-body { color: var(--ink); font-size: 17px; line-height: 1.85; }
.site .article-body p { margin: 0 0 20px; color: var(--muted); }
.site .article-body h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin: 34px 0 14px; letter-spacing: -.4px; }
.site .article-body h3 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 28px 0 12px; }
.site .article-body a { color: var(--accent); text-decoration: underline; }
.site .article-body img { display: block; max-width: 100%; height: auto; border-radius: 14px; margin: 18px auto; }
.site .article-body figure { margin: 0 0 22px; }
.site .article-body figure img { margin: 0 auto; }
.site .article-body figcaption { text-align: center; color: var(--faint); font-size: 13px; font-weight: 600; margin-top: 8px; }
.site .article-body ul, .site .article-body ol { margin: 0 0 20px 22px; color: var(--muted); }
.site .article-body li { margin-bottom: 8px; }
.site .article-body blockquote { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 18px; border-radius: 0 10px 10px 0; margin: 0 0 20px; }
.site .article-body iframe { max-width: 100%; border-radius: 14px; }

@media (max-width: 980px) { .site .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site .blog-inner { padding: 0 24px; } }
@media (max-width: 640px) {
  .site .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .site .blog-inner { padding: 0 18px; }
  .site .blog-band .blog-inner { padding-top: 62px; padding-bottom: 22px; }
  .site .blog-top { flex-direction: column; gap: 18px; }
  .site .blog-title { font-size: 32px; }
  .site .blog-sub { font-size: 15px; }
  .site .blog-search { flex: 1 1 100%; height: 50px; }
  .site .blog-chips { margin-top: 22px; gap: 8px; }
  .site .blog-chip { font-size: 13px; padding: 8px 14px; }
  .site #blogBody { padding-top: 26px; padding-bottom: 60px; }
  .site .bcard { padding: 12px; }
  .site .bcard h3 { font-size: 19px; }

  /* article (blog post) */
  .site .article { padding: 40px 0 44px; }
  .site .article-top { margin-bottom: 20px; }
  .site .article h1 { font-size: 28px; letter-spacing: -.5px; }
  .site .article-cover { border-radius: 0; margin-bottom: 22px; }
  .site .article-body { font-size: 16px; line-height: 1.75; }
  .site .article-body h2 { font-size: 22px; }
  .site .article-body h3 { font-size: 19px; }
  .site .article-body img { border-radius: 0; }
  .site .blog-pager { gap: 6px; }
}
