/*
GoldEngine Market Fundamentals
Mobile owner
Viewport contract: <= 760px

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-gold: #b99700;
}

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

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% - 20px);
  max-width: none;
  margin: 0 auto;
  padding: 16px 0 40px;
}

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

.ge-market-fundamentals-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  color: var(--ge-mf-text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

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

.ge-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

.ge-nav-left,
.ge-nav-right {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ge-nav-left::-webkit-scrollbar,
.ge-nav-right::-webkit-scrollbar {
  display: none;
}

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

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

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

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

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

.ge-market-fundamentals-hero {
  margin-top: 14px;
}

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

.ge-market-fundamentals-hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ge-market-fundamentals-lede {
  max-width: 100%;
  margin: 10px 0 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.5;
}

.ge-market-fundamentals-card {
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--ge-mf-border);
  border-radius: 16px;
  background: #ffffff;
}

.ge-market-fundamentals-card-head {
  display: block;
}

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

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

.ge-market-fundamentals-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 8px;
  border: 1px solid var(--ge-mf-border);
  border-radius: 999px;
  color: var(--ge-mf-muted);
  font-size: 11px;
  font-weight: 700;
}

.ge-market-fundamentals-placeholder {
  margin: 16px 0 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.5;
}

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

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

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


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

.ge-mf-selector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ge-mf-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--ge-mf-muted);
  font-size: 12px;
  font-weight: 700;
}

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

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

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

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

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

.ge-mf-market-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--ge-mf-border);
  border-radius: 10px;
  background: #f8fafc;
}

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

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

.ge-mf-table-wrap {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.ge-mf-statement-table th,
.ge-mf-statement-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--ge-mf-border);
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

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

.ge-mf-statement-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  max-width: 150px;
  background: #ffffff;
  text-align: left;
  white-space: normal;
}

.ge-mf-statement-table thead th:first-child {
  z-index: 2;
  background: #f8fafc;
}

.ge-mf-statement-table tbody th {
  font-weight: 650;
}

[hidden] {
  display: none !important;
}


/* Stocks analytics v1 */

.ge-mf-analysis-note {
  margin: 8px 0 0;
  color: var(--ge-mf-muted);
  font-size: 11px;
  line-height: 1.4;
}

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

.ge-mf-analysis-table th:first-child {
  min-width: 150px;
  max-width: 150px;
}

.ge-mf-analysis-table .ge-mf-direction {
  min-width: 105px;
  color: var(--ge-mf-text);
  font-weight: 700;
  white-space: nowrap;
}


/* Free Cash Flow analytics v1 */

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

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


/* ================================================================
   STOCKS MOBILE SHELL — FREE PARITY v1

   Authority:
     Predictions / Accuracy / History / Seasonality mobile shell.

   Scope:
     Stocks masthead rendered geometry and announcement only.

   Explicitly NOT owned here:
     navigation
     language controls
     hero
     company controls
     tables
     financial analysis
     data/API behaviour

   Expected 390px anchors:
     brand y=22px
     GE outer size=42px
     announcement y=80px
     announcement outer height=90px
     nav y=180px
     language row y=256px
   ================================================================ */

@media (max-width: 760px) {

  .ge-market-fundamentals-brand {
    min-height: 42px;
  }

  .ge-market-fundamentals-brand .mark {
    width: 36px;
    height: 36px;
    min-width: 36px;
    box-sizing: content-box;
    flex: 0 0 auto;
    border-width: 3px;
    font-size: 14px;
  }

  .ge-market-fundamentals-announcement {
    width: auto;
    margin: 10px 0 0;
    padding: 10px 14px;
    border: 0;
    border-left: 4px solid #888;
    background: #f6f7f8;
    color: #444;
    box-sizing: content-box;
    font-size: 15.2px;
    line-height: normal;
  }

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


/* German mobile navigation: all buttons visible without sideways scrolling. */
@media screen and (max-width: 760px) {
  html[lang="de"] .ge-nav-left,
  html[lang="de"] .ge-nav-right {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    overflow: visible !important;
  }
  html[lang="de"] .ge-nav-left .ge-tab,
  html[lang="de"] .ge-nav-right .ge-tier {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}


/* German mobile page buttons: compact single-row layout. */
@media screen and (max-width: 760px) {
  html[lang="de"] .ge-nav-left {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html[lang="de"] .ge-nav-left .ge-tab {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
    line-height: 14px !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
  }
}


/* ================================================================
   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;
}

