/* Oriental Racing — Profit Loss Monthly V2.5 */

.orpl2-month-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
  padding:16px 18px;
  border:1px solid #e2bf64;
  border-radius:14px;
  background:#fff7df;
}
.orpl2-month-banner span{display:block;color:#a76d05;font-size:11px;font-weight:800;letter-spacing:.08em;}
.orpl2-month-banner strong{display:block;color:#071a2f;font-size:23px;}
.orpl2-month-banner p{margin:0;max-width:620px;color:#6a541c;font-size:14px;}

.orpl2-section--compare{background:#fbfcfb;}
.orpl2-month-compare-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px;}
.orpl2-month-compare-cards article{padding:19px;border:1px solid #e6d9c2;border-radius:14px;background:#fff;}
.orpl2-month-compare-cards article.is-current{border-color:#d6b75e;background:#fffdf6;}
.orpl2-month-compare-cards span,.orpl2-month-compare-cards small{display:block;color:#667782;}
.orpl2-month-compare-cards strong{display:block;margin:4px 0;color:#071a2f;font-size:19px;}
.orpl2-month-compare-cards b{display:block;margin-bottom:3px;color:#0f6b4a;font-size:25px;}
.orpl2-month-compare-cards .is-change strong{margin-top:8px;font-size:23px;}
.orpl2-month-table td:first-child{width:220px;}

.orpl2-bankroll-path-month{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;}
.orpl2-bankroll-path-month>span{display:flex;flex-direction:column;min-width:140px;padding:10px 13px;border-radius:10px;background:#fff7df;color:#6a541c;font-size:12px;}
.orpl2-bankroll-path-month strong{color:#071a2f;font-size:17px;}
.orpl2-bankroll-path-month>b{color:#a76d05;}

@media (max-width:850px){
  .orpl2-month-banner{align-items:flex-start;flex-direction:column;}
  .orpl2-month-compare-cards{grid-template-columns:1fr;}
}

/* ============================================================
   Profit Loss Monthly V2.6.1 — Historical Backtest
   ============================================================ */

.orpl2-historical-summary{
  margin-top:14px;
  padding:18px 20px;
  border:1px solid #d6b75e;
  border-left:4px solid #d9a624;
  border-radius:12px;
  background:#fff7df;
}

.orpl2-historical-summary>span{
  display:block;
  color:#a76d05;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}

.orpl2-historical-summary>strong{
  display:block;
  margin:4px 0;
  color:#0f6b4a;
  font-size:28px;
}

.orpl2-historical-summary p{
  margin:0;
  color:#5e4b20;
  font-weight:700;
}

.orpl2-historical-summary small{
  display:block;
  margin-top:7px;
  color:#7b6841;
}

.orpl2-historical-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.orpl2-historical-kpis article{
  min-width:0;
  padding:17px 16px;
  border:1px solid #e6d9c2;
  border-radius:14px;
  background:#fff;
}

.orpl2-historical-kpis span,
.orpl2-historical-kpis small{
  display:block;
  color:#667782;
}

.orpl2-historical-kpis strong{
  display:block;
  margin:5px 0 1px;
  color:#071a2f;
  font-size:22px;
  line-height:1.15;
}

@media (max-width:900px){
  .orpl2-historical-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:520px){
  .orpl2-historical-kpis{
    grid-template-columns:1fr;
  }
}

/* ============================================================
   Profit Loss Monthly V2.7 — Unified Monthly Rollup
   ============================================================ */

.orpl2-forward-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  padding:4px 8px;
  border-radius:999px;
  background:#e9f7ef;
  color:#0f6b4a;
  font-size:12px;
  font-weight:800;
}

.orpl2-month-result-strip{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

.orpl2-month-result-strip>div{
  padding:14px 15px;
  border:1px solid #e6d9c2;
  border-radius:12px;
  background:#fff;
}

.orpl2-month-result-strip span{
  display:block;
  color:#667782;
  font-size:12px;
}

.orpl2-month-result-strip strong{
  display:block;
  margin-top:4px;
  color:#071a2f;
  font-size:20px;
}

.orpl2-provenance-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.orpl2-provenance-grid article{
  padding:17px 16px;
  border:1px solid #e6d9c2;
  border-radius:14px;
  background:#fff;
}

.orpl2-provenance-grid span{
  display:block;
  color:#667782;
  font-size:12px;
}

.orpl2-provenance-grid strong{
  display:block;
  margin:5px 0;
  color:#071a2f;
  font-size:22px;
}

.orpl2-provenance-grid p{
  margin:0;
  color:#667782;
  font-size:13px;
}

.orpl2-details{
  margin-top:14px;
  border:1px solid #e6d9c2;
  border-radius:12px;
  background:#fff;
}

.orpl2-details summary{
  padding:15px 17px;
  cursor:pointer;
  color:#0f6b4a;
  font-weight:800;
}

.orpl2-details[open] summary{
  border-bottom:1px solid #e6d9c2;
}

.orpl2-details__body{
  padding:14px;
}

@media (max-width:1000px){
  .orpl2-month-result-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

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

@media (max-width:620px){
  .orpl2-month-result-strip,
  .orpl2-provenance-grid{
    grid-template-columns:1fr;
  }
}

/* ============================================================
   Profit Loss Monthly V2.8 — Semantic Result Colors
   ============================================================ */

.orpl2-ok{
  color:#0b7a4b !important;
}

.orpl2-loss{
  color:#b13c2e !important;
}

.orpl2-neutral{
  color:#071a2f !important;
}

.orpl2-state.is-win{
  color:#0b7a4b !important;
  background:#e8f7ef !important;
}

.orpl2-state.is-loss{
  color:#b13c2e !important;
  background:#fdecea !important;
}

.orpl2-state.is-pending,
.orpl2-pending-badge{
  color:#8a5b09 !important;
  background:#fff3d5 !important;
}

.orpl2-hero-panel .orpl2-ok{
  color:#72e1a9 !important;
}

.orpl2-hero-panel .orpl2-loss{
  color:#ff9a87 !important;
}

.orpl2-month-compare-cards .orpl2-ok{
  color:#0b7a4b !important;
}

.orpl2-month-compare-cards .orpl2-loss{
  color:#b13c2e !important;
}

.orpl2-month-result-strip .orpl2-ok{
  color:#0b7a4b !important;
}

.orpl2-month-result-strip .orpl2-loss{
  color:#b13c2e !important;
}

/* ============================================================
   Profit Loss Monthly V2.8.2 — Mobile Top KPI Compact
   Hero-below status only.
   ============================================================ */

@media (max-width:680px){

  .orpl2-status{
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding-left:15px;
    padding-right:15px;
    margin-bottom:16px;
  }

  .orpl2-status article{
    min-height:102px;
    padding:13px 14px;
    border-radius:13px;
  }

  .orpl2-status span{
    font-size:13px;
    line-height:1.35;
  }

  .orpl2-status strong{
    margin:4px 0 1px;
    font-size:21px;
    line-height:1.1;
  }

  .orpl2-status small{
    font-size:11px;
    line-height:1.3;
  }

}

@media (max-width:360px){

  .orpl2-status{
    gap:8px;
    padding-left:12px;
    padding-right:12px;
  }

  .orpl2-status article{
    min-height:98px;
    padding:12px;
  }

  .orpl2-status strong{
    font-size:20px;
  }

}

/* ============================================================
   Profit Loss Test Mobile Hero Match Homepage
   ONLY /profit-loss-test/
   ============================================================ */

@media (max-width:820px){

  .page-id-49261 .dfmj-home-v2 > .dfmj-home2-hero{
    width:calc(100% - 30px) !important;
    max-width:calc(100% - 30px) !important;
    margin-left:15px !important;
    margin-right:15px !important;
    box-sizing:border-box !important;
  }

  .page-id-49261
  .dfmj-home2-hero__content
  > .dfmj-home2-hero__copy
  + *{
    margin-top:18px !important;
  }

}

@media (max-width:360px){

  .page-id-49261 .dfmj-home-v2 > .dfmj-home2-hero{
    width:calc(100% - 24px) !important;
    max-width:calc(100% - 24px) !important;
    margin-left:12px !important;
    margin-right:12px !important;
  }

  .page-id-49261
  .dfmj-home2-hero__content
  > .dfmj-home2-hero__copy
  + *{
    margin-top:16px !important;
  }

}
