/* The Terminal uses a dedicated product frame: other homepage media retains
   its existing layout. The original screenshot is never enlarged or cropped. */
.home-editorial #live-intelligence .home-terminal-preview {
  --terminal-frame-bg: #0c0d0f;
  --terminal-frame-line: rgba(255, 255, 255, .09);
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: clamp(14px, 1.5vw, 22px);
  border: 1px solid var(--publication-line, #e3e5e9);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(74, 102, 170, .09), transparent 75%),
    var(--publication-wash, #f6f7f9);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.home-editorial #live-intelligence .terminal-preview-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: var(--terminal-frame-bg);
  box-shadow: 0 16px 32px -16px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .12);
  transition: box-shadow 240ms ease;
}

.home-editorial #live-intelligence .terminal-preview-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-bottom: 1px solid var(--terminal-frame-line);
  color: #a9adb6;
  background: #141518;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: .02em;
}

.home-editorial #live-intelligence .terminal-preview-dots { display: flex; gap: 5px; }
.home-editorial #live-intelligence .terminal-preview-dots i { width: 5px; height: 5px; border-radius: 50%; background: #575b63; }
.home-editorial #live-intelligence .terminal-preview-toolbar > svg { justify-self: end; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.1; }

.home-editorial #live-intelligence .terminal-preview-screen { position: relative; overflow: hidden; background: var(--terminal-frame-bg); }
.home-editorial #live-intelligence .terminal-preview-screen > img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: none;
}
.home-editorial #live-intelligence .terminal-preview-screen::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 23%;
  background: linear-gradient(to bottom, rgba(12, 13, 15, 0), rgba(12, 13, 15, .42) 45%, var(--terminal-frame-bg));
  pointer-events: none;
}

.home-editorial #live-intelligence .terminal-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 4px 14px 8px;
  color: #a9adb6;
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
}
.home-editorial #live-intelligence .terminal-preview-open { display: inline-flex; align-items: center; gap: 7px; color: #eceef3; white-space: nowrap; font-weight: 500; }
.home-editorial #live-intelligence .terminal-preview-open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease; }
.home-editorial #live-intelligence .home-terminal-preview:hover .terminal-preview-window { box-shadow: 0 20px 40px -16px rgba(15, 23, 42, .55), 0 3px 8px rgba(15, 23, 42, .16); }
.home-editorial #live-intelligence .home-terminal-preview:hover .terminal-preview-open svg { transform: translateX(3px); }
.home-editorial #live-intelligence .home-terminal-preview:focus-visible { outline: 2px solid var(--publication-focus, #304bc8); outline-offset: 5px; }

html[data-theme='dark'] .home-editorial #live-intelligence .home-terminal-preview {
  background: radial-gradient(ellipse at 50% 12%, rgba(86, 111, 180, .1), transparent 75%), #101114;
  border-color: #25272d;
}
html[data-theme='dark'] .home-editorial #live-intelligence .terminal-preview-window { box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .9), 0 2px 6px rgba(0, 0, 0, .35); }

@media (max-width: 760px) {
  .home-editorial #live-intelligence .home-terminal-preview { border-radius: 16px; padding: 12px; }
  .home-editorial #live-intelligence .terminal-preview-window { border-radius: 9px; }
  .home-editorial #live-intelligence .terminal-preview-footer { padding-inline: 11px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-editorial #live-intelligence .home-terminal-preview.reveal,
  .home-editorial #live-intelligence .terminal-preview-window,
  .home-editorial #live-intelligence .terminal-preview-open svg { transition: none !important; }
  .home-editorial #live-intelligence .terminal-preview-open svg { transform: none !important; }
}
