/* FUGA STUDIO v10.17 — BPKR závodní detail jako otevřený editorial.
   Záměrně pouze .race-detail-layout: poháry, články, stránky a SKFUGA zůstávají beze změny. */
.theme-bpkr .race-detail-layout{
  grid-template-columns:minmax(0,1fr) minmax(245px,275px);
  gap:clamp(24px,3.2vw,54px);
  padding-top:clamp(40px,5vw,68px);
  padding-bottom:clamp(60px,6vw,100px);
  background:transparent!important;
  align-items:start;
}
/* Odstranění velké obdélníkové plochy přes celý článek. */
.theme-bpkr .race-detail-layout > .article{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
  border-radius:0!important;
  margin:0!important;
  padding:0!important;
  width:100%;min-width:0;
  color:#eef5fc!important;
}
.theme-bpkr .race-detail-layout .race-editorial-head{
  display:flex;align-items:center;gap:18px;
  width:100%;margin:0 0 25px;
}
.theme-bpkr .race-editorial-head>span{
  color:#ffa65c;letter-spacing:.18em;
  font-size:.72rem;font-weight:900;white-space:nowrap;
}
.theme-bpkr .race-editorial-head>i{
  display:block;flex:1;height:1px;
  background:linear-gradient(90deg,#ce672a 0%,#35506b 36%,transparent 100%);
}
/* Levá plocha se používá naplno, ale samotné odstavce mají komfortní délku řádku. */
.theme-bpkr .race-detail-layout .rich-content{
  font-size:clamp(1rem,1.08vw,1.13rem);
  line-height:1.88;letter-spacing:.001em;
  max-width:100%;overflow-wrap:anywhere;
  color:#e6eef7!important;
}
.theme-bpkr .race-detail-layout .rich-content>p,
.theme-bpkr .race-detail-layout .rich-content>ul,
.theme-bpkr .race-detail-layout .rich-content>ol,
.theme-bpkr .race-detail-layout .rich-content>blockquote,
.theme-bpkr .race-detail-layout .rich-content>h2,
.theme-bpkr .race-detail-layout .rich-content>h3,
.theme-bpkr .race-detail-layout .rich-content>h4{
  width:auto;max-width:82ch;
  margin-left:0;margin-right:0;
}
.theme-bpkr .race-detail-layout .rich-content p{
  color:#dce8f5!important;
  margin-bottom:1.3em;
}
.theme-bpkr .race-detail-layout .rich-content>p:first-of-type{
  font-size:clamp(1.04rem,1.3vw,1.23rem);
  line-height:1.85;color:#f0f5fc!important;
}
.theme-bpkr .race-detail-layout .rich-content strong{color:#fff!important;font-weight:800}
.theme-bpkr .race-detail-layout .rich-content h2,
.theme-bpkr .race-detail-layout .rich-content h3,
.theme-bpkr .race-detail-layout .rich-content h4{
  color:#fff!important;
  font-size:clamp(1.5rem,2.35vw,2.42rem);
  margin:2.15em 0 .72em;
  padding:2px 0 4px 19px;
  border-left:4px solid #ed6b14;
  line-height:1.2;
  letter-spacing:-.035em;
  font-style:normal;
  text-wrap:balance;
}
.theme-bpkr .race-detail-layout .rich-content h3{font-size:clamp(1.35rem,1.9vw,1.85rem)}
.theme-bpkr .race-detail-layout .rich-content h4{font-size:1.2rem;border-left-width:2px}
.theme-bpkr .race-detail-layout .rich-content ul,
.theme-bpkr .race-detail-layout .rich-content ol{
  padding-left:1.6rem;margin-block:1.15em 2em;color:#dce8f5!important;
}
.theme-bpkr .race-detail-layout .rich-content li{padding-left:.3rem;line-height:1.8;margin-block:.58em}
.theme-bpkr .race-detail-layout .rich-content li::marker{color:#ff9a4c}
.theme-bpkr .race-detail-layout .rich-content blockquote{
  border:0;border-left:3px solid #e85d04;
  background:linear-gradient(90deg,rgba(255,146,65,.10),transparent 95%);
  border-radius:0;box-shadow:none;
  padding:17px 22px;margin:1.75em 0;
  color:#edf4fb!important;
}
/* Vložené tabulky mají k dispozici celou šířku článku. */
.theme-bpkr .race-detail-layout .rich-content>.content-table-wrap,
.theme-bpkr .race-detail-layout .rich-content>table{
  width:100%;max-width:100%;margin-inline:0;
}
.theme-bpkr .race-detail-layout .rich-content>.content-table-wrap{border-radius:17px;overflow-x:auto}
.theme-bpkr .race-detail-layout .rich-content .content-table-wrap table{box-shadow:none;border-radius:16px}
/* Oddělovače nejsou další celoplošné tmavé karty. */
.theme-bpkr .race-detail-layout .detail-block{
  border:0!important;
  border-top:1px solid #35506b!important;
  margin:clamp(42px,5vw,68px) 0 0;
  padding:clamp(25px,3vw,38px) 0 0;
  background:transparent!important;
  box-shadow:none!important;
}
.theme-bpkr .race-detail-layout .detail-block>h2{
  color:#fff!important;
  font-size:clamp(1.6rem,2.4vw,2.35rem);
  line-height:1.18;letter-spacing:-.03em;
  padding-left:16px;
  border-left:4px solid #ed6b14;
  margin:0 0 24px;
}
.theme-bpkr .race-detail-layout .race-description-calendar{
  margin:36px 0 0;
  background:linear-gradient(110deg,rgba(255,142,55,.10),rgba(18,43,70,.16))!important;
  border:1px solid #355270!important;
  border-left:4px solid #ed6b14!important;
  border-radius:14px;
  box-shadow:none;
}
/* Sidebar zůstává pro rychlé odkazy, ale má jemnější hloubku a větší kontrast. */
.theme-bpkr .race-detail-layout .detail-sidebar{position:sticky;top:108px;min-width:0}
.theme-bpkr .race-detail-layout .detail-sidebar .info-panel{
  background:linear-gradient(158deg,#193451 0%,#10243f 74%)!important;
  border:1px solid #395474!important;
  border-radius:20px!important;
  padding:26px 23px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.16)!important;
  position:relative;overflow:hidden;
}
.theme-bpkr .race-detail-layout .detail-sidebar .info-panel::before{
  content:"";position:absolute;inset:0 0 auto;height:3px;
  background:linear-gradient(90deg,#e85d04,#ffae6a 50%,transparent);
}
.theme-bpkr .race-detail-layout .detail-sidebar .info-panel h3{
  font-size:clamp(1.1rem,1.65vw,1.35rem);
  line-height:1.3;color:#fff!important;
  overflow-wrap:anywhere;
}
.theme-bpkr .race-detail-layout .detail-sidebar .info-panel p:not(.eyebrow){color:#c5d3e3!important}
.theme-bpkr .race-detail-layout .detail-sidebar .info-panel .light-link{color:#69cfed!important}
.theme-bpkr .race-detail-layout .detail-sidebar .info-panel .light-link:hover{color:#a7eafc!important}
.theme-bpkr .race-detail-layout .detail-sidebar .btn-white{
  color:#142940!important;background:#f7f9fb!important;
  border-color:#f7f9fb!important;
}
.theme-bpkr .race-detail-layout .detail-sidebar .btn-white:hover{
  background:#e9f2f9!important;color:#10243e!important;
}
@media(max-width:1040px){
  .theme-bpkr .race-detail-layout{grid-template-columns:minmax(0,1fr);gap:30px}
  .theme-bpkr .race-detail-layout .detail-sidebar{position:static;order:2}
  .theme-bpkr .race-detail-layout .detail-sidebar .info-panel{max-width:none}
}
@media(max-width:720px){
  .theme-bpkr .race-detail-layout{padding-top:30px;padding-bottom:56px}
  .theme-bpkr .race-detail-layout .race-editorial-head{margin-bottom:18px}
  .theme-bpkr .race-detail-layout .rich-content h2,
  .theme-bpkr .race-detail-layout .rich-content h3{margin-top:1.65em}
  .theme-bpkr .race-detail-layout .rich-content>p:first-of-type{font-size:1.02rem}
}
@media(prefers-reduced-motion:reduce){
  .theme-bpkr .race-detail-layout *{scroll-behavior:auto!important}
}
