/* Widget 14/15 — country hub (/thailand/), blog design system v2 (v2_browse.hub_page), plus the
   listing breadcrumb and chip look the topic archive shares. Crawl layers unchanged: every chip,
   card, panel line and shelf line is a plain link. */
.hc-hub2 { padding: 64px 0 0; }
.category .ast-article-single,
.category #primary { margin: 0; padding: 0; background: transparent; }

/* ---- Listing breadcrumb (hub and topic pages) ---- */
.hc-lcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; }
.hc-lcrumb a { color: var(--hc-muted); text-decoration: none; }
.hc-lcrumb a:hover { color: var(--hc-text); opacity: 1; }
.hc-lcrumb__sep { color: var(--hc-strong); }
.hc-lcrumb > span[aria-current] { color: var(--hc-text); }

/* ---- Head ---- */
.hc-hub2__eyebrow,
.hc-topic__eyebrow { margin-top: 36px; }
.hc-hub2 h1.hc-hub2__h1 {
  margin: 18px 0 0;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -1.6px;
  color: var(--hc-text);
  text-wrap: balance;
}
.hc-hub2__desc { max-width: 620px; margin: 18px 0 0; font-size: 20px; line-height: 1.6; color: var(--hc-body); text-wrap: pretty; }
.hc-hub2__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; font-size: 15px; color: var(--hc-muted); }
.hc-hub2__meta a.hc-hub2__jump { font-size: 15px; font-weight: 600; color: var(--hc-accent); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

/* ---- Chips (hub cloud, shelf overflow, topic row) ---- */
.hc-hub2__cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hc-hub2__chip,
.hc-topic__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--hc-chip);
  box-shadow: inset 0 0 0 1px var(--hc-chip-line);
  color: var(--hc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
a.hc-hub2__chip:hover,
a.hc-topic__chip:hover { color: var(--hc-text); opacity: 1; box-shadow: inset 0 0 0 1px var(--hc-strong); }
.hc-chip-n { font-weight: 400; color: var(--hc-muted); }
.hc-hub2__chip--current,
.hc-topic__chip--current {
  background: var(--hc-chip-on-bg);
  box-shadow: inset 0 0 0 1px var(--hc-chip-on-line);
  color: var(--hc-chip-on-fg);
}
.hc-hub2__chip--current .hc-chip-n,
.hc-topic__chip--current .hc-chip-n { color: var(--hc-chip-on-fg); }
.hc-hub2__chip--sm { height: 36px; }

/* ---- Pillar strip (only when a pillar post is designated) ---- */
.hc-hub2 a.hc-hub2__pillar {
  display: flex;
  overflow: hidden;
  margin-top: 56px;
  border-radius: 24px;
  background: var(--hc-card);
  box-shadow: inset 0 0 0 1px var(--hc-hair);
  color: var(--hc-text);
  text-decoration: none;
}
.hc-hub2__pillar-media { flex: 0 0 420px; background: var(--hc-card-on-band); }
.hc-hub2__pillar-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hc-hub2__pillar-body { display: flex; flex-direction: column; gap: 10px; padding: 32px 36px; }
.hc-hub2__pillar-title { font-size: 26px; line-height: 1.25; font-weight: 400; }

/* ---- Stages: three cards and the link panel in one row ---- */
.hc-hub2__stage-head { display: flex; align-items: baseline; gap: 14px; margin: 80px 0 24px; }
.hc-hub2__stage-head h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 400; letter-spacing: -0.6px; color: var(--hc-text); }
.hc-hub2__stage-n { font-size: 15px; color: var(--hc-muted); }
.hc-hub2__stage-spacer { flex: 1 1 auto; }
.hc-hub2 a.hc-hub2__stage-all { font-size: 15px; font-weight: 600; color: var(--hc-accent); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.hc-hub2__stage-row { display: flex; align-items: flex-start; gap: 32px; }
.hc-hub2__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; flex: 1 1 auto; min-width: 0; }
.hc-hub2 a.hc-hub2__card { display: flex; flex-direction: column; gap: 10px; color: var(--hc-text); text-decoration: none; }
.hc-hub2 a.hc-hub2__card:hover { opacity: 0.9; }
.hc-hub2__card-media,
.hc-topic__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: var(--hc-card-on-band);
  box-shadow: inset 0 0 0 1px var(--hc-hair);
}
.hc-hub2__card-media img,
.hc-topic__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hc-thumb-ph { display: block; width: 100%; height: 100%; }
.hc-hub2__card-body { display: flex; flex-direction: column; gap: 10px; }
.hc-hub2__card-kicker,
.hc-topic__kicker {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--hc-accent);
}
.hc-hub2__card-title { font-size: 18px; line-height: 1.35; font-weight: 500; color: var(--hc-text); }
.hc-hub2__card-meta { font-size: 14px; color: var(--hc-muted); }
.hc-hub2__panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 312px;
  padding: 18px 22px 20px;
  border-radius: 20px;
  background: var(--hc-card-on-band);
  box-shadow: inset 0 0 0 1px var(--hc-hair);
}
:root[data-theme="dark"] .hc-hub2__panel { background: var(--hc-alt); }
.hc-hub2__panel a {
  display: block;
  padding: 11px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--hc-text);
  text-decoration: none;
}
.hc-hub2__panel a + a { box-shadow: inset 0 1px 0 var(--hc-hair); }
.hc-hub2__panel a:hover { color: var(--hc-text); opacity: 0.8; }
.hc-hub2__panel-min { color: var(--hc-muted); }
.hc-hub2__panel a.hc-hub2__panel-all {
  margin-top: 10px;
  padding: 0;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- The full shelf: a full-width band on the alternate colour ---- */
.hc-hub2__shelf {
  margin-top: 104px;
  padding: 96px 0;
  background: var(--hc-alt);
  box-shadow: 0 0 0 100vmax var(--hc-alt);
  clip-path: inset(0 -100vmax);
}
.hc-hub2 h2.hc-hub2__shelf-h2 { margin: 14px 0 0; font-size: 40px; line-height: 1.12; font-weight: 300; letter-spacing: -0.8px; color: var(--hc-text); }
.hc-hub2__shelf-sub { max-width: 620px; margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--hc-body); }
.hc-hub2__index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 48px; }
.hc-hub2__col { display: flex; flex-direction: column; padding-top: 16px; box-shadow: inset 0 1px 0 var(--hc-strong); }
.hc-hub2__col-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.hc-hub2__col-head h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.hc-hub2__col-head h3 a { color: var(--hc-text); text-decoration: none; }
.hc-hub2__col-head span { font-size: 14px; color: var(--hc-muted); }
.hc-hub2__col-list { display: flex; flex-direction: column; }
.hc-hub2__col-list a { display: block; padding: 7px 0; font-size: 15px; line-height: 1.45; color: var(--hc-body); text-decoration: none; }
.hc-hub2__col-list a:hover { color: var(--hc-text); opacity: 1; }
.hc-hub2__col-list a.hc-hub2__col-more { margin-top: 6px; padding: 0; font-size: 14px; font-weight: 600; color: var(--hc-accent); text-decoration: underline; text-underline-offset: 4px; }
.hc-hub2__overflow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; }
.hc-hub2__overflow > span { margin-right: 6px; font-size: 15px; font-weight: 600; color: var(--hc-text); }

@media (max-width: 1100px) {
  .hc-hub2__stage-row { flex-direction: column; }
  .hc-hub2__panel { flex: none; width: 100%; }
}
@media (max-width: 900px) {
  .hc-hub2 { padding-top: 40px; }
  .hc-hub2__eyebrow,
  .hc-topic__eyebrow { margin-top: 26px; }
  .hc-hub2 h1.hc-hub2__h1 { margin-top: 16px; font-size: 36px; letter-spacing: -1px; }
  .hc-hub2__desc { margin-top: 16px; font-size: 18px; }
  .hc-hub2__meta { margin-top: 16px; }
  .hc-hub2__cloud { margin-top: 14px; }
  .hc-hub2 a.hc-hub2__pillar { flex-direction: column; margin-top: 40px; }
  .hc-hub2__pillar-media { flex: none; aspect-ratio: 16 / 9; }
  .hc-hub2__stage-head { margin: 48px 0 18px; }
  .hc-hub2__stage-head h2 { font-size: 26px; }
  .hc-hub2__stage-row { gap: 12px; }
  .hc-hub2__grid { display: flex; flex-direction: column; gap: 0; }
  .hc-hub2 a.hc-hub2__card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 0; box-shadow: inset 0 1px 0 var(--hc-hair); }
  .hc-hub2__card-media { flex: 0 0 112px; width: 112px; height: 63px; aspect-ratio: auto; border-radius: 10px; }
  .hc-hub2__card-body { gap: 4px; }
  .hc-hub2__card-kicker { margin-top: 0; }
  .hc-hub2__card-title { font-size: 16px; }
  .hc-hub2__card-meta { font-size: 13px; }
  .hc-hub2__shelf { margin-top: 64px; padding: 56px 0; }
  .hc-hub2 h2.hc-hub2__shelf-h2 { font-size: 28px; }
  .hc-hub2__index { grid-template-columns: 1fr; gap: 28px 48px; margin-top: 32px; }
  .hc-hub2__overflow { margin-top: 32px; }
}
