/* Intercultural 360 - app-like hub (tiles, one open panel, sticky tile strip, location sheet).
   Shared by /pillars/travel.html and /pillars/finance.html; behaviour in /assets/app-hub.js.
   Light only, brand #0F6E56. */
#hub [hidden], #loc-sheet [hidden], #loc-sheet[hidden], #hub-strip[hidden] { display: none !important; }
.hub-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font-size: 13px; font-weight: 600; color: #0f172a; box-shadow: 0 1px 2px rgba(15,23,42,.05); max-width: 100%; }
.hub-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-chip svg { color: #0F6E56; flex-shrink: 0; }
.hub-chip-loc { cursor: pointer; font-family: inherit; }
.hub-chip-loc:hover { border-color: #0F6E56; }
.hub-chip-loc:focus-visible, .hub-sheet-close:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
.hub-chip-link { color: #0F6E56; font-weight: 700; margin-left: 2px; }
.hub-group { background: #fff; border: 1px solid #eef2f6; border-radius: 1.5rem; padding: 14px 12px 16px; margin-top: 12px; box-shadow: 0 18px 40px -32px rgba(15,23,42,.35); }
.hub-group-title { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748b; margin: 0 0 12px 4px; }
.hub-g-near { --tile-bg: #e6f4ef; --tile-fg: #0F6E56; }
.hub-g-plan { --tile-bg: #e0f2fe; --tile-fg: #0369a1; }
.hub-g-tips { --tile-bg: #fef3c7; --tile-fg: #b45309; }
/* finance hub groups */
.hub-g-money { --tile-bg: #e6f4ef; --tile-fg: #0F6E56; }
.hub-g-tax { --tile-bg: #e0f2fe; --tile-fg: #0369a1; }
.hub-g-help { --tile-bg: #fef3c7; --tile-fg: #b45309; }
.hub-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hub-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; margin: 0; background: none; border: 0; cursor: pointer; font: inherit; color: #0f172a; text-align: center; min-width: 0; -webkit-tap-highlight-color: transparent; }
.hub-ico { position: relative; width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--tile-bg); color: var(--tile-fg); box-shadow: 0 8px 18px -10px rgba(15,23,42,.35); transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.hub-ico svg { width: 27px; height: 27px; }
.hub-label { font-size: 12px; font-weight: 600; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }
.hub-tile:hover .hub-ico { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(15,23,42,.4); }
.hub-tile.is-active .hub-ico { background: var(--tile-fg); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tile-fg); }
.hub-tile.is-active .hub-label { color: var(--tile-fg); font-weight: 800; }
.hub-tile:focus-visible { outline: none; }
.hub-tile:focus-visible .hub-ico { outline: 3px solid #5eead4; outline-offset: 4px; }
/* Tips: a single tile, so a small inline card instead of a full row */
.hub-g-tips { display: flex; align-items: center; gap: 14px; }
.hub-g-tips .hub-group-title { margin: 0; flex: 1; }
.hub-g-tips .hub-tiles { display: flex; }
.hub-g-tips .hub-tile { width: 76px; }
.hub-badge { position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
@media (min-width: 768px) {
  .hub-group { display: flex; align-items: center; gap: 24px; padding: 18px 24px; }
  .hub-group-title { flex: 0 0 170px; margin: 0; font-size: 12px; }
  .hub-tiles { display: flex; gap: 28px; }
  .hub-tile { width: 104px; }
  .hub-ico { width: 76px; height: 76px; border-radius: 24px; }
  .hub-ico svg { width: 32px; height: 32px; }
  .hub-label { font-size: 13px; }
  .hub-g-tips { width: fit-content; }
  .hub-g-tips .hub-group-title { flex: 0 0 170px; }
  .hub-g-tips .hub-tile { width: 104px; }
}
@media (prefers-reduced-motion: reduce) { .hub-ico, .hub-tile:hover .hub-ico { transition: none; transform: none; } }
/* sticky strip (fixed under the site header: 64px, 56px below 1024px) */
.hub-strip { position: fixed; top: var(--ic360-nav-h, 64px); left: 0; right: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #e2e8f0; box-shadow: 0 6px 16px -12px rgba(15,23,42,.3); }
.hub-strip-inner { max-width: 72rem; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; }
.hub-strip-inner::-webkit-scrollbar { display: none; }
.hub-tile.hub-tile-sm { flex-direction: row; flex-shrink: 0; gap: 6px; padding: 8px 12px; min-height: 40px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; white-space: nowrap; font-size: 13px; font-weight: 600; }
.hub-tile-sm svg { width: 16px; height: 16px; color: #0F6E56; }
.hub-tile-sm.is-active { background: #0F6E56; border-color: #0F6E56; color: #fff; }
.hub-tile-sm.is-active svg { color: #fff; }
.hub-tile-sm .hub-badge { position: static; height: 18px; min-width: 18px; border: 0; font-size: 10px; background: #e2e8f0; color: #0f172a; }
.hub-tile-sm:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
/* panels */
.hub-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.75rem; padding: 22px 16px 26px; box-shadow: 0 25px 50px -35px rgba(15,23,42,.25); scroll-margin-top: calc(var(--hub-sticky, 64px) + 12px); }
@media (min-width: 768px) { .hub-panel { padding: 34px 36px 38px; } }
.hub-panel-in { animation: hub-in .28s ease-out; }
@keyframes hub-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hub-panel-in { animation: none; } }
/* panel headings get focus on open (screen readers start there); they are not controls, so no ring */
.hub-panel-head:focus, .hub-panel-head:focus-visible { outline: none; }
/* location sheet: bottom sheet on phones, centred dialog on larger screens */
.hub-sheet { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center; }
.hub-sheet-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.hub-sheet-card { position: relative; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 20px 18px 24px; box-shadow: 0 -10px 40px rgba(15,23,42,.25); animation: hub-sheet-in .22s ease-out; }
@media (min-width: 640px) { .hub-sheet { align-items: center; padding: 24px; } .hub-sheet-card { border-radius: 24px; padding: 26px; } }
@keyframes hub-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hub-sheet-card { animation: none; } }
.hub-sheet-close { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; color: #334155; }
html.hub-sheet-open { overflow: hidden; }
