/* 2026 light facelift: shared visual language for the public application. */

:root {
  --bg0: #f7f8fa;
  --bg1: #ffffff;
  --bg2: #f5f7f9;
  --card: #ffffff;
  --card2: #f8fafb;
  --stroke: #dfe4ea;
  --stroke2: #c8d0da;
  --text: #172033;
  --muted: #475467;
  --gold: #a97808;
  --gold-soft: #fff8df;
  --gold-rgb: 169, 120, 8;
  --silver: #64748b;
  --follow-gold: #a97808;
  --follow-gold-soft: #fff8df;
  --follow-silver: #d8e1ec;
  --follow-silver-soft: #eef4fb;
  --follow-silver-text: #223247;
  --pos: #147a55;
  --neg: #b42318;
  --shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
  --radius: 8px;
  --egm-canvas: #f5f7f9;
  --egm-panel: #ffffff;
  --egm-ink: #172033;
  --egm-on-gold: #0f172a;
  --egm-muted: #475467;
  --egm-faint: #667085;
  --egm-line: #dfe4ea;
  --egm-line-strong: #c8d0da;
  --egm-gold: #a97808;
  --egm-gold-dark: #745204;
  --egm-gold-soft: #fff8df;
  --egm-green: #147a55;
  --egm-red: #b42318;
  --egm-blue: #2e5fa7;
}

html {
  background: var(--egm-canvas);
}

body {
  min-width: 320px;
  color: var(--egm-ink);
  background: var(--egm-canvas) !important;
  background-image: none !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.bg {
  display: none;
}

a {
  color: inherit;
}

.container {
  width: min(1600px, calc(100% - 48px));
  margin: 24px auto 40px;
}

.container--header {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 150;
}

.container--header > [x-data] {
  width: 100%;
}

/* Preserve the product's live pulse, but make both tapes quieter and clearer. */
.brand__headline-bar {
  min-height: 38px;
  margin: 0;
  padding: 7px clamp(18px, 3vw, 48px);
  border: 0;
  border-radius: 0;
  background: #172033;
  box-shadow: none;
}

.brand__headline-label {
  padding: 2px 7px;
  border-radius: 3px;
  background: #f0d98e;
  color: #3f3004;
}

.brand__headline-updated,
.brand__headline-time,
.brand__headline-why {
  color: #aeb8c8;
}

.brand__headline-item,
.brand__headline-text {
  color: #f8fafc;
}

.brand__headline-kind {
  border-radius: 3px;
  background: #344054;
  color: #f2f4f7;
}

.brand__headline-kind--news,
.brand__headline-kind--impact-high {
  background: #5e4704;
  color: #fff8df;
}

.brand__headline-kind--mover {
  background: #155b43;
  color: #d6f5e8;
}

.brand__headline-kind--metals,
.brand__headline-kind--impact-medium {
  background: #284e82;
  color: #e5efff;
}

.topbar {
  min-height: 98px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--egm-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.brand__photo {
  width: 68px;
  height: 68px;
  margin: 15px 0 15px clamp(18px, 3vw, 48px);
  border: 1px solid var(--egm-line-strong);
  border-radius: 50%;
  box-shadow: none;
}

.brand__photo-img {
  object-position: center 12%;
}

.brand__right {
  padding: 10px clamp(18px, 3vw, 48px) 11px 18px;
}

.brand__ticker {
  min-height: 27px;
  gap: 14px;
}

.brand__prices {
  padding-right: 14px;
  border-right-color: var(--egm-line);
}

.brand__price-label,
.brand__price-updated,
.brand__ticker-label,
.brand__market-session {
  color: var(--egm-muted);
}

.brand__price-val,
.brand__market-symbol,
.brand__market-price {
  color: var(--egm-ink);
}

.brand__prices-sep,
.brand__build {
  color: var(--egm-faint);
}

.brand__price-chg--pos,
.brand__market-move--pos {
  color: var(--egm-green);
}

.brand__price-chg--neg,
.brand__market-move--neg {
  color: var(--egm-red);
}

.brand__scroll-item {
  color: var(--egm-muted);
}

.brand__scroll-item::before {
  color: var(--egm-line-strong);
}

.brand__scroll-item--market:hover {
  color: var(--egm-ink);
}

.brand__bottom {
  align-items: center;
  gap: 18px;
}

.brand__title {
  color: var(--egm-ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: 0;
}

.brand__title--gold {
  color: var(--egm-gold-dark);
}

.brand__sub {
  color: var(--egm-muted);
  font-size: 11px;
}

.topbar__nav {
  gap: 2px;
}

.navlink {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--egm-muted);
  font-size: 13px;
  font-weight: 650;
}

.navlink:hover,
.navlink[aria-current="page"] {
  border-bottom-color: var(--egm-gold);
  background: transparent;
  color: var(--egm-ink);
}

/* Shared work surfaces. */
.panel,
.card,
.modal__card,
.admin-card,
.admin-inspector-card,
.admin-mailbox-card,
.admin-stat-card {
  border-color: var(--egm-line);
  border-radius: 8px;
  background: var(--egm-panel);
  background-image: none;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.panel__head,
.modal__head,
.admin-card__head {
  border-color: var(--egm-line);
}

.h2,
.h3,
.card__title,
.card__title--gold,
.card__title--silver,
.card__title--mixed,
.tdtitle,
.modal__title {
  color: var(--egm-ink);
  letter-spacing: 0;
}

.muted,
.small,
.card__context-copy,
.card__context-detail,
.card__jurisdiction,
.cmetric__label,
.slider__hint {
  color: var(--egm-muted);
}

.divider {
  background: var(--egm-line);
}

.btn {
  min-height: 38px;
  border-radius: 6px;
  box-shadow: none;
}

.btn--gold,
.btn--highlight {
  border-color: var(--egm-ink);
  background: var(--egm-ink);
  color: #ffffff;
}

.btn--gold:hover,
.btn--highlight:hover {
  border-color: #29364b;
  background: #29364b;
  color: #ffffff;
}

.btn--ghost {
  border-color: var(--egm-line-strong);
  background: var(--egm-panel);
  color: var(--egm-ink);
}

.btn--ghost:hover {
  border-color: var(--egm-gold);
  background: var(--egm-gold-soft);
  color: var(--egm-on-gold);
}

.pill,
.badge,
.preset-pill,
.card-chip,
.pol-badge,
.score-badge {
  border-radius: 4px;
}

.pill--gold,
.preset-pill--active {
  border-color: #e5ca78;
  background: var(--egm-gold-soft);
  color: var(--egm-gold-dark);
}

.input,
.select,
.field input,
.field select,
.field textarea,
.admin-textarea,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
select,
textarea {
  border-color: var(--egm-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--egm-ink);
  box-shadow: none;
}

.input:focus,
.select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--egm-gold);
  box-shadow: 0 0 0 3px rgba(169, 120, 8, 0.12);
  outline: 0;
}

.tablewrap,
.m3-table-wrap {
  border-color: var(--egm-line);
  border-radius: 8px;
  background: #ffffff;
}

.table th,
.admin-table th {
  background: #f8fafb;
  color: var(--egm-muted);
}

.table td,
.table th,
.admin-table td,
.admin-table th {
  border-color: var(--egm-line);
}

.footer,
.home-footer-note {
  color: var(--egm-muted);
  border-color: var(--egm-line);
}

.footer a,
.home-footer-note a {
  color: var(--egm-ink);
}

/* Home: a photographic brand hero, followed by practical product proof. */
.home-hero {
  min-height: min(470px, calc(100vh - 160px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  margin: 0 0 30px;
  padding: clamp(38px, 7vw, 78px);
  border: 2px solid #d3ad45;
  border-radius: 8px;
  text-align: left;
  background-color: #172033;
  background-image:
    linear-gradient(90deg, rgba(11, 18, 34, 0.94) 0%, rgba(11, 18, 34, 0.82) 48%, rgba(11, 18, 34, 0.66) 72%, rgba(11, 18, 34, 0.2) 100%),
    url('/images/eve-right.jpg');
  background-position: center, 78% 26%;
  background-size: cover;
  box-shadow: none;
}

.home-hero__eyebrow {
  margin-bottom: 14px;
  color: #f0d98e;
  letter-spacing: 0;
}

.home-hero__title {
  max-width: 680px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero__title span {
  color: #f4dd93;
}

.home-hero__sub {
  max-width: 610px;
  margin: 0 0 28px;
  color: #f2f4f7;
  font-size: 1.05rem;
}

.home-hero .btn--gold {
  border-color: #f0d98e;
  background: #f0d98e;
  color: #172033;
}

.home-hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(23, 32, 51, 0.35);
  color: #ffffff;
}

.home-welcome {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "copy video" "details video";
  gap: 24px clamp(28px, 4vw, 56px);
  align-items: start;
  text-align: left;
  margin: 0 auto 28px;
  padding: 44px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Keep the introduction together; legacy tablet rules must not centre the copy. */
.home-welcome__copy {
  grid-area: copy;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.home-welcome__details { grid-area: details; min-width: 0; }
.home-welcome__actions { justify-content: flex-start; margin-top: 22px; }
.home-welcome__title { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; }
.home-welcome__sub { max-width: 62ch; line-height: 1.6; }
.home-welcome__points { max-width: none; margin-top: 0; }

.home-welcome__eyebrow,
.home-miners__label {
  color: var(--egm-gold-dark);
  letter-spacing: 0;
}

.home-welcome__title,
.home-welcome__title span,
.home-welcome__point,
.home-welcome__point strong {
  color: var(--egm-ink);
}

.home-welcome__sub {
  color: var(--egm-muted);
}

.home-welcome__point > span:first-child {
  color: var(--egm-gold);
}

.home-welcome__video {
  grid-area: video;
  min-width: 0;
  align-self: center;
  border: 2px solid #d3ad45;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.14);
}

.home-welcome__overlay-cta {
  border: 1px solid #f0d98e;
  border-radius: 6px;
  background: #f0d98e;
  color: #172033;
  box-shadow: none;
}

.home-features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 52px;
  border-top: 1px solid var(--egm-line);
  border-bottom: 1px solid var(--egm-line);
}

.home-feature {
  padding: 28px 24px;
  border: 0;
  border-right: 1px solid var(--egm-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.home-feature:last-child {
  border-right: 0;
}

.home-feature__icon {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.home-feature__title {
  color: var(--egm-ink);
}

.home-feature__desc {
  color: var(--egm-muted);
}

.home-miners {
  margin: 46px 0;
  text-align: left;
}

.home-miners__logos {
  justify-content: flex-start;
}

.home-miners__pill {
  border-color: var(--egm-line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--egm-muted);
}

@media (max-width: 1100px) {
  .home-welcome {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "video" "details";
    gap: 24px;
    max-width: 900px;
    padding: 32px 0;
  }
  .home-welcome__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 980px) {
  .brand__photo {
    width: 58px;
    height: 58px;
  }

  .brand__sub {
    display: none;
  }

  .home-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature:nth-child(2) {
    border-right: 0;
  }

  .home-feature:nth-child(-n + 2) {
    border-bottom: 1px solid var(--egm-line);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1600px);
    margin-top: 16px;
  }

  .brand__headline-bar {
    min-height: 34px;
    padding: 6px 14px;
  }

  .brand__headline-meta {
    display: none;
  }

  .topbar {
    min-height: 0;
    align-items: center;
    padding: 10px 14px;
  }

  .brand__photo {
    width: 42px;
    height: 42px;
    margin: 0 10px 0 0;
  }

  .brand__right {
    padding: 0;
  }

  .brand__ticker {
    order: 2;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--egm-line);
  }

  .brand__prices {
    display: none;
  }

  .brand__ticker-label {
    display: none;
  }

  .brand__bottom {
    align-items: center;
  }

  .brand__title {
    font-size: 1.15rem;
  }

  .topbar__nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .topbar__nav::-webkit-scrollbar {
    display: none;
  }

  .navlink {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .home-hero {
    min-height: 520px;
    padding: 34px 24px;
    background-image:
      linear-gradient(0deg, rgba(11, 18, 34, 0.96) 0%, rgba(11, 18, 34, 0.6) 58%, rgba(11, 18, 34, 0.08) 100%),
      url('/images/eve-right.jpg');
    background-position: center, 55% 18%;
  }

  .home-hero__title {
    font-size: clamp(2.35rem, 13vw, 3.55rem);
  }

  .home-welcome {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .home-welcome__copy {
    align-items: flex-start;
    text-align: left;
  }

  .home-welcome__actions {
    justify-content: flex-start;
  }

  .home-welcome__points { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .home-features {
    grid-template-columns: 1fr;
  }

  .home-feature,
  .home-feature:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--egm-line);
  }

  .home-feature:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand__headline-track,
  .brand__scroll-track {
    animation-duration: 140s;
  }
}

/* Miner research: retain the dense evidence model while removing the dark card wall. */
.m3-shell {
  --m3-ink: #172033;
  --m3-muted: #475467;
  --m3-soft: #f8fafb;
  --m3-line: #dfe4ea;
  --m3-cream: #172033;
  --m3-gold: #745204;
  --m3-gold-strong: #745204;
  --m3-blue: #2e5fa7;
  --m3-green: #147a55;
  --m3-red: #b42318;
  --m3-orange: #a15c07;
  --m3-purple: #6941c6;
  --m3-panel: #ffffff;
  --m3-panel-strong: #ffffff;
  --m3-radius: 8px;
  --m3-shadow: 0 10px 28px rgba(23, 32, 51, 0.07);
  margin-top: 24px;
}

.m3-title-card,
.m3-summary-card,
.m3-score-card,
.m3-brief-card,
.m3-video-overview-card,
.m3-card,
.m3-card--plain,
.m3-card--chart {
  border-color: var(--egm-line);
  border-radius: 8px;
  background: #ffffff;
  background-image: none;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.m3-title-card__inner {
  padding: clamp(22px, 4vw, 38px);
}

.m3-title,
.m3-score-inline__value,
.m3-score-inline__stage,
.m3-card h2,
.m3-card h3,
.m3-summary-caption strong,
.m3-time strong,
.m3-metric strong {
  color: var(--egm-ink);
  letter-spacing: 0;
}

.m3-title {
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1;
}

.m3-kicker,
.m3-brief-feed__label {
  color: var(--egm-gold-dark);
  letter-spacing: 0;
}

.m3-lede,
.m3-summary-card p,
.m3-brief-card p,
.m3-card p,
.m3-summary-caption span,
.m3-time span,
.m3-metric span,
.m3-metric small,
.m3-video-overview-copy,
.m3-video-overview-meta {
  color: var(--egm-muted);
}

.m3-logo,
.m3-summary-portrait {
  border-color: var(--egm-line);
  border-radius: 8px;
  background: #ffffff;
}

.m3-pill {
  border-color: var(--egm-line);
  border-radius: 4px;
  background: #f8fafb;
  color: var(--egm-muted);
}

.m3-pill--gold {
  border-color: #e5ca78;
  background: var(--egm-gold-soft);
  color: var(--egm-gold-dark);
}

.m3-pill--green {
  border-color: #a9dfc9;
  background: #ecfdf5;
  color: var(--egm-green);
}

.m3-overview-head {
  margin: -20px -20px 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--egm-line);
  border-radius: 0;
  background: #f8fafb;
  color: var(--egm-ink);
  letter-spacing: 0;
}

.m3-title-card__score .m3-overview-head {
  border-radius: 0;
  background: #f8fafb;
  color: var(--egm-muted);
}

.m3-score-signal-pill {
  border-color: #e5ca78;
  border-radius: 4px;
  background: var(--egm-gold-soft);
  color: var(--egm-gold-dark);
}

.m3-trust-strip {
  border-top-color: var(--egm-line);
  background: var(--egm-line);
}

.m3-trust {
  background: #f8fafb;
}

.m3-trust span {
  color: var(--egm-muted);
  letter-spacing: 0;
}

.m3-trust strong {
  color: var(--egm-ink);
}

.m3-tabs {
  top: 0;
  padding: 5px 8px;
  border-color: var(--egm-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
}

.m3-tab {
  color: var(--egm-muted);
  letter-spacing: 0;
}

.m3-tab:hover,
.m3-tab[aria-selected="true"] {
  border-bottom-color: var(--egm-gold);
  background: var(--egm-gold-soft);
  color: var(--egm-ink);
}

.m3-sidebar {
  border-color: var(--egm-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
  backdrop-filter: none;
}

.m3-sidebar__title,
.m3-sidebar__link,
.m3-sidebar__link:hover,
.m3-sidebar__link.is-active {
  color: var(--egm-ink);
}

.m3-sidebar__title {
  letter-spacing: 0;
}

.m3-sidebar__section-head {
  border-radius: 4px;
  background: var(--egm-gold-soft);
  color: var(--egm-gold-dark);
  letter-spacing: 0;
}

.m3-sidebar__link:hover,
.m3-sidebar__link.is-active {
  border-left-color: var(--egm-gold);
  background: #f8fafb;
}

.m3-card > h2:first-child,
.m3-card > .m3-kicker:first-child + h2,
.m3-card > .m3-kicker:first-child {
  border-bottom: 1px solid var(--egm-line);
  border-radius: 0;
  background: #f8fafb;
  color: var(--egm-ink);
  text-shadow: none;
}

.m3-card > .m3-kicker:first-child {
  color: var(--egm-gold-dark);
}

.m3-metric,
.m3-time,
.m3-brief-item {
  border-color: var(--egm-line);
  border-radius: 6px;
  background: #f8fafb;
}

.m3-table-wrap {
  background: #ffffff;
}

.m3-table th,
.m3-table td {
  border-color: var(--egm-line);
}

.m3-table th {
  background: #f8fafb;
  color: var(--egm-muted);
  letter-spacing: 0;
}

.m3-table td,
.m3-table td.num,
.m3-table td.hi {
  color: var(--egm-ink);
}

.m3-table tr:hover td {
  background: #f8fafb;
}

.m3-disclosure,
.m3-deep-link {
  border-color: #e5ca78;
  border-radius: 6px;
  background: var(--egm-gold-soft);
  color: var(--egm-gold-dark);
}

.m3-disclosure strong,
.m3-deep-link::after {
  color: var(--egm-gold-dark);
}

/* News and social pages use repeated cards because each item is independently actionable. */
.miners-news-shell,
.socials-shell {
  padding-top: 28px;
}

.miners-news-hero,
.socials-hero {
  padding: 18px 0 24px;
  border: 0;
  border-bottom: 1px solid var(--egm-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.miners-news-hero__eyebrow,
.socials-hero__eyebrow {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--egm-gold-dark);
  letter-spacing: 0;
}

.miners-news-hero__title,
.miners-news-hero__title span,
.socials-hero__title,
.socials-hero__title span {
  color: var(--egm-ink);
  letter-spacing: 0;
}

.miners-news-hero__sub,
.socials-hero__sub {
  color: var(--egm-muted);
}

.miners-news-panel,
.socials-panel,
.socials-raw,
.socials-lane,
.socials-trust-card,
.miners-news-empty,
.miners-news-error,
.socials-empty,
.socials-error {
  border-color: var(--egm-line);
  border-radius: 8px;
  background: #ffffff;
  background-image: none;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.miners-news-input,
.miners-news-select,
.socials-input {
  border-color: var(--egm-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--egm-ink);
}

.miners-news-input::placeholder,
.socials-input::placeholder {
  color: var(--egm-faint);
}

.miners-news-list .news-item,
.social-item {
  border-color: var(--egm-line);
  border-left-color: var(--egm-gold);
  border-radius: 6px;
  background: #ffffff;
  background-image: none;
  box-shadow: none;
}

.miners-news-list .news-item:hover,
.social-item:hover {
  border-color: var(--egm-line-strong);
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
}

.miners-news-item__logo,
.social-item__company {
  border-color: var(--egm-line);
  background: #f8fafb;
}

.miners-news-item__company,
.miners-news-list .news-item__title,
.social-item__title,
.socials-lane__title,
.socials-raw__title {
  color: var(--egm-ink);
}

.miners-news-item__company-note,
.miners-news-list .news-item__summary,
.social-item__summary,
.social-item__meta,
.socials-lane__copy,
.socials-raw__copy,
.socials-trust-card__text {
  color: var(--egm-muted);
}

.miners-news-item__ticker,
.miners-news-focus__pill,
.socials-focus__pill,
.socials-mode__button.is-active {
  border-color: #e5ca78;
  border-radius: 4px;
  background: var(--egm-gold-soft);
  color: var(--egm-gold-dark);
}

.socials-mode__button {
  border-color: var(--egm-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--egm-ink);
}

.socials-lane__count,
.socials-lane__empty {
  border-color: var(--egm-line);
  border-radius: 4px;
  background: #f8fafb;
  color: var(--egm-muted);
}

.socials-trust-card__label {
  color: var(--egm-gold-dark);
  letter-spacing: 0;
}

/* Settings, billing, access, sign-in and confirmation. */
.settings-section,
.following-item,
.following-status,
.agent-panel,
.agent-card,
.early-banner,
.plan,
.feature,
.access-card,
.confirm-brand,
.confirm-card {
  border-color: var(--egm-line);
  border-radius: 8px;
  background: #ffffff;
  background-image: none;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.settings-section__title,
.early-banner__title,
.access-eyebrow,
.confirm-kicker,
.agent-card__title,
.agent-kv__label {
  color: var(--egm-gold-dark);
  letter-spacing: 0;
}

.settings-row,
.plan__features li,
.confirm-divider,
.agent-kv__item {
  border-color: var(--egm-line);
}

.toggle[aria-checked="true"] {
  background: var(--egm-gold);
}

.upgrade-hero h1,
.plan__price,
.feature__name,
.access-title,
.access-card h2,
.confirm-title,
.confirm-brand__title,
.confirm-list__item,
.confirm-list__item strong,
.login-logo .title {
  color: var(--egm-ink);
  letter-spacing: 0;
}

.access-title span,
.confirm-brand__title span {
  color: var(--egm-gold-dark);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.access-card p,
.access-help,
.access-sub,
.confirm-copy,
.confirm-note,
.confirm-brand__sub,
.login-logo .sub {
  color: var(--egm-muted);
}

.access-eyebrow,
.confirm-kicker {
  padding: 5px 8px;
  border-color: #e5ca78;
  border-radius: 4px;
  background: var(--egm-gold-soft);
}

.login-shell,
.access-shell,
.confirm-wrap {
  background: var(--egm-canvas);
}

.login-top a {
  border-color: var(--egm-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--egm-ink);
}

.login-top a:hover {
  border-color: var(--egm-gold);
  color: var(--egm-gold-dark);
}

.msg--muted {
  border-color: var(--egm-line);
  background: #ffffff;
  color: var(--egm-muted);
}

.confirm-brand__top {
  border-color: var(--egm-line);
  background: #f8fafb;
  color: var(--egm-muted);
}

.confirm-brand__photo {
  border-color: var(--egm-line-strong);
  border-radius: 8px;
}

/* Agent access keeps the explanatory hierarchy but drops decorative containers. */
.agentic-page {
  gap: 18px;
}

.agentic-header {
  border: 1px solid var(--egm-line);
  border-radius: 8px;
  background: #ffffff;
}

.agentic-hero,
.agentic-section,
.agentic-callout {
  border-color: var(--egm-line);
  border-radius: 8px;
  background: #ffffff;
  background-image: none;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
  backdrop-filter: none;
}

.agentic-title,
.agentic-title span,
.agentic-section h2,
.agentic-card h3,
.agentic-callout__copy h2,
.agentic-avatar__name {
  color: var(--egm-ink);
  letter-spacing: 0;
}

.agentic-eyebrow,
.agentic-avatar__eyebrow,
.agentic-stat__label {
  color: var(--egm-gold-dark);
  letter-spacing: 0;
}

.agentic-avatar,
.agentic-stat,
.agentic-card {
  border-color: var(--egm-line);
  border-radius: 6px;
  background: #f8fafb;
  background-image: none;
}

.agentic-avatar img {
  border-color: var(--egm-line-strong);
  border-radius: 6px;
  box-shadow: none;
}

.agentic-button {
  border-radius: 6px;
}

.agentic-button--primary {
  border-color: var(--egm-ink);
  background: var(--egm-ink);
  color: #ffffff;
}

.agentic-button--secondary {
  border-color: var(--egm-line-strong);
  background: #ffffff;
  color: var(--egm-ink);
}

@media (max-width: 760px) {
  .m3-shell {
    width: min(100% - 28px, 1600px);
    margin-top: 16px;
  }

  .m3-title-card__inner {
    padding: 22px 18px;
  }

  .m3-title {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .m3-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .m3-tabs::-webkit-scrollbar {
    display: none;
  }

  .m3-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .m3-tab-actions {
    flex: 0 0 auto;
  }

  .miners-news-shell,
  .socials-shell {
    padding-top: 12px;
  }

  .miners-news-panel,
  .socials-panel,
  .socials-raw,
  .socials-lane {
    padding: 14px;
  }

  .upgrade-wrap,
  .settings-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .agentic-header .brand__bottom {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    align-items: flex-start;
    flex-direction: column;
  }

  .agentic-header .topbar__nav {
    max-width: 100%;
  }
}

/* Pale gold controls use navy ink throughout the light application.
   Opaque fills also keep their labels readable inside darker source readers. */
.btn:not(.btn--gold):not(.btn--highlight):not(.btn--ghost):not(.btn--danger) {
  color: var(--egm-on-gold);
  background: linear-gradient(180deg, #ece1c9, #f6f2e6);
}
.btn:not(.btn--gold):not(.btn--highlight):not(.btn--ghost):not(.btn--danger):hover {
  color: var(--egm-on-gold);
  background: linear-gradient(180deg, #e7d9ba, #f4edde);
}

.miners-news-action,
.miners-news-action:visited,
.miners-news-action:hover,
.miners-news-action:focus-visible {
  color: var(--egm-on-gold);
  background: #f8f4eb;
}
.miners-news-action--primary,
.miners-news-action--primary:visited,
.miners-news-action--primary:hover,
.miners-news-action--primary:focus-visible {
  background: #f1e9d7;
}
.miners-news-action--muted { color: #475467; }

.m3-visual-btn,
.m3-visual-btn:hover,
.m3-score-viz-expand,
.m3-score-viz-expand:hover {
  color: var(--egm-on-gold);
  background: #f1e9d7;
}

.home-hero .btn--gold,
.home-welcome__overlay-cta,
.tab-btn--active,
.tab-btn--active:hover,
.preset-pill--active,
.pill--gold,
.container--header .pill--gold,
.pill--medium,
.pill--review-deterministic,
.socials-mode__button.is-active,
.socials-mode__button.is-active:hover,
.social-item__lane,
.social-item__trust,
.miners-news-item__ticker,
.miners-news-focus__pill,
.socials-focus__pill,
.card-chip--metal-gold .card-chip__metal,
.watchlist-btn:hover,
.tbl__action-btn:hover,
.follow-bar--active,
.follow-bar--active:hover {
  color: var(--egm-on-gold);
}
.news-feed .news-item__badge,
.miners-news-list .news-item__badge {
  color: var(--egm-on-gold);
  background: #f1e9d7;
}
.miners-news-toolbar__links a,
.miners-news-focus__clear,
.socials-focus__clear,
.social-item__action {
  color: var(--egm-on-gold);
}

/* Disabled controls remain legible; borders and fills communicate the state. */
.btn:disabled,
.btn[aria-disabled="true"],
.miners-news-action:disabled,
.miners-news-action[aria-disabled="true"] {
  opacity: 1;
  color: #475467;
  background: #edf0f3;
  border-color: var(--egm-line-strong);
  cursor: not-allowed;
  box-shadow: none;
}
.btn:not(.btn--gold):not(.btn--highlight):not(.btn--ghost):not(.btn--danger):disabled,
.btn:not(.btn--gold):not(.btn--highlight):not(.btn--ghost):not(.btn--danger)[aria-disabled="true"] {
  color: #475467;
  background: #edf0f3;
}
.miners-news-action:focus-visible,
.btn:focus-visible,
.m3-visual-btn:focus-visible,
.m3-score-viz-expand:focus-visible {
  outline: 2px solid var(--egm-on-gold);
  outline-offset: 3px;
}

/* Text contrast audit: light surfaces use ink; gold is a fill or dark accent. */
.brand__title--gold {
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
}
.brand__title--link:hover .brand__title--gold { color: var(--egm-gold-dark); }
input::placeholder, textarea::placeholder { color: #667085; opacity: 1; }

/* Keep the brief preview and its explanation together, including on tablets. */
.m3-company-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.m3-shell .m3-company-brief__sheet {
  flex: 0 0 156px;
  width: 156px;
  height: 221px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .14);
}
.m3-shell .m3-company-brief__eyebrow { padding: 3px 6px; }
.m3-company-brief__copy { flex: 1 1 230px; max-width: 58ch; gap: 10px; }
.m3-company-brief__copy span { color: #475467; font-size: 12px; }
.m3-company-brief__copy strong { color: #172033; font-size: 20px; line-height: 1.3; }
.m3-company-brief__copy p { color: #475467; font-size: 15px !important; line-height: 1.65 !important; }
.m3-company-brief__footer span { color: #ffffff; }
.m3-score-dialog { background: #fffdf8; color: #172033; border-radius: 12px; }
.m3-score-dialog__close { width: 44px; height: 44px; color: #172033; background: #fff8df; }
.m3-score-dialog__close:focus-visible { outline: 2px solid #214e86; outline-offset: 2px; }
.m3-video-overview-cta { color: #0f172a; background: #f0d98e; }

.miners-news-load-state,
.miners-news-list .news-item__meta,
.miners-news-item__company-note,
.miners-news-list .news-item__action--muted,
.social-item__meta,
.socials-raw__meta { color: #475467; }
.miners-news-item__logo-fallback,
.miners-news-list .news-item__date,
.socials-raw__link,
.social-item__title:hover { color: #745204; }
.miners-news-error, .socials-error, .msg--error,
.agent-alert--err, .alert--err { color: #9f231b; }
.login-legal a { color: #475467; text-decoration: underline; }
.following-status__label, .following-item__name:hover,
.settings-section a, .agentic-nav a, .plan__eb-toggle strong { color: #745204; }
.agent-alert--warn { color: #745204; }
.danger-btn { color: #b42318; border-color: #b42318; }
.plan__saving, .alert--ok, .plan__features li::before { color: #116447; }

/* Semantic badges need dark versions of their red/green/blue colours. */
.pill--critical, .pill--high, .pill--review-rejected { color: #9f231b; }
.pill--low, .pill--review-ai, .social-item__lane--serious { color: #214e86; }
.pill--active, .pill--review-ai-approved, .pill--review-promoted,
.social-item__lane--official { color: #116447; }
.pill--inactive, .pill--review-snoozed { color: #475467; }
.pill--review-human { color: #98205d; }
.pill--review-overridden { color: #6941c6; }

/* Older screener routes share the same light palette. */
.filterbar, .results, .panel, .card, .filterbar__nl-search {
  background: #ffffff;
  background-image: none;
  color: #172033;
}
.preview-lock { opacity: 1; }
.preview-lock::after { background: #fff8df; color: #745204; }
.premium-bar__badge { color: #745204; opacity: 1; }
.slider__value.is-active, .presets__label, .view-btn--active,
.card__title--gold, .tbl__profile-chip--metal-gold .tbl__profile-metal,
.card-chip--metal-gold .card-chip__metal { color: #745204; }
.tip-icon--pol, .tip-wrap:hover .tip-icon--pol { color: #214e86; }
.tip-box { background: #172033; color: #ffffff; }
.legend__item--explorer { color: #6941c6; }
.relevance__tag--good, .pol-badge--med, .pol-score--med .pol-score__label,
.card-bubble--pol-med .card-bubble__label { color: #745204; }
.pol-badge--high, .pol-score--high .pol-score__label,
.card-bubble--pol-high .card-bubble__label { color: #b42318; }
.home-welcome__point > span:first-child { color: #745204; }
.legend__item--producer { color: #116447; }
.legend__item--developer { color: #214e86; }
.legend__item--royalty { color: #475467; }
.confirm-status--pending { color: #745204; }
.confirm-status--ok { color: #116447; }
.confirm-status--error { color: #b42318; }
.agentic-links a { color: #745204; }
.admin-stat-card, .inline-input { background: #ffffff; color: #172033; }
.admin-json, .source-editor-field__hint { color: #475467; }
.admin-banner--error { color: #9f231b; }
.source-editor-kicker, .source-editor-title-pill,
.badge--todo, .card-bubble--eve .card-bubble__label { color: #745204; }
.card__ticker-inline, .card__juris-label, .card__mines-sep,
.card__title--silver, .card__title--mixed { color: #172033; }
.card-chip--metal-silver .card-chip__metal,
.card-chip--stage-royalty .card-chip__stage { color: #475467; }
.card-chip--metal-mixed .card-chip__metal { color: #854a15; }
.card-chip--stage-producer .card-chip__stage,
.card-bubble--pol-low .card-bubble__label,
.relevance__tag--excellent { color: #116447; }
.card-chip--stage-developer .card-chip__stage,
.card-bubble--pol .card-bubble__label,
.relevance__label, .relevance__score { color: #214e86; }
.card-bubble--pol-low .card-bubble__label { color: #116447; }
.card-bubble--pol-med .card-bubble__label { color: #745204; }
.card-bubble--pol-high .card-bubble__label { color: #b42318; }
.card-chip--stage-explorer .card-chip__stage { color: #6941c6; }
.relevance__tag--fair { color: #475467; }
.btn--danger:hover, .btn--danger:focus-visible { background: #9f231b; border-color: #9f231b; color: #ffffff; }
.card-bubble__label { opacity: 1; }
/* Inline sign-in and shared dialogs also inherited dark backgrounds. */
.container--header [x-show="ui.authOpen"] {
  --gold: #745204;
  background: #fffdf8 !important;
  border-color: #dfe4ea !important;
  color: #172033;
}
.container--header [x-show="ui.authError"] { color: #b42318 !important; }
.container--header .pill { color: #172033 !important; }
.modal__card { background: #fffdf8; color: #172033; border-color: #dfe4ea; }
.modal__title { color: #172033; }

/* On tablets the copy crosses the photograph, so keep its entire backing dark. */
@media (max-width: 1100px) {
  .home-hero {
    background-image:
      linear-gradient(90deg, rgba(11, 18, 34, .88), rgba(11, 18, 34, .66)),
      url('/images/eve-right.jpg');
  }
}
.tip-box strong { color: #ffffff !important; }
