/* ============================================================
   Category archive — layout-only CSS
   Card styles, typography, colors, shadows, borders come from
   the site's style.css via the existing classes:
     .section-heading  .category-title  .headline  .byline
     .list-chosen.list-card  .list-featured.list-heading-alt
     .pagination  .layout  .layout-thirds
   ============================================================ */

/* ── Page header — matches .topic-template header.layout ──── */
.ttr-cat-header {
  padding-top: 1.5rem;
  padding-bottom: 1rem; 
  margin-bottom: 1.875rem;
}

.ttr-cat-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Matches .topic-template header.layout h2 exactly */
.ttr-cat-title {
  font-family: "Mulish", sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #000e2a;
  line-height: 1.25; 
  letter-spacing: 0.03em;
  margin: 0;
}

/* Matches existing .topic-rss: 1.875rem × 1.875rem, border #086bdb, radius .375rem */
.ttr-cat-rss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 1px solid #086bdb;
  border-radius: .375rem;
  flex-shrink: 0;
  transition: background .15s ease-out;
  text-decoration: none;
}
.ttr-cat-rss:hover { background: #086bdb; }
.ttr-cat-rss:hover svg { fill: #fff; }
.ttr-cat-rss svg { display: block; transition: fill .15s ease-out; }

/* ── Top row spacing ─────────────────────────────────────────  */
.ttr-top-row {
  margin-bottom: 2.5rem;
}

/* ── Highlights inner grid: hero (3fr) left + sub-cards (2fr) right */
.ttr-hl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .ttr-hl-grid {
    grid-template-columns: 3fr 2fr;
    gap: 1.25rem;
    align-items: start;
  }
}

/* Hero card — show excerpt + larger headline; inherits list-chosen list-card box */
.ttr-hero-card .article-summary.abstract { display: block !important; }
.ttr-hero-card .headline a {
  font-size: 1.25rem !important;
  -webkit-line-clamp: 3 !important;
}
@media (min-width: 980px) {
  .ttr-hero-card .headline a { font-size: 1.6rem !important; }
}

/* Sub-cards — 2 items stack naturally via .list-chosen.list-card ul gap:20px */
.ttr-sub-cards { height: 100%; }

/* ── Sidebar spacing and stacking ───────────────────────────── */
.ttr-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

/* Newsletter box — border + shadow matching site card style */
.ttr-newsletter {
  border: 1px solid #e9e9e9;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0px 4px 8px 0px rgba(34, 34, 34, .12);
}

/* ── All Articles section ────────────────────────────────────── */
.ttr-all-wrap { padding-top: .5rem; }

/* "All Developer Articles" label — same as .section-heading but with top border */
.ttr-all-heading {
  border-top: 2px solid #e6e4ec;
  padding-top: 1.875rem;
}

/* 3-column grid — ul reset + CSS grid */
.ttr-all-grid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .ttr-all-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .ttr-all-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
  }
}

/* Each list-chosen.list-card inside grid fills the cell fully */
.ttr-all-grid > li { display: flex; flex-direction: column; }
.ttr-all-grid > li > .list-chosen.list-card { flex: 1; }
.ttr-all-grid > li > .list-chosen.list-card > ul,
.ttr-all-grid > li > .list-chosen.list-card > ul > li { flex: 1; display: flex; flex-direction: column; }
.ttr-all-grid > li > .list-chosen.list-card > ul > li > article { flex: 1; }

/* ── Pagination — reuse existing .pagination class ──────────── */
.ttr-pagination { margin-top: 1rem; }

/* Fallback no-posts text */
.ttr-no-posts {
  padding: 3rem 0;
  text-align: center;
  color: #778596;
  font-size: 1rem;
  font-family: "Mulish", sans-serif;
}
