/*
GoldEngine Market Fundamentals
Desktop owner
Viewport contract: >= 761px

This file is independently owned by Market Fundamentals.
Do not import Seasonality, Predictions, History or Accuracy CSS.
*/

:root {
  --ge-mf-text: #0b1020;
  --ge-mf-muted: #667085;
  --ge-mf-border: #e5e7eb;
  --ge-mf-surface: #ffffff;
  --ge-mf-soft: #f8fafc;
  --ge-mf-gold: #b99700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 0;
  background: #ffffff;
  color: var(--ge-mf-text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.ge-market-fundamentals-shell {
  width: calc(100% - 32px);
  max-width: 1408px;
  margin: 0 auto;
  padding: 32px 0 48px;
}

.ge-market-fundamentals-topbar {
  width: 100%;
}

.ge-market-fundamentals-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 6px;
  color: var(--ge-mf-text);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.ge-market-fundamentals-brand .mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  min-width: 42px;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--ge-mf-gold);
  border-radius: 50%;
  color: var(--ge-mf-gold);
  font-size: 17px;
  font-weight: 900;
}

.ge-tier-label {
  font: inherit;
  font-weight: 900;
}

.ge-market-fundamentals-announcement {
  margin: 8px 0 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.45;
}

.ge-market-fundamentals-announcement strong,
.ge-market-fundamentals-announcement span {
  display: block;
}

.ge-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.ge-nav-left,
.ge-nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ge-tab,
.ge-tier,
.ge-language-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--ge-mf-border);
  border-radius: 999px;
  background: #ffffff;
  color: #171717;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}

.ge-tab:hover,
.ge-tier:hover {
  background: #f7f7f7;
}

.ge-tab-active,
.ge-tab[aria-current="page"] {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

.ge-lang-switcher {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}

.ge-language-pill[aria-current="page"] {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

.ge-market-fundamentals-main {
  width: 100%;
}

.ge-market-fundamentals-hero {
  margin: 18px 0 0;
}

.ge-market-fundamentals-kicker {
  margin: 0 0 10px;
  color: var(--ge-mf-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ge-market-fundamentals-hero h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ge-market-fundamentals-lede {
  max-width: 1000px;
  margin: 12px 0 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.55;
}

.ge-market-fundamentals-card {
  width: 100%;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--ge-mf-border);
  border-radius: 18px;
  background: var(--ge-mf-surface);
}

.ge-market-fundamentals-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ge-market-fundamentals-card-label {
  margin: 0 0 6px;
  color: var(--ge-mf-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.ge-market-fundamentals-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.ge-market-fundamentals-status {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid var(--ge-mf-border);
  border-radius: 999px;
  color: var(--ge-mf-muted);
  font-size: 12px;
  font-weight: 700;
}

.ge-market-fundamentals-placeholder {
  margin: 18px 0 0;
  color: #475467;
  line-height: 1.55;
}

.ge-free-final-footer {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 8px 0 0;
  border-top: 1px solid var(--ge-mf-border);
  color: var(--ge-mf-muted);
  font-size: 13px;
  line-height: 1.4;
}

.ge-free-final-footer a {
  color: var(--ge-mf-muted);
  font-weight: 700;
  text-decoration: none;
}

.ge-free-final-footer a:hover {
  text-decoration: underline;
}

.ge-free-final-footer .dot {
  color: #c0c4cc;
}


/* ============================================================
   Market Fundamentals V1 functional interface
   ============================================================ */

.ge-mf-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.ge-mf-field {
  display: grid;
  gap: 7px;
  color: var(--ge-mf-muted);
  font-size: 13px;
  font-weight: 700;
}

.ge-mf-field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--ge-mf-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ge-mf-text);
  font: inherit;
  font-size: 15px;
}

.ge-mf-field select:focus {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.ge-mf-message {
  margin: 14px 0 0;
  color: var(--ge-mf-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ge-mf-company-meta,
.ge-mf-freshness {
  margin: 8px 0 0;
  color: var(--ge-mf-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ge-mf-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.ge-mf-market-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--ge-mf-border);
  border-radius: 12px;
  background: var(--ge-mf-soft);
}

.ge-mf-market-label {
  display: block;
  color: var(--ge-mf-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.ge-mf-market-value {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.2;
}

.ge-mf-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
}

.ge-mf-statement-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ge-mf-statement-table th,
.ge-mf-statement-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--ge-mf-border);
  text-align: right;
  vertical-align: middle;
}

.ge-mf-statement-table thead th {
  background: var(--ge-mf-soft);
  color: var(--ge-mf-muted);
  font-size: 12px;
  font-weight: 800;
}

.ge-mf-statement-table th:first-child {
  width: 34%;
  text-align: left;
}

.ge-mf-statement-table tbody th {
  color: var(--ge-mf-text);
  font-weight: 650;
}

.ge-mf-statement-table tbody tr:last-child th,
.ge-mf-statement-table tbody tr:last-child td {
  border-bottom: 0;
}

[hidden] {
  display: none !important;
}


/* Stocks analytics v1 */

.ge-mf-analysis-note {
  margin: 10px 0 0;
  color: var(--ge-mf-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ge-mf-analysis-table {
  min-width: 720px;
}

.ge-mf-analysis-table .ge-mf-direction {
  min-width: 118px;
  font-weight: 700;
  white-space: nowrap;
}

/*
 * Direction is intentionally neutral.
 * UP/DOWN are descriptive, not positive/negative signals.
 */
.ge-mf-analysis-table .ge-mf-direction {
  color: var(--ge-mf-text);
}


/* Free Cash Flow analytics v1 */

.ge-mf-fcf-summary {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

#mf-fcf-table .ge-mf-analysis-table {
  min-width: 900px;
}


/* ================================================================
   MARKET FUNDAMENTALS PREMIUM CTA CONTRAST v1
   ================================================================ */

.ge-nav-right a.ge-tier[href*="tier2.goldengine.ai"],
.ge-nav-right a.ge-tier[href*="tier3.goldengine.ai"] {
  background: #0b1020 !important;
  border-color: #0b1020 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.ge-nav-right a.ge-tier[href*="tier2.goldengine.ai"]:hover,
.ge-nav-right a.ge-tier[href*="tier3.goldengine.ai"]:hover {
  background: #171d2d !important;
  border-color: #171d2d !important;
  color: #ffffff !important;
}

