/* Intercultural 360 - country guides as an app-like hub (country-path*.html).
   Tiles, panels and the sticky strip come from /assets/app-hub.css; this file adds the compact
   route header, the "At a glance" strip, the borderless country panels and collapsible steps.
   Behaviour: /assets/country-hub.js. */
.ch-wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* compact route header */
.ch-head { background: linear-gradient(135deg, #0a4a3a 0%, #0F6E56 55%, #14967a 100%); color: #fff; padding: 14px 0 16px; }
.ch-crumb { margin: 0 0 6px; font-size: 12px; color: rgba(255,255,255,.72); }
.ch-crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.ch-crumb a:hover { color: #fff; text-decoration: underline; }
.ch-title { margin: 0; font-size: 1.45rem; line-height: 1.25; font-weight: 800; color: #fff; }
.ch-route { white-space: nowrap; }
.ch-flag { display: inline-block; width: 22px; height: 16px; border-radius: 3px; vertical-align: -2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.ch-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); max-width: 46rem; }
.ch-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ch-head .hub-chip svg { width: 16px; height: 16px; }
.ch-route-menu { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.ch-route-menu[hidden] { display: none; }
.ch-route-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; touch-action: manipulation; }
.ch-route-link:hover { background: rgba(255,255,255,.24); }
.ch-route-link[aria-current="page"] { background: #fff; color: #0F6E56; }
.ch-route-link:focus-visible, .ch-stat:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
@media (min-width: 768px) { .ch-head { padding: 20px 0 22px; } .ch-title { font-size: 2rem; } .ch-sub { font-size: 15px; } }

/* at a glance: 2x2 on phones, 4 across from 768px */
.ch-hub { padding-top: 12px; }
.ch-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .ch-glance { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.ch-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; min-height: 92px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 12px 30px -24px rgba(15,23,42,.45); text-align: left; font: inherit; color: #0f172a; text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ch-stat:hover { border-color: #0F6E56; }
.ch-stat-label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.ch-stat-label svg { width: 14px; height: 14px; color: #0F6E56; flex-shrink: 0; }
.ch-stat-value { font-size: 15px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-stat-sub { font-size: 12px; color: #64748b; line-height: 1.3; overflow-wrap: anywhere; }
.ch-stat-sub:empty { display: none; }

/* tile group colour for "Daily life" (others come from app-hub.css) */
.hub-g-life { --tile-bg: #ede9fe; --tile-fg: #6d28d9; }

/* panels: the sections keep their own cards, so the wrapper is borderless */
.hub-panel.ch-panel { background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; margin-top: 4px; }
.ch-help-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 0 0 12px; }
.ch-help-title + * { margin-top: 0; }
#panel-specialists > * + * { margin-top: 16px; }
/* the quick stats moved from the hero into the Timeline panel */
.ch-stats { margin-bottom: 14px; }
.ch-stats .route-badge { background: #f0faf6; border: 1px solid #d1ece2; color: #0f172a; }
.ch-stats .text-white\/70 { color: #475569; }

/* duplicate CTA band: desktop only */
@media (max-width: 1023.98px) { .ch-hide-mobile { display: none !important; } }

/* collapsible steps (bureaucracy roadmap, apps, first 7 days): one open at a time */
.ch-step { position: relative; }
.ch-step.is-collapsed { max-height: var(--ch-peek, 76px); overflow: hidden; }
.ch-step.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.95)); pointer-events: none; border-radius: 0 0 16px 16px; }
.ch-step-toggle { position: absolute; top: 0; left: 0; right: 0; height: var(--ch-peek, 76px); z-index: 2; display: flex; align-items: flex-start; justify-content: flex-end; padding: 12px 12px 0 0; margin: 0; background: transparent; border: 0; cursor: pointer; color: #64748b; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border-radius: 16px; }
.ch-step-toggle svg { width: 20px; height: 20px; transition: transform .2s ease; background: rgba(255,255,255,.9); border-radius: 999px; }
.ch-step-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ch-step-toggle:focus-visible { outline: 3px solid #5eead4; outline-offset: -3px; }
.ch-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .ch-step-toggle svg { transition: none; } }

/* print: the whole guide, everything expanded */
@media print {
  .ch-hub, .ch-chips, .ch-route-menu, .hub-strip, .ch-step-toggle { display: none !important; }
  .hub-panel.ch-panel[hidden] { display: block !important; }
  .ch-step.is-collapsed { max-height: none; overflow: visible; }
  .ch-step.is-collapsed::after { display: none; }
  .ch-head { background: none; color: #0f172a; }
  .ch-title, .ch-sub, .ch-crumb { color: #0f172a; }
}

/* "Save as PDF" sits in the header chips (was a sticky floating button) */
.ch-chips > button:not(.hub-chip) { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; box-shadow: none; min-height: 40px; padding: 8px 14px; font-size: 13px; }
.ch-chips > button:not(.hub-chip):hover { background: rgba(255,255,255,.24); }
/* collapsible steps: room for the chevron next to long titles */
.ch-step { padding-right: 44px !important; }
