/* IDMPX — Global styles (keep Tailwind CDN for utility classes) */
:root {
  --ink-900: #0b1220;
}
html, body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial;
}
/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: all .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
/* Utilities */
.align-sub { vertical-align: sub; }
/* Optional: fine‑tune focus rings for inputs */
input[type="text"], input[type="email"], input[type="number"], textarea {
  outline: none;
}
/* Buttons - rely mostly on Tailwind but ensure pointer + transitions */
button { cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }

/* prevent dragging or selecting any images */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: auto; /* keep links clickable */
}

.idle-state {
  text-align: left;
  margin-top: 60px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.idle-icon {
  font-size: 1.9rem;
  --fa-primary-color: #1e3a8a;   
  --fa-secondary-color: #3b82f6;
  line-height: 1;
  animation: idleFloat 3.6s ease-in-out infinite;
}

.idle-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: #0b1220;
  line-height: 1;
}

@keyframes idleFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.95;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.feature-icon {
  font-size: 1.5rem;
  --fa-primary-color: #1e3a8a;   
  --fa-secondary-color: #3b82f6;
  line-height: 1;
  animation: idleFloat 3.6s ease-in-out infinite;
}

/* Hide horizontal scrollbar but keep scroll functionality */
.timeline-track {
  -ms-overflow-style: none;      /* IE / Edge */
  scrollbar-width: none;         /* Firefox */
}

/* Chrome / Safari (WebKit) */
.timeline-track::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.timeline-track::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-track::-webkit-scrollbar-thumb {
  background: transparent;
  border: 0;
}

/* Timeline edge fade overlays (premium carousel vibe) */
.timeline-fade-left {
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.timeline-fade-right {
  background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.brand-text {
  display: inline-block;
}


/* =========================
   Menu
   ========================= */

:root {
  --gov-blue-primary: #2563eb;
  --gov-blue-dark: #1e3a8a;
  --gov-blue-glow: rgba(37, 99, 235, 0.08);
  --gov-text-main: #0f172a;
  --gov-text-muted: #64748b;
  --gov-border: #bfdbfe; /* blue-200 */
}

/* Panel (match app) */
.sv-gov-menu{
  width: 320px !important;
  height: 260px !important;
  padding: 4px !important;

  border-radius: 18px !important;
  background: #ffffff !important;

  border: 5px solid var(--gov-border) !important;
  box-shadow: none !important;

  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Kill the website dropdown skin (thin grey border + shadow) */
.sv-gov-menu.border,
.sv-gov-menu.border-gray-200{
  border-color: var(--gov-border) !important;
}

/* Body (scroll lane + slim padding) */
.sv-gov-body{
  flex: 1;
  overflow-y: auto;
  padding: 8px 4px 8px;

  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,58,138,0.45) transparent;
}

.sv-gov-body::-webkit-scrollbar{
  width: 6px;
}
.sv-gov-body::-webkit-scrollbar-track{
  background: transparent;
}
.sv-gov-body::-webkit-scrollbar-thumb{
  background: rgba(30,58,138,0.45);
  border-radius: 999px;
}
.sv-gov-body::-webkit-scrollbar-thumb:hover{
  background: rgba(30,58,138,0.65);
}

/* App rows / tiles (match app hover + micro motion) */
.sv-gov-app{
  display: grid;
  grid-template-columns: 1fr; /* tile layout */
  justify-items: center;
  align-items: center;
  text-align: center;

  padding: 8px 8px;
  border-radius: 10px;

  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;

  transition: background 140ms ease, transform 140ms ease;
}

.sv-gov-app{
  transform-origin: center;
}

.sv-gov-app:hover{
  background: transparent;   /* no blue */
  transform: scale(1.045);
}

/* Icon bubble (match app) */
.sv-gov-app-icon{
  width: 26px;
  height: 26px;

  display: grid;
  place-items: center;

  background: var(--gov-blue-glow);
  border-radius: 7px;
  color: var(--gov-blue-primary);

  transform: translateZ(0);
  backface-visibility: hidden;
}

.sv-gov-app:hover .sv-gov-app-icon{
  background: var(--gov-blue-primary);
  color: #ffffff;
}

/* Title (match app sizing) */
.sv-gov-app-title{
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gov-text-main);
  line-height: 1.15;
}

/* Grid (tight like app spacing) */
.sv-gov-grid{
  padding: 8px 4px 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sv-gov-menu .group.flex.items-center.justify-between{
  flex: 0 0 auto;
}

.sv-gov-app{
  transition:
    background 240ms ease,
}

  /* ========= SPORVIGILANCE — Feature Doughnut (Step spin + panel) ========= */

  .sv-donut-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    justify-items: center;
    width: min(520px, 100%);
  }

  .sv-donut {
    width: min(420px, 92vw);
    aspect-ratio: 1 / 1;
    position: relative;
    display: grid;
    place-items: center;
    filter: none;
  }

  /* Center label (3-word feature text) */
  .sv-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    text-align: center;
    z-index: 4;
    pointer-events: none;
  }

  .sv-donut .sv-donut-center .sv-donut-center-text {
    max-width: 70%;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1e3a8a; /* blue-900 */
    font-size: 0.92rem;
    line-height: 1.15;
    transition: opacity 200ms ease;

  }

  @media (min-width: 768px) {
    .sv-donut-center-text {
      font-size: 1.15rem;
    }
  }

  /* inner cut-out */
  .sv-donut::before {
    content: "";
    position: absolute;
    inset: 19%;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: none;
    z-index: 1;
  }

  /* Rotor rotates (step) — driven by CSS var updated in JS */
  .sv-donut-rotor {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform: rotate(var(--sv-rot));
    transform-origin: 50% 50%;
    transition: transform 650ms cubic-bezier(0.2, 0.9, 0.2, 1);
    will-change: transform;
  }

  .sv-donut-ring {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
  }

  .sv-donut-track {
    fill: none;
    stroke: rgba(30, 58, 138, 0.04);
    stroke-width: 30;
  }

  .sv-donut-stroke {
    fill: none;
    stroke: url(#svDonutGrad);
    stroke-width: 30;
    stroke-linecap: round;
    filter: drop-shadow(0 10px 24px rgba(30, 58, 138, 0.18));
  }

  /* Chips placed around ring using polar coords (no manual top/left) */
  .sv-donut-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 92px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.10);
    box-shadow: none;
    display: grid;
    place-items: center;
    z-index: 2;
    cursor: pointer;

    /* ring radius */
    --r: 138px;

    /* place at angle around donut */
transform:
  translate(-50%, -50%)
  rotate(var(--a))
  translateX(var(--r))
  rotate(calc(-1 * var(--a)))
  rotate(calc(-1 * var(--sv-rot)))
  scale(1);


    transform-origin: center;
    backdrop-filter: blur(6px);
    transition: transform 650ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 200ms ease, border-color 200ms ease;
    will-change: transform;
  }

  /* Angles: 3 points around the circle */
  .sv-donut-chip[data-index="0"] { --a: 0deg; }
  .sv-donut-chip[data-index="1"] { --a: 90deg; }
  .sv-donut-chip[data-index="2"] { --a: 180deg; }
  .sv-donut-chip[data-index="3"] { --a: 270deg; }

  .sv-donut-chip img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
  }

/* Donut icons — Font Awesome duotone (FA renders SVG) */
.sv-donut-chip .svg-inline--fa {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  pointer-events: none;
}

/* Duotone colouring */
.sv-donut-chip .svg-inline--fa.fa-duotone {
  --fa-primary-color: #1e3a8a;    /* blue-900 */
  --fa-secondary-color: #60a5fa;  /* blue-400 */
  --fa-primary-opacity: 1;
  --fa-secondary-opacity: 0.85;
}

/* Active feature */
.sv-donut-chip.is-active .svg-inline--fa.fa-duotone {
  --fa-primary-color: #4f46e5;    /* indigo */
  --fa-secondary-color: #a78bfa;  /* violet */
  filter: drop-shadow(0 6px 12px rgba(79, 70, 229, 0.35));
}

  /* Highlight state (we’ll toggle this in JS on the "right" chip) */
.sv-donut-chip.is-active {
  border-color: none;
  box-shadow: none;
  z-index: 3;

  transform:
    translate(-50%, -50%)
    rotate(var(--a))
    translateX(var(--r))
    rotate(calc(-1 * var(--a)))
    rotate(calc(-1 * var(--sv-rot)))
    scale(1.32);
}




  @media (prefers-reduced-motion: reduce) {
    .sv-donut-rotor,
    .sv-donut-chip {
      transition: none !important;
    }
  }
  
  
