/* =====================================================
   STM8 STYLES – EXPLICIT TYPOGRAPHY (SAFE + RESTORED)
===================================================== */

/* =========================
   GLOBAL WRAPPER
   ========================= */
.stm8-wrapper {
  font-family: 'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:#1A1F36;
}

/* =========================
   VARIABLES
   ========================= */
:root{
  --ink:#101828;
  --muted:#667085;
  --purple:#8b53ff;
  --blue:#27d3fd;
  --bg:#fcfdff;
  --line:#eef2ff;

  --stm8-green:#35ff8a;
  --stm8-yellow:#ffd166;
  --stm8-red:#ff5a5f;
  --stm8-hover:rgba(238,242,255,0.6);
}

/* =========================
   MAIN CONTENT
   ========================= */
.stm8-main {
  margin:0 auto;
  padding:0px 24px 0;
  min-height:calc(60px);
  width:100%;
  max-width:1200px;
  box-sizing:border-box;
  background:transparent !important;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   HERO
   ========================= */
.stm8-hero {
  max-width:980px;
  width:100%;
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.stm8-title{
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:36px;
  font-weight:500;
  margin:8px 0 20px;
  color:#0b1b4a;
  line-height:1.3;
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

.stm8-title i{
  font-style:normal;
  background:linear-gradient(90deg,var(--purple),var(--blue));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.stm8-logo-wordmark{
  height:48px;
  width:auto;
  vertical-align:middle;
  transform:translateY(3px);
}

/* =========================
   CARD / INPUT
   ========================= */
.stm8-card{
  width:90%;
  display:flex;
  flex-direction:column;
  justify-content: center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:50px;
  box-shadow:0 1px 1px rgba(23,45,89,0.06);
  padding:5px 16px;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  
}

.stm8-input-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 16px 10px;

}

.stm8-plus,
.stm8-send{
  width:40px;
  height:40px;
  border-radius:50px;
  border:none;
  cursor:pointer;
  font-size:18px;
  font-weight:700;
  color:#fff;
  background:#8a54ff;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

#stm8-input{
  flex:1;
  height:40px;
  border:none;
  outline:none;
  background:transparent;
  padding:0 6px;
  font-size:16px;
  color:#1b283f;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   CHIPS
   ========================= */
.stm8-chips{
  margin:8px 0 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.chip{
  border:1px solid var(--line);
  background:#fff;
  padding:8px 12px;
  border-radius:9999px;
  font-size:13px;
  cursor:default;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   RESULTS
   ========================= */
.stm8-results{
  margin-top:0px;
  margin-bottom: 0px;
  padding-left: 20px;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:16px;
  color:#1A1F36;
}

.stm8-progress{
  height: 10px;
  background: #eef2ff;
  border-radius: 6px;
  overflow: hidden;
  margin: 8px auto 0; /* centers it */
  width: 95%;
}


.stm8-progress > i{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--purple),var(--blue));
  transition:width .2s linear;
}

.stm8-summary{
  background:#fbfbff;
  padding:12px;
  border-radius:10px;
  margin-top:12px;
  font-size:16px;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.stm8-material-table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.stm8-material-table th,
.stm8-material-table td{
  padding:6px 8px;
  text-align:left;
  border-bottom:1px solid #f3f6ff;
}

/* Division sub-total (RIGHT aligned — restored) */
.stm8-total{
  text-align:right;
  font-weight:700;
  margin-top:8px;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   LETTERHEAD (MISSION / LOGO)
   ========================= */
.stm8-letterhead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:12px;
  padding:8px 0;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.lh-left{ flex:0 0 auto; }

.lh-right{
  text-align:right;
  font-size:13px;
  color:#374151;
}

.lh-logo{
  width:200px !important;
  display:block;
}

.lh-divider{
  height:1px;
  background:var(--line);
  margin:12px 0;
  border-radius:2px;
}

/* =========================
   SIGNATURE
   ========================= */
.signature{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
  gap:12px;
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.signature.vertical{
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}

.sig-left,
.sig-name{
  font-size:14px;
  color:#0b1b4a;
}

.sig-img{
  height:42px;
  max-width:220px;
}

/* =========================
   SUBMIT PROPOSAL BUTTON
   ========================= */
.stm8-submit-wrap{
  margin-top:14px;
  text-align:center;
}

.stm8-submit-btn{
  appearance:none;
  display:inline-block;
  min-width:200px;
  border:none;
  border-radius:25px;
  padding:12px 16px;
  font-weight:600;
  cursor:pointer;
  background:#8a54ff;
  color:#fff;
  box-shadow:0 6px 16px rgba(138,84,255,0.25);
  font-family:'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.stm8-submit-btn:hover{
  background:#7a44ff;
}

/* =========================
   CHARTS (UNCHANGED)
   ========================= */
.stm8-charts{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 320px;
  gap:16px;
}

.chart-wrap,
.gauge-wrap{
  position:relative;
  width:100%;
  height:300px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:980px){
  .stm8-title{ font-size:40px; }
  .stm8-charts{ grid-template-columns:1fr; }
  .stm8-logo-wordmark{ height:38px; }
}
