.feature-article--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 1.25rem;
  align-items: stretch;
}

.feature-article__media,
.article-card__media {
  background: #f0f3f7;
}

.feature-article__media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 100%;
}

.feature-article__media img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.investor-lens-card {
  border-color: rgba(var(--secondary-rgb), 0.24);
  background: linear-gradient(180deg, rgba(var(--secondary-rgb), 0.09), #fff);
}

.investor-lens-card .eyebrow {
  color: #0b603a;
}

.investment-article-layout .article-hero__copy h1 {
  text-wrap: balance;
}

.prose a[href^="http"] {
  color: #0b603a;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.share-actions {
  display: grid;
  gap: 0.75rem;
}

.share-actions .eyebrow {
  margin-bottom: 0;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-950);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.share-button span:first-child {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.34);
  background: rgba(var(--secondary-rgb), 0.08);
  color: #0b603a;
}

.share-button--facebook span:first-child {
  background: #1877f2;
  color: #fff;
}

.share-button--linkedin span:first-child {
  background: #0a66c2;
  color: #fff;
}

.share-button--instagram span:first-child {
  background: #111;
  color: #fff;
}

.share-button--x span:first-child {
  background: #000;
  color: #fff;
}

.share-status {
  margin: 0;
  color: #0b603a;
  font-size: 0.82rem;
  font-weight: 800;
}

.article-cover img[src$=".svg"],
.article-card__media img[src$=".svg"],
.feature-article__media img[src$=".svg"] {
  background: #f5f6f8;
}

.site-sidebar {
  background: #0d0d0d;
  border-right-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-sidebar .sidebar-inner {
  background: #0d0d0d;
}

.site-sidebar .brand--sidebar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.site-sidebar .brand-mark {
  background: #fff;
  color: #111;
}

.site-sidebar .brand-copy strong {
  color: #fff;
}

.site-sidebar .brand-copy span {
  color: rgba(255, 255, 255, 0.66);
}

.site-sidebar .nav-group {
  border-color: rgba(255, 255, 255, 0.12);
  background: #161616;
}

.site-sidebar .nav-group summary {
  color: #fff;
}

.site-sidebar .nav-group summary::after {
  color: #74d6a3;
}

.site-sidebar .site-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.site-sidebar .site-nav a:hover,
.site-sidebar .site-nav a:focus-visible,
.site-sidebar .site-nav a.is-active {
  background: rgba(116, 214, 163, 0.13);
  color: #fff;
}

.site-sidebar .sidebar-note {
  border-color: rgba(116, 214, 163, 0.28);
  background: rgba(116, 214, 163, 0.1);
}

.site-sidebar .sidebar-note span {
  color: #74d6a3;
}

.site-sidebar .sidebar-note strong {
  color: #fff;
}

.hero-panel.market-brief {
  overflow: hidden;
}

.market-brief > * {
  min-width: 0;
}

.market-brief h2 {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.18;
}

.market-brief p {
  overflow-wrap: anywhere;
}

.market-brief__list li {
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) max-content;
}

.market-brief__ticker {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
  line-height: 1.25;
}

.market-brief__ticker small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.market-brief__grade {
  justify-self: end;
  white-space: nowrap;
}

.market-brief .button {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  text-align: center;
}

.market-brief .button-primary {
  border-color: #fff;
  background: #fff;
  color: #111;
}

@media (max-width: 900px) {
  .feature-article--with-media {
    grid-template-columns: 1fr;
  }

  .feature-article__media img {
    min-height: 14rem;
  }
}

@media (max-width: 640px) {
  .market-brief__list li {
    grid-template-columns: auto minmax(0, 1fr) max-content;
  }

  .market-brief__grade {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .share-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .market-brief__list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .market-brief__grade {
    grid-column: 2;
    justify-self: start;
  }
}

/* Brand refresh: matches the new 5AM Shift logo palette. */
:root {
  --primary: #07081f;
  --primary-rgb: 7, 8, 31;
  --secondary: #18d8de;
  --secondary-rgb: 24, 216, 222;
  --accent: #aeda00;
  --accent-rgb: 174, 218, 0;
  --brand-gold: #f3ad14;
  --brand-cream: #f8f6dc;
  --background: #f4f7f8;
  --surface: #ffffff;
  --ink-950: #090b1f;
  --ink-900: #11162a;
}

body {
  background: var(--background);
}

.mobile-topbar {
  background: rgba(7, 8, 31, 0.97);
  border-bottom-color: rgba(24, 216, 222, 0.18);
  color: var(--brand-cream);
}

.mobile-topbar .brand-copy strong {
  color: var(--brand-cream);
}

.mobile-topbar .brand-copy span {
  color: rgba(248, 246, 220, 0.72);
}

.nav-toggle {
  background: #11162a;
  border-color: rgba(24, 216, 222, 0.26);
}

.nav-toggle span {
  background: var(--secondary);
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-logo--mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(24, 216, 222, 0.18);
}

.brand--sidebar.brand--logo {
  display: grid;
  gap: 0.8rem;
  align-items: start;
}

.site-sidebar .brand-logo--full {
  width: 100%;
  max-width: 14.5rem;
  height: auto;
  border: 1px solid rgba(24, 216, 222, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.footer-logo {
  width: min(18rem, 100%);
  height: auto;
  margin-bottom: 1rem;
  border: 1px solid rgba(24, 216, 222, 0.22);
  border-radius: 8px;
}

.site-sidebar,
.site-sidebar .sidebar-inner,
.site-footer,
.hero-panel,
.market-strip,
.stock-table-wrap {
  background: #07081f;
}

.site-sidebar {
  border-right-color: rgba(24, 216, 222, 0.14);
}

.site-sidebar .brand--sidebar {
  border-bottom-color: rgba(24, 216, 222, 0.16);
}

.site-sidebar .brand-copy span,
.site-footer p,
.site-footer li,
.market-brief p,
.market-brief__ticker small {
  color: rgba(248, 246, 220, 0.72);
}

.site-sidebar .nav-group {
  background: #10142a;
  border-color: rgba(24, 216, 222, 0.18);
}

.site-sidebar .nav-group summary::after {
  color: var(--accent);
}

.site-sidebar .site-nav a:hover,
.site-sidebar .site-nav a:focus-visible,
.site-sidebar .site-nav a.is-active {
  background: rgba(24, 216, 222, 0.14);
  color: var(--brand-cream);
}

.site-sidebar .sidebar-note {
  border-color: rgba(174, 218, 0, 0.32);
  background: rgba(174, 218, 0, 0.1);
}

.site-sidebar .sidebar-note span,
.eyebrow,
.hero-copy .eyebrow,
.investor-lens-card .eyebrow,
.prose a[href^="http"],
.share-status {
  color: #0faeb8;
}

.button-primary {
  background: linear-gradient(135deg, #07081f, #11162a);
  border-color: rgba(24, 216, 222, 0.24);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #11162a, #17203a);
}

.button-secondary,
.share-button:hover,
.share-button:focus-visible {
  border-color: rgba(24, 216, 222, 0.34);
  background: rgba(24, 216, 222, 0.08);
  color: #0a7f8a;
}

.market-brief .eyebrow,
.market-strip__label,
.market-brief__grade {
  color: var(--brand-gold);
}

.ticker-pill span:last-child,
.stock-card__grade,
.site-sidebar .sidebar-note span {
  color: var(--accent);
}

.market-brief .button-primary {
  background: var(--brand-cream);
  border-color: var(--brand-cream);
  color: #07081f;
}

.investor-lens-card,
.feature-article,
.article-card,
.subscribe-card {
  border-color: rgba(24, 216, 222, 0.2);
}

.investor-lens-card {
  background: linear-gradient(180deg, rgba(24, 216, 222, 0.08), #fff);
}

.article-card__category,
.feature-article__category {
  color: #0faeb8;
}

@media (max-width: 900px) {
  .brand-logo--mark {
    width: 2.5rem;
    height: 2.5rem;
  }
}
