/* ============================================================
   FLOATING PRISON — investigation-specific components
   Extends style.min.css (ARIJ kwit template)
   ============================================================ */

/* Hero background — fill viewport, no letterbox bars */
.hero {
  overflow: hidden;
  background: #1a1a1a;
}

#hero-bg,
.hero-bg#hero-bg {
  background-image: url(../images/main-banner.jpg);
  background-size: cover;
  background-position: center 58%;
  background-repeat: no-repeat;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  transform: scale(1.08);
  transform-origin: center center;
}

#hero-bg.loaded,
.hero-bg#hero-bg.loaded {
  transform: scale(1.08);
}

/* Lighter overlay so the ship stays visible */
.hero-overlay {
  background: linear-gradient(
    to top,
    rgb(10 12 13 / 0.88) 0%,
    rgb(10 12 13 / 0.45) 45%,
    rgb(10 12 13 / 0.15) 100%
  );
}

/* Wider article column for infographics & grids */
.article-wrapper--wide {
  max-width: 1120px;
}

/* Scroll to top */
#fp-scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(203, 19, 11, 0.4);
}
#fp-scroll-top:hover {
  transform: scale(1.08);
}

/* ── Text: no scroll/fade animations ── */
.reveal,
.reveal.in,
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.hero-content {
  animation: none !important;
}

/* ── Page layout helpers (moved from index.html) ── */
.p-t-article {
  margin-top: -60px;
  padding-top: 0;
  padding-bottom: 0;
}

.list-image {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}
.list-image img {
  width: 70%;
  max-width: 720px;
  margin: 0 auto;
  display: block;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.list-image figcaption {
  width: 70%;
  max-width: 720px;
  margin: 10px auto 0;
  text-align: center;
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}

.row-text {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  margin: 24px 0;
}
.text-row {
  flex: 1;
  min-width: 0;
  padding-left: 0;
}
.row-text .list-image {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.row-text .list-image img,
.row-text .list-image figcaption {
  width: 100%;
  max-width: none;
}

.note-text {
  font-size: 14px;
  text-align: right;
  margin-top: 30px;
  color: var(--gray-mid);
  line-height: 1.65;
}

/* ── Detention cards ── */
.fp-detention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.fp-detention-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 26px 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.fp-detention-card__label {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.fp-detention-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-mid);
  font-weight: 400;
}

/* ── Route map ── */
.fp-route-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.4;
}
.route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 28px 0 12px;
}
.route-grid > * {
  min-width: 0;
}
.track {
  stroke-dasharray: 2800;
  stroke-dashoffset: 2800;
  transition: stroke-dashoffset 3.7s cubic-bezier(0.4, 0.05, 0.3, 1);
}
#routemap.go .track { stroke-dashoffset: 0; }
.ghost {
  opacity: 0.15;
  transition: opacity 1.1s ease 3.2s;
}
.ghost-halo {
  opacity: 0.15;
  transition: opacity 1.1s ease 3.2s;
}
#routemap.go .ghost { opacity: 0.55; }
#routemap.go .ghost-halo { opacity: 0.85; }
#shipDot { filter: drop-shadow(0 0 7px rgba(203, 19, 11, 0.9)); }
#shipDot.arrived { animation: pulseR 1.7s ease-in-out infinite; }
@keyframes pulseR {
  0%, 100% { r: 7; }
  50% { r: 11; }
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
#routemap {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1376 / 1152;
  background: #eef2f4 url(../images/route-map-bg.png) center / cover no-repeat;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}
#routemap svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.fp-map-label {
  text-align: right;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
}
.fp-map-label--svg { width: 100%; height: 100%; box-sizing: border-box; }
.fp-map-label__title {
  font-weight: 700;
  font-size: 24px;
  color: var(--dark);
  line-height: 1.3;
}
.fp-map-label__title--red { color: var(--red); }
.fp-map-label__title--steel { font-size: 24px; color: #4a7285; }
.fp-map-label__sub { font-size: 18px; color: var(--gray-mid); margin-top: 4px; line-height: 1.45; }
.fp-map-label__sub--dim {
  font-variant-numeric: lining-nums tabular-nums;
}
.fp-map-label__live {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}
.fp-map-source {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  font-size: 11px;
  color: var(--gray-mid);
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 9px;
  border-radius: 3px;
  border: 1px solid #eee;
}
.fp-data-panel {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  min-width: 0;
  width: 100%;
}
.fp-data-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.fp-data-panel__name {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--dark);
}
.fp-data-panel__meta { font-size: 12px; color: var(--gray-mid); margin-top: 3px; }
.fp-data-panel__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  border: 1px solid rgba(203, 19, 11, 0.35);
  padding: 4px 9px;
  border-radius: 3px;
}
.fp-data-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.fp-data-row:last-child { border-bottom: none; }
.fp-data-row__label { color: var(--gray-mid); }
.fp-data-row__value { font-weight: 600; color: var(--dark); }
.fp-data-row__value--red { color: var(--red); }
.fp-num {
  font-variant-numeric: lining-nums tabular-nums;
  unicode-bidi: embed;
}
.fp-data-panel__image { margin-top: auto; padding-top: 14px; }
.fp-data-panel__image image-slot { width: 100%; height: 110px; display: block; }
.fp-footnote {
  font-size: 12px;
  color: var(--gray-mid);
  text-align: center;
  margin-top: 12px;
}

/* ── Timeline cards ── */
.tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.tl-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-mid);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid #eee;
}
.tl-legend__item::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.tl-legend__item--n::before { background: #4a7285; }
.tl-legend__item--a::before { background: var(--red); }
.tl-legend__item--m::before { background: #c47a1a; }
.tl-cards { display: flex; flex-direction: column; gap: 10px; }
.tl-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.tl-card:hover,
.tl-card.is-open {
  border-color: rgba(203, 19, 11, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}
.tl-card--n { border-right: 4px solid #4a7285; }
.tl-card--a { border-right: 4px solid var(--red); }
.tl-card--m { border-right: 4px solid #c47a1a; }
.tl-card__main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}
.tl-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  min-width: 120px;
}
.tl-card__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.tl-card--n .tl-card__badge { background: rgba(74, 114, 133, 0.12); color: #4a7285; }
.tl-card--a .tl-card__badge { background: rgba(203, 19, 11, 0.1); color: var(--red); }
.tl-card--m .tl-card__badge { background: rgba(196, 122, 26, 0.12); color: #c47a1a; }
.tl-card__date { font-size: 13px; font-weight: 600; color: var(--gray-mid); }
.tl-card__body { flex: 1; min-width: 0; }
.tl-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.45;
}
.tl-card__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray-mid);
  transition: transform 0.3s ease, background 0.25s ease;
}
.tl-card.is-open .tl-card__chevron {
  transform: rotate(180deg);
  background: rgba(203, 19, 11, 0.1);
  color: var(--red);
}
.tl-card__chevron svg { width: 14px; height: 14px; }
.tl-card__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl-card.is-open .tl-card__detail { max-height: 320px; }
.tl-card__detail p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-mid);
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

/* ── Crew cards ── */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0 16px;
}
.crew-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.crew-card:hover {
  border-color: rgba(203, 19, 11, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.crew-card image-slot { width: 100%; height: 220px; display: block; }
.crew-card__body { padding: 18px; }
.crew-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crew-card__name { font-weight: 700; font-size: 19px; color: var(--dark); }
.crew-card__badge {
  font-size: 11px;
  color: var(--red);
  border: 1px solid rgba(203, 19, 11, 0.35);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.crew-card__role { font-size: 13px; color: var(--gray-mid); margin-top: 4px; }
.crew-card__story {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-mid);
  margin: 14px 0 0;
  display: none;
}
.crew-card.is-open .crew-card__story { display: block; }
.crew-card__hint {
  font-size: 13px;
  color: #999;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crew-card.is-open .crew-card__hint { display: none; }
.crew-card__hint-arrow { color: var(--red); }

/* ── Contracts ── */
.contracts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.fp-missing-box {
  background: var(--gray-light);
  border: 1px solid rgba(203, 19, 11, 0.2);
  border-right: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 22px;
  margin: 24px 0;
}
.fp-missing-box__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
  margin-bottom: 12px;
}
.fp-missing-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 15px;
  color: var(--gray);
}
.fp-missing-item__x { color: var(--red); font-size: 18px; flex-shrink: 0; }
.fp-docs-col { display: flex; flex-direction: column; gap: 16px; }
.fp-docs-col image-slot:first-child { width: 100%; height: 300px; display: block; }
.fp-docs-col image-slot:last-child { width: 100%; height: 200px; display: block; }

/* ── 84 stat highlight ── */
.fp-stat-highlight {
  margin: 48px 0;
  padding: 0;
  background: transparent;
}
.fp-stat-highlight__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  max-width: 820px;
}
.fp-stat-big {
  flex-shrink: 0;
  font-weight: 800;
  font-size: clamp(72px, 11vw, 112px);
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.02em;
}
.fp-stat-divider {
  flex-shrink: 0;
  width: 1px;
  height: clamp(56px, 8vw, 76px);
  background: #d4d4d4;
}
.fp-stat-desc {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  margin: 0;
  color: var(--dark);
  text-align: right;
}

/* ── Ransom ── */
.ransom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 36px;
}
.ransom-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 22px 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ransom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}
.ransom-card--amber { border-top: 3px solid #c47a1a; }
.ransom-card--red { border-top: 3px solid var(--red); }
.ransom-card--steel { border-top: 3px solid #4a7285; }
.ransom-card__when { font-size: 13px; color: var(--gray-mid); margin-bottom: 8px; }
.ransom-card__amount {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}
.ransom-card__amount--amber { color: #c47a1a; }
.ransom-card__amount--red { color: var(--red); }
.ransom-card__amount--steel { color: #4a7285; }
.ransom-card__note { font-size: 14px; color: var(--gray-mid); margin-top: 10px; line-height: 1.65; }
.ending-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Threat box ── */
.fp-threat-box {
  background: var(--white);
  border: 1px solid rgba(203, 19, 11, 0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.sensitive-img-wrap { overflow: hidden; }
.sensitive-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.fp-threat-box__media {
  overflow: hidden;
  background: #0a0a0a;
}
.fp-threat-box__video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  vertical-align: middle;
}
.fp-threat-box__body { padding: 18px; }
.fp-threat-box__date { font-weight: 700; font-size: 14px; color: var(--red); margin-bottom: 8px; }
.fp-threat-box__quote { font-size: 20px; line-height: 1.6; color: var(--dark); margin: 0; font-weight: 600; }
.fp-threat-box__desc { font-size: 13px; color: var(--gray-mid); margin-top: 10px; line-height: 1.75; }

/* ── Network ── */
.network-node {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s ease;
}
.network-node:hover { border-color: rgba(203, 19, 11, 0.2); }
.network-node__inner { display: flex; gap: 16px; align-items: flex-start; }
.network-node__num { font-weight: 900; font-size: 24px; color: var(--red); min-width: 28px; }
.network-node__name { font-weight: 700; font-size: 18px; color: var(--dark); margin-bottom: 4px; }
.network-node__tag { font-size: 13px; color: var(--gray-mid); margin-bottom: 8px; }
.network-node__desc { font-size: 15px; line-height: 1.9; color: var(--gray-mid); margin: 0; }
.network-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.fp-ban-box {
  background: var(--gray-light);
  border: 1px solid rgba(203, 19, 11, 0.2);
  border-right: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 22px;
}
.fp-ban-box__title { font-weight: 700; color: var(--red); margin-bottom: 10px; }
.fp-ban-box p { font-size: 15px; line-height: 1.9; color: var(--gray-mid); margin: 0; }
.network-grid-2 image-slot { width: 100%; min-height: 170px; display: block; }

/* ── Closing quote ── */
.fp-closing-quote {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.65;
  color: var(--dark);
  margin: 36px 0;
  padding-right: 22px;
  border-right: 4px solid var(--red);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .route-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #routemap {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .article-wrapper--wide {
    max-width: 100%;
  }
  .p-t-article {
    margin-top: -32px;
  }
  .row-text {
    flex-direction: column;
    gap: 20px;
  }
  .text-row {
    width: 100%;
    padding-left: 0;
  }
  .row-text .list-image {
    width: 100%;
  }
  .list-image img,
  .list-image figcaption {
    width: 100%;
    max-width: none;
  }
  .fp-data-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }
  .fp-data-row__value {
    text-align: right;
    width: 100%;
  }
  #fp-scroll-top {
    bottom: 18px;
    left: 18px;
    width: 40px;
    height: 40px;
  }
  .fp-threat-box__video {
    max-height: 220px;
  }
  .fp-map-label__title,
  .fp-map-label__title--steel {
    font-size: 16px;
  }
  .fp-map-label__sub {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .fp-route-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .route-grid,
  .contracts-grid,
  .ending-grid,
  .ransom-grid,
  .network-grid-2 {
    grid-template-columns: 1fr;
  }
  #routemap {
    min-height: 280px;
  }
  .fp-stat-highlight { margin: 32px 0; }
  .fp-stat-highlight__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .fp-stat-divider {
    width: 48px;
    height: 1px;
  }
  .tl-card__main { flex-wrap: wrap; }
  .tl-card__meta { flex-direction: row; width: 100%; min-width: unset; }
  .hero h2 {
    font-size: clamp(16px, 4.2vw, 20px);
    padding: 10px 14px;
  }
  .hero-meta {
    gap: 12px;
  }
  .stats-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .crew-grid { grid-template-columns: 1fr; }
  .p-t-article {
    margin-top: 0;
  }
  .ransom-card__amount {
    font-size: 28px;
  }
  .fp-closing-quote {
    font-size: 18px;
    padding-right: 16px;
  }
  .list-image img {
    border-radius: 6px;
  }
}
