/* Design change 83: blog hub pages (K2 hub /blog/k2/). Loaded only on hub articles (setting cg_blog_hubs).
   Trek cards keep the content lead's compact inline look (SEO change 94); everything else is styled here. */
.cgb--hub .cgb-prose{--h-line:#D5E3E8;--h-soft:#F4F8F9;--h-btn:#C4521B;--h-btn-h:#A8441A;--h-ok:#0E6B88}
.cgb--hub .cgb-prose p.cgh-updated{font-size:14px!important;color:var(--cgb-muted);margin:0 0 14px}
.cgb--hub .cgb-prose h3{color:var(--cgb-night)}
.cgb--hub .cgb-prose h3.cgh-subhead{font-size:18px!important;margin:28px 0 10px}

/* trek cards: only spacing around the lead's grid */
.cgb--hub .cg-k2-treks{margin-bottom:8px!important}
.cgb--hub .cgb-prose .cg-k2-trek p{font-size:13px!important;line-height:1.45!important}
.cgb--hub .cg-k2-trek a:focus-visible{outline:2px solid var(--cgb-ember);outline-offset:2px}

/* tables */
.cgb--hub .cgh-table{margin:8px 0 22px;border:1px solid var(--h-line);border-radius:6px;overflow-x:auto}
.cgb--hub .cgb-prose .cgh-table table{display:table;width:100%;margin:0;border-collapse:collapse;font-size:15px;line-height:1.5;font-variant-numeric:tabular-nums}
.cgb--hub .cgh-table th,.cgb--hub .cgh-table td{overflow-wrap:normal;word-break:normal;border:0;border-top:1px solid var(--h-line);padding:10px 14px;text-align:left;vertical-align:top}
.cgb--hub .cgh-table thead th{border-top:0;background:var(--cgb-tint);color:var(--cgb-ink-p);font-weight:600;font-size:14px;white-space:nowrap}
.cgb--hub .cgh-table tbody tr:nth-child(even){background:var(--h-soft)}
.cgb--hub .cgh-table td:first-child{font-weight:600;color:var(--cgb-night)}
.cgb--hub .cgh-table a{font-weight:600}

/* "K2 at a glance": facts panel */
.cgb--hub .cgh-table--facts{border:0;background:var(--cgb-tint);border-left:4px solid var(--cgb-petrol);border-radius:0 6px 6px 0;padding:8px 0;overflow:visible}
.cgb--hub .cgh-facts thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cgb--hub .cgb-prose .cgh-facts tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;padding:2px 22px}
.cgb--hub .cgh-facts tr{display:block;background:none!important;padding:11px 0;border-top:1px solid #C9DEE5}
.cgb--hub .cgh-facts tr:nth-child(-n+2){border-top:0}
.cgb--hub .cgh-facts td{display:block;border:0!important;padding:0!important}
.cgb--hub .cgh-facts td:first-child{font-size:12px;font-weight:700!important;letter-spacing:.06em;text-transform:uppercase;color:var(--cgb-ink-p)!important}
.cgb--hub .cgh-facts td+td{font-size:16px;font-weight:600;color:var(--cgb-night);margin-top:3px;line-height:1.4}

/* cost summary */
.cgb--hub .cgh-cost td+td,.cgb--hub .cgh-cost th+th{text-align:right;white-space:nowrap;font-weight:700;color:var(--cgb-night)}
.cgb--hub .cgh-cost tbody tr:first-child{background:#FFF4EE!important}
.cgb--hub .cgh-cost tbody tr:first-child td{border-top:0}
.cgb--hub .cgh-cost tbody tr:first-child td+td{color:var(--h-btn);font-size:17px}
.cgb--hub .cgh-cost td:first-child{font-weight:500}

/* two choices under the comparison */
.cgb--hub .cgh-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:6px 0 8px}
.cgb--hub .cgh-choice{border:1px solid var(--h-line);border-radius:6px;padding:16px 18px;background:#fff}
.cgb--hub .cgb-prose .cgh-choice h3{font-size:17px!important;margin:0 0 6px;line-height:1.35}
.cgb--hub .cgb-prose .cgh-choice p{font-size:15.5px!important;line-height:1.6!important;margin:0}

/* "Plan your K2 trek": question cards */
.cgb--hub .cgh-qgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:8px 0 22px}
.cgb--hub .cgh-q{border:1px solid var(--h-line);border-top:3px solid var(--cgb-petrol);border-radius:6px;padding:16px 18px;background:#fff}
.cgb--hub .cgb-prose .cgh-q h3{font-size:17px!important;margin:0 0 6px;line-height:1.35}
.cgb--hub .cgb-prose .cgh-q p{font-size:15.5px!important;line-height:1.6!important;margin:0}

/* tick lists */
.cgb--hub .cgb-prose ul.cgh-ticks{list-style:none;padding:0;margin:4px 0 18px}
.cgb--hub .cgb-prose ul.cgh-ticks--2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.cgb--hub .cgb-prose .cgh-ticks li{position:relative;padding:8px 0 8px 30px;margin:0;border-top:1px solid #EDF2F4}
.cgb--hub .cgb-prose .cgh-ticks li:first-child{border-top:0}
.cgb--hub .cgb-prose .cgh-ticks--2 li:nth-child(2){border-top:0}
.cgb--hub .cgh-ticks li::before{content:"";position:absolute;left:2px;top:14px;width:18px;height:18px;border-radius:4px;background:var(--cgb-tint)}
.cgb--hub .cgh-ticks li::after{content:"";position:absolute;left:8px;top:17px;width:6px;height:10px;border:solid var(--h-ok);border-width:0 2px 2px 0;transform:rotate(45deg)}

/* "Why trek with us": tiles */
.cgb--hub .cgb-prose ul.cgh-why{list-style:none;padding:0;margin:8px 0 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cgb--hub .cgb-prose .cgh-why li{margin:0;padding:14px 16px 14px 18px;background:var(--cgb-tint);border-left:4px solid var(--cgb-petrol);border-radius:0 6px 6px 0;font-weight:600!important;color:var(--cgb-night);line-height:1.5!important}
.cgb--hub .cgb-prose .cgh-why li:last-child:nth-child(odd){grid-column:1/-1}

/* FAQ */
.cgb--hub .cgh-faq{border:1px solid var(--h-line);border-radius:6px;margin:8px 0 22px;overflow:hidden}
.cgb--hub .cgh-faq__item{padding:16px 20px;border-top:1px solid var(--h-line)}
.cgb--hub .cgh-faq__item:first-child{border-top:0}
.cgb--hub .cgh-faq__item:nth-child(even){background:var(--h-soft)}
.cgb--hub .cgb-prose .cgh-faq h3{font-size:17px!important;margin:0 0 4px;line-height:1.4}
.cgb--hub .cgb-prose .cgh-faq p{margin:0;font-size:16px!important;line-height:1.65!important}

/* guides list */
.cgb--hub .cgb-prose ul.cgh-links{list-style:none;padding:0;margin:8px 0 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.cgb--hub .cgb-prose .cgh-links li{margin:0;padding:9px 0 9px 22px;border-top:1px solid #EDF2F4;position:relative;font-size:16px!important;line-height:1.45!important}
.cgb--hub .cgb-prose .cgh-links li:nth-child(-n+2){border-top:0}
.cgb--hub .cgh-links li::before{content:"";position:absolute;left:2px;top:17px;width:7px;height:7px;border:solid var(--cgb-petrol);border-width:2px 2px 0 0;transform:rotate(45deg)}

/* closing note */
.cgb--hub .cgb-prose p.cgh-cta{margin:28px 0 0;padding:18px 20px;background:var(--cgb-night);color:#fff!important;border-radius:6px;font-weight:500}
.cgb--hub .cgb-prose p.cgh-cta a{color:#fff;font-weight:700;text-decoration-color:var(--cgb-ember);text-decoration-thickness:2px}
.cgb--hub .cgb-prose p.cgh-cta a:hover{color:#FFD9C7}

@media (max-width:767px){
  .cgb--hub .cgb-prose .cgh-facts tbody{grid-template-columns:1fr;padding:2px 16px}
  .cgb--hub .cgh-facts tr:nth-child(2){border-top:1px solid #C9DEE5}
  .cgb--hub .cgh-choices,.cgb--hub .cgh-qgrid,.cgb--hub .cgb-prose ul.cgh-why,.cgb--hub .cgb-prose ul.cgh-links,.cgb--hub .cgb-prose ul.cgh-ticks--2{grid-template-columns:1fr}
  .cgb--hub .cgb-prose .cgh-ticks--2 li:nth-child(2),.cgb--hub .cgb-prose .cgh-links li:nth-child(2){border-top:1px solid #EDF2F4}
  .cgb--hub .cgh-table:has(.cgh-stack){border:0;border-radius:0;overflow:visible}
  .cgb--hub .cgb-prose .cgh-stack,.cgb--hub .cgh-stack tbody,.cgb--hub .cgh-stack tr,.cgb--hub .cgh-stack td{display:block;width:100%}
  .cgb--hub .cgh-stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .cgb--hub .cgh-stack tr{border:1px solid var(--h-line);border-radius:6px;margin:0 0 10px;padding:4px 0;background:#fff!important}
  .cgb--hub .cgh-stack td{border:0;padding:5px 14px;display:flex;justify-content:space-between;gap:12px;text-align:right}
  .cgb--hub .cgh-stack td:first-child{display:block;text-align:left;font-size:16px;padding:8px 14px;border-bottom:1px solid #EDF2F4;margin-bottom:2px}
  .cgb--hub .cgh-stack td+td::before{content:attr(data-label);color:var(--cgb-muted);font-weight:400;text-align:left;flex:none;max-width:45%}
  .cgb--hub .cgh-cost td,.cgb--hub .cgh-cost th{padding:9px 12px}
  .cgb--hub .cgh-cost td+td{white-space:normal}
}
