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

/* ─────────────────────────────────────────────────────────
   0. LIGHT THEME (blog listing + .blog-hero2, now fully light — no more
      dark-band exception, see the palette-redesign note on .blog-hero2)
   body.blog is exclusive to blog/index.html (verified — nothing else on
   the site uses it), so it's safe to target directly for the page
   background rather than needing a scoped-override approach.
   Darkened clay/moss text variants — see the matching note in tepuy.css's
   article block for why plain --clay/--moss aren't reused as text color
   here (contrast on white).
   ───────────────────────────────────────────────────────── */

body.blog {
  background: #ffffff;
  color: var(--ink);
  --clay-text: color-mix(in srgb, var(--clay) 75%, var(--ink));
  --moss-text: color-mix(in srgb, var(--moss) 75%, var(--ink));
}

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

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


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

.blog-hero2 {
  /* Palette redesign (2026-08), no-exceptions scope change: the
     moss-to-ink-to-clay duotone this deliberately kept through the
     original light-theme pass is now retired too — rebuilt on --bone
     with sky/clay radial tints, same recipe as hero-tepuy.css's hero
     and for_professionals.html's .pro-hero. Every white/rgba(255,255,255,X)
     text/border/glass rule below this point (including the search box
     and filter chips, which visually sit inside this band) is flipped
     to --text-based dark equivalents accordingly. */
  background: var(--bone);
  background-image:
    radial-gradient(1000px 480px at 10% -10%, color-mix(in srgb, var(--sky) 24%, transparent), transparent 62%),
    radial-gradient(800px 460px at 95% 110%, color-mix(in srgb, var(--clay) 14%, transparent), transparent 58%);
  border-radius: 22px;
  padding: 36px 32px 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

/* Same micro cross-pattern texture as the hero-tepuy.css/.pro-hero
   reference, recolored for --bone (was a white fleck at 0.02 opacity,
   tuned for a dark hero). */
.blog-hero2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b1f16' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  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: var(--text);
}

.blog-hero2 > div > p {
  margin: 0 0 22px;
  max-width: 58ch;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  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 color-mix(in srgb, var(--text) 16%, transparent);
  background: color-mix(in srgb, white 65%, transparent);
  backdrop-filter: blur(8px);
  min-width: 200px;
  flex: 1;
  max-width: 320px;
  transition: border-color .2s, background .2s;
}

.searchbox:focus-within {
  border-color: color-mix(in srgb, var(--clay) 70%, transparent);
  background: color-mix(in srgb, white 82%, transparent);
}

.searchbox span[aria-hidden] {
  color: color-mix(in srgb, var(--text) 45%, transparent);
  font-size: 13px;
  flex-shrink: 0;
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.88rem;
  color: var(--text);
}

.searchbox input::placeholder { color: color-mix(in srgb, var(--text) 42%, transparent); }

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

.chip {
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: color-mix(in srgb, white 60%, transparent);
  color: color-mix(in srgb, var(--text) 78%, transparent);
  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: color-mix(in srgb, white 80%, transparent);
  border-color: color-mix(in srgb, var(--text) 32%, transparent);
  color: var(--text);
}

.chip.is-active {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .blog-hero2 { padding: 22px 18px 20px; border-radius: 17px; }
  .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(--clay-text);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}

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

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


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

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

@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: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  /* Clay top border is the ONE accent this card gets — standard cards get
     none at all now (see section 7: the old per-tag ::before color system
     is removed entirely, not just hidden). */
  border-top: 3px solid var(--clay);
  background: #ffffff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

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

.card2.pinned:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(11,31,22,.16);
  border-color: color-mix(in srgb, var(--clay) 45%, transparent);
  border-top-color: var(--clay);
}

.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 {
  /* Palette redesign (2026-08), no-exceptions scope change: this was the
     same flagged judgment call as .blog-hero2 above (dark decorative
     panel kept through the original light-theme pass) — now converted
     too. Bone base with a moss tint (rather than the hero's sky/clay
     mix) so this panel still reads as a distinct surface next to the
     card's own white .body2, not just a repeat of the hero above it. */
  background: color-mix(in srgb, var(--moss) 7%, var(--bone));
  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, color-mix(in srgb, var(--text) 4%, transparent) 0, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px, transparent 36px),
    repeating-linear-gradient(  0deg, color-mix(in srgb, var(--text) 3%, transparent) 0, color-mix(in srgb, var(--text) 3%, transparent) 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, var(--clay));
  border-radius: 3px 3px 0 0;
  flex-shrink: 0;
}

.pinned-chart::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--text) 15%, transparent);
}

.pinned-visual-label {
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: color-mix(in srgb, var(--text) 55%, transparent);
  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: color-mix(in srgb, var(--clay) 16%, white);
  border-color: var(--clay);
  color: var(--clay-text);
  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(--ink);
  transition: color .15s;
}

.card2.pinned:hover .title2 { color: var(--clay-text); }

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

.card2.pinned .meta2 {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  opacity: .55;
}

/* Override base ::after for pinned — always show */
.card2.pinned .meta2::after {
  content: 'Read article →';
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--clay-text);
  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: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card2:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11,31,22,.14);
  border-color: color-mix(in srgb, var(--clay) 40%, transparent);
}

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

/* REBRAND: the old 10-color per-tag accent-bar system is removed entirely
   (was a cascade-order bug anyway — multi-tag cards got whichever tag's
   rule happened to be declared last, not a deliberately chosen "primary"
   category). Standard cards get no accent bar at all now; var(--clay)
   is reserved for the .pinned/featured card only (see section 6). */
.card2:not(.pinned)::before {
  content: none;
}

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

/* Body */
.body2 {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

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

.kicker2 li {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bone) 40%, white);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
  opacity: .68;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Title */
.title2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
  color: var(--ink);
  transition: color .14s;
}

.card2:hover .title2 { color: var(--clay-text); }

/* Excerpt — clamped to 3 lines so cards with different excerpt lengths
   still line up evenly in the grid. */
.excerpt2 {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink);
  opacity: .68;
  line-height: 1.58;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta */
.meta2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ink);
  opacity: .55;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding-top: 10px;
  margin-top: auto;
}

.meta2::after {
  content: '→';
  font-size: 0.80rem;
  color: var(--clay-text);
  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: 12px;
  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: color-mix(in srgb, var(--bone) 40%, white);
}

.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(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
  transition: color .14s;
}

.card2.list-item:hover .list-item-title { color: var(--clay-text); }

.list-item-sub {
  font-size: 0.76rem;
  color: var(--ink);
  opacity: .60;
  line-height: 1.4;
}

.list-item-badge {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--bone) 40%, white);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--ink);
  opacity: .70;
  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 color-mix(in srgb, var(--ink) 16%, transparent);
  background: color-mix(in srgb, var(--bone) 30%, white);
  color: var(--ink);
  opacity: .65;
  font-size: 0.86rem;
  text-align: center;
}
