
/* ============================================================
   TI-108SC SPECIFIC STYLES
   Same blue body but with MDAS toggle and 3 LCD indicators
   These rules are ONLY for the SC page/template
============================================================ */

/* SC page body background matches physical photo warm wood */
.page-ti108sc .hero {
  background: linear-gradient(170deg,#0f1b35 0%,#1a2f6e 55%,#2050a8 100%);
}

/* SC LCD: wider, shows 8-digit display with greyed segments */
.sc-lcd {
  background: #b8c095;
  border-radius: 4px;
  padding: 6px 10px 5px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 5px rgba(0,0,0,.18);
}
.sc-lcd::before {
  content:'';
  position:absolute;top:0;left:0;right:0;height:40%;
  background:linear-gradient(180deg,rgba(255,255,255,.14) 0%,transparent 100%);
  border-radius:4px 4px 0 0;pointer-events:none;
}

/* Left indicators panel: M — E */
.sc-lcd-indicators {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 8px;
  flex-shrink: 0;
}
.sc-indicator {
  font-family: 'Courier New', monospace;
  font-size: .58rem;
  font-weight: 700;
  color: #1a2600;
  opacity: .2;
  transition: opacity .12s;
  line-height: 1;
  min-width: 14px;
}
.sc-indicator.on { opacity: 1 }

/* Right: 8-digit greyed number display */
.sc-lcd-digits {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}
.sc-lcd-num {
  font-family: 'Courier New', monospace;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1a2600;
  text-align: right;
  line-height: 1;
  letter-spacing: .05em;
  word-break: break-all;
}
.sc-lcd-num.err { color: #8b0000; font-size: 1.1rem }

/* SC MDAS TOGGLE SWITCH — beside solar panel */
.sc-mdas-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.sc-solar-wrap {
  flex: 1;
}
.sc-solar {
  width: 100%;
  max-width: 160px;
  height: 22px;
  background: #0a0a0a;
  border-radius: 4px;
  border: 1.5px solid #000;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px 4px;
}
.sc-solar-cell {
  background: linear-gradient(160deg,#222,#0a0a0a);
  border-radius: 2px;
  border: 1px solid #333;
  position: relative;
}
.sc-solar-cell::after {
  content:'';position:absolute;top:0;left:0;right:40%;height:40%;
  background:rgba(255,255,255,.07);border-radius:1px;
}

/* MDAS Toggle Switch */
.sc-mdas-toggle {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  height: 28px;
}
.sc-mdas-off {
  padding: 0 8px;
  background: #cc2222;
  color: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  transition: background .15s;
}
.sc-mdas-on-label {
  padding: 0 8px;
  background: #fff;
  color: #1a3570;
  height: 100%;
  display: flex;
  align-items: center;
  transition: background .15s;
}
/* When MDAS is ON — swap active */
.sc-mdas-toggle.mdas-on .sc-mdas-off {
  background: #fff;
  color: #1a3570;
}
.sc-mdas-toggle.mdas-on .sc-mdas-on-label {
  background: #228b22;
  color: #fff;
}

/* SC page — horizontal line divider between top and keypad */
.sc-section-line {
  height: 2px;
  background: rgba(255,255,255,.18);
  margin: 10px 0;
}
