/* Insights magazine — full-bleed visual editorial (follows app theme) */
.insights-theme {
  --ins-bg: var(--void, #070A12);
  --ins-bg2: #0E1424;
  --ins-card: var(--glass, rgba(255,255,255,.04));
  --ins-text: var(--bone, #F4F6FB);
  --ins-muted: var(--dim, #9AA3B8);
  --ins-line: var(--edge, rgba(255,255,255,.1));
  --ins-accent: #5B9DFF;
  --ins-green: #3DDC97;
  --ins-amber: #FFB454;
  --ins-red: #FF5C7A;
  --ins-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ins-sans: "Space Grotesk", system-ui, sans-serif;
  --ins-hero-shade: linear-gradient(180deg, rgba(7,10,18,.15) 0%, rgba(7,10,18,.2) 40%, rgba(7,10,18,.92) 100%),
    linear-gradient(90deg, rgba(7,10,18,.75) 0%, rgba(7,10,18,.2) 55%, transparent 100%);
  --ins-figure-bg: #0A1020;
  background: radial-gradient(120% 80% at 10% -10%, #152038 0%, var(--ins-bg) 45%, #05070E 100%);
  color: var(--ins-text);
  font-family: var(--ins-sans);
  border-radius: 0;
  padding: 0 0 64px;
  margin: 0;
  min-height: 70vh;
  width: 100%;
}
html[data-theme="light"] .insights-theme {
  --ins-bg2: #E8ECF4;
  --ins-accent: #0071E3;
  --ins-hero-shade: linear-gradient(180deg, rgba(242,244,248,.2) 0%, rgba(242,244,248,.35) 40%, rgba(242,244,248,.94) 100%),
    linear-gradient(90deg, rgba(242,244,248,.85) 0%, rgba(242,244,248,.25) 55%, transparent 100%);
  --ins-figure-bg: #E8ECF4;
  background: radial-gradient(120% 80% at 10% -10%, #DDE5F5 0%, var(--ins-bg) 50%, #E8ECF4 100%);
}

body.insights-on .wrap {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: calc(env(safe-area-inset-top) + 8px);
}
body.insights-on .top { padding-left: 22px; padding-right: 22px; }
body.insights-on .bg,
body.insights-on .grain { opacity: .35; }

.insights-theme a { color: var(--ins-accent); text-decoration: none; }
.insights-theme a:hover { text-decoration: underline; }

.ins-full { width: 100%; }
.ins-band { width: 100%; }
.ins-wrap {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 40px;
}
.ins-wrap-wide {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
}
.ins-read { max-width: 720px; margin: 0 auto; }

/* Masthead */
.ins-mast {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; padding: 8px 0 22px;
}
.ins-brand {
  font-family: var(--ins-display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .95;
  margin: 0;
}
.ins-brand i { color: var(--ins-green); font-style: italic; }
.ins-brand-sub {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ins-muted); margin-top: 8px;
}

.ins-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ins-muted); margin: 0 0 10px;
}
.ins-title {
  font-family: var(--ins-display);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--ins-text);
  max-width: none;
  width: 100%;
}
.ins-dek { font-size: clamp(16px, 2vw, 20px); line-height: 1.45; color: var(--ins-muted); margin: 0 0 18px; max-width: none; width: 100%; }

.ins-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(61,220,151,.14); color: var(--ins-green); border: 1px solid rgba(61,220,151,.35);
}
.ins-status.Unsettled { background: rgba(255,180,84,.12); color: var(--ins-amber); border-color: rgba(255,180,84,.35); }
.ins-status.Active { background: rgba(255,140,80,.14); color: #FF8A50; border-color: rgba(255,140,80,.4); }
.ins-status.Storm { background: rgba(255,92,122,.14); color: var(--ins-red); border-color: rgba(255,92,122,.4); }

/* Feature hero — full width media */
.ins-feature {
  position: relative;
  width: 100%;
  min-height: min(72vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ins-bg2);
  margin-bottom: 28px;
}
.ins-feature-media {
  position: absolute; inset: 0;
}
.ins-feature-media img,
.ins-feature-media object,
.ins-feature-media svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--ins-figure-bg);
}
.ins-feature-shade {
  position: absolute; inset: 0;
  background: var(--ins-hero-shade);
  pointer-events: none;
}
.ins-feature-copy {
  position: relative; z-index: 2;
  width: 100%;
  margin: 0;
  padding: 48px clamp(20px, 4vw, 48px) 40px;
  box-sizing: border-box;
}
.ins-feature-copy .ins-title {
  text-shadow: 0 8px 40px rgba(0,0,0,.55);
  max-width: none;
  width: 100%;
}
.ins-feature-copy .ins-dek { max-width: none; width: 100%; }
.ins-feature-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px;
  color: var(--ins-muted); font-size: 13px;
}
.ins-credit-onmedia { color: rgba(255,255,255,.55); font-size: 11px; margin-top: 18px; }

/* Glance strip */
.ins-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--ins-line);
  border: 1px solid var(--ins-line);
  border-radius: 18px;
  overflow: hidden;
  margin: 8px 0 36px;
}
.ins-tile {
  background: var(--ins-card);
  padding: 16px 14px 14px;
}
.ins-tile .lbl { font-size: 10px; color: var(--ins-muted); text-transform: uppercase; letter-spacing: .1em; }
.ins-tile .val { font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; margin-top: 6px; letter-spacing: -.02em; }

.ins-section-h {
  font-family: var(--ins-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 36px 0 16px;
  width: 100%;
  max-width: none;
}

/* Story cards — image-led */
.ins-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.ins-card-link {
  grid-column: span 4;
  display: flex; flex-direction: column;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  color: inherit;
  background: var(--ins-bg2);
  border: 1px solid var(--ins-line);
  transition: transform .2s ease, border-color .2s ease;
}
.ins-card-link:nth-child(1) { grid-column: span 8; min-height: 420px; }
@media (max-width: 960px) {
  .ins-card-link, .ins-card-link:nth-child(1) { grid-column: span 12; min-height: 280px; }
}
.ins-card-link:hover { transform: translateY(-3px); border-color: rgba(91,157,255,.45); text-decoration: none; }
.ins-card-media {
  position: absolute; inset: 0;
}
.ins-card-media img, .ins-card-media object {
  width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85;
}
.ins-card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(5,8,16,.95) 85%);
}
.ins-card-body {
  position: relative; z-index: 1; margin-top: auto; padding: 22px 20px 18px;
}
.ins-card-body .t {
  font-family: var(--ins-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  margin: 8px 0 6px;
}
.ins-card-body .d { font-size: 14px; color: var(--ins-muted); line-height: 1.4; }

.ins-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; align-items: center;
}
.ins-filters select, .ins-filters input {
  border: 1px solid var(--ins-line); border-radius: 999px; padding: 9px 14px;
  font: inherit; background: var(--ins-card); color: var(--ins-text);
}
.ins-filters button {
  border: 1px solid var(--ins-line); background: transparent; border-radius: 999px;
  padding: 9px 14px; font: inherit; cursor: pointer; color: var(--ins-muted);
}
.ins-filters button.on { background: var(--ins-text); color: var(--ins-bg); border-color: var(--ins-text); }

/* Article */
.ins-article-hero {
  width: 100%;
  min-height: min(68vh, 680px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ins-bg2);
}
.ins-article-hero .ins-feature-media { position: absolute; inset: 0; }
.ins-article-hero .ins-feature-media img,
.ins-article-hero .ins-feature-media object {
  width: 100%; height: 100%; object-fit: cover;
}
.ins-article-head {
  position: relative; z-index: 2;
  width: 100%;
  margin: 0;
  padding: 56px clamp(20px, 4vw, 48px) 36px;
  box-sizing: border-box;
}
.ins-article-head .ins-title,
.ins-article-head .ins-dek { max-width: none; width: 100%; }
.ins-article .ins-lede {
  font-family: var(--ins-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  margin: 28px 0 18px;
  font-weight: 400;
}
.ins-short { margin: 0 0 28px; padding-left: 1.15em; }
.ins-short li { margin: 8px 0; color: var(--ins-text); }

.ins-body-sec { margin: 40px 0; }
.ins-body-sec h2, .ins-body-sec h3 {
  font-family: var(--ins-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  width: 100%;
  max-width: none;
}
.ins-body-sec p { font-size: 17px; line-height: 1.7; margin: 0 0 14px; color: #D5DBE8; }

.ins-evidence {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 6px; background: rgba(91,157,255,.16); color: #9DC0FF;
  margin-left: 10px; vertical-align: middle; font-family: var(--ins-sans);
}
.ins-evidence.B { background: rgba(255,180,84,.14); color: var(--ins-amber); }
.ins-evidence.C { background: rgba(167,139,250,.16); color: #C4B5FD; }

.ins-figure {
  margin: 22px 0 10px;
  width: min(1100px, 100vw);
  margin-left: 50%;
  transform: translateX(-50%);
}
.ins-figure img, .ins-figure object, .ins-figure svg {
  width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--ins-line); background: var(--ins-figure-bg);
}
.ins-credit { font-size: 12px; color: var(--ins-muted); margin-top: 8px; }

.ins-means {
  background: linear-gradient(135deg, rgba(91,157,255,.12), rgba(61,220,151,.08));
  border: 1px solid var(--ins-line);
  border-radius: 18px;
  padding: 22px 22px 16px;
  margin: 32px 0;
}
.ins-means h3 { margin: 0 0 10px; font-family: var(--ins-display); font-size: 24px; font-weight: 400; }
.ins-means ul { margin: 0; padding-left: 1.1em; }

.ins-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0 28px; }
.ins-table th, .ins-table td { border-bottom: 1px solid var(--ins-line); padding: 10px 8px; text-align: left; }
.ins-table th { color: var(--ins-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.ins-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.ins-actions button {
  border: 1px solid var(--ins-line); background: var(--ins-card); border-radius: 999px;
  padding: 10px 18px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ins-text);
}
.ins-actions button.primary { background: var(--ins-accent); color: #061018; border-color: var(--ins-accent); font-weight: 600; }
html[data-theme="light"] .ins-actions button.primary { color: #fff; }

.ins-nav-art {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 40px;
  padding-top: 22px; border-top: 1px solid var(--ins-line); font-size: 14px;
}
.ins-feed-links { font-size: 13px; color: var(--ins-muted); margin-top: 36px; }
.ins-feed-links a { margin-right: 16px; }

.ins-back {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin: 12px 0 8px;
  color: var(--ins-accent); background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit;
  letter-spacing: .04em;
}

.ins-week-strip {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin: 8px 0 28px;
}
@media (max-width: 800px) { .ins-week-strip { grid-template-columns: 1fr; } }
.ins-panel {
  border: 1px solid var(--ins-line); border-radius: 20px; padding: 22px;
  background: var(--ins-card);
}

/* Earth page teaser (dark glass) */
.ins-teaser { scroll-margin-top: 88px; }
.ins-teaser-row {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-start;
}
.ins-teaser-main { flex: 1; min-width: min(100%, 280px); }
.ins-teaser .ins-teaser-title {
  font-size: clamp(20px, 3.2vw, 26px); line-height: 1.25; margin: 12px 0 8px; font-weight: 600;
}
.ins-teaser ul { margin: 0 0 4px 1.1em; padding: 0; }
.ins-teaser li { margin: 4px 0; opacity: .9; }
.ins-teaser .btn { white-space: nowrap; }

body.capture-mode .bottom,
body.capture-mode .top,
body.capture-mode .bg,
body.capture-mode .grain,
body.capture-mode .el-btn,
body.capture-mode .el-drawer,
body.capture-mode .el-panel,
body.capture-mode .el-ticker,
body.capture-mode .el-legend,
body.capture-mode .el-time,
body.capture-mode .el-hint,
body.capture-mode .el-focusbtns,
body.capture-mode .el-brief-chip,
body.capture-mode .el-top,
body.capture-mode .stack > .glass,
body.capture-mode .stack > .card { display: none !important; }
body.capture-mode .wrap { padding: 0; max-width: none; }
body.capture-mode #elive,
body.capture-mode #sysStage { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0 !important; z-index: 9999; }
body.capture-mode { background: #000; overflow: hidden; }
