/* ===== Key Physics Analyses: one-row sliding rail (overrides the older card rules in Style.css) ===== */
#Analysis .row {
  display: flex; flex-wrap: nowrap; gap: 20px; margin: 0;
  padding: 14px 4px 30px !important;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
#Analysis .row::-webkit-scrollbar { display: none; }
#Analysis .row > .col {
  flex: 0 0 calc((100% - 66px) / 4.3); max-width: none; width: auto;
  padding: 0; margin: 0; scroll-snap-align: start;
}

/* card shell with gradient hairline border */
#Analysis .card.info-card {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: 10px; border-radius: 22px; border: 1px solid transparent; cursor: pointer;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(20,25,60,.10), rgba(20,25,60,.04)) border-box;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 14px 34px -14px rgba(16,24,40,.16);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, background .4s;
}
#Analysis .card.info-card:hover {
  transform: translateY(-6px);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #7c4dff, #e91e63 55%, #ffb300) border-box;
  box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 30px 54px -20px rgba(70,30,140,.38);
}

/* media area: inset rounded image with zoom on hover */
#Analysis .ana-media {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10;
  background: #0b1020; isolation: isolate;
}
#Analysis .ana-media .card-img-top {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover !important; padding: 0 !important; border: 0 !important; margin: 0;
  border-radius: 0; transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
#Analysis .card.info-card:hover .ana-media .card-img-top { transform: scale(1.07); }
#Analysis .ana-chip {
  position: absolute; z-index: 2; font: 700 .72rem/1 Inter, system-ui, sans-serif;
  letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
#Analysis .ana-sys {
  left: 10px; bottom: 10px; color: #fff;
  background: rgba(10,14,30,.62); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#Analysis .ana-role {
  right: 10px; top: 10px; color: #4a2a9a; background: rgba(255,255,255,.92);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* body */
#Analysis .card.info-card .card-body {
  flex: 1; display: flex; flex-direction: column; align-items: stretch;
  padding: 16px 8px 4px; text-align: left !important;
}
#Analysis .ana-tag {
  display: flex; align-items: center; gap: 7px;
  font: 700 .74rem/1.2 Inter, system-ui, sans-serif; letter-spacing: .03em; color: #6d3fc0;
}
#Analysis .ana-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, #7c4dff, #e91e63);
}
#Analysis .card.info-card .card-title {
  text-align: left !important; font-size: 1rem; line-height: 1.42; font-weight: 600;
  color: #151a2d; margin: 8px 0 16px;
}
#Analysis .card.info-card .analysis-btn {
  position: static !important; opacity: 1 !important; transform: none !important; visibility: visible;
  margin: auto 0 0 !important; width: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px; padding: 0 0 2px;
  border: 0 !important; border-radius: 0; box-shadow: none;
  color: #151a2d; font-weight: 600; font-size: .84rem; letter-spacing: .01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size .35s ease, color .25s;
}
#Analysis .card.info-card .analysis-btn::after {
  content: "\2192"; display: inline-block; font-size: .9rem; transition: transform .3s ease;
}
#Analysis .card.info-card:hover .analysis-btn { color: #6d3fc0; background-size: 100% 1px; }
#Analysis .card.info-card:hover .analysis-btn::after { transform: translateX(4px); }
#Analysis .card.info-card .card-body { padding-bottom: 8px; min-height: 0; margin-top: 0; justify-content: flex-start; }

/* side arrows, vertically centred on the cards */
#Analysis .ana-rail { position: relative; }
#Analysis .ana-arrow {
  position: absolute; top: calc(50% - 8px); transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(20,25,60,.10);
  background: rgba(255,255,255,.95); color: #151a2d; font-size: 1.9rem; line-height: 1;
  display: grid; place-items: center; padding: 0 0 4px;
  box-shadow: 0 10px 24px -8px rgba(16,24,40,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .3s, background .25s, color .25s, transform .25s;
}
/* arrows sit in the page margin, outside the cards */
#Analysis .ana-prev { left: -64px; }
#Analysis .ana-next { right: -64px; }
@media (max-width: 1439.98px) {   /* narrower screens: reserve a gutter inside the section */
  #Analysis .ana-rail { padding: 0 56px; }
  #Analysis .ana-prev { left: 0; }
  #Analysis .ana-next { right: 0; }
}
#Analysis .ana-arrow:hover {
  background: linear-gradient(135deg, #7c4dff, #e91e63); color: #fff; border-color: transparent;
  transform: translateY(-50%) scale(1.07);
}
#Analysis .ana-arrow.is-hidden { opacity: 0; pointer-events: none; }

/* responsive */
@media (max-width: 1199.98px) { #Analysis .row > .col { flex-basis: calc((100% - 44px) / 3.25); } }
@media (max-width: 991.98px)  { #Analysis .row > .col { flex-basis: calc((100% - 20px) / 2.15); } }
@media (max-width: 575.98px)  {
  #Analysis .ana-rail { padding: 0; }
  #Analysis .row > .col { flex-basis: 84%; scroll-snap-align: center; }
  #Analysis .ana-arrow { display: none; }
  /* undo the generic phone rules for .card / .card-title in Style.css */
  #Analysis .card.info-card { width: auto; margin: 0; display: flex; }
  #Analysis .card.info-card .card-title { font-size: .95rem !important; font-family: inherit; }
}
@media (prefers-reduced-motion: reduce) {
  #Analysis .card.info-card, #Analysis .ana-media .card-img-top { transition: none; }
  #Analysis .row { scroll-behavior: auto; }
}
