/* CLW Vehículos — Flagship Buying Guides Hub (/guias-de-compra/)
   Unified with Obsidian (#080f1a) + Terracotta (#e85d2a) + Warm Stone (#f4f2ec) System */

.clw-gh-page {
  --gh-obsidian: #080f1a;
  --gh-navy: #101d30;
  --gh-ink: #0e1c2c;
  --gh-muted: #4f6174;
  --gh-accent: #e85d2a;
  --gh-accent-dark: #c9481a;
  --gh-gold: #ffca54;
  --gh-stone: #f4f2ec;
  --gh-stage: #f6f8fa;
  --gh-line: #dfe5ee;
  color: var(--gh-ink);
  font-family: var(--sans, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

.clw-gh-page *,
.clw-gh-page *::before,
.clw-gh-page *::after {
  box-sizing: border-box;
}

/* =========================================================
   BAND 1: Dark Obsidian Editorial Masthead
   ========================================================= */
.clw-gh-hero {
  position: relative;
  overflow: hidden;
  background: var(--gh-obsidian);
  color: #f4f7fb;
  padding: 22px 0 42px;
}

.clw-gh-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, #e85d2a 0%, rgba(232, 93, 42, 0.3) 34%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.clw-gh-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.clw-gh-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 52%;
  opacity: 0.28;
  filter: contrast(1.06) saturate(0.82);
}

.clw-gh-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 15, 26, 0.98) 0%, rgba(8, 15, 26, 0.92) 52%, rgba(8, 15, 26, 0.68) 100%),
    linear-gradient(180deg, rgba(8, 15, 26, 0.2) 0%, rgba(8, 15, 26, 0.9) 100%);
}

.clw-gh-hero .wrap {
  position: relative;
  z-index: 2;
}

.clw-gh-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #93a7be;
}

.clw-gh-crumb a {
  color: #c5d4e5;
  text-decoration: none;
}

.clw-gh-crumb a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clw-gh-crumb span[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

.clw-gh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.78fr);
  gap: 28px 48px;
  align-items: end;
}

.clw-gh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f39a76;
}

.clw-gh-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gh-accent);
  border-radius: 2px;
}

.clw-gh-hero h1 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 18ch;
}

.clw-gh-page-num {
  font-size: 0.56em;
  font-weight: 500;
  color: #9fb3ca;
}

.clw-gh-lead {
  margin: 14px 0 0;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.62;
  color: #cbd7e6;
}

.clw-gh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  background: rgba(16, 29, 48, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.clw-gh-stats > div {
  padding: 16px 14px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.clw-gh-stats > div:last-child {
  border-right: none;
}

.clw-gh-stats dt {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.clw-gh-stats dd {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #a9bcd2;
}

/* =========================================================
   BAND 2: Static Filter & Instant Search Toolbar (non-sticky!)
   ========================================================= */
.clw-gh-toolbar {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-bottom: 1px solid var(--gh-line);
  padding: 15px 0;
}

.clw-gh-toolbar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.clw-gh-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.clw-gh-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #d5dee8;
  background: #ffffff;
  color: #26394e;
  font-size: 12.8px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.clw-gh-tab:hover {
  border-color: #93a7be;
  background: #f5f8fb;
}

.clw-gh-tab[aria-selected="true"] {
  background: var(--gh-obsidian);
  border-color: var(--gh-obsidian);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 15, 26, 0.14);
}

.gh-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eef3f8;
  color: #425870;
  font-variant-numeric: tabular-nums;
}

.clw-gh-tab[aria-selected="true"] .gh-tab-count {
  background: rgba(255, 255, 255, 0.16);
  color: #ffca54;
}

.clw-gh-search {
  position: relative;
  flex: 0 0 255px;
  max-width: 280px;
}

.clw-gh-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #6b7f95;
  pointer-events: none;
}

.clw-gh-search input {
  width: 100%;
  height: 41px;
  padding: 0 36px 0 38px;
  border: 1px solid #cfd9e4;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--gh-ink);
  font-size: 13.8px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.clw-gh-search input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--gh-accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 42, 0.14);
}

.clw-gh-search-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #dfe6ef;
  color: #223447;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   BAND 3: Main Editorial Stage (Featured + 3-Col Grid)
   ========================================================= */
.clw-gh-stage {
  background: var(--gh-stage);
  padding: 36px 0 64px;
}

/* Featured Lead Magazine Card */
.clw-gh-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(10, 22, 40, 0.06);
  margin-bottom: 38px;
}

.clw-gh-featured[hidden] {
  display: none;
}

.clw-gh-featured-media {
  position: relative;
  display: block;
  min-height: 310px;
  background: #101d30;
  overflow: hidden;
}

.clw-gh-featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s ease;
}

.clw-gh-featured:hover .clw-gh-featured-media img {
  transform: scale(1.03);
}

.clw-gh-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 93, 42, 0.94);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.clw-gh-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 34px;
}

.clw-gh-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.clw-gh-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: #edf2f8;
  color: #1c3554;
  font-size: 12px;
  font-weight: 700;
}

.clw-gh-pill--price {
  background: #fff4da;
  color: #934e00;
}

.clw-gh-featured-body h2 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.38rem, 2.05vw, 1.78rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--gh-ink);
}

.clw-gh-featured-body h2 a {
  color: inherit;
  text-decoration: none;
}

.clw-gh-featured-body h2 a:hover {
  color: var(--gh-accent-dark);
}

.clw-gh-featured-desc {
  margin: 13px 0 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--gh-muted);
}

.clw-gh-featured-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  font-size: 12.8px;
  font-weight: 600;
  color: #2f455c;
}

.clw-gh-featured-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clw-gh-featured-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gh-accent);
}

.clw-gh-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--gh-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}

.clw-gh-featured-cta:hover {
  background: var(--gh-accent-dark);
  transform: translateY(-1px);
}

.clw-gh-featured-cta svg {
  width: 16px;
  height: 16px;
}

/* Status bar above grid */
.clw-gh-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
}

.clw-gh-section-title {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.32rem, 2vw, 1.68rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gh-ink);
}

.clw-gh-status {
  margin: 5px 0 0;
  font-size: 13.8px;
  color: var(--gh-muted);
}

.clw-gh-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.clw-gh-chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d2dce6;
  background: #ffffff;
  color: #2c4056;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: all .16s ease;
}

.clw-gh-chip-toggle::before {
  content: "$";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff3d6;
  color: #9e5600;
  font-size: 11px;
  font-weight: 800;
}

.clw-gh-chip-toggle[aria-pressed="true"] {
  background: #fff4da;
  border-color: #d98218;
  color: #7c3f00;
}

.clw-gh-reset-inline {
  padding: 8px 13px;
  border: none;
  border-radius: 8px;
  background: #e6edf5;
  color: #16304d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.clw-gh-reset-inline:hover {
  background: #d7e3f0;
}

/* 3-Column Editorial Cards Grid */
.clw-gh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.clw-gh-card {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--gh-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.clw-gh-card[hidden] {
  display: none;
}

.clw-gh-card:hover {
  transform: translateY(-3px);
  border-color: #c2cfdf;
  box-shadow: 0 14px 30px rgba(10, 22, 40, 0.08);
}

.clw-gh-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.clw-gh-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e6ecf2;
  overflow: hidden;
}

.clw-gh-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .38s ease;
}

.clw-gh-card:hover .clw-gh-card-media img {
  transform: scale(1.045);
}

.clw-gh-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.clw-gh-card-topic {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(8, 15, 26, 0.78);
  color: #f4f7fb;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.clw-gh-card-price-tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffca54;
  color: #101a2b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.clw-gh-card-body {
  flex: 1 1 auto;
  padding: 20px 20px 14px;
}

.clw-gh-card-body h3 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 1.07rem;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--gh-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clw-gh-card:hover .clw-gh-card-body h3 {
  color: var(--gh-accent-dark);
}

.clw-gh-card-desc {
  margin: 10px 0 0;
  font-size: 13.7px;
  line-height: 1.56;
  color: var(--gh-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clw-gh-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 20px 15px;
  border-top: 1px solid #edf2f7;
  font-size: 13px;
}

.clw-gh-card-kind {
  color: #6b7d91;
  font-weight: 600;
}

.clw-gh-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--gh-accent-dark);
  transition: transform .16s ease;
}

.clw-gh-card-cta svg {
  width: 15px;
  height: 15px;
}

.clw-gh-card:hover .clw-gh-card-cta {
  transform: translateX(2px);
}

/* Load more bar */
.clw-gh-more-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.clw-gh-more-wrap[hidden] {
  display: none;
}

.clw-gh-more-btn {
  padding: 12px 24px;
  border: 1px solid var(--gh-obsidian);
  border-radius: 999px;
  background: var(--gh-obsidian);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .14s ease;
}

.clw-gh-more-btn:hover {
  background: #1b2f4a;
  transform: translateY(-1px);
}

.clw-gh-more-btn span {
  font-weight: 500;
  color: #b7c8dc;
  margin-left: 4px;
}

.clw-gh-showall-btn {
  padding: 12px 20px;
  border: 1px solid #c9d5e2;
  border-radius: 999px;
  background: #ffffff;
  color: var(--gh-ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.clw-gh-showall-btn:hover {
  border-color: var(--gh-obsidian);
  background: #f1f5f9;
}

/* Empty state */
.clw-gh-empty {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px solid var(--gh-line);
  border-radius: 14px;
}

.clw-gh-empty h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.clw-gh-empty p {
  max-width: 52ch;
  margin: 0 auto 20px;
  color: var(--gh-muted);
}

.clw-gh-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* =========================================================
   BAND 4: Three-Step Preparation Band (Warm Stone)
   ========================================================= */
.clw-gh-pillars {
  background: var(--gh-stone);
  border-top: 1px solid #e5e1d6;
  border-bottom: 1px solid #e5e1d6;
  padding: 54px 0;
}

.clw-gh-pillars-head {
  margin-bottom: 26px;
}

.clw-gh-pillars-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-accent-dark);
}

.clw-gh-pillars-head h2 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  color: var(--gh-ink);
}

.clw-gh-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.clw-gh-pillar-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  background: #ffffff;
  border: 1px solid #e3dfd4;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.clw-gh-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--gh-accent);
  box-shadow: 0 10px 24px rgba(10, 22, 40, 0.06);
}

.clw-gh-pillar-num {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gh-accent);
}

.clw-gh-pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--gh-ink);
}

.clw-gh-pillar-card p {
  flex: 1 1 auto;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--gh-muted);
}

.clw-gh-pillar-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #15447a;
}

/* =========================================================
   BAND 5: Dual Conversion Paths
   ========================================================= */
.clw-gh-paths {
  background: #ffffff;
  padding: 54px 0 64px;
}

.clw-gh-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.clw-gh-path {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 32px;
  border-radius: 14px;
}

.clw-gh-path--dark {
  background: linear-gradient(135deg, #0b1627 0%, #162a45 100%);
  color: #f4f7fb;
  border-left: 4px solid var(--gh-gold);
}

.clw-gh-path--stone {
  background: var(--gh-stone);
  color: var(--gh-ink);
  border: 1px solid #e3dfd4;
  border-left: 4px solid var(--gh-accent);
}

.clw-gh-path-kicker {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-gold);
}

.clw-gh-path--stone .clw-gh-path-kicker {
  color: var(--gh-accent-dark);
}

.clw-gh-path h2 {
  margin: 0 0 10px;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.25;
  color: var(--gh-ink);
}

.clw-gh-path--dark h2 {
  color: #ffffff !important;
}

.clw-gh-path p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd8e7;
}

.clw-gh-path--stone p {
  color: var(--gh-muted);
}

.clw-gh-path-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.clw-gh-btn-dark,
.clw-gh-btn-light,
.clw-gh-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, transform .14s ease;
}

.clw-gh-btn-dark {
  background: var(--gh-obsidian);
  color: #ffffff;
}

.clw-gh-btn-light {
  background: var(--gh-gold);
  color: var(--gh-obsidian);
}

.clw-gh-btn-light:hover {
  background: #ffda82;
}

.clw-gh-btn-accent {
  background: var(--gh-accent);
  color: #ffffff;
}

.clw-gh-btn-accent:hover {
  background: var(--gh-accent-dark);
}

.clw-gh-link-light {
  color: #e6eef8;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clw-gh-link-dark {
  color: var(--gh-ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1180px) {
  .clw-gh-toolbar-inner {
    flex-wrap: wrap;
  }
  .clw-gh-search {
    flex: 1 1 260px;
    max-width: 340px;
  }
}

@media (max-width: 1080px) {
  .clw-gh-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .clw-gh-stats {
    max-width: 460px;
  }
  .clw-gh-featured {
    grid-template-columns: 1fr;
  }
  .clw-gh-featured-media {
    min-height: 240px;
    max-height: 340px;
  }
  .clw-gh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .clw-gh-hero {
    padding: 18px 0 30px;
  }
  .clw-gh-search {
    max-width: none;
    flex: 1 1 100%;
  }
  .clw-gh-featured-body {
    padding: 22px 20px;
  }
  .clw-gh-grid,
  .clw-gh-pillars-grid,
  .clw-gh-paths-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .clw-gh-path {
    padding: 24px 22px;
  }
  .clw-gh-stage {
    padding: 26px 0 48px;
  }
}

/* =========================================================
   Server-Side Numbered Pagination Bar (Option A)
   ========================================================= */
.clw-gh-pagination {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--gh-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.clw-gh-pg-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clw-gh-pg-nums {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clw-gh-pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid #d0dae6;
  background: #ffffff;
  color: var(--gh-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .14s ease, box-shadow .15s ease;
}

.clw-gh-pg-num {
  min-width: 44px;
  padding: 0 12px;
  font-variant-numeric: tabular-nums;
}

a.clw-gh-pg-btn:hover {
  border-color: var(--gh-accent);
  color: var(--gh-accent-dark);
  background: #fff6f2;
  transform: translateY(-1px);
}

.clw-gh-pg-btn.is-current {
  background: var(--gh-obsidian);
  border-color: var(--gh-obsidian);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(8, 15, 26, 0.16);
}

.clw-gh-pg-btn.is-disabled {
  background: #f5f7fa;
  border-color: #e4eaf1;
  color: #9aa8b8;
  cursor: not-allowed;
}

.clw-gh-pg-meta {
  margin: 0;
  font-size: 13px;
  color: var(--gh-muted);
}
