/* ========================================================================
   DEPLOY PATH: /css/blog-index.4b828165.css
   Tepuy Solutions — Blog index and article page styles
   Version: 2026-03-31 (headers added)
   Notes: Only load on blog index and article pages.
   ======================================================================== */

/* ─────────────────────────────────────────────────────────
   1. PAGE WRAPPER
   ───────────────────────────────────────────────────────── */

.blog-index2 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}


/* ─────────────────────────────────────────────────────────
   2. HERO HEADER
   ───────────────────────────────────────────────────────── */

.blog-hero2 {
  background:
    radial-gradient(ellipse 700px 260px at 8% 0%,  rgba(29,158,117,.26), transparent 65%),
    radial-gradient(ellipse 500px 340px at 95% 100%, rgba(15,110,86,.20), transparent 60%),
    linear-gradient(145deg, #0d2b1f 0%, #1a4a35 55%, #163f30 100%);
  border-radius: 18px;
  padding: 36px 32px 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.blog-hero2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(  0deg, rgba(255,255,255,.015) 0, rgba(255,255,255,.015) 1px, transparent 1px, transparent 48px);
  border-radius: inherit;
  pointer-events: none;
}

.blog-hero2 > * { position: relative; }

.blog-hero2 h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
}

.blog-hero2 > div > p {
  margin: 0 0 22px;
  max-width: 58ch;
  color: rgba(255,255,255,.52);
  font-size: 0.95rem;
  line-height: 1.65;
}


/* ─────────────────────────────────────────────────────────
   3. SEARCH + FILTER CONTROLS
   ───────────────────────────────────────────────────────── */

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.searchbox {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  min-width: 200px;
  flex: 1;
  max-width: 320px;
  transition: border-color .2s, background .2s;
}

.searchbox:focus-within {
  border-color: rgba(29,158,117,.7);
  background: rgba(255,255,255,.11);
}

.searchbox span[aria-hidden] {
  color: rgba(255,255,255,.32);
  font-size: 13px;
  flex-shrink: 0;
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.88rem;
  color: #fff;
}

.searchbox input::placeholder { color: rgba(255,255,255,.30); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.62);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: transform .12s, background .14s, border-color .14s, color .14s;
}

.chip:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.chip.is-active {
  background: #1d9e75;
  border-color: #1d9e75;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .blog-hero2 { padding: 22px 18px 20px; border-radius: 14px; }
  .searchbox  { max-width: 100%; }
}


/* ─────────────────────────────────────────────────────────
   4. SECTION LABEL ROWS
   ───────────────────────────────────────────────────────── */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--brand-light, #247857);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #e1ecf1);
}

.section-title .count {
  font-size: 0.70rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text, #0b1f16);
  opacity: .42;
}

.blog-section { margin-bottom: 28px; }


/* ─────────────────────────────────────────────────────────
   5. GRID CONTAINER
   ───────────────────────────────────────────────────────── */

.grid2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) { .grid2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .grid2 { grid-template-columns: 1fr; } }


/* ─────────────────────────────────────────────────────────
   6. PINNED HERO CARD  (.card2.pinned)
      Spans full width, image left / body right
   ───────────────────────────────────────────────────────── */

.card2.pinned {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border, #e1ecf1);
  background: var(--surface, #fff);
  transition: box-shadow .15s, border-color .15s;
  /* Reset the ::before accent bar */
}

.card2.pinned::before { display: none; }

.card2.pinned:hover {
  box-shadow: 0 12px 36px rgba(11,31,22,.10);
  border-color: #1d9e75;
}

.card2.pinned > a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

/* Left visual panel — pure CSS, no image needed */
.card2.pinned .pinned-visual {
  background:
    radial-gradient(ellipse 130% 80% at 20% 40%, rgba(29,158,117,.32), transparent 58%),
    linear-gradient(145deg, #0a2218 0%, #112e1e 50%, #0d2518 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 36px 28px;
  min-height: 230px;
  position: relative;
  overflow: hidden;
}

.card2.pinned .pinned-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 36px),
    repeating-linear-gradient(  0deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 36px);
  pointer-events: none;
}

.pinned-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  position: relative;
  z-index: 1;
}

.pbar {
  display: block;
  width: 22px;
  height: var(--h, 50%);
  background: var(--c, #1d9e75);
  border-radius: 3px 3px 0 0;
  flex-shrink: 0;
}

.pinned-chart::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,.15);
}

.pinned-visual-label {
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.32);
  position: relative;
  z-index: 1;
}

/* Body panel */
.card2.pinned .body2 {
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  flex: 1;
}

/* Pinned badge on first kicker */
.card2.pinned .kicker2 {
  margin-bottom: 14px;
}
.card2.pinned .kicker2 li:first-child {
  background: #e1f5ee;
  border-color: #5dcaa5;
  color: #0f6e56;
  font-weight: 700;
}

.card2.pinned .title2 {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  color: var(--text, #0b1f16);
  transition: color .15s;
}

.card2.pinned:hover .title2 { color: var(--brand-light, #247857); }

.card2.pinned .excerpt2 {
  font-size: 0.86rem;
  line-height: 1.62;
  opacity: .6;
  flex: 1;
}

.card2.pinned .meta2 {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e1ecf1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  opacity: .48;
}

/* Override base ::after for pinned — always show */
.card2.pinned .meta2::after {
  content: 'Read article →';
  font-size: 0.80rem;
  font-weight: 700;
  color: #1d9e75;
  opacity: 1;
}

@media (max-width: 680px) {
  .card2.pinned,
  .card2.pinned > a {
    grid-template-columns: 1fr;
  }
  .card2.pinned .pinned-visual {
    min-height: 140px;
    padding: 24px 20px;
  }
  .pinned-chart { height: 64px; }
  .pbar { width: 16px; }
  .card2.pinned .body2 { padding: 18px 16px 16px; }
  .card2.pinned .title2 { font-size: 1.02rem; }
}


/* ─────────────────────────────────────────────────────────
   7. STANDARD COMPACT CARD  (.card2  — not .pinned)
      No thumbnail. Coloured 4px accent bar top. Compact body.
   ───────────────────────────────────────────────────────── */

.card2 {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, #e1ecf1);
  background: var(--surface, #fff);
  display: flex;
  flex-direction: column;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}

.card2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11,31,22,.08);
  border-color: rgba(29,158,117,.4);
}

/* Hide OG thumbnails on standard cards */
.card2:not(.pinned) .thumb2 { display: none; }

/* Accent bar — colour mapped per category */
.card2:not(.pinned)::before {
  content: '';
  display: block;
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #1d9e75, #5dcaa5);
}

.card2[data-tags*="Tax"]:not(.pinned)::before          { background: linear-gradient(90deg, #185fa5, #378add); }
.card2[data-tags*="Strategy"]:not(.pinned)::before     { background: linear-gradient(90deg, #534ab7, #7f77dd); }
.card2[data-tags*="Costs"]:not(.pinned)::before        { background: linear-gradient(90deg, #993c1d, #d85a30); }
.card2[data-tags*="Methodology"]:not(.pinned)::before  { background: linear-gradient(90deg, #0f6e56, #1d9e75); }
.card2[data-tags*="Calculator"]:not(.pinned)::before   { background: linear-gradient(90deg, #0f6e56, #5dcaa5); }
.card2[data-tags*="Home loans"]:not(.pinned)::before   { background: linear-gradient(90deg, #534ab7, #afa9ec); }
.card2[data-tags*="Download"]:not(.pinned)::before     { background: linear-gradient(90deg, #3a3830, #888780); }
.card2[data-tags*="ESG"]:not(.pinned)::before          { background: linear-gradient(90deg, #3b6d11, #97c459); }
.card2[data-tags*="Research"]:not(.pinned)::before     { background: linear-gradient(90deg, #185fa5, #5dcaa5); }
.card2[data-tags*="Long-term"]:not(.pinned)::before    { background: linear-gradient(90deg, #0f6e56, #1d9e75); }

.card2 a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Body */
.body2 {
  padding: 14px 15px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

/* Tag pills */
.kicker2 {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kicker2 li {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-subtle, #f1f8f9);
  border: 1px solid var(--border, #e1ecf1);
  color: var(--text, #0b1f16);
  opacity: .75;
  letter-spacing: .01em;
}

/* Title */
.title2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--text, #0b1f16);
  transition: color .14s;
}

.card2:hover .title2 { color: var(--brand-light, #247857); }

/* Excerpt */
.excerpt2 {
  margin: 0;
  font-size: 0.80rem;
  color: var(--text, #0b1f16);
  opacity: .54;
  line-height: 1.55;
  flex: 1;
}

/* Meta */
.meta2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text, #0b1f16);
  opacity: .42;
  border-top: 1px solid var(--border, #e1ecf1);
  padding-top: 9px;
  margin-top: auto;
}

.meta2::after {
  content: '→';
  font-size: 0.80rem;
  color: #1d9e75;
  font-weight: 700;
  opacity: 0;
  transition: opacity .14s;
}

.card2:hover .meta2::after { opacity: 1; }


/* ─────────────────────────────────────────────────────────
   8. LIST ROWS  — downloads / tools
      Wrap in a <div class="list-rows"> container
   ───────────────────────────────────────────────────────── */

.list-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card2.list-item {
  border-radius: 10px;
  transform: none;
}

.card2.list-item::before { display: none; }

.card2.list-item > a {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  height: auto;
}

.card2.list-item .thumb2 {
  display: none;
}

.list-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: var(--surface-subtle, #f1f8f9);
}

.card2.list-item .body2 {
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 0;
  flex: 1;
}

.list-item-body { flex: 1; min-width: 0; }

.list-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #0b1f16);
  line-height: 1.3;
  margin-bottom: 2px;
  transition: color .14s;
}

.card2.list-item:hover .list-item-title { color: var(--brand-light, #247857); }

.list-item-sub {
  font-size: 0.76rem;
  color: var(--text, #0b1f16);
  opacity: .48;
  line-height: 1.4;
}

.list-item-badge {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface-subtle, #f1f8f9);
  border: 1px solid var(--border, #e1ecf1);
  color: var(--text, #0b1f16);
  opacity: .60;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.card2.list-item .meta2 {
  display: none;
}


/* ─────────────────────────────────────────────────────────
   9. EMPTY STATE
   ───────────────────────────────────────────────────────── */

.empty-state {
  display: none;
  margin-top: 16px;
  padding: 22px;
  border-radius: 12px;
  border: 1px dashed var(--border, #e1ecf1);
  background: var(--surface-subtle, #f1f8f9);
  color: var(--text, #0b1f16);
  opacity: .55;
  font-size: 0.86rem;
  text-align: center;
}
