/* Market intelligence (/<lang>/resources/market-intelligence/): the figure
   tiles, the market structure, the news, the blurred "coming soon" preview and the
   category index. The tool's box, brand card, FAQ and footnote are the fair
   finder's (assets/events.css). Written by components/market-intel. */

.mi [hidden] { display: none !important; }
.mi-hero { margin-bottom: 28px; }
.mi-tool { margin-bottom: 0; }

/* ---------------------------------------------------------------- result */
.mi-result { margin-top: 20px; }
.mi-snap { margin: 0; }
.mi-snap h2, .mi-snap h3, .mi-structure h2, .mi-news h3 {
  font: 700 19px/1.3 Poppins, sans-serif;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0 0 14px;
}
.mi-snap-empty { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: #475569; max-width: 70ch; }
.mi-snap-all { margin: 12px 0 0; font: 600 14.5px/1.4 Inter, sans-serif; }
.mi-snap-all a { color: var(--sns-brand, #3F7D4E); text-underline-offset: 3px; }

/* ----------------------------------------------------------------- tiles */
.mi-figs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.mi-fig {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  background: #fff;
  border: 1px solid var(--sns-grey-100, #E4E9EF);
  border-radius: 14px;
}
.mi-fig p { margin: 0; }
.mi-fig-value { font: 700 26px/1.15 Poppins, sans-serif; letter-spacing: -0.02em; color: #0f172a; }
.mi-fig-change {
  align-self: flex-start;
  margin-top: 6px !important;
  padding: 2px 8px;
  border-radius: 999px;
  background: #E3EEE2;
  font: 600 12.5px/1.4 Inter, sans-serif;
  color: #2F6A3E;
}
.mi-fig-change.is-down { background: #F6E7EC; color: #8E3557; }
.mi-fig-label { margin-top: 8px !important; font: 500 14.5px/1.45 Inter, sans-serif; color: #344054; }
.mi-fig-note { margin-top: 4px !important; font-size: 13.5px; line-height: 1.5; color: #56607a; }
.mi-fig-src { margin-top: auto !important; padding-top: 10px; font: 500 12.5px/1.4 Inter, sans-serif; }
.mi-fig-src a { color: var(--sns-grey-500, #667085); text-underline-offset: 2px; }
.mi-fig-src a:hover { color: var(--sns-brand, #3F7D4E); }

.mi-structure { margin: 28px 0 0; }
.mi-structure .mi-fig { background: #F7F9F6; }
.mi-structure .mi-fig-value { font-size: 22px; }

/* ------------------------------------------------------------------ news */
.mi-news { margin: 28px 0 0; }
.mi-news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mi-news-list a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--sns-grey-100, #E4E9EF);
  border-radius: 12px;
  color: #0f172a;
  text-decoration: none;
  font: 500 15px/1.45 Inter, sans-serif;
}
.mi-news-list a:hover { border-color: var(--sns-brand, #3F7D4E); }
.mi-news-date { flex: none; font: 600 12.5px/1.4 Inter, sans-serif; color: var(--sns-grey-500, #667085); }

/* ------------------------------------------- the blurred "coming soon" preview */
/* Six dummy charts, blurred, under a clear card that asks for an email. */
.mi-lock { position: relative; margin: 40px 0 0; border-radius: 18px; overflow: hidden; }
.mi-lock-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 4px;
  filter: blur(5px);
  opacity: .9;
  user-select: none;
  pointer-events: none;
}
.mi-lock-card { padding: 16px 18px; background: #fff; border: 1px solid var(--sns-grey-100, #E4E9EF); border-radius: 14px; }
.mi-lock-card h3 { font: 700 15.5px/1.3 Poppins, sans-serif; color: #0f172a; margin: 4px 0 4px; }
.mi-lock-card p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #475569; }
.mi-lock-label { font: 700 11px/1.2 Inter, sans-serif !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sns-brand, #3F7D4E) !important; }
.mi-lock-chart { margin-top: 12px; }
.mi-lock-chart svg { display: block; width: 100%; height: auto; }
.mi-lock-over {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px));
  padding: 28px 30px;
  border-radius: 16px;
  background: #143A2E url('/assets/silk-card.jpg') center / cover no-repeat;
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
  text-align: center;
}
.mi-lock-over h2 { font: 700 clamp(20px, 2.4vw, 25px)/1.25 Poppins, sans-serif; letter-spacing: -0.01em; color: #fff; margin: 0 0 8px; }
.mi-lock-over p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.mi-lock-over strong { color: #fff; }
.mi-lock-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.mi-lock-form input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: #fff;
  font: 400 16px/1.2 Inter, sans-serif;
  color: #0f172a;
}
.mi-lock-form input[type="email"]:focus { outline: 3px solid rgba(255, 255, 255, .45); outline-offset: 1px; }
.mi-lock-form .rg-btn { flex: none; min-height: 48px; }
.mi-lock-msg { margin: 0 !important; font: 600 15px/1.5 Inter, sans-serif !important; color: #fff !important; }
.mi-lock-msg--error { margin-top: 10px !important; color: #FFD9E5 !important; }
.mi-lock-over noscript .rg-btn { display: inline-flex; }

.mi-try { margin: 28px 0 0; }

/* ---------------------------------------------------------------- index */
.mi-index { margin: 56px 0 0; }
.mi-index h2, .mi-method h2 { font: 700 clamp(21px, 2.4vw, 25px)/1.25 Poppins, sans-serif; color: #0f172a; margin: 0 0 8px; }
.mi-index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mi-index-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--sns-grey-100, #E4E9EF);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mi-index-card:hover { border-color: var(--sns-brand, #3F7D4E); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); }
.mi-index-name { font: 700 16.5px/1.3 Poppins, sans-serif; color: #0f172a; }
.mi-index-fig { margin-top: 6px; font: 700 22px/1.2 Poppins, sans-serif; color: var(--sns-brand, #3F7D4E); }
.mi-index-label { font-size: 14px; line-height: 1.45; color: #475569; }
.mi-index-src { margin-top: auto; padding-top: 8px; font: 500 12.5px/1.4 Inter, sans-serif; color: var(--sns-grey-500, #667085); }

.mi-method { margin: 56px 0 0; max-width: 820px; }
.mi-method p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: #344054; }
.mi-sources { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.mi-sources a { color: #344054; text-underline-offset: 2px; }

/* --------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .mi-lock-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mi-figs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mi-fig { padding: 14px 14px 12px; }
  .mi-fig-value { font-size: 21px; }
  .mi-structure .mi-fig-value { font-size: 19px; }
  .mi-lock-cards { grid-template-columns: 1fr; }
  .mi-lock-card:nth-child(n+4) { display: none; }
  .mi-lock-over { padding: 22px 18px; }
  .mi-lock-form { flex-direction: column; }
  .mi-news-list a { flex-direction: column; gap: 2px; }
}
@media (max-width: 400px) {
  .mi-figs { grid-template-columns: 1fr; }
}
