/* ============================================================
   Blog-specific layer. Loads AFTER winner-company.css and reuses ALL its
   tokens (--ink-900, --gold-600, --line, --bg, --navy-900, --shadow-*, --r-*),
   the header, the footer, the .container (1300px), the .hex-bg, Inter, colors.
   Nothing here re-defines those — exact match by construction.
============================================================ */

/* ---------- Blog hero (list page) ---------- */
.blog-hero {
  background: var(--navy-900);
  background-image: url("https://awards.thehackernews.com/wp-content/uploads/2025/03/pricing-hero-bg-scaled.webp");
  background-size: cover; background-position: center;
  color: #fff; text-align: center; padding: 60px 0 68px;
}
.blog-hero__eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 800 11px/1 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-500);
}
.blog-hero__title { margin: 0 0 14px; font-size: 40px; font-weight: 800; letter-spacing: -.01em; color: #d8b56e; }
.blog-hero__lead { margin: 0 auto; max-width: 600px; font-size: 15.5px; line-height: 1.6; color: #c4cde8; }
@media (min-width: 720px) { .blog-hero__title { font-size: 48px; } }

/* ---------- Article list ---------- */
/* Vertical padding only — horizontal padding comes from .container (same
   element). The `padding` shorthand here would reset left/right to 0 and run
   the cards to the screen edges on mobile. */
.blog-list { padding-top: 44px; padding-bottom: 72px; }
.blog-list__inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #e8dcb4; }
.post-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.post-card__cat {
  font: 800 10.5px/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-600); background: var(--gold-100); border: 1px solid #ecd9a3;
  padding: 4px 11px; border-radius: 999px;
}
.post-card__date { font-size: 12.5px; color: var(--ink-400); font-weight: 500; }
.post-card__title { margin: 0 0 10px; font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.post-card__title a { color: var(--ink-900); }
.post-card__title a:hover { color: var(--gold-600); }
.post-card__excerpt { margin: 0 0 16px; color: var(--ink-500); font-size: 15px; line-height: 1.6; }
.post-card__more { font-size: 13.5px; font-weight: 700; color: var(--gold-600); }
.post-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Article header (premium navy band) ---------- */
.article-head { background: linear-gradient(180deg, #0b1733 0%, #16244f 100%); color: #fff; }
.article-head__inner { max-width: 900px; margin: 0 auto; padding: 40px 24px 46px; }

.article-back {
  display: block; width: fit-content; margin-bottom: 28px;
  color: #9aa6cc; font-size: 13px; font-weight: 600; transition: color .15s ease;
}
.article-back:hover { color: #fff; }

.article-cat {
  display: inline-block; margin-bottom: 18px;
  font: 800 10.5px/1 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-500);
  background: rgba(212,164,55,.1); border: 1px solid rgba(212,164,55,.35);
  padding: 6px 12px; border-radius: 999px;
}

.article-title {
  margin: 0 0 18px; max-width: 820px;
  font-size: 32px; font-weight: 800; line-height: 1.14; letter-spacing: -.02em; color: #fff;
}
@media (min-width: 720px) { .article-title { font-size: 44px; } }

.article-standfirst {
  margin: 0 0 30px; max-width: 700px;
  font-size: 18px; line-height: 1.55; color: #c4cde8;
}

.article-byline { display: flex; align-items: center; gap: 12px; }
.article-avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(155deg, #1c2c5e, #0e1530);
  border: 0;
  color: var(--gold-500); font: 800 15px/1 'Inter', sans-serif; letter-spacing: .02em;
}
.article-avatar--photo { background: #fff; overflow: hidden; }
.article-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-byline__text { display: flex; flex-direction: column; gap: 3px; }
.article-byline__author { font-size: 14px; font-weight: 700; color: #fff; }
.article-byline__meta { font-size: 12.5px; color: #9aa6cc; }

/* ---------- Article body card ---------- */
.article-wrap { padding: 38px 0 72px; }
.article-card {
  max-width: 900px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 44px 48px; box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .article-card { padding: 28px 22px; }
  /* Match the card's text inset so the share row and "Keep reading" block
     don't run to the screen edges on mobile. */
  .article-foot,
  .more-posts { padding-left: 22px; padding-right: 22px; }
}

/* Prose — this is what the admin's pasted body HTML renders as */
.article-body { color: var(--ink-700); font-size: 15.5px; line-height: 1.75; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { margin: 34px 0 12px; font-size: 22px; font-weight: 800; color: var(--ink-900); letter-spacing: -.01em; line-height: 1.28; }
.article-body h3 { margin: 26px 0 9px; font-size: 17px; font-weight: 700; color: var(--ink-900); }
.article-body a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--gold-500); }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin: 0 0 7px; }
.article-body img { border-radius: var(--r-md); margin: 8px 0 24px; border: 1px solid var(--line); }
.article-body blockquote {
  margin: 24px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold-500);
  color: var(--ink-900); font-size: 15.5px; font-style: italic; line-height: 1.7;
}
.article-body code { background: #f4f1e1; color: var(--ink-900); padding: 2px 6px; border-radius: 5px; font-size: .9em; font-family: ui-monospace, Consolas, monospace; }
.article-body pre { background: var(--ink-900); color: #d7def0; border-radius: var(--r-md); padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 0 0 24px; }
.article-body pre code { background: transparent; color: inherit; padding: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.article-foot { max-width: 900px; margin: 26px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-foot__back { color: var(--gold-600); font-weight: 700; font-size: 14px; }
.article-foot__back:hover { text-decoration: underline; }
.article-foot__share { display: flex; gap: 8px; }
.article-foot__share a { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink-500); }
.article-foot__share a:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ---------- More posts (3 newer + 3 older, total 6) ---------- */
.more-posts { max-width: 900px; margin: 44px auto 0; }
.more-posts__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 0 0 20px; padding-top: 34px; border-top: 1px solid var(--line);
}
.more-posts__title { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink-900); letter-spacing: -.01em; }
.more-posts__all { font-size: 13.5px; font-weight: 700; color: var(--gold-600); white-space: nowrap; }
.more-posts__all:hover { text-decoration: underline; text-underline-offset: 2px; }

.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .more-grid { grid-template-columns: 1fr; } }

.mini-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 18px 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .18s ease, border-color .18s ease;
}
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #e8dcb4; }
.mini-card__cat {
  font: 800 9.5px/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 10px;
}
.mini-card__title {
  margin: 0 0 14px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink-900);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-card__date { margin-top: auto; font-size: 12px; color: var(--ink-400); font-weight: 500; }
