/* AI News space-console skin. Loaded after the shared workbench theme. */

body.ai-news-page {
  --ai-bg: #020814;
  --ai-panel: rgba(3, 15, 30, 0.82);
  --ai-panel-strong: rgba(3, 16, 32, 0.94);
  --ai-panel-soft: rgba(8, 29, 51, 0.72);
  --ai-line: rgba(39, 147, 214, 0.38);
  --ai-line-strong: rgba(34, 205, 255, 0.72);
  --ai-cyan: #22d9ff;
  --ai-blue: #287bff;
  --ai-violet: #4634c7;
  --ai-text: #f3f8ff;
  --ai-muted: #b8c8dc;
  --ai-dim: #7f99b7;
  --ai-shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
  min-height: 100vh;
  color: var(--ai-text) !important;
  color-scheme: dark;
  background-color: var(--ai-bg) !important;
  background-image:
    linear-gradient(90deg, rgba(0, 4, 14, 0.84), rgba(0, 9, 24, 0.46) 31%, rgba(0, 7, 18, 0.58) 60%, rgba(0, 196, 255, 0.2)),
    radial-gradient(circle at 84% 22%, rgba(0, 211, 255, 0.18), transparent 31%),
    url("ai-news/ai-news-space-bg.webp") !important;
  background-position: center top !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

body.ai-news-page * {
  letter-spacing: 0 !important;
}

:root[data-theme="light"] body.ai-news-page {
  color: var(--ai-text) !important;
  background-color: var(--ai-bg) !important;
  background-image:
    linear-gradient(90deg, rgba(0, 4, 14, 0.82), rgba(0, 9, 24, 0.44) 31%, rgba(0, 7, 18, 0.56) 60%, rgba(0, 196, 255, 0.2)),
    radial-gradient(circle at 84% 22%, rgba(0, 211, 255, 0.18), transparent 31%),
    url("ai-news/ai-news-space-bg.webp") !important;
}

body.ai-news-page header#site-nav {
  position: sticky;
  top: 12px;
  width: min(1152px, calc(100% - 32px));
  margin: 24px auto 0;
  border: 1px solid var(--ai-line) !important;
  border-bottom-color: rgba(39, 147, 214, 0.24) !important;
  border-radius: 14px 14px 0 0 !important;
  background: rgba(2, 12, 25, 0.82) !important;
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(180, 235, 255, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
}

body.ai-news-page header#site-nav > nav {
  max-width: none !important;
  min-height: 42px;
  padding: 6px 17px;
  gap: 10px;
  justify-content: space-between;
}

body.ai-news-page header#site-nav .brand-mark {
  min-width: 116px;
}

body.ai-news-page header#site-nav .brand-mark .brand-text {
  font-family: var(--font-sans, system-ui, sans-serif) !important;
  font-size: 14px;
  font-weight: 780;
  color: #ffffff !important;
}

body.ai-news-page header#site-nav .links {
  gap: 5px;
  justify-content: center;
}

body.ai-news-page header#site-nav .links a,
body.ai-news-page header#site-nav .theme-toggle {
  min-height: 29px;
  border-radius: 7px !important;
  border-color: rgba(117, 165, 207, 0.28) !important;
  background: linear-gradient(180deg, rgba(20, 34, 55, 0.96), rgba(10, 23, 40, 0.96)) !important;
  color: #e9f5ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 16px rgba(0, 0, 0, 0.3) !important;
  font-size: 10.5px;
  font-weight: 720;
}

body.ai-news-page header#site-nav .links a {
  padding: 6px 9px;
}

body.ai-news-page header#site-nav .links a:hover,
body.ai-news-page header#site-nav .links a[aria-current="page"] {
  border-color: rgba(67, 179, 255, 0.82) !important;
  background: linear-gradient(180deg, #2d74ff, #1455d8) !important;
  color: #ffffff !important;
}

body.ai-news-page header#site-nav .theme-toggle {
  width: 34px;
  height: 34px;
}

body.ai-news-page main.container {
  width: min(1152px, calc(100% - 32px));
  max-width: none !important;
  margin: 0 auto;
  padding: 11px 31px 40px;
  border-right: 1px solid var(--ai-line);
  border-left: 1px solid var(--ai-line);
  border-bottom: 1px solid var(--ai-line);
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(1, 12, 25, 0.54), rgba(1, 12, 25, 0.72));
  box-shadow: var(--ai-shadow);
}

body.ai-news-page .hero-editorial.ai-news-hero {
  min-height: 150px;
  margin: 0;
  padding: 16px 54px 15px !important;
  border: 1px solid rgba(34, 205, 255, 0.46);
  border-radius: 14px !important;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(24, 10, 91, 0.74), rgba(5, 24, 69, 0.68) 48%, rgba(0, 204, 233, 0.48)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 9, 24, 0.36)),
    url("ai-news/ai-news-circuit-bg.webp") !important;
  background-position: center center !important;
  background-size: cover !important;
  box-shadow: inset 0 1px 0 rgba(210, 247, 255, 0.1), 0 18px 42px rgba(0, 0, 0, 0.32) !important;
}

body.ai-news-page .ai-news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 5, 25, 0.16), transparent 45%),
    radial-gradient(circle at 10% 22%, rgba(0, 222, 255, 0.18), transparent 12%);
}

body.ai-news-page .ai-news-hero > * {
  position: relative;
  z-index: 1;
}

body.ai-news-page .ai-news-hero .eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--ai-cyan) !important;
  font-family: var(--font-sans, system-ui, sans-serif) !important;
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

body.ai-news-page .ai-news-hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ai-cyan);
  box-shadow: 0 0 16px rgba(34, 217, 255, 0.75);
}

body.ai-news-page .ai-news-hero h1 {
  margin: 9px 0 6px;
  color: #ffffff !important;
  font-family: var(--font-sans, system-ui, sans-serif) !important;
  font-size: 40px;
  font-weight: 820;
  line-height: 1;
  background: none !important;
  -webkit-text-fill-color: currentColor;
  animation: none !important;
}

body.ai-news-page .ai-news-hero .lede {
  max-width: 850px;
  margin: 0;
  color: #edf7ff !important;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.45;
}

body.ai-news-page main.container > .card {
  margin-top: 15px !important;
  padding: 14px;
  border-radius: 12px !important;
  border: 1px solid rgba(65, 151, 206, 0.4) !important;
  background: linear-gradient(180deg, rgba(2, 14, 28, 0.82), rgba(0, 11, 23, 0.88)) !important;
  box-shadow: inset 0 1px 0 rgba(199, 245, 255, 0.06), 0 18px 48px rgba(0, 0, 0, 0.32) !important;
}

body.ai-news-page .news-controls {
  display: grid !important;
  grid-template-columns: 172px 174px 176px 176px minmax(230px, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0 0 7px;
  padding: 0 0 9px;
  border: 0 !important;
  border-bottom: 1px solid rgba(65, 151, 206, 0.2) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.ai-news-page .control {
  width: 100%;
  min-height: 35px;
  border-radius: 7px !important;
  border-color: rgba(99, 148, 190, 0.34) !important;
  background: linear-gradient(180deg, rgba(12, 30, 51, 0.9), rgba(7, 20, 36, 0.92)) !important;
  color: #edf8ff !important;
  font-size: 13px;
  font-weight: 650;
  outline: none;
}

body.ai-news-page .control:focus {
  border-color: var(--ai-line-strong) !important;
  box-shadow: 0 0 0 2px rgba(34, 205, 255, 0.13) !important;
}

body.ai-news-page #news-category {
  border-color: rgba(34, 122, 255, 0.88) !important;
  box-shadow: 0 0 0 1px rgba(34, 122, 255, 0.24), 0 0 22px rgba(28, 95, 255, 0.14) !important;
}

body.ai-news-page #news-query {
  min-width: 0;
  padding-right: 38px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a7bdd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(8, 22, 38, 0.76), rgba(5, 17, 31, 0.88)) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: right 12px center, center !important;
  background-size: 17px 17px, cover !important;
}

body.ai-news-page #news-updated {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: #d5e6f7 !important;
  font-size: 12px;
  font-weight: 680;
}

body.ai-news-page .news-summary {
  gap: 9px;
  margin: 0 0 5px;
}

body.ai-news-page .news-summary-pill {
  min-height: 27px;
  padding: 5px 12px;
  border-radius: 999px !important;
  border-color: rgba(85, 160, 207, 0.28) !important;
  background: linear-gradient(180deg, rgba(20, 45, 66, 0.78), rgba(8, 26, 45, 0.84)) !important;
  color: #e5f4ff !important;
  font-size: 12px;
  font-weight: 680;
}

body.ai-news-page .news-tools-strip {
  margin: 0 0 12px;
  padding: 5px 0 7px;
  overflow: visible;
  border: 0 !important;
  border-top: 1px solid rgba(65, 151, 206, 0.16) !important;
  border-bottom: 1px solid rgba(65, 151, 206, 0.18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.ai-news-page .news-tools-title,
body.ai-news-page .news-section-heading,
body.ai-news-page .news-health summary {
  margin: 0 0 7px;
  color: var(--ai-cyan) !important;
  font-family: var(--font-sans, system-ui, sans-serif) !important;
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

body.ai-news-page .news-tools-title::after,
body.ai-news-page .news-section-heading::after,
body.ai-news-page .news-health summary::after {
  content: " -";
  color: rgba(34, 217, 255, 0.68);
}

body.ai-news-page .news-tools-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
}

body.ai-news-page .news-tool-pill {
  position: relative;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 38px;
  gap: 7px;
  padding: 5px 7px;
  overflow: visible;
  border-radius: 7px !important;
  border-color: rgba(83, 144, 190, 0.31) !important;
  background: linear-gradient(145deg, rgba(20, 43, 64, 0.82), rgba(9, 26, 45, 0.88)) !important;
  color: var(--ai-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.ai-news-page .news-tool-pill:hover {
  z-index: 20;
  border-color: rgba(34, 205, 255, 0.72) !important;
  background: linear-gradient(145deg, rgba(24, 64, 88, 0.88), rgba(9, 34, 58, 0.94)) !important;
  text-decoration: none !important;
}

body.ai-news-page .news-tool-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 35% 20%, rgba(34, 217, 255, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(40, 59, 169, 0.88), rgba(8, 28, 58, 0.9));
  color: var(--ai-cyan);
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.ai-news-page .news-tool-copy {
  display: block;
  min-width: 0;
}

body.ai-news-page .news-tool-name {
  display: block;
  overflow: hidden;
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ai-news-page .news-tool-meta {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  left: 50%;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 8px 10px;
  border: 1px solid rgba(34, 205, 255, 0.54);
  border-radius: 7px;
  background: rgba(2, 14, 28, 0.98);
  color: #c8d8e8 !important;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

body.ai-news-page .news-tool-pill:first-child .news-tool-meta {
  left: 0;
  transform: translate(0, -4px);
}

body.ai-news-page .news-tool-pill:last-child .news-tool-meta {
  right: 0;
  left: auto;
  transform: translate(0, -4px);
}

body.ai-news-page .news-tool-pill:hover .news-tool-meta,
body.ai-news-page .news-tool-pill:focus-visible .news-tool-meta {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.ai-news-page .news-tool-pill:first-child:hover .news-tool-meta,
body.ai-news-page .news-tool-pill:first-child:focus-visible .news-tool-meta,
body.ai-news-page .news-tool-pill:last-child:hover .news-tool-meta,
body.ai-news-page .news-tool-pill:last-child:focus-visible .news-tool-meta {
  transform: translate(0, 0);
}

body.ai-news-page .news-health {
  margin: 0 0 7px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.ai-news-page .news-health summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

body.ai-news-page .news-health summary::-webkit-details-marker {
  display: none;
}

body.ai-news-page .news-health[open] {
  padding: 0 0 10px;
}

body.ai-news-page .news-health-body,
body.ai-news-page .news-health-line,
body.ai-news-page .news-health-errors {
  color: var(--ai-muted) !important;
}

body.ai-news-page .news-lead-story {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 11px;
  margin: 0 0 11px;
  padding: 8px;
  border-radius: 8px !important;
  border-color: rgba(39, 147, 214, 0.35) !important;
  background: linear-gradient(145deg, rgba(4, 24, 42, 0.76), rgba(1, 13, 28, 0.9)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.ai-news-page .news-lead-story img {
  height: 100%;
  min-height: 205px;
  max-height: none;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  box-shadow: none !important;
}

body.ai-news-page .news-lead-body {
  max-height: 240px;
  overflow: hidden;
  align-self: center;
  padding: 2px 10px 4px;
}

body.ai-news-page .news-lead-body .eyebrow {
  color: var(--ai-cyan) !important;
  font-family: var(--font-sans, system-ui, sans-serif) !important;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

body.ai-news-page .news-lead-title {
  margin: 6px 0 8px;
  color: var(--ai-cyan) !important;
  font-size: 27px;
  font-weight: 850;
  line-height: 1.05;
}

body.ai-news-page .news-lead-title:hover {
  color: #80efff !important;
  text-decoration: none;
}

body.ai-news-page .news-meta {
  color: #afc4d9 !important;
  font-size: 12px;
  font-weight: 620;
}

body.ai-news-page .news-lead-what,
body.ai-news-page .news-why,
body.ai-news-page .news-impact {
  color: #f0f7ff !important;
  font-size: 13px;
  line-height: 1.34;
}

body.ai-news-page .news-lead-what {
  margin-top: 9px;
}

body.ai-news-page .news-impact {
  margin-top: 7px;
  padding-top: 6px;
  border-top-color: rgba(64, 177, 235, 0.18) !important;
}

body.ai-news-page .news-signal-section {
  margin-top: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.ai-news-page .news-signal-section + .news-signal-section {
  margin-top: 15px;
}

body.ai-news-page .news-section-heading {
  padding: 0;
  border: 0 !important;
}

body.ai-news-page .news-inner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 0 0 14px;
}

body.ai-news-page .news-card,
body.ai-news-page .news-card.featured,
body.ai-news-page .news-card.compact {
  grid-column: span 1;
  border-radius: 8px !important;
  border-color: rgba(39, 147, 214, 0.3) !important;
  background: linear-gradient(145deg, rgba(4, 22, 40, 0.82), rgba(2, 14, 28, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.ai-news-page .news-card:hover {
  border-color: rgba(34, 205, 255, 0.6) !important;
}

body.ai-news-page .news-card-img,
body.ai-news-page .news-card.compact .news-card-img {
  height: auto;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  object-position: center;
  background: #061426;
  box-shadow: none !important;
}

body.ai-news-page .news-source-group {
  grid-column: 1 / -1;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px !important;
  border: 1px solid rgba(39, 147, 214, 0.34) !important;
  background: linear-gradient(145deg, rgba(4, 22, 40, 0.84), rgba(2, 14, 28, 0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.ai-news-page .news-source-group:hover {
  border-color: rgba(34, 205, 255, 0.62) !important;
}

body.ai-news-page .news-source-group-img {
  width: 100%;
  height: 210px;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #061426;
  -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 66%, transparent 100%);
}

body.ai-news-page .news-source-group-body {
  min-width: 0;
  padding: 14px 15px 15px;
}

body.ai-news-page .news-source-group-title {
  display: block;
  color: var(--ai-cyan) !important;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.13;
}

body.ai-news-page .news-source-group-title:hover,
body.ai-news-page .news-source-brief-title:hover {
  color: #8df1ff !important;
  text-decoration: none;
}

body.ai-news-page .news-source-group-deck {
  margin: 9px 0 0;
  color: #d7e6f4 !important;
  font-size: 13px;
  line-height: 1.4;
}

body.ai-news-page .news-source-briefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 12px;
}

body.ai-news-page .news-source-brief {
  padding: 10px 0 0;
  border-top: 1px solid rgba(64, 177, 235, 0.14);
}

body.ai-news-page .news-source-brief + .news-source-brief {
  margin-top: 0;
}

body.ai-news-page .news-source-brief-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

body.ai-news-page .news-source-brief-badges .badge {
  padding: 2px 6px;
  border-radius: 999px !important;
  border-color: rgba(143, 196, 224, 0.18) !important;
  background: rgba(146, 202, 231, 0.1) !important;
  color: #d6eaff !important;
  font-size: 8.5px;
  font-weight: 780;
}

body.ai-news-page .news-source-brief-title {
  color: var(--ai-cyan) !important;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.24;
}

body.ai-news-page .news-source-brief p {
  margin: 6px 0 0;
  color: #c5d6e8 !important;
  font-size: 13px;
  line-height: 1.38;
}

body.ai-news-page .news-source-group-why {
  margin: 12px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(64, 177, 235, 0.16);
  color: #dceeff !important;
  font-size: 13px;
  line-height: 1.38;
}

body.ai-news-page .news-card-body {
  padding: 12px 13px 13px;
}

body.ai-news-page .news-card-badges {
  gap: 5px;
  margin-bottom: 9px;
}

body.ai-news-page .news-card-badges .badge {
  padding: 3px 6px;
  border-radius: 999px !important;
  border-color: rgba(143, 196, 224, 0.2) !important;
  background: rgba(146, 202, 231, 0.12) !important;
  color: #d6eaff !important;
  font-size: 9px;
  font-weight: 780;
}

body.ai-news-page .news-card-badges .signal-badge {
  color: var(--ai-cyan) !important;
}

body.ai-news-page .news-card-title {
  color: var(--ai-cyan) !important;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.22;
}

body.ai-news-page .news-card-title:hover {
  color: #8df1ff !important;
  text-decoration: none;
}

body.ai-news-page .news-card p {
  color: #c5d6e8 !important;
  font-size: 13px;
  line-height: 1.38;
}

body.ai-news-page .news-card .news-why {
  color: #dceeff !important;
  border-top-color: rgba(64, 177, 235, 0.16) !important;
}

body.ai-news-page footer {
  margin: 19px 0 0;
  color: #90a9c4 !important;
  font-size: 12px;
}

@media (max-width: 1180px) {
  body.ai-news-page header#site-nav,
  body.ai-news-page main.container {
    width: min(1152px, calc(100% - 24px));
  }

  body.ai-news-page main.container {
    padding-right: 22px;
    padding-left: 22px;
  }

  body.ai-news-page .news-controls {
    grid-template-columns: repeat(4, minmax(145px, 1fr));
  }

  body.ai-news-page #news-query {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body.ai-news-page {
    background-attachment: scroll !important;
  }

  body.ai-news-page header#site-nav {
    top: 8px;
    margin-top: 10px;
  }

  body.ai-news-page header#site-nav > nav {
    padding: 10px 12px;
  }

  body.ai-news-page header#site-nav .links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body.ai-news-page header#site-nav .links::-webkit-scrollbar {
    display: none;
  }

  body.ai-news-page main.container {
    padding: 11px 16px 28px;
  }

  body.ai-news-page .hero-editorial.ai-news-hero {
    min-height: 150px;
    padding: 22px 24px !important;
  }

  body.ai-news-page .ai-news-hero h1 {
    font-size: 34px;
  }

  body.ai-news-page .ai-news-hero .lede {
    font-size: 14px;
  }

  body.ai-news-page .news-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ai-news-page .news-tools-row,
  body.ai-news-page .news-inner-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.ai-news-page .news-tools-row {
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 5px;
  }

  body.ai-news-page .news-lead-story {
    grid-template-columns: 1fr;
  }

  body.ai-news-page .news-lead-story img {
    height: auto;
    aspect-ratio: 1.91 / 1;
    min-height: 0;
    max-height: 340px;
  }

  body.ai-news-page .news-lead-body {
    max-height: none;
    overflow: visible;
  }

  body.ai-news-page .news-source-group-img {
    height: 220px;
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  body.ai-news-page header#site-nav,
  body.ai-news-page main.container {
    width: calc(100% - 16px);
  }

  body.ai-news-page main.container {
    padding: 8px 10px 24px;
  }

  body.ai-news-page .hero-editorial.ai-news-hero {
    min-height: 0;
    padding: 18px 16px !important;
    border-radius: 11px !important;
  }

  body.ai-news-page .ai-news-hero h1 {
    font-size: 30px;
  }

  body.ai-news-page .news-controls,
  body.ai-news-page .news-inner-grid,
  body.ai-news-page .news-source-briefs {
    grid-template-columns: 1fr;
  }

  body.ai-news-page .news-tool-pill {
    min-height: 38px;
  }

  body.ai-news-page .news-lead-title {
    font-size: 24px;
  }

  body.ai-news-page .news-card-img,
  body.ai-news-page .news-card.compact .news-card-img {
    height: auto;
    aspect-ratio: 1.91 / 1;
  }

  body.ai-news-page .news-source-group-img {
    height: 164px;
    min-height: 164px;
  }
}
