/* === Whisky Market Index === */

.mi-hero {
  background: linear-gradient(160deg, #1a1208, #0c0a06);
  border-bottom: 1px solid var(--line);
  padding: 60px 24px 40px;
}
.mi-hero-inner { max-width: 1140px; margin: 0 auto }
.mi-hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600; line-height: 1.1; margin-bottom: 14px;
}
.mi-hero-sub {
  color: var(--text2); font-size: 16px;
  max-width: 600px; line-height: 1.65;
}

/* Headline reading */
.mi-headline {
  margin-top: 40px;
  padding: 22px 28px;
  background: linear-gradient(160deg, #1c1812, #13100c);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 14px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.mi-headline-label {
  font-size: 11px; color: var(--text3);
  font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.mi-headline-quarter {
  color: var(--gold); margin-left: 8px;
}
.mi-headline-value {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600; color: var(--text);
  line-height: 1;
}
.mi-headline-unit {
  font-size: 14px; color: var(--text3); font-weight: 400;
  margin-left: 4px;
}

/* Chart */
.mi-chart-section { margin-top: 24px }
.mi-chart-wrap {
  background: linear-gradient(160deg, #1c1812, #13100c);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 14px; padding: 20px;
  position: relative;
}
.mi-chart-wrap canvas {
  width: 100%; height: 460px; display: block;
}

.mi-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(20,16,10,.96);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transform: translate(-50%, -100%);
  z-index: 5;
}
.mi-tooltip-year {
  font-family: var(--serif);
  font-size: 14px; font-weight: 700; color: var(--gold);
  margin-bottom: 6px;
}
.mi-tooltip-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 2px 0; color: var(--text2);
}
.mi-tooltip-row .mi-tooltip-name {
  display: flex; align-items: center; gap: 6px;
}
.mi-tooltip-swatch {
  width: 8px; height: 8px; border-radius: 50%;
}
.mi-tooltip-row strong { color: var(--text); font-weight: 600 }

/* Performance table */
.mi-perf { margin-top: 40px }
.mi-perf-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600; margin-bottom: 16px;
}
.mi-perf-table-wrap {
  background: linear-gradient(160deg, #1c1812, #13100c);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 14px;
  overflow: hidden;
}
.mi-perf-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
}
.mi-perf-table th {
  font-size: 11px; color: var(--gold); font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 14px 12px 10px; text-align: center;
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.mi-perf-cell {
  padding: 18px 12px 22px;
  text-align: center; vertical-align: top;
  border-right: 1px solid rgba(201,168,76,.08);
}
.mi-perf-cell:last-child { border-right: none }
.mi-perf-value {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600; line-height: 1.1;
  color: var(--text);
}
.mi-perf-cell--up    .mi-perf-value { color: var(--good, #5aaa7a) }
.mi-perf-cell--down  .mi-perf-value { color: var(--bad, #c25050) }
.mi-perf-cell--flat  .mi-perf-value { color: var(--text3) }
.mi-perf-desc {
  font-size: 11px; color: var(--text3);
  margin-top: 6px; line-height: 1.4;
}

/* Disclaimer */
.mi-chart-disclaimer {
  margin-top: 14px; padding: 14px 18px;
  background: rgba(201,168,76,.04);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 10px; text-align: center;
}
.mi-chart-disclaimer-note {
  font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 6px;
  font-weight: 500;
}
.mi-chart-disclaimer-warn {
  font-size: 11px; color: var(--text3); line-height: 1.5;
}
.mi-chart-disclaimer-warn a {
  color: var(--gold); text-decoration: underline;
}

/* Snapshot */
.mi-snapshot { margin-top: 48px }
.mi-snapshot-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600; margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.mi-snapshot-year {
  font-size: 14px; font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px; text-transform: uppercase;
}
.mi-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.mi-snapshot-card {
  background: linear-gradient(160deg, #1c1812, #13100c);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.mi-snapshot-band {
  font-size: 11px; color: var(--gold);
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 6px;
}
.mi-snapshot-name {
  font-size: 12px; color: var(--text3);
  margin-bottom: 10px;
}
.mi-snapshot-value {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; color: var(--text);
  margin-bottom: 4px;
}
.mi-snapshot-unit {
  font-size: 13px; color: var(--text3); font-weight: 400;
}
.mi-snapshot-obs {
  font-size: 11px; color: var(--text3);
}

/* Explainer */
.mi-explainer { margin-top: 48px }
.mi-explainer-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600; margin-bottom: 20px;
}
.mi-explainer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.mi-explainer-item {
  padding: 24px; border-radius: 12px;
  background: var(--dark3);
  border: 1px solid var(--line);
  position: relative;
}
.mi-explainer-num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--serif);
  font-size: 28px; font-weight: 600;
  color: rgba(201,168,76,.35);
}
.mi-explainer-item h3 {
  font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.mi-explainer-item p {
  font-size: 13px; color: var(--text2); line-height: 1.6;
}
.mi-explainer-item p strong { color: var(--text) }

/* How is this calculated? — collapsible */
.mi-howto {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
}
.mi-howto > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text2);
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.mi-howto > summary::-webkit-details-marker { display: none }
.mi-howto > summary::before {
  content: "▸";
  font-size: 11px;
  color: var(--gold);
  transition: transform .15s ease;
}
.mi-howto[open] > summary::before { transform: rotate(90deg) }
.mi-howto > summary:hover { color: var(--text) }
.mi-howto-list {
  margin: 0;
  padding: 4px 22px 14px 38px;
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
}
.mi-howto-list li { margin-bottom: 8px }
.mi-howto-list li:last-child { margin-bottom: 0 }
.mi-howto-list strong { color: var(--text) }
.mi-howto-caveat {
  margin: 0;
  padding: 12px 22px 16px 38px;
  font-size: 12px;
  color: var(--text3);
  line-height: 1.6;
  font-style: italic;
}

/* CTA */
.mi-cta {
  text-align: center; padding: 60px 24px; margin-top: 48px; margin-bottom: 40px;
  background: linear-gradient(160deg, #1c1812, #13100c);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .mi-explainer-grid { grid-template-columns: 1fr }
  .mi-perf-cell { padding: 14px 6px 16px }
  .mi-perf-table th { padding: 12px 6px 8px; letter-spacing: .8px }
  .mi-perf-desc { font-size: 10px }
}
@media (max-width: 600px) {
  .mi-hero { padding: 40px 16px 30px }
  .mi-chart-wrap { padding: 12px }
  .mi-chart-wrap canvas { height: 360px }
  .mi-cta { padding: 40px 16px }
  .mi-headline { padding: 18px 18px; }
  .mi-perf-value { font-size: 18px }
  .mi-perf-cell { padding: 12px 4px 14px }
}
