/* Oriental Racing Results V2 */

.orres2-page{
  --orres-ink:#08263a;
  --orres-muted:#687c8d;
  --orres-line:#e4dccd;
  --orres-gold:#d9a624;
  --orres-soft:#fffaf0;
  --orres-green:#16724a;
  color:var(--orres-ink);
}

.orres2-page .dfmj-home2-hero{
  margin-top:0;
}

.orres2-hero-panel{
  width:100%;
  max-width:380px;
  padding:16px 18px;
  border:1px solid rgba(243,207,118,.62);
  border-radius:18px;
  background:rgba(5,30,49,.86);
  color:#fff;
  box-shadow:0 12px 32px rgba(0,0,0,.16);
}

.orres2-hero-panel__eyebrow,
.orres2-hero-panel__date,
.orres2-hero-panel__line span,
.orres2-hero-panel__line b,
.orres2-hero-panel__fallback span,
.orres2-hero-panel__fallback b,
.orres2-hero-panel__fallback small{
  display:block;
}

.orres2-hero-panel__eyebrow{
  color:rgba(255,255,255,.70);
  font-size:12px;
}

.orres2-hero-panel__date{
  margin:3px 0 9px;
  color:#f3cf76;
  font-size:24px;
  line-height:1.15;
}

.orres2-hero-panel__line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:7px 0;
  border-top:1px solid rgba(255,255,255,.11);
}

.orres2-hero-panel__line span{
  color:rgba(255,255,255,.72);
  font-size:12px;
}

.orres2-hero-panel__line b{
  color:#fff;
  font-size:17px;
}

.orres2-hero-panel__fallback{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:8px;
  align-items:center;
  margin-top:7px;
  padding:8px 10px;
  border:1px solid rgba(243,207,118,.28);
  border-radius:11px;
  background:rgba(243,207,118,.09);
}

.orres2-hero-panel__fallback span,
.orres2-hero-panel__fallback small{
  color:rgba(255,255,255,.72);
  font-size:11px;
}

.orres2-hero-panel__fallback b{
  color:#f3cf76;
  font-size:13px;
  text-align:center;
}

.orres2-status{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  margin:14px 0 22px;
  overflow:hidden;
  border:1px solid var(--orres-line);
  border-radius:16px;
  background:#fff;
}

.orres2-status > div{
  min-width:0;
  padding:14px 15px;
  border-right:1px solid var(--orres-line);
}

.orres2-status > div:last-child{
  border-right:0;
}

.orres2-status span,
.orres2-status strong,
.orres2-status small{
  display:block;
}

.orres2-status span{
  color:#617487;
  font-size:13px;
}

.orres2-status strong{
  margin-top:2px;
  overflow:hidden;
  color:var(--orres-ink);
  font-size:23px;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.orres2-status small{
  margin-top:4px;
  color:#8896a2;
  font-size:12px;
}

.orres2-section{
  margin:22px 0;
  padding:28px;
  border:1px solid var(--orres-line);
  border-radius:20px;
  background:#fffdf8;
}

.orres2-section .dfmj-section__head{
  margin-bottom:20px;
}

.orres2-section .dfmj-section__head p{
  margin:7px 0 0;
  font-size:16px;
  line-height:1.7;
}

.orres2-section a{
  color:#79580f;
  font-weight:800;
}

.orres2-results__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.orres2-results__head h3{
  margin:3px 0;
  color:var(--orres-ink);
  font-size:28px;
}

.orres2-results__head p{
  margin:0;
  color:var(--orres-muted);
  font-size:14px;
}

.orres2-fallback{
  max-width:300px;
  padding:12px 14px;
  border:1px solid #e6bd58;
  border-radius:13px;
  background:#fff6dc;
}

.orres2-fallback small,
.orres2-fallback strong,
.orres2-fallback span{
  display:block;
}

.orres2-fallback small{
  color:#7a5b19;
  font-size:12px;
}

.orres2-fallback strong{
  margin-top:2px;
  color:var(--orres-ink);
  font-size:18px;
}

.orres2-fallback span{
  margin-top:4px;
  color:#7a6841;
  font-size:12px;
  line-height:1.5;
}

.orres2-race-list{
  display:grid;
  gap:10px;
}

.orres2-race{
  overflow:hidden;
  border:1px solid var(--orres-line);
  border-radius:14px;
  background:#fff;
}

.orres2-race > summary{
  display:grid;
  grid-template-columns:minmax(140px,.65fr) minmax(430px,2fr) 90px 118px;
  gap:14px;
  align-items:center;
  min-height:96px;
  padding:13px 16px;
  cursor:pointer;
  list-style:none;
}

.orres2-race > summary::-webkit-details-marker{
  display:none;
}

.orres2-race[open] > summary{
  border-bottom:1px solid var(--orres-line);
  background:#fffaf0;
}

.orres2-race__meta small,
.orres2-race__meta strong,
.orres2-race__meta em,
.orres2-race__state small,
.orres2-race__state strong{
  display:block;
}

.orres2-race__meta small{
  color:#9a6a09;
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
}

.orres2-race__meta strong{
  margin:2px 0;
  font-size:22px;
}

.orres2-race__meta em{
  color:#748493;
  font-size:13px;
  font-style:normal;
}

.orres2-race__podium{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}

.orres2-race__podium > span{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:2px 8px;
  align-items:center;
  min-width:0;
  padding:9px 10px;
  border:1px solid var(--orres-line);
  border-radius:10px;
  background:var(--orres-soft);
}

.orres2-race__podium i{
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--orres-ink);
  color:#fff;
  font-size:11px;
  font-style:normal;
  font-weight:900;
}

.orres2-race__podium b{
  overflow:hidden;
  font-size:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.orres2-race__podium small{
  grid-column:2;
  color:#748493;
  font-size:12px;
}

.orres2-race__waiting{
  color:#84919c;
  font-size:15px;
}

.orres2-race__state{
  padding-left:14px;
  border-left:1px solid var(--orres-line);
}

.orres2-race__state small{
  color:#748493;
  font-size:12px;
}

.orres2-race__state strong{
  margin-top:2px;
  font-size:18px;
}

.orres2-race__toggle{
  justify-self:end;
  padding:8px 11px;
  border:1px solid var(--orres-gold);
  border-radius:999px;
  color:#725414;
  background:#fff8e5;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}

.orres2-race.is-waiting > summary{
  cursor:default;
}

.orres2-race.is-waiting .orres2-race__toggle{
  border-color:#ddd5c7;
  color:#8a96a1;
  background:#f7f5f0;
}

.orres2-race__body{
  padding:0 14px 14px;
}

.orres2-table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.orres2-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  background:#fff;
}

.orres2-table th,
.orres2-table td{
  padding:11px 10px;
  border-bottom:1px solid #ece7dc;
  text-align:left;
  vertical-align:middle;
  font-size:14px;
}

.orres2-table th{
  color:#745616;
  background:#fffaf0;
  font-size:13px;
  font-weight:900;
}

.orres2-table td strong{
  color:var(--orres-ink);
}

.orres2-race__dividend-summary{
  display:flex;
  flex-wrap:wrap;
  gap:7px 12px;
  margin-top:10px;
  padding:11px 13px;
  border-left:3px solid var(--orres-gold);
  background:#fff5d8;
  font-size:13px;
}

.orres2-more{
  margin-top:12px;
}

.orres2-more > summary,
.orres2-history-more > summary{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:10px 16px;
  border:1px solid var(--orres-gold);
  border-radius:12px;
  color:#725414;
  background:#fff8e5;
  cursor:pointer;
  list-style:none;
  font-size:14px;
  font-weight:900;
}

.orres2-more > summary::-webkit-details-marker,
.orres2-history-more > summary::-webkit-details-marker{
  display:none;
}

.orres2-more[open] > summary,
.orres2-history-more[open] > summary{
  margin-bottom:12px;
  color:#fff;
  background:var(--orres-green);
  border-color:var(--orres-green);
}

.orres2-module-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:11px 13px;
  border:1px solid var(--orres-line);
  border-radius:11px;
  background:#fffaf0;
}

.orres2-module-meta strong{
  font-size:15px;
}

.orres2-module-meta span{
  color:#748493;
  font-size:13px;
}

.orres2-scan-table{
  min-width:780px;
}

.orres2-state{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}

.orres2-state.final{
  color:#0d7047;
  background:#e7f6ee;
}

.orres2-state.provisional{
  color:#7a5b19;
  background:#fff0c8;
}

.orres2-state.waiting{
  color:#788895;
  background:#eef2f4;
}

.orres2-waiting{
  padding:20px;
  border:1px solid var(--orres-line);
  border-radius:13px;
  background:#fffaf0;
}

.orres2-waiting strong{
  display:block;
  font-size:19px;
}

.orres2-waiting p{
  margin:6px 0 0;
  color:#647789;
  font-size:14px;
}

.orres2-dividend-list{
  display:grid;
  gap:8px;
}

.orres2-dividend-race{
  overflow:hidden;
  border:1px solid var(--orres-line);
  border-radius:12px;
  background:#fff;
}

.orres2-dividend-race > summary{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:14px;
  align-items:center;
  min-height:60px;
  padding:11px 14px;
  cursor:pointer;
  list-style:none;
}

.orres2-dividend-race > summary::-webkit-details-marker{
  display:none;
}

.orres2-dividend-race > summary b{
  padding:7px 10px;
  border:1px solid var(--orres-gold);
  border-radius:999px;
  color:#725414;
  background:#fff8e5;
  font-size:12px;
}

.orres2-dividend-race__body{
  padding:0 12px 12px;
  border-top:1px solid var(--orres-line);
}

.orres2-odds-result__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

.orres2-odds-result__grid article{
  padding:13px 14px;
  border:1px solid var(--orres-line);
  border-radius:12px;
  background:#fff;
}

.orres2-odds-result__grid small,
.orres2-odds-result__grid strong,
.orres2-odds-result__grid span{
  display:block;
}

.orres2-odds-result__grid small{
  color:#9a6a09;
  font-size:12px;
}

.orres2-odds-result__grid strong{
  margin:3px 0;
  font-size:16px;
}

.orres2-odds-result__grid span{
  color:#748493;
  font-size:13px;
}

.orres2-odds-result__grid span b{
  color:var(--orres-ink);
  font-size:18px;
}

.orres2-module-note{
  margin:13px 0 0;
  padding:11px 13px;
  border-left:3px solid var(--orres-gold);
  background:#fff4d2;
  color:#67582f;
  font-size:14px;
  line-height:1.6;
}

.orres2-history-layout{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.9fr);
  gap:20px;
  align-items:start;
}

.orres2-history-list{
  display:grid;
  gap:8px;
}

.orres2-history-list article{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  padding:11px 13px;
  border:1px solid var(--orres-line);
  border-radius:11px;
  background:#fff;
}

.orres2-history-list small,
.orres2-history-list strong{
  display:block;
}

.orres2-history-list small{
  color:#748493;
  font-size:11px;
}

.orres2-history-list strong{
  margin-top:2px;
  font-size:14px;
}

.orres2-history-more{
  margin-top:9px;
}

.orres2-history-media{
  margin:0;
  padding:9px;
  border:1px solid var(--orres-line);
  border-radius:13px;
  background:#fff;
}

.orres2-history-media img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  border-radius:8px;
  object-fit:cover;
}

.orres2-history-media figcaption{
  margin-top:8px;
  color:#627688;
  font-size:13px;
  line-height:1.55;
}

.orres2-related{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.orres2-related article{
  padding:16px;
  border:1px solid var(--orres-line);
  border-radius:13px;
  background:#fff;
}

.orres2-related strong,
.orres2-related span,
.orres2-related a{
  display:block;
}

.orres2-related strong{
  font-size:17px;
}

.orres2-related span{
  margin:6px 0 10px;
  color:#627688;
  font-size:14px;
  line-height:1.55;
}

.orres2-faq details{
  margin-top:9px;
  padding:14px 15px;
  border:1px solid var(--orres-line);
  border-radius:12px;
  background:#fff;
}

.orres2-faq summary{
  cursor:pointer;
  font-weight:900;
}

.orres2-faq p{
  margin:8px 0 0;
  color:#607486;
  font-size:14px;
  line-height:1.65;
}

@media (max-width:1000px){
  .orres2-status{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .orres2-status > div:nth-child(3){
    border-right:0;
  }

  .orres2-race > summary{
    grid-template-columns:1fr auto;
  }

  .orres2-race__podium{
    grid-column:1/-1;
    grid-row:2;
  }

  .orres2-race__state{
    border-left:0;
    padding-left:0;
  }

  .orres2-race__toggle{
    grid-column:2;
    grid-row:1;
  }

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

@media (max-width:760px){
  .orres2-section{
    padding:20px 16px;
  }

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

  .orres2-status > div{
    border-bottom:1px solid var(--orres-line);
  }

  .orres2-status > div:nth-child(2n){
    border-right:0;
  }

  .orres2-status > div:nth-last-child(-n+2){
    border-bottom:0;
  }

  .orres2-results__head{
    display:grid;
  }

  .orres2-fallback{
    max-width:none;
  }

  .orres2-race__podium{
    grid-template-columns:1fr;
  }

  .orres2-odds-result__grid,
  .orres2-related{
    grid-template-columns:1fr;
  }

  .orres2-history-layout{
    grid-template-columns:1fr;
  }

  .orres2-history-list article{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .orres2-module-meta{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* ============================================================
   ORRES2 V2.2.1 FINAL TABLE FIT
   Desktop: tables fit their cards without horizontal scroll.
   Mobile: horizontal scrolling remains available.
   ============================================================ */

@media (min-width: 901px) {
  .orres2-table-wrap {
    overflow-x: visible !important;
    max-width: 100%;
  }

  .orres2-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
  }

  .orres2-table th,
  .orres2-table td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (max-width: 900px) {
  .orres2-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .orres2-table {
    table-layout: auto;
  }
}

/* Long in-card payout summaries must wrap naturally. */
.orres2-page [class*="dividend"],
.orres2-page [class*="payout"] {
  overflow-wrap: anywhere;
}

/* ============================================================
   Results Mobile Hero-Below Status Safe Gutter
   ============================================================ */

@media (max-width:680px){

  .orres2-page .orres2-status{
    width:calc(100% - 30px) !important;
    max-width:calc(100% - 30px) !important;
    margin-left:15px !important;
    margin-right:15px !important;
    box-sizing:border-box;
  }

}

@media (max-width:360px){

  .orres2-page .orres2-status{
    width:calc(100% - 24px) !important;
    max-width:calc(100% - 24px) !important;
    margin-left:12px !important;
    margin-right:12px !important;
  }

}

/* ============================================================
   Results Mobile Hero-Below Status Center Divider
   Restore the center divider on every row of the 2-column grid.
   ============================================================ */

@media (max-width:680px){

  .orres2-page .orres2-status > *:nth-child(odd){
    border-left:0 !important;
  }

  .orres2-page .orres2-status > *:nth-child(even){
    border-left:1px solid #e6d9c2 !important;
  }

}

/* ============================================================
   Results HUB Mobile Hero Match Homepage
   ONLY /racing-results/
   ============================================================ */

@media (max-width:820px){

  /*
   * Match the same horizontal inset used by the white status module
   * directly below the Hero.
   */
  .orres2-page .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;
  }

  /*
   * Homepage-style breathing room:
   * CTA buttons should not touch the stacked dark data panel.
   */
  .orres2-page
  .dfmj-home2-hero__content
  > .dfmj-home2-hero__copy
  + *{
    margin-top:18px !important;
  }

}

@media (max-width:360px){

  .orres2-page .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;
  }

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

}