/* Intercultural 360 - mobile app shell: bottom tab bar + Explore / Assistant sheets.
   Only below 1024px; desktop keeps the normal header. Behaviour in /assets/app-shell.js
   (loaded by /assets/nav.js, or directly on pages with their own header). */
:root { --ic360-tab-h: 64px; }

#ic360-tabbar { display: none; }
#ic360-tabbar, #ic360-sheet { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
#ic360-tabbar *, #ic360-sheet * { box-sizing: border-box; }

@media (max-width: 1023.98px) {
  html.ic360-shell body { padding-bottom: calc(var(--ic360-tab-h) + env(safe-area-inset-bottom)) !important; }
  #ic360-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--ic360-tab-h) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 16px -12px rgba(15,23,42,.25);
  }
  html.ic360-kb #ic360-tabbar { display: none; }
  html.ic360-kb.ic360-shell body { padding-bottom: 0 !important; }

  /* floating clutter: the bar and the Explore sheet replace these on phones and tablets */
  .ic360lf-fab, #ic360-fb-btn, .floating-cta { display: none !important; }
  /* toasts and nudges sit above the bar */
  #toast.fixed, .cm-toast, #pioneer-nag, #pioneer-toast { bottom: calc(var(--ic360-tab-h) + 12px + env(safe-area-inset-bottom)) !important; }
  #pioneer-nag { left: 12px !important; right: 12px !important; }

  /* pages with their own header (index, home): one compact line, login lives in the bar */
  nav[data-shell-header].py-4 { padding-top: 10px !important; padding-bottom: 10px !important; }
  nav[data-shell-header] #nav-login-btn, nav[data-shell-header] #nav-user-menu, nav[data-shell-header] #mobileMenuBtn { display: none !important; }
  nav[data-shell-header] [data-shell-hide] { display: none !important; }
  nav[data-shell-header] .h-16 { height: 56px !important; }
  nav[data-shell-header] > div > a:first-child, nav[data-shell-header] a[href="/index.html"]:first-child { font-size: 1.15rem !important; white-space: nowrap; }
  nav[data-shell-header] > div > a:first-child svg, nav[data-shell-header] > div > a:first-child i { width: 26px !important; height: 26px !important; }
  #hero, header[data-shell-hero] { margin-top: 56px !important; }
}

.ic360-tab {
  flex: 1 1 0; min-width: 44px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; padding: 6px 2px; margin: 0; color: #64748b; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.1;
  text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; position: relative;
}
.ic360-tab svg { width: 24px; height: 24px; flex-shrink: 0; }
.ic360-tab[aria-current="page"], .ic360-tab.is-active { color: #0F6E56; font-weight: 800; }
.ic360-tab[aria-current="page"]::before, .ic360-tab.is-active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: #0F6E56; }
.ic360-tab:focus-visible { outline: 3px solid #5eead4; outline-offset: -3px; border-radius: 12px; }
.ic360-tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ic360-tab-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid currentColor; }

/* ── sheets ── */
#ic360-sheet[hidden] { display: none !important; }
#ic360-sheet { position: fixed; inset: 0; z-index: 10060; display: flex; align-items: flex-end; justify-content: center; }
.ic360-sheet-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.ic360-sheet-panel {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: #f8fafc; border-radius: 24px 24px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(15,23,42,.25); transition: transform .2s ease;
}
.ic360-sheet-handle { display: block; width: 44px; height: 5px; border-radius: 99px; background: #cbd5e1; margin: 4px auto 8px; }
.ic360-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.ic360-sheet-title { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0; }
.ic360-sheet-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; }
.ic360-sheet-close svg { width: 20px; height: 20px; }
.ic360-sheet a:focus-visible, .ic360-sheet button:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }

.ic360-help {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; margin: 0 0 12px; border: 0; border-radius: 18px;
  background: linear-gradient(135deg, #0F6E56, #14967a); color: #fff; text-align: left; font: inherit; cursor: pointer; touch-action: manipulation;
  box-shadow: 0 12px 24px -16px rgba(15,110,86,.8);
}
.ic360-help-ico { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ic360-help strong { display: block; font-size: 15px; }
.ic360-help span { font-size: 13px; opacity: .9; }

.ic360-group { background: #fff; border: 1px solid #eef2f6; border-radius: 20px; padding: 12px 10px 14px; margin-bottom: 10px; box-shadow: 0 18px 40px -32px rgba(15,23,42,.35); }
.ic360-group-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748b; margin: 0 0 10px 4px; }
.ic360-g-plan { --tile-bg: #e0f2fe; --tile-fg: #0369a1; }
.ic360-g-settle { --tile-bg: #e6f4ef; --tile-fg: #0F6E56; }
.ic360-g-life { --tile-bg: #ede9fe; --tile-fg: #6d28d9; }
.ic360-g-more { --tile-bg: #fef3c7; --tile-fg: #b45309; }
.ic360-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
.ic360-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 2px; text-decoration: none; color: #0f172a; text-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ic360-tile-ico { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--tile-bg); color: var(--tile-fg); font-size: 26px; box-shadow: 0 8px 18px -10px rgba(15,23,42,.35); }
.ic360-tile-label { font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.ic360-tile-ico { position: relative; }
.ic360-tile-badge { position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; font-family: 'Inter', system-ui, sans-serif; }
.ic360-tile-badge[hidden] { display: none; }
.ic360-tile[aria-current="page"] .ic360-tile-ico { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tile-fg); }
.ic360-tile[aria-current="page"] .ic360-tile-label { color: var(--tile-fg); font-weight: 800; }

.ic360-sheet-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 6px; }
.ic360-sheet-foot a, .ic360-sheet-foot button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #475569; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.ic360-sheet-foot [hidden] { display: none !important; }

.ic360-assist { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; margin-bottom: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; text-decoration: none; color: #0f172a; touch-action: manipulation; }
.ic360-assist .ic360-tile-ico { width: 44px; height: 44px; font-size: 22px; border-radius: 14px; flex-shrink: 0; }
.ic360-assist strong { display: block; font-size: 15px; }
.ic360-assist span { font-size: 13px; color: #64748b; }
.ic360-assist-note { font-size: 12px; color: #64748b; margin: 6px 4px 0; }

@media (prefers-reduced-motion: reduce) { .ic360-sheet-panel { transition: none; } }
@media print { #ic360-tabbar, #ic360-sheet { display: none !important; } html.ic360-shell body { padding-bottom: 0 !important; } }

/* ── colour contrast (WCAG AA 4.5:1), same hues, one step darker / lighter; text is unchanged ── */
.text-teal-600 { color: #0f766e; }                                                   /* teal-600 #0d9488 on white was 3.7:1 */
p.uppercase.text-teal-500, span.uppercase.text-teal-500 { color: #0f766e; }         /* small caps kickers on white */
footer.bg-slate-950, footer.bg-slate-950 .text-slate-500 { color: #94a3b8; }         /* slate-500 on slate-950 was 4.2:1 */
footer.bg-slate-900 .text-slate-600 { color: #94a3b8; }
#trail-section span[style*="color:#64748b"] { color: #475569 !important; }
#events-teaser .ev-attrib { color: #64748b; }
#events-teaser .ev-teaser > p:first-child { color: #0f766e; }
.disc-card .ml-auto { color: #64748b; }
.ic360-tab { font-size: 12px; }                                                      /* legible text: 12px minimum */
