/* Infographic: fixed 1230 x 1536 design canvas, scaled as a whole, never reflowed.
 * The artwork is the blank template from Resources/Blank Templet.png (assets/brand/ig-template.jpg):
 * background, black panels, green score boxes, panel headings, RATING with grey flames, LIVE and the
 * social icons are all part of that image. This stylesheet only places the live content inside it.
 * Positions are the template's measured boxes scaled by 1230 / 1085. */

.ig-canvas {
  position: relative;
  width: 1230px;
  height: 1536px;
  overflow: hidden;
  background: #2A2828;
  color: #EEEEEE;
  font-family: 'Fira Sans', Arial, sans-serif;
  transform-origin: 0 0;
  user-select: text;
}

/* Template artwork and the clear glass bubble laid over the coin. */
.ig-net, .ig-bubble {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}
.ig-net { left: 0; top: 0; width: 1230px; height: 1536px; }
/* Resources/BubbleOverlay.png (1753 x 2000, transparent glass). Its ball is centred at (872, 815), radius 813, in that
 * image; scaled by 183 / 813 and placed with the ball centred at canvas (613.3, 360.5), the same as the weekly images. */
.ig-bubble { left: 417px; top: 177px; width: 394.6px; height: 450.2px; z-index: 2; }

.ig-panel {
  position: absolute;
  box-sizing: border-box;
}
.ig-panel[data-chapter] { cursor: pointer; }

.ig-ne { color: #BDBDBD; }
.ig-unv { color: #F00056; font-weight: 700; margin-left: 2px; }

/* Project name */
.ig-title {
  top: 28px; left: 230px; width: 770px; height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.ig-title .ig-fit-line {
  width: 100%;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 104px;
  line-height: 1;
  color: #F00056;
  text-shadow: 5px 5px 0 #000000;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* Research Hub Central logo, top-right corner */
.ig-brand { top: 34px; right: 18px; width: 210px; height: 67px; }
.ig-brand img { display: block; width: 210px; height: 67px; }

/* Sample projects are always labelled (they are fictional). */
.ig-sample {
  top: 10px; left: 14px; height: 26px;
  background: #F00056; color: #FFFFFF;
  font: 700 15px/26px 'Fira Sans', sans-serif; letter-spacing: 2px;
  padding: 0 10px;
}

/* Coin Info: content below the template's COIN INFO heading */
.ig-coin { top: 288px; left: 24px; width: 352px; height: 316px; }
.ig-coin-lines {
  height: 100%; overflow: hidden;
  font-size: 31px; line-height: 1.24;
  white-space: nowrap;
}
.ig-footnote { font-size: 0.5em; color: #BDBDBD; margin-top: 2px; }

/* Coin logo, under the bubble: a circle that fills the ball exactly (centre 613.3, 360.5; radius 183).
 * CoinGecko logos are square with round coins drawn edge to edge, so they fill the circle; marks without
 * their own circle sit on a cream disc, as on the reference poster. */
.ig-badge {
  top: 177.5px; left: 430.3px; width: 366px; height: 366px;
  border-radius: 50%; overflow: hidden;
  background: #FFF9ED;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* 104%: CoinGecko round logos have a hairline transparent margin; enlarging hides the disc behind them. */
.ig-badge-logo { display: block; flex: none; width: 104%; height: 104%; object-fit: contain; }
.ig-badge-mark { font-family: 'Anton', Impact, sans-serif; font-size: 140px; line-height: 1; }
.ig-badge-note { font-size: 15px; color: #6B6B6B; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }

/* Overview: content below the template's OVERVIEW heading */
.ig-overview { top: 286px; left: 852px; width: 354px; height: 318px; }
.ig-overview-text {
  height: 100%; overflow: hidden;
  font-size: 24px; line-height: 1.26;
}

/* Notes (verdict): narratives, findings, comparison line, above the green bar */
.ig-verdict {
  top: 684px; left: 24px; width: 530px; height: 402px;
  display: flex; flex-direction: column;
}
.ig-narratives { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.ig-verdict-list {
  flex: 1; min-height: 0; overflow: hidden;
  margin: 0; padding-left: 24px;
  font-size: 19px; line-height: 1.28;
}
.ig-verdict-list li { margin-bottom: 2px; }
.ig-verdict-list .ig-unknown { color: #BDBDBD; }
.ig-compare { font-size: 25px; text-align: center; margin-top: 8px; }

/* Price projection, written into the template's green bar */
.ig-projection {
  top: 1094px; left: 46.5px; width: 479.5px; height: 59px;
  color: #000000; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ig-projection-main { font-weight: 700; font-size: 34px; line-height: 1; }
.ig-projection-main.ig-projection-none { font-size: 27px; }
.ig-projection-note { font-size: 12px; line-height: 1.1; margin-top: 3px; }

/* Overall rating: the number, and lit flames over the template's grey ones */
.ig-rating { top: 1181px; left: 11px; width: 560px; height: 62px; }
.ig-rating-num {
  position: absolute; left: 6px; top: 0; height: 62px; line-height: 62px;
  font-size: 32px; color: #EEEEEE; white-space: nowrap; letter-spacing: -0.5px;
}
/* Lit flame: the orange flame from the reference poster (assets/brand/ig-flame-lit.png), laid exactly over a grey one. */
.ig-flame-on { position: absolute; top: 4.8px; width: 46px; height: 49px; display: block; }

/* Category rows: score in the green box, bullets under the template's heading */
.ig-row { left: 604.2px; width: 603px; }
.ig-score {
  position: absolute; left: 0; top: 0; bottom: 0; width: 162px;
  color: #0B0B0B;
  font-family: 'Saira Condensed', sans-serif; font-size: 58px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.ig-score-nr { color: #5C2E00; }               /* "?" on the hub template's orange boxes */
.ig-tpl-btd .ig-score-nr { color: #2F4A1A; }   /* on the BTDcrypto template's lime boxes */
.ig-row-list {
  position: absolute; left: 182px; right: 8px; bottom: 3px;
  margin: 0; padding-left: 18px; overflow: hidden;
  font-size: 16px; line-height: 1.1;
}

/* Live update highlight (never shown in share captures) */
.ig-changed { outline: 6px solid #F00056; outline-offset: 2px; }
.ig-changed::after {
  content: 'UPDATED';
  position: absolute; top: -2px; right: -2px;
  background: #F00056; color: #FFFFFF;
  font: 700 14px 'Fira Sans', sans-serif; letter-spacing: 2px;
  padding: 3px 8px;
}
@media (prefers-reduced-motion: no-preference) {
  .ig-changed { animation: ig-flash 0.9s steps(2, end) 2; }
}
@keyframes ig-flash { 50% { outline-color: #7DCC36; } }

.ig-coininfo .uncapped, .uncapped { vertical-align: -0.1em; }
